File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Obtain resources from Login page. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Obtain resources from Login page." Watch "Obtain resources from Login page." New topic

Obtain resources from Login page.

Federico Nafria

Joined: Sep 30, 2010
Posts: 9

I'm using a a login page defined in web.xml

What is the best way to retrieve resources like CSS or Images to be used in the login page?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

What do you mean "best method to retrieve resources"?

A login page is just like any other JSP. You "retrieve" the resources by coding their URLs in HTML tags. It's better if those URLs are not secured URLS (since you're not secured yourself yet!), and you can have problems when the page or page resources invoke complex platforms such as JSF or Struts. But other than that, it's business as usual.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Obtain resources from Login page.
It's not a secret anymore!