Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Login Config

 
Chinu Hota
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following has taken from
Sun Certified Web Component Developer: Study Guide (Exam 310-081)
by David Bridgewater

<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/error.html</form-error-page>
</form-login-config>
</login-config>


Caution: exam watch
For login and error pages, the path you specify must begin with a forward slash ("/"). This denotes the root of the web context

Is this correct?

I can see our application designed with now forward slash and it runs fine.
 
Harpreet Hira
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"/" means the root of web context.
If you don't specify a "/" it will look into the location of the current web page.
There might be scenarios in which specifying "/" or NOT won't make any difference. Example, if your current web page is in root.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic