Home  >  Forum  >  JSP, Servlet
Post New Query

org.apache.jasper.JasperException: Cannot find any information on property


joined on
March 22,2013
Asked on September 17,2015

I have leaning jsp set and get action tag using java bean and get the error. Any solution please..

this is my index form to take the imput.

       <form action="setAndGet_process.jsp" method="post">

Name:<input type="text" name="name"><br> 

Password:<input type="password" name="password"><br> 

Email:<input type="text" name="email"><br>

<input type="submit" value="Register">


</form>


Jsp process code the handle the input


        <jsp:useBean id="u" class="jsp.SetAndGetUser"></jsp:useBean>

<jsp:setProperty property="*" name="u" />


Records:

<br>


<jsp:getProperty property="name" name="u" /><br>

<jsp:getProperty property="password" name="u" /><br>

<jsp:getProperty property="email" name="u" /><br>


and the last one is java user bean for setter and getter


package jsp;

   public class SetAndGetUser {

private String name, password, email;

}


Error:


SEVERE: Servlet.service() for servlet [jsp] in context with path [/JSPLearning] threw exception [javax.servlet.ServletException: java.lang.NoSuchMethodError: jsp.SetAndGetUser.getName()Ljava/lang/String;] with root cause

java.lang.NoSuchMethodError: jsp.SetAndGetUser.getName()Ljava/lang/String;

at org.apache.jsp.ActionElements.setAndGet_005fprocess_jsp._jspService(setAndGet_005fprocess_jsp.java:114)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Unknown Source)

joined on
October 12,2013
Replied on September 17,2015

You need to create the getter and setter for your all variable for your SetAndGetUser calss.

public class SetAndGetUser {
private String name;
private String password;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}

private String email;

}

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us