Eric Bic

Greenhorn
+ Follow
since Apr 12, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Eric Bic

someone? anyone? its a really simple questiong
19 years ago
Hi, im having trouble making my login page to work, my directory looks as following (Im using Tomcat by the way so everything is in the webapps directory):
Test/index.jsp
login.html
loginerror.html
Manager.html
User.html
Test/WEB-INF/web.xml
in the index page i ask a user to go to the Manager.html or User.html,
ive specified seciruty constraints for the manager in the web.xml file, so i was expecting to be redirected to the login page when trying to access the manager.html but it just goes straight to the Manager.html without asking for login, my web.xml looks as following:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>LoginForm</display-name>
<description>An application that makes use of a user-defined login form
</description>
<security-constraint>
<web-resource-collection>
<web-resource-name>Manager</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<description>SSL not required</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
<auth-constraint>
<description>Let only managers use this app</description>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<description>The role of manager is one that can use our application.
</description>
<role-name>manager</role-name>
</security-role>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/LoginForm.html</form-login-page>
<form-error-page>/LoginError.html</form-error-page>
</form-login-config>
</login-config>
</web-app>
is there something ive missed, some jar? i dont know im new to this, i would really apprecieate some help
Eric
19 years ago
Hi, im trying to create a login page using the JDBCRealm, in other words i have a table on my database with usernames and passwords which will be used to authenticate users trying to login, ive understood how to create the table and jsp page for the login, but how do i know if the user has be authenticated? i would like to send the user to a Welcome page or error page where he would be able to try to input the password again. im following instructions found on the apache page : http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm
Thanks in advance
Sarah
19 years ago
Is there anyone that has done with tutorial or has an idea what the problem may be? or any tips on what i should read up on to better understand the problem, all i want to do is create a simple login procedure for my webpage, is there an easier way to do this?
thanks for your help
Eric
19 years ago
JSP
i feel like such a dummy i dont even know what you mean by that, ive put all the jsp files in the Root directory under the Webapps folder. And im opening the file through my web browser but just typing in
http://localhost:8080/jwstutorial13/examples/security/login
when i try to login with one of the users i have added to the tomcat-users.xml file. which looks like this right now:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="loginUser"/>
<role rolename="user" description="Cannot add/delete users"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="eric" password="eric" fullName="Eric" roles="admin,manager,user,loginUser"/>
</tomcat-users>
if gives me the error above, is there anything i should change in the web.xml file? im not sure how to edit that.
im so lost
[ April 12, 2004: Message edited by: eric bichara ]
19 years ago
JSP
Im new to Tomcat and Jsp and im trying to get a simple login jsp page to work, well i was trying to make the Login page example provided by the Java web services tutorial and when i try to login (taking me then either to the error page or Hello page) i get a page with the following information
HTTP Status 404 - /jwstutorial13/examples/security/login/web/j_security_check
--------------------------------------------------------------------------------
type Status report
message /jwstutorial13/examples/security/login/web/j_security_check
description The requested resource (/jwstutorial13/examples/security/login/web/j_security_check) is not available.

im not sure what this means, anyone have any ideas
Thanks in advance
Eric
19 years ago
JSP
hi could anyone tell me how i change the port for tomcat, i set it to 8080 when i installed it but i want to change it, im using the tomcat provided with java web service developer pack 1.3
thanks for your help
eric
19 years ago