|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
passing variables from wml to jsp not working
hi guys
im tryin to send over just one variable from teh wml to jsp im sure i have done it right, buti keep getting an internal error 500 org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 18 in the jsp file: /srch2.jsp Generated servlet error: C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\srch2_jsp.java:65: incompatible types found : java.lang.String[] required: java.lang.String Subject=request.getParameterValues("srch"); ^ 1 error thats the error, i cant seem to find whats worng with this line! ********************************************** my full jsp code is: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd"> <%@ page language="java" contentType="text/vnd.wap.wml"%> <%! String Subject; %> <wml/> <card id="srch" title="Search"> <p> <% Subject=request.getParameterValues("srch"); out.println("<br/>Search is"+Subject); %> </p> </card> </wml> ********************************************** this is the 5th time ive tried to just send a variable over but it keeps coming up with teh same error on my brwoser and simulator! plase help! thank you xx |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > passing variables from wml to jsp not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|