can we see doGet and doPost for ActionServlet.java

thanks
Martin 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






> Date: Mon, 4 May 2009 06:26:47 -0700
> From: pvcsv...@yahoo.com
> Subject: How to make request parameters available to a login.jsp?
> To: users@tomcat.apache.org
> 
> Hi, I have posted this question in many different forum, but I still have not 
> found an answer. Perhaps, I will in this list.  
> 
> I have a secured resource in Tomcat.
> My resources are secured via FORM authentication (j_security_check).
> The secured resources are requested from an external page like this:
> 
> <form method="post"  
> action="http://localhost:8080/testApp/secured/userHome.do"; 
> name="userHomeForm">
> <input type="hidden" name="mydata" value="MYDATA"/>  
>   <input type="submit" value="Enter Here"/>  
> </form>
> 
> This my login.jsp. I have a business requirement that needs to access the 
> "mydata" request parameter from this page.
> 
> The values are always null when the requests are made
> via a "post". However, this works when the request is made via a "get" I
> cannot change my forms to "get" method that is just not possible.  If anyone 
> has any
> idea what we need to do, please please help us out. Thanks in advance!   This 
> works in Tomcat 5.0. But not in the newer releases. And we need to move to a 
> newer release.
> 
> (I did not paste my entire login.jsp. But I can added if requested) Thanks in 
> advance.
> 
> <%  
>     request.setCharacterEncoding("UTF-
>    
>     java.util.Enumeration paramNames = request.getParameterNames();  
>       
>     out.println("<p>My Param Names Enum:</p>");  
>     while(paramNames.hasMoreElements()) {  
>         out.println("<p>Param Name: " + paramNames.nextElement() + "</p>");  
>     }  
>    
>     String consignmentId = request.getParameter( "mydata" );  
>     out.println("<p>My Data:  " + consignmentId + "</p>");  
>  %>  
>    
>  <form method="post" action='<%= response.encodeURL("j_security_check") %>' > 
>  
>    <table border="0" >  
>      <tr>  
>        <th >Username:</th>  
>        <td ><input type="text" name="j_username"></td>  
>      </tr>  
> 
> 
> 
> 
> 
> 
> 
>       

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009

Reply via email to