Click here to Skip to main content
15,917,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have set a request in jsp and submitted the form.
And I get the value in action class,but im getting null value in action.

My code is:
Mainjsp.jsp
<%request.setAttribute("dispatch", "add");%>


Action.java
request.getAttribute("dispatch");


Please help in this.
Thanks in advance.
Posted
Updated 14-Jun-12 1:25am
v2

1 solution

This article should help you out on how this is implemented:
getAttribute() Method Of The Request Object[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900