Re: Using Bean Tag inside html Tag. Urgent

2003-06-09 Thread Zhu He
red in request/session, sometimes is variable that can be used by jsp scriplet. If someone could please clearify this for a newbie, I'd really appreciate it. thx Zhu He - Original Message - From: "Roy Porter" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <

Re: Action Form: HashMap

2003-06-06 Thread Zhu He
void setFoo ( String foo ) { > this.foo = foo; > } > > and the input tag becomes > >value='${element.value}'/> > > And it works like a champ. Is there anything else I have to do > to make the HashMap work? Like use a different Base Form cl

Re: Action Form: HashMap

2003-06-06 Thread Zhu He
supply are the interface to the HashMap, > and in this case could be a simple Properties class, if the result > is a set of strings? Is this correct, or am i confused? > > I appreciate your help! > > -Original Message- > From: Zhu He [mailto:[EMAIL PROTECTED] > Sent: Fr

Re: newbiew Q: how to do redirect instead of forward

2003-06-06 Thread Zhu He
> Ok. So, from the user's perspective, when we do a redirect, they are sent > to a different location. When we do a forward, they are not, even if the > content changes? The content changes to the content of the new page, but address bar stays the same because all the forwarding is done on the s

Re: Action Form: HashMap

2003-06-06 Thread Zhu He
if you are using map backed actionForm, make sure getXXX() setXXX() where XXX matches the name of the map. In you case function names should be getMap() setMap() - Original Message - From: "Ray Madigan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, Ju

Re: newbiew Q: how to do redirect instead of forward

2003-06-06 Thread Zhu He
; > > > > This is probably a silly question, but what's the difference between > forward and redirect? > > > Thanx, > Ian > > Ian D. Stewart > Open Systems Engineer II > Enterprise Midrange - Bank One Infrastructure & Operations > [EMAIL PROTE

newbiew Q: how to do redirect instead of forward

2003-06-06 Thread Zhu He
for forward we usually do execute() { ... return mapping.findForward("listing"); } I tried to use redirect by execute() { ActionForward af = mapping.findForward("listing"); af.setRedirect(true); return af; } but get exception javax.servlet.ServletException: Configuration

tags to compare properties of 2 bean.

2003-06-05 Thread Zhu He
Hi We can use struts tag to compare the property of a bean to a value, like Are there struts tags we can use to compare the properties of 2 beans (without using any jsp scriplet)? I am a newbie thx for you patience. Zhu