Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 14th, 2002, 07:00 AM
Kavinjka Kavinjka is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Scotland
Posts: 0 Kavinjka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
J2EE Web Component j_security_check

I've been working my way through the Sun J2EE Tutorial and am trying to fathom how their Form based Web Component security mechanism works.

When you set up Form based security you specify the logon.jsp page as the Login Page, this can be as simple as

<html>
<title>Login</title>
<body>
<form action="j_security_check" method=post>
<input type="text" size="15" name="j_username">
<input type="password" size="15" name="j_password">
<input type="submit" value="Submit">
</form>
</body>
</html>

If the username and password that you enter match those for the associated realm then you get authenticated and sent on to the page you first requested. (URL).



However, I can find no other reference to this set of values namely j_security_check, j_username and j_password anywhere within the tutorial documentation or even the java.sun.com site. Does anyone know where these things live or are they perhaps embedded within the J2EE reference implementation although that would suggest that the might break the J2EE interoperability rules.

Reply With Quote
  #2  
Old March 19th, 2002, 09:17 PM
Marky_Mark Marky_Mark is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: On a screen near you
Posts: 498 Marky_Mark User rank is Private First Class (20 - 50 Reputation Level)Marky_Mark User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
It because your using port 8080


To get around this locate server.xml and change the Non-SSL Connector port to an unused port greater than 1024


Then visit using localhost:newport


Mark
__________________
100 trillion calculations per nanosecond

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > J2EE Web Component j_security_check


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway