a jsp question (a specific one and general learning technique/direction)

M

Manish Pandit

NickName said:
http://groups.google.com/group/Java...37a02/a75c48dd03c2988b?hl=en#a75c48dd03c2988b

I don't want to cross post, however, the question was not answered.
Would appreciate your answer/thoughts etc.

Best way would be to use Struts, or a simple controller servlet to
which the JSP submits. The servlet (or action servlet in case of
struts) can process data if request.getMethod() is "post", or it can
redirect to the form if the method is "get". While processing, you can
choose to put the logic in the servlet (not a good idea) or have the
servlet call some other class to handle the logic, once the servlet has
extracted and validated the form data coming in.

-cheers,
Manish
 
N

NickName

Manish said:
...
Best way would be to use Struts, or a simple controller servlet to
which the JSP submits. The servlet (or action servlet in case of
struts) can process data if request.getMethod() is "post", or it can
redirect to the form if the method is "get". While processing, you can
choose to put the logic in the servlet (not a good idea) or have the
servlet call some other class to handle the logic, once the servlet has
extracted and validated the form data coming in.

-cheers,
Manish

Many thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top