Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

request.getParameter();

Status
Not open for further replies.

pelegk1

Programmer
May 1, 2003
3
US
i am using request.getParameter("myName") in my jsp page.
when i do in a javascript function :
var x,y;
x= <%= request.getParameter(&quot;myName&quot;) %> //-->> i get NULL
y=<%=myName%> // -->> i am reciving my name as it was passed to the page!!!

what is that!
why x get NULL
and y get's a value????
thanks in advance
Peleg


 
what is myName? is it an object or a JSP variable that you declare on the same page?
 
yup see if myName is declared anywhere before...

Known is handfull, Unknown is worldfull
 
if i already have a request.getparameter() at the earlier part of the page i.e, String myname = request.getParameter(&quot;myname&quot;);

u only have to display it using <%=myname%>

does this helps?

sing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top