Hi Rakesh,
Sorry it's taken me a while to get back to you. I
have posted this to the list as well for info.
What you need to do to get things going is as
follows:
All references to your webapp are to an existing
struts webapp.
a) Put the dtd with your others
(probably in the WEB-INF directory of your webapp or a sub directory of
this)
b) Compile the classes and put
them in org/apache/struts/taglib/wml directory under your WEB-INF/classes
directory, so they can be found by the web app in addition to the normal struts
classes
c) Create your jsps in the normal
place referencing the dtd (as at the top of the example jsp I provided)
using the tags. You should be able to work out from a brief study of the
example jsp I included what you need to do. NB Most of the tags correspond
to their wml equivalents - the only exception I think is the wml:form tag which
does not output anything but is there for similarity with the way struts html
tags work. Compare the example jsp with the example text file which shows the
generated wml.
I have attached another example jsp to this mail
which shows how the input tags are used. If you use these tags for the input
boxes etc then the corresponding postfield elements are automatically created
for you with the same name. The way this is done in the code is not great and
can be improved but it works and makes things a little easier.
Hope this helps, any other questions let me
know!
Nic
|
- dynamic forward mapping Nic Hobbs
- dynamic forward mapping Matt Raible
- iterate over two containers in paralell Andreas Leitner