• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Dobut in Realm Authentication

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Now i'm using Tomcat4.0.1 . where i use JDBCRealm for User Authentication.. Which is FORM based..
I have a doubt regarding how to give the successor jsp following the login.jsp. I havent index.jsp in my project instead i have main.jsp.
Now i manage these probelm like
I gave my main.jsp in my welcome-list.
<welcome-file-list>
<welcome-file>main.jsp</welcome-file>
</welcome-file-list>
also i gave my login.jsp in
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Addval Info</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>
Its working fine when i give the root path like
http://localhost:8080/project1
It will go to login.jsp and ask username and password. If user successfully login they will redirect to main.jsp..
Instead if i give
http://localhost:8080/project1/login.jsp
It will go to login.jsp.. If user successfully login, it will give error like,
Type Status report
MESSAGE : Invalid direct reference to form login page
DESCRIPTION : The request sent by the client was syntactically incorrect (Invalid direct reference to form login page).
Sorry for my poor English...

Thanx in Advance
Kalaiselvan.S
 
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic