| | |
Jsp doesnt return parameter value
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2005
Posts: 11
Reputation:
Solved Threads: 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
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
- how to read data from database page by page, please it is urgent... (JSP)
- Parameter in JSP?? (JSP)
- One more function (C++)
- just a quick question (C++)
- Accessing functions from base class (C)
Other Threads in the JSP Forum
- Previous Thread: is a variable set?
- Next Thread: call resultset in join query
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web





