Great!!! Thanks much :-) Scott
----- Original Message ----- From: "Dan Tran" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]