struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Binaghi Mauro" <mauro.bina...@vtin.it>
Subject RE: Accessing bean in JSP but w/in java
Date Thu, 27 Mar 2003 11:52:15 GMT
Can you explain me which JSP instructions have you used for, please?
Thanks

Mauro

-----Original Message-----
From: Scott Seong [mailto:sseong@megapathdsl.net]
Sent: giovedì 13 marzo 2003 3.50
To: Struts Users Mailing List
Subject: Re: Accessing bean in JSP but w/in java


Great!!!  Thanks much :-)

Scott

----- Original Message -----
From: "Dan Tran" <danttran@hotmail.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Wednesday, March 12, 2003 8:28 PM
Subject: Re: Accessing bean in JSP but w/in java


> your actionForm should be already placed in your session or request object
> based on yours strut config file.
>
> To access the a field in the field your can accessit using
>
> yourFormName.yourFieldName if you are using regular java bean
>
> or yourFormName.map.yourFieldName if you are using DynaForm type class
>
> See my last few post to see how I access it using JSTL which is really
cool
> and clean
>
> Good Luck
>
> -Dan
>
> ----- Original Message -----
> From: "Scott Seong" <sseong@megapathdsl.net>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Sent: Wednesday, March 12, 2003 6:21 PM
> Subject: Accessing bean in JSP but w/in java
>
>
> > Hello,
> >
> > I have a little problem that I need help from experienced users.
> >
> > I'm trying to access actionForm value in the JSP inside the java code.
Why
> > would I use Java inside the JSP? I needed to derive options values based
> on
> > the value I received from the ActionForm. For example,
> >
> > ActionForm contains a property, "today" which will contain a string
> value --
> > say "20030312". From this value, I need to generate 5 additional
business
> > days to be provided in the options pick list. In order to generate
> > additional values, I need to assign a reference to a variable. So, how
do
> I
> > gain access to the actionForm in the JSP?
> >
> > Thanks,
> > Scott
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message