I usually don't use the tiles taglib other than in my layout files...
here is how I would accomplish the same thing you want to do..
1) Modify your layout.jsp
note body wasn't there before.
2) Modify the tiles-def.xml
then just forward to assessment
We used the bean framework portion of Spring in a couple applications. It was
very nice when the client decided to not use EJB Facades we could very simply
(less than 10 minutes) switch the whole app over to a POJO Façade. Granted we
wrote the POJO Facades at the time we were developing, and the
Wrap it in a tag
-Original Message-
From: Eric Lemle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 15, 2005 6:13 PM
To: user@struts.apache.org
Subject: Fwd: issue
Eric D. Lemle
Senior Programmer / Analyst
Intermountain Health Care
36 South State Street, Suite 1100
Salt Lake City,
Well the alternative then
The action class
package org.homedns.afogleson.web.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.
A workaround - albeit maybe not the best
public void setAddIgnore(String value) {
ignore.add(value);
}
public void setIgnore(List value) {
this.ignore = value;
}
/**
* @return A list of keys to ignore
*/
public List getIgnore() {
return ignore;
}
then instead of
use
I don't like
You also could use mapleBlog which uses Struts and tiles
http://www.resynthesize.com/code/
Al
-Original Message-
From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 9:54 AM
To: Struts Users Mailing List; Richard
Subject: Re: [OT] - Blog and Forum pl
Might seem silly but have you checked the firewall rules for the production
server?
I have seen lots of times where the firewalls or routers are set up in such
a way that you cannot hit your own site(s)/boxes from within the firewall,
or even resolve the DNS name (easily fixed with a etc/hosts en
I think you would have to define what you mean there, but yes, just as in
calling a jsp you can add parameters to your call to the action class and
they will be passed to the underlying jsp's. (of course assuming the
underlying view is jsp based :)
Al
-Original Message-
From: Jirole, Ama
Honestly pretty much like regular OO inheritance. If you define values in
the "subclassed" tile then they replace the ones in the parent, if you do
not then the parents value is used.
Al
-Original Message-
From: Wylie van den Akker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 05, 2
Wendy,
True enough, the original question though revolved around prepopulating the
form from the DB before getting to the view of the submitting page so that
initial page would have data pre-populated. :)
Al
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
Freddy,
You want to use the formName that you gave in the struts-config.xml in
general. Here is a short example. Assume TestForm is an actionform named
"testForm" in the struts-config.xml. In the action class you would do
something like this
public Actionforward execute(...) {
.
.
.
You can look at the struts example struts-upload.war (I think that is the
name in the examples directory) for how to do this. Basically you want to
make your form something like this:
You will of course need an actionForm and an action class.
The action form would have code such as
Pu
Anna,
What I would do is start with an action (lets call it PopulateCreateAction)
that gets the collection from the DB, creates a new ActionForm and populates
that action form with the collections. I would place that in the request
scope and then do a standard action forward to the create.jsp.
Y
Normally I would think of it as the root folder of your web archive. For
instance if I have the following
/
---WEB-INF
---classes
---lib
/images
/docs
/ would be my web-root.
I think that is what Exadel is using. I haven't used it in over 6 months as
I prefer to just use some basics to do
Optionally,
What I have often done with DTO's is populate the action form from the DTO
and place the action form in the appropriate scope for use by the page.
Assuming that almost everything is a call to an action you can do this in
the action class just prior to forwarding to the view. It gets ri
101 - 115 of 115 matches
Mail list logo