struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Backhouse <>
Subject Re: Struts::WAP ... sorta
Date Tue, 01 May 2001 18:03:16 GMT

I have just completed an hdml interface to my already existing j2ee/struts based
application. It turned out to be very successful in how it works with the struts
controller architecture. It ended up being an additional webapp that I added to 
provide an interface to my ejb backend. The action classes that I wrote for the 
hdml jsps worked with the same data strutures that I had in place for my html 
front end.

The majority of the work was writing hdml ui tags to wrapper most of the hdml 
tags (choice, entry, ce etc.) I had to use these when they were dependent on 
dynamic content. They generally pulled values out of beans stored in the 
request/session. These tags complimented the logic and bean tags that struts 
provides. You could see them as being hdml equivalent of the struts html tags. 

Right now I am putting together an example hdml/struts app that demonstrates 
what I have put together with the goal of producing a white paper. The tags I 
have need more work to make them more reusable. 

Richard Backhouse
Oak Grove Software

Quoting Anthony Martin <>:

> I got WAP to work using Struts.  I couldn't find any WML taglibs, so I
> just
> use HTML comments so I could still benefited from the standard tags like
> <bean:write> and <bean:message>.  Example:
> <%@ page language="java" contentType="text/vnd.wap.wml"
> %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"
> %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
> %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
> %><?xml version="1.0"?>
>           "">
> <wml>
>  <!--<html:html locale="true">-->
>  <!--<html:form action="/listProfile">-->
>  <card id="filter" title="filter">
>   <p mode="nowrap">
>   Matched: <bean:write name="listProfileForm" property="max" />
>   .
>   . other cool stuff here
>   .
>   </p>
>  </card>
>  <!--</html:form>-->
>  <!--</html:html>-->
> </wml>
> Hope this is helpful to someone, and maybe someone else has a tip/gotcha
> for
> me.
> Anthony
> It is by caffeine alone I set my mind in motion.
> It is by the Beans of Java that thoughts acquire speed,
> the hands acquire shaking, the shaking becomes a warning.
> It is by caffeine alone I set my mind in motion.

View raw message