Create a button , On click of this button
put button value in a variable

The button has to submit a form , if you want to do it without submitting the
form
go to Method2

<%
if request.getParameter("button_name") != null
{
String btnValue = request.getParamter("button_name")
if btnValue.equals("setProperty")
<jsp:setProperty name="" value="" >
or
<jsp:setProperty *  > //star sets all
}
%>



Method2

<Input type = text name = field 1 onBlur="setproperty()">

<script >
function setproperty()

{
<%
<jsp:setProperty . . . . .>


%>

I am not 100% sure about method 2 , but I think it should work


}

</script>









Idrees Ali Aashi <[EMAIL PROTECTED]> on 01/16/2001 11:35:25 AM

Please respond to A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Santosh Daryani/IT/Aon Consulting)

Subject:  javabean setPropert



can I call JavaBean SetProperty from JavaScript if yes how else tell me some
alternate to do this.

thanks in advance for any help.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to