Kishore,
I just recently converted some apps as well, and am really really pleased I
did.  JSP 1.0 is WAY better than .9 in SO many ways.
As an aside, I noticed that with JRun, if you ever have a line in your JSP
that looks like:
     }//if %>
you will get very odd results.  Never place the %> after a // comment.

Now, more to the point.  The best way to solve this sort of problem is not
to examine the JSP code, but to look at the resulting servlet code that
JRun has created based on your JSP.  This will often allow you to see
errors that otherwise are not immediately obvious.
In your case, examine
C:/JRun/jsm-default/services/jse/servlets/jsp/LoginAction.java.

I often add C:/JRun/Lib/jsp.jar to my classpath and then try manually
compiling the resulting Java.
Finally, (and I know you've done this already) make sure that
com.teddy.deploy.bean.Session actually has a public method:
processRequest(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)

Hope this helps,
Robert


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