RE: Accessing bean in JSP but w/in java

2003-03-27 Thread Binaghi Mauro
Can you explain me which JSP instructions have you used for, please?
Thanks

Mauro

-Original Message-
From: Scott Seong [mailto:[EMAIL PROTECTED]
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 [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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing bean in JSP but w/in java

2003-03-13 Thread Vic Cekvenich
write a getX() and just do bean.x in JSP

Scott Seong wrote:
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]


Accessing bean in JSP but w/in java

2003-03-12 Thread Scott Seong
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]



Re: Accessing bean in JSP but w/in java

2003-03-12 Thread Aidan Monroe
You can place your Form (or just the one necessary
value) into the request object, then create a taglib
that reads that value (taglib has access to the
request object) and does what you need.

--- Scott Seong [EMAIL PROTECTED] wrote:
 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]
 


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing bean in JSP but w/in java

2003-03-12 Thread Kwok Peng Tuck
If you set the value in actionForm, couldn't you derive it then and 
place it in another property ?  Then provided the property has the get 
method  you can access it using the bean tags and render the property 
right ?

Scott Seong wrote:

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]


Re: Accessing bean in JSP but w/in java

2003-03-12 Thread Dan Tran
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]



Re: Accessing bean in JSP but w/in java

2003-03-12 Thread Scott Seong
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]