tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael D. Kirkpatrick" <wiz...@psychodad.com>
Subject Re: Form Auth
Date Tue, 01 Apr 2003 15:40:36 GMT
It returns "null".

I noticed that it places all the POST/GET information into a session to be
re-submitted to the actual page after successful login.  Know of a way that I can
access the session information to extract a specific string in it?



Henning Heil wrote:

> Hi Michael,
>
> ++++ Michael D. Kirkpatrick wrote on 01.04.2003 17:05 ++++
>
> >I am not quite sure if this question is suitable for this mailing list.  If
> >not, please forgive me.
> >
> >[snip]
> >
> >So here is my question.  How can I capture the original query string or make
> >the query string in web.xml dynamic?
> >
> in general I would not recommend to set the string in the web.xml.
> first part of your question: you can read out any parameter of a post or
> get string by request.getParameter(String parametername);
> second part: there are multiple ways to manipulate the request
> parameters: java -> request.setAttribute(String attributename, String
> value); or by hidden fields in html forms or with select-fields which
> are submitted . . .
>
> I would suggest:
>
> read out the site the user is coming from with
>
> String mysite = request.getParameter("site");
>
> (of course you have to add this to the string somewhere on the original
> page)
>
> write it to newly generated links:
>
> out.println("passwordsubmitter.jsp?site=" + mysite);
>
> or sth like this . . .
>
> >I am also looking for mailing lists for the following:
> >    Struts Questions
> >
> there's one on the apache.org site I think -> struts  . . .
>
> >    General Java Questions
> >    J2EE Questions
> >
> no mailing but extremely cool & helpful people there and also mailing
> mechanisms to keep track of your threads:
> http://forums.java.sun.com/
>
> >If anyone can point me in the right direction, it would be greatly
> >appreciated.
> >
> >Thanks in advance.
> >
> >
> Have fun,
>
> Henning
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message