943,882 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 4774
  • JSP RSS
Apr 29th, 2005
0

Jsp doesnt return parameter value

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nelly_1005 is offline Offline
11 posts
since Feb 2005
May 1st, 2005
0

Re: Jsp doesnt return parameter value

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
:!:
Reputation Points: 11
Solved Threads: 0
Newbie Poster
adityabakle is offline Offline
8 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: is a variable set?
Next Thread in JSP Forum Timeline: call resultset in join query





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC