|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
JSP and WML?
Hi guys,
I'm hoping someone can help me with a problem i've been trying to figure out. Firstly my original web application is based on the struts framework. Now i want it to "convert" it to WML. I've tried using the struts-wml tag library but haven't had any luck: the follows is renamed as test.jsp: Code:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-wml.tld" prefix="wml" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <wml:wml> <card> </card> </wml:wml> wapaka just gives me "Malformed File". problem solved with: <%@ page contentType="text/vnd.wap.wml" %> what i don't get is why do i have to put this line? infact all the examples in struts-wmlexample.war don't have this line and give me the same malformed file error. |
|
#2
|
||||
|
||||
|
as i said in my last post i don't do jsp or java but the extra line you needed to add there is pretty universal and just tells the server the script is hosted on to render the output it as if it were wml - that way when the handset reads the output it sees it's being served as wml and knows how to interperate it.
there's a stack of stuff here on the forums about mime types for deploying different content over wap. maybe worth a look at.
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#3
|
|||
|
|||
|
Hi spear. Is struts-wml working with struts 1.2.x ? (last version is from 2003 )
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > JSP and WML? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|