[Opensource] links in expresso
Brian Rook
brian.rook at xor.com
Tue Jul 23 10:20:12 PDT 2002
Is there a way to create links in expresso? I'm not really interested in
using the struts html:link tag. I've been thinking that you should be able
to create links from transition objects. Has anyone done anything like
this?
Benefits:
1) You could setup your query string with the .addParam() and
.getParamString() methods.
2) All the transitions are controlled by your controller now
3) The code would be a lot cleaner.
4) Use the label attribute to hold the text for the link
Questions:
Using transitions for forms you have to specify the path to the controller
in the form action attribute (i.e. form action="/myApp/Controller.do") How
would you do this in a link tag? Would you have to create a new attribute
to hold this information? When you create a transition you give it a state
and a controller... does it have any way of pulling the path to the
controller out of the config.xml file for you?
More information about the Opensource
mailing list