Make sure that the class Session is in the class path...Is the method
signature processRequest() correct ? Just a thought.

Try writing a different method in your bean class "Session" , say
 myTrialMethod (String inValue ) { System.out.println("setMyTrialMethod = "
+ inValue);}
and call it as
< jsp:setProperty name="Session" property="MyTrialMethod" value="Reached
Here !"/>

Check the log/trace, if the method is being called ( you can write a
"getter" method to check the values and print it on the HTML)

Try if that works.

- khaitan

----- Original Message -----
From: Kishore Kumar Kochi Ram Mohan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 18, 1999 12:11 PM
Subject: Help Required!!!


> Hi everybody!!!,
>
> I am new to JSP. My environment is
> JSP1.0/JRun2.3.3/NES3.6/Win NT.
>
> I am converting JSP0.91 pgms to JSP1.0. I am using
> jsp:useBean syntax. The code is as follows:
>
> <jsp:useBean id="mysession"
> class="com.teddy.deploy.bean.Session"
> scope="session"/>
> where com.teddy.deploy.bean is the package and Session
> is the bean class.
>
> In the JSP file when I invoke the methods of Bean like
>
> <% mysession.processRequest(request, response); %>
>
> I am getting the error as follows:
>
> 500 Internal Server Error
>
> com.livesoftware.jsp.JSPServlet:
>
> javax.servlet.ServletException:
> Found 1 semantic error compiling
> "C:/JRun/jsm-default/services/jse/servlets/jsp/LoginAction.java":
>
>     43. mysession.processRequest(request, response);
>       out.print("\r\n    \r\n
> *** Error: No match was found for method
> "processRequest(javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse)"
>
> The complete code of LoginAction.java(Bean file) is as
> follows:
>
> <jsp:useBean id="mysession"
> class="com.teddy.deploy.bean.Session"
> scope="session"/>
> <jsp:setProperty name="mysession"
> property="Registered" value="true"/>
> <html>
> <jsp:getProperty name="mysession"
> property="Registered"/>
> <% mysession.processRequest(request, response); %>
>
> <if condition="<%= mysession.getFailure() %>">
>  <% mysession.redirect("Login.jsp"); %>
> <else>
>  <% mysession.redirect("MainFrame.html"); %>
> </if>
>
> </html>
>
>
> Please let me know how to call the methods of the
> Bean. setProperty and getProperty is working fine.
>
> Your quick response is highly appreciated. I am
> working in this case for the past 24 hrs.
>
> Thanks in advance,
> Kishore.
>
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
>
>
===========================================================================
> 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