Hi

put these in a form and in action attribute give servlet name.hope it will
work

<%
<input type="hidden" name="YYY" value="2009" />
      <input type="hidden" name="MMM" value="01" />
      <input type="hidden" name="PPP" value="773116556" />
     %>
On Wed, Oct 6, 2010 at 5:27 PM, Nelson Rodrigo - LHQ <
nelson.rodr...@loadstarlk.com> wrote:

>  Dear Friends
>
>
>
> In my application I have to pass parameters from jsp to servlet
>
>
>
> In JSP
>
> Im using like this
>
> %>
>
> <input type=*"hidden"* name=*"YYY"* value=*"2009"* />
>
>       <input type=*"hidden"* name=*"MMM"* value=*"01"* />
>
>       <input type=*"hidden"* name=*"PPP"* value=*"773116556"* />
>
>       <%
>
>
>
> RequestDispatcher ds = request.getRequestDispatcher("AdminActions");
>
>       ds.forward(request, response);
>
>
>
> AdminAction is my Servlet name
>
>
>
> In my servlet
>
> I’m using like this
>
>
>
> String fdYear = request.getParameter("YYY");
>
> System.*out*.println(fdYear);
>
>
>
> But result is null
>
>
>
> Please advise me where I missed or is this not possible passing parameters
> from jsp to servlet.
>
>
>
>
>
> Thanks & Kind Regards,
>
> Nelson Rodrigo
> Executive – Software Development
> *LOADSTAR (PRIVATE) LIMITED
> *Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
> 311 6556
>
> P *SAVE PAPER*  - *Please consider our environment before printing *ü
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
>
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to