Forums Register Login

"Cannot find any information on property" error

+Pie Number of slices to send: Send
Hi,

I'm getting following error message in my application. Really appreciate any suggestions/corrections. Thanks

[8/27/04 15:25:58:781 EDT] 34132ccb WebGroup E SRVE0026E: [Servlet Error]-[Cannot find any information on property 'UserID' in a bean of type 'SQLBean']: org.apache.jasper.JasperException: Cannot find any information on property 'UserID' in a bean of type 'SQLBean'
at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:873)



SERVLET :

public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {

SQLBean sb = new SQLBean();
sb.setUserID(req.getParameter("UserID"));
sb.setPassword(req.getParameter("Password"));

ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("index.jsp");
rd.forward(req,resp);


}


BEAN :

public class SQLBean {
private String UserID;
private String Password;

public void setUserID(String UID) {
this.UserID = UID;
}

public void setPassword(String PWD) {
this.Password = PWD;
}

public String getUserID() {
return(UserID);
}

public String getPassword() {
return(Password);
}

}
+Pie Number of slices to send: Send
Can't see anything wrong there. The problem is probably in your JSP. Please post the code using the UBB CODE tags (next to the Graemlins).

Jules
+Pie Number of slices to send: Send
Thanks for the response. Here is the JSP code calling Beans

index.jsp



[ August 27, 2004: Message edited by: Dilip kumar ]
+Pie Number of slices to send: Send
Try using


instead of

[ August 27, 2004: Message edited by: Susanta Chatterjee ]
+Pie Number of slices to send: Send
Thanks ! Looks like it worked. It couldn't verify it as I'm getting other errors. I'm looking into those errors.
There's a way to do it better - find it. -Edison. A better tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 751 times.
Similar Threads
Simple EL code is not working
doGet
passing input type="text" from jsp to bean & using that in servlet
What's wrong with this deployment descriptor?
my First Logon Page
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:58:43.