
December 22nd, 2006, 01:20 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 1
Time spent in forums: 5 m 16 sec
Reputation Power: 0
|
|
|
anchor link problem
Hi everyone,
I am actually having this same problem as well. I went thru a process trying to debug this issue, and ended up creating a static wml file to verify my code was correct. Turns out, the wml file worked fine. If I took that same file, and named it with an html extension, the link for the anchor tag no longer worked.
So my first guess is that its detecting the file extension and processing the file differently, even though the header for the file is still identifying it as wml.
So thats why its not working with my jsp either...
any thoughts out there on what we can do? Change some headers or tomcat settings or something?
Thanks all! and have a great holiday!
Quote: | Originally Posted by mobile@123
Anchor link problem Code:
Original
- Anchor link problem Code |
|
|
|
Hello to all..
I have developed a jsp using wml in wap proof emulator ..
in my login page i have to submit user name and password ..which i have done using..(postfield..go..anchor tags)..the main problem..is anchor tag is not displyaing as link in the mobile device(Nokia 6600 & Nokia 6680) ..
please help what wrong ...
Thanks..
xml Code:
Original
- xml Code |
|
|
|
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "(URL address blocked: See forum rules)"> <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> <%@ page language="java" import="java.lang.reflect.*,org.apache.struts.config.*,org.apache.struts.action.*" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@page import="com.mblog.ui.form.wapLoginForm"%> <jsp:useBean id="userInfo" class="com.mblog.ui.form.wapLoginForm" scope="session"/> <% response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "No-cache"); response.setDateHeader("Expires", 0); response.setHeader("Cache-Control", "private"); %> <wml> <card id="Login" title="Mobile Blog"> welcome page<br/> <p> <b>Login</b><br/> Mobile No: <input type="text" name="mobileNo" maxlength="12" value="" format="*N"/><br/> Password: <input type="password" name="passwd" maxlength="10" value=""/><br/> <anchor>Submit <go method="get" href="wapbuddylogin.do"> <postfield name="msisdn1" value="$(mobileNo)"/> <postfield name="password" value="$(message)"/> </go> </anchor> <do type="reset" label="Reset"> <refresh> <setvar name="mobileNo" value=""/> <setvar name="mobileNo" value=""/> <setvar name="passwd" value=""/> </refresh> </do> </p> </card> </wml>
 |
|