on ‎2011 Jul 26 3:44 PM
Dear all
What should be a very simple issue is proving harder to fix than I ever thought.
I have a very simple. jsp that I would like to import standard java libraries so that
I can call some of the component request etc. methods to display images etc.
My .jsp is as follows:
<%@ page language="java" %>
<%@ page import="com.sapportals.portal.prt.component.*"%>
<%@ page import="com.sapportals.portal.prt.resource.*"%>
<html>
<head>
<title>
Citrix Logon
</title>
</head>
<FORM name="logonForm" method="post" action="j_security_check">
<input name="login_submit" type="hidden" value="on">
<input type="hidden" name="login_do_redirect" value="1"/>
<input name="j_authscheme" type="hidden" value="default">
<p>Please enter Username and Password:</p>
<table border="0">
<tr>
<td><p>Username</p></td>
<td><input type="text" name="j_username" id="j_username"</td>
</tr>
<tr>
<td><p>Password</p></td>
<td><input type="password" name="j_password" id="j_password"</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="submit" value="Login" </td>
</tr>
</table>
</form>
</html>I have tries sourcing these libraries from track on SAPJ2EE, from Eclipse and even copied onto
local lib on the project itself, however during runtime, the following error is experienced no matter
which combination is used:
Full Message Text
application Processing HTTP request to servlet finished with error.
The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: [/usr/sap/SQ1/JC20/j2ee/cluster/server0/apps/sap.com/SimpleFormAppl/servlet_jsp/SimpleLoginForm/work/jsp_Login1311690847533.java:22: package com.sapportals.portal.prt.component does not exist
import com.sapportals.portal.prt.component.*;
^
/usr/sap/SQ1/JC20/j2ee/cluster/server0/apps/sap.com/SimpleFormAppl/servlet_jsp/SimpleLoginForm/work/jsp_Login1311690847533.java:23: package com.sapportals.portal.prt.resource does not exist
import com.sapportals.portal.prt.resource.*;
^
2 errors
My web.xml is as follows, and is a basic form authentication.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>WEB APP</display-name>
<description>WEB APP description</description>
<servlet>
<servlet-name>Login.jsp</servlet-name>
<jsp-file>/Login.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>LoginError.jsp</servlet-name>
<jsp-file>/LoginError.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>redirect.jsp</servlet-name>
<jsp-file>/redirect.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>redirect.jsp</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<security-constraint>
<display-name>SecurityConstraint</display-name>
<web-resource-collection>
<web-resource-name>WebResource</web-resource-name>
<url-pattern>*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>DefaultSecurityRole</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>Login.jsp</form-login-page>
<form-error-page>LoginError.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>DefaultSecurityRole</role-name>
</security-role>
</web-app>
Any advice will be gratefully received.
Mike
Request clarification before answering.
Hi,
I used your post, and a couple of other to create a login that worked on a NW 7.3 server. I've exported it to a zip but cannot attach the zip to this post. I you let me know an e-mail address I can e-mail you a copy of the zip.
Regards,
Gary.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you made runtime references to used libraries...?
refer page 20 ...in
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.