Get and Post issue

S

suneet.taparia

Hi,

I have a certain doubt regarding get and post method.

Suppose I have a form

<form action="abc.jsp?var=apply&var2=get" method="post">

will the server be able to get me the parameters both from form post
as well as of the query string in the request object.

thanks in advance
 
A

Andy Dingley

will the server be able to get me the parameters both from form post
as well as of the query string in the request object.

Yes, but not in the same way. "Parameters" is a very general term and
it includes both form parameters and those in the query string. You'll
also need to implement both the doPost() and doGet() methods.

If, as in the example you quote, then it's a POST with parameters
embedded in the URL rather than supplied by <form> <input> elements,
then yes it's just like retrieving them from a GET.
 

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,776
Messages
2,569,603
Members
45,197
Latest member
Sean29G025

Latest Threads

Top