John:
You are right. i wasnt being clear. Here are the details:
Implement a doGet() as follows:
if (there_are_request_parameters){
Save all the request vals in session vars.;
Response.SendRedirect(thisServeltItselfWithoutQueryStringVars);
}
else{
doPost(req, resp);
}
in doPost pick up the request params via te session vars and process.
So when the querystring filled url arrives via a link in an html page at the
servlet, the doGet(0 will be called, and the "if" will be true. But after the
redirect, the "else" will be true. On the other hand, redirecting will ensure
query string vars are hidden. I think this will solve the problem the original
poster had.
Geeta
John Bateman wrote:
> Hi
>
> Sorry but that will 'process' a POST instead of a GET, not convert it.
>
> If you are talking changing it in the HTML page, then you need to use a FORM
> to send the info using the POST METHOD. You can't send POST via a URL LINK
> (I.E. <a href='something.jsp?var=val&var2=val2>)
>
> I hope this is what you are needing.
>
> > -----Original Message-----
> > From: Geeta Ramani [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 30, 2000 8:12 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Get to Post
> >
> >
> > Hi vsr;
> >
> > Call the doPost from within the doGet.
> >
> > Geeta
> >
> > vsr wrote:
> >
> > > Hi
> > >
> > > How can I convert a GET request to POST in the HTML
> > > Page ?
> > >
> > > What I mean is that I do not want someone to change
> > > the
> > > URL parameters and attempt to see someone else's
> > > details.
> > >
> > > Even if the user clicks on the link, it should
> > > be sent as POST to the Servlet so that the user
> > > cann't see the parameters in the URL.
> > >
> > > I have seen this before but couldn't re-collect.
> > >
> > > Thanks
> > >
> > > =====
> > > vsr
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Messenger - Talk while you surf! It's FREE.
> > > http://im.yahoo.com/
> > >
> > >
> > ______________________________________________________________
> > _____________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and
> > include in the body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives:
> http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html