|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
passing wml variables to jsp
Im having a problem getting my wml variables in to JSP. They always return null when i use request.getParameter(). Im sure its a daft little problem but any help would be greatly appreciated as ive been stuck on it for a while. Ive done this in html and had no problems but im struggling to convert it to wml.
Here's my code: email.jsp <?xml version='1.0'?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <%@ page language="java" contentType="text/vnd.wap.wml" %> <wml> <card title="Wap Email"> <p> <b><big>Login</big></b> </p> <br/> <p> Hostname: <input type"text" name="server" size="15"/><br/> Username: <input type="text" name="username" size="15"/><br/> Password: <input type="password" name="password" size="15"/><br/> </p> <do type="accept" label="Login"> <go href="inbox.jsp" method="post"/> <postfield name="server" value="$(server)"/> <postfield name="username" value="$(username)"/> <postfield name="password" value="$(password)"/> </go> </do> </card> </wml> inbox.jsp <?xml version='1.0'?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <%@ page language="java" contentType="text/vnd.wap.wml" %> <%@ page import="javax.mail.*" %> <wml> <card title="Wap Email"> <p> <big><b>Inbox</b></big> <br/> <% response.setContentType("text/vnd.wap.wml"); string host = (request.getParameter("server")); string username = (request.getParameter("username")); string password = (request.getParameter("password")); %> <do type="accept" label="Logout"> <go href="logout.jsp"/> </do> </p> </card> </wml> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > passing wml variables to jsp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|