instead of using <jsp:getProperty>, use <your bean>.getT1(),<your
bean>.getT2()...
e.g.
change following piece of code FROM:
input type="text" size="10" name="T1" value =
"<jsp:getProperty name
="StdBean" property ="T1" />">
TO
<%String t1 = StdBean.getT1();%>
input type="text" size="10" name="T1" value ="<%t1%>">
Nishit
-----Original Message-----
From: anurag dewan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 5:55 AM
To: [EMAIL PROTECTED]
Subject: problem in bean.....or session..??
hi,
There seems to be some from with beans in my JSP
code...
i am using getProperty to get the values. But it looks
that
it is not getting the value.
my code is...
<%@ page import = "ad.CodeBean , java.lang.* "
session="true" %>
<jsp:useBean id="SBean" scope="session"
class="cdot.CodeBean" />
<jsp:setProperty name="SBean" property="*" />
---html---
<%@ include file="inst1.jsp" %>
<%! String str ; %>
<%= str=request.getParameter("R1") %>
<% if(str !=null) { %>
<% if (str.equals("Fetch")){ %>
<p> Fetch the Codes </p>
<% StdBean.fetchStdCodes() ; %>
<!-- jsp:include page="instdcode2.jsp" flush="true" /
-->
<% } else if (str.equals("FetchNext")){ %>
<% } %>
<% } %>
and code for included file....
in form tags...
input type="text" size="10" name="T1" value =
"<jsp:getProperty name
="StdBean" property ="T1" />">
input type="text" size="10" name="T2" value =
"<jsp:getProperty name
="StdBean" property ="T2" />">
input type="text" size="10" name="T3" value =
"<jsp:getProperty name
="StdBean" property ="T3" />">
input type="text" size="10" name="T4" value =
"<jsp:getProperty name
="StdBean" property ="T4" />">
input type="text" size="10" name="T5" value =
"<jsp:getProperty name
="StdBean" property ="T5" />">
input type="text" size="10" name="T6" value =
"<jsp:getProperty name
="StdBean" property ="T6" />">
input type="text" size="10" name="T7" value =
"<jsp:getProperty name
="StdBean" property ="T7" />">
input type="text" size="10" name="T8" value =
"<jsp:getProperty name
="StdBean" property ="T8" />">
input type="text" size="10" name="T9" value =
"<jsp:getProperty name
="StdBean" property ="T9" />">
input type="radio" name="R1" value="Fetch"> Fetch
input type="radio" name="R1" value="FetchNext">
Fetch Next
input type="radio" name="R1" value="FetchPrev">
Fetch Prev
input type="radio" name="R1" value="Add"> Add
input type="radio" name="R1" value="Delete">
Delete
input type="radio" name="R1" value="Commit">
Commit
input type="submit" name="B4" value="Apply">
input type="submit" name="B5" value="Cancel">
/form>
Is there some problem with the scope of the bean...
or problem in the bean itself...
Please guide me
-anurag
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
===========================================================================
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