You can do something like this :
In your tiled definition :
--snip--
put name=messageText value=message.text/
--snip--
In your jsp:
Do something like
tiles:getAsString name=messageText/
titlebean:message name=messageText//title
So in the title... a value corresponding to the value
Servlet filters (javax.servlet.Filter) lets you do this.
But... this is available in Servlets 2.3 and not in any earlier servlet
specs. So check if your container provides support for 2.3
This link may give you some start but a google search would give you much
more.
I have a question that I always thought of for such situations. It is
adviesd to have 2 action mappings as Bill suggests for such situations, one
that sets up the form with validate=false
And the next that handles the form POST. Why is that?.
In my ActionForm I look for a condition which tells me
java:comp/env is the namespace that a J2EE container uses to tie logical
names to the various components being managed by the container.
The J2EE defines a naming policy for application components. This namespace
is rooted with java:comp
comp is a sub-tree for component related bindings.
Now there are general validation needed at submit time for each Form
Does this means that you save the data onto a persistent storage on each
form submit.
If that is the case, on a validation error of the final credit application
all you have to figure out is which form does the error belong too
Daniel,
Try this :
display:column property=lastName paramId=policyNumber href=test.jsp/
The displaytag user list would be a great place too for such questions:
[EMAIL PROTECTED]
Avinash
-Original Message-
From: Daniel Kalcevich [mailto:[EMAIL PROTECTED]
Sent: Thursday, May
Oops missed an attribute
display:column property=lastName paramId=policyNumber
paramProperty=policyNumber href=test.jsp/
-Original Message-
From: Avinash Gangadharan [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:53 AM
To: 'Struts Users Mailing List'
Subject: RE
say it's not a big deal, I can just
do the empty
form like you said, but I'd like to know if that's the only way...
From: Avinash Gangadharan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: getting non
web.xml specifies Servlet 2.4
Avinash Gangadharan wrote:
Hi All,
I'm trying to use the jstl/functions tag library and cannot seem to
make it work. In my jsp I have something of the this sort:
%@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; %
c:set var=str value
Try this :
tiles:insert definition=tiles.content.common.downloadHeader
tiles:put name=category value=Webpage /
/tiles:insert
-Original Message-
From: Mark Mandel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 5:50 PM
To: [EMAIL PROTECTED]
Subject:
other ideas?
Dean Hoover
Avinash Gangadharan wrote:
Try this :
In tiles-def.xml --- put name=action value=Logon.do /
In your jsp ---
tiles:importAttribute /
html:form method=post action='bean:write name=action/'
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED
11 matches
Mail list logo