Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: accessing bean from script

siva

2004-03-22

Replies:

Just Follow these steps....'Coz now I am using this..

* Set the Value in a Hidden Variable and set another variable for button
click.
* In OnClick() event ...Just come to the same page.
* Now U can use the request.getParameter("hidden_button_value");
* If the Button value is not null, then U can get the value for
request.getParameter("hidden_bean_value");
* Now U can Redirect that page where ever u want...thatz all
This is working for me..:)

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:JSP-INTEREST@(protected)
Sent: Tuesday, March 23, 2004 9:56 AM
To: JSP-INTEREST@(protected)
Subject: accessing bean from script


I want to set the value in a bean on click of a button
This has to be done onclick() of that button
But how do i access the bean in the script?
since it will be run only during the load and the java content is lost
later..


- - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
T.SKANDHA DARSHAN
email:skandha_darshan@(protected)

===========================================================================
To unsubscribe: mailto listserv@(protected)
JSP-INTEREST".
For digest: mailto listserv@(protected)
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.