Gosh,

It works fine with WebLogic. Should be something wrong with your JSP engine.
Check out my code below


---- test1.jsp -----
<html>
<body>
<form method="post" action="test2.jsp">
<input type="text" name="text1" value="wisor">
<p>
<input type="submit" name="submit">
</body>
</html>
----test1.jsp--------------


----test2.jsp---------
<html>
<body>
<jsp:useBean id="testBean" class="com.yourcompany.jsp.TestBean" />
<jsp:setProperty name="testBean" property="text1" />
<h1>
Value= <br> <jsp:getProperty name="testBean" property="text1" />

</body>
</html>
----test2.jsp--------

-ashwath

````````````````````````````````````
Ashwath N Akirekadu
Wisor Telecom
Tel: (+91-80) 552 5821/5822/5823
Tel/Fax: (+91-80) 553 6538
[EMAIL PROTECTED]
www.wisor.com
````````````````````````````````````




----- Original Message -----
From: Arannyak Ghosh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 21, 2000 4:15 PM
Subject: problem while using set and get property


> Hi,
> I amm trying to use the set property and get property of JSP to send
values
> from the jsp page to a bean.
> e.g:
>  if I have a input of type text box say name="txt1" and I have
corresponding
> setTxt1() and getTxt1() in the bean.
> <input type="text" name="txt1">
> Now when I am explicitly setting values  for txt1 by saying
>
> <jsp:setProperty name="beanid" property="txt1" value="test"/>
> and try getting it back by,
> <jsp:getProperty name="beanid" property="txt1" />  ,
> I get back the value "test"
>
> But I want to send the value of the text box txt1 as declared in the page
to
> the bean.
> And even after hard coding the value as,
>
> <input type="text" name="txt1" value="test">
> I cannot retrieve the value using the get property syntax.
>
> The error 500 saying cannot compile class for jsp keeps coming. Could
anyone
> tell me if there is anything wrong in my concept.
> What is the exact process of sending of sending client information to the
> bean.
>
> Thanx
> Ghosh
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to