Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Again problem in usebean
Joined: Jun 04, 2005
Sep 21, 2005 04:13:00
Thanx Mr/Miss Ben..
i am developing a application in jsp & i am getting an error in
server on using usebean
org.apache.jasper.JasperException: Unable to load class krunaljspbeans.LanguageBeans
i create one html->beans.html
in that html i call beans.jsp.
as well as i put those two app,html and jsp in krunaljspbeans package that is in root directiory.ok.
in this jsp i use that usebeans.
that code is:
<jsp:useBean id="languageBean" class=" krunaljspbeans.LanguageBeans" />
<jsp:setProperty name="languageBean" property="name" value='<%= request.getParameter("name") %>' />
<p> Hello, <jsp:getProperty name="languageBean" property="name" /><%= LanguageBeans.getName()%></p>
class LanguageBeans code is:
public class LanguageBeans
public String getName()
public void setName(String name)
this.name = name;
i compile that program and put that class in root/webinf/class/krunaljspbeans
after that when i run
it gives me above error.
so,Plz tell me where i m wrong?
Plz, give me right direction.
Joined: Dec 11, 2004
Sep 21, 2005 04:38:00
I put my reply in the
Please try not to spread a single conversation among multiple threads.
There is a "Reply" button at the bottom of each thread that you can use to add new posts.
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: Again problem in usebean
JSP and JavaBeans
unable to compile class for jsp
problem in usebean
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014