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:[EMAIL PROTECTED] Behalf Of Skandha Darshan
Sent: Tuesday, March 23, 2004 9:56 AM
To: [EMAIL 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:[EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
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 [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST 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