Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Error Chap 5:


Message #1 by "Dean Howitt" <ddhowitt@a...> on Fri, 6 Apr 2001 16:47:19
It looks like your Oracle JSP compiler uses old version of sevlet API.(2.0)
 I believe the old version of that method was: session.putValue("user",
user);
insted of:
>           session.setAttribute("user", user);
and
session.setMaxInactiveInterval(900);
wasn't introduced yet.

I don't know what servlet engine, you are using but in order to run this
code you need Servlet API Version 2.2  (even 2.1 could be fine, but not
sure),  download (or JDeveloper 3.2 has one) new version of servlet.jar and
put it in lib directory of your tool.


----- Original Message -----
From: Dean Howitt <ddhowitt@a...>
To: Pro_JavaServer_Pages <pro_jsp@p...>
Sent: Friday, April 06, 2001 4:47 PM
Subject: [pro_jsp] Error Chap 5:


>
> I am getting an error when trying to run the example in chapter 5. Any
> suggestions would be appreciated!
>
> JSP Error:
>
> --------------------------------------------------------------------------
-
> -----
>
>
>
> Request URI:/projsp_war/ch05/checkLogin.jsp
>
> Exception:
> oracle.jsp.provider.JspCompileException:
> Errors compiling:c:\oracle\ora81
>
\apache\apache\htdocs\projsp_war\_pages\_projsp__war\_ch05\_checkLogin.java
> c:\oracle\ora81\apache\apache\htdocs\projsp_war\_pages\_projsp__war\_ch05
> \_checkLogin.java:114: Method setAttribute(java.lang.String,
> com.wrox.projsp.ch05.User) not found in interface
> javax.servlet.http.HttpSession.
>           session.setAttribute("user", user);
>                               ^
> c:\oracle\ora81\apache\apache\htdocs\projsp_war\_pages\_projsp__war\_ch05
> \_checkLogin.java:122: Method setMaxInactiveInterval(int) not found in
> interface javax.servlet.http.HttpSession.
>           session.setMaxInactiveInterval(900);
>                                         ^
> 2 errors
>
>


  Return to Index