Jsp doesnt return parameter value

Reply

Join Date: Feb 2005
Posts: 11
Reputation: nelly_1005 is an unknown quantity at this point 
Solved Threads: 0
nelly_1005 nelly_1005 is offline Offline
Newbie Poster

Jsp doesnt return parameter value

 
0
  #1
Apr 29th, 2005
hi guys

found anotehr probem with my code, i have created a wml page which users input a search criteria, this is then apssed onto a jsp page which prints the value

in teh jsp page though it doesnt print the parametr value and prints out null

code is:
<b><big> Subject:</big></b>
<br/>

<input type ="text" name="srch" height="20" format="*X,*x"/>

<do type="accept" label="Search">

<go href="http://localhost:8080/srch2.jsp" method="post">

<postfield name="Subject" value="$srch"/>


JSP:
<card id="srch" title="Search">


<p>
<%


String Search;
Search=(String)request.getParameter("srch");

out.println("<br/>Search is"+Search);

%>

</p>
</card>

please could anyone tell me what is wrong
PLease thank you
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 8
Reputation: adityabakle is an unknown quantity at this point 
Solved Threads: 0
adityabakle adityabakle is offline Offline
Newbie Poster

Re: Jsp doesnt return parameter value

 
0
  #2
May 1st, 2005
Hey Buddy
I dont know much about wml but i think your JSP file has a tag <code> with
same id
try searching the id and also use get method to confirm that ur parameter is passed to the JSP as the complete url will appear in the address bar
:!:
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC