0

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

2
Contributors
1
Reply
2
Views
12 Years
Discussion Span
Last Post by adityabakle
0

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
:!:

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.