This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Are these tags OK to have with no Internet Connection? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Are these tags OK to have with no Internet Connection?" Watch "Are these tags OK to have with no Internet Connection?" New topic
Author

Are these tags OK to have with no Internet Connection?

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
I have a user who's having trouble with a Struts JSP.

He is worried that the tags at the top of the JSP "require" an Internet connection. However, I've tried them with no connection and all works OK?

Should these tags point, instead, to a Struts tag lib internal to the project or are they OK as is?

Thanks in advance.

Mike


<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Notice that those tags are URIs. (At least, that's what the name of the attribute is.) People tend to confuse those things with URLs. A URI is a Uniform Resource Identifier, whereas a URL is a Uniform Resource Locator. As the latter article says, the two concepts are frequently confused.

In short, the URI is a name for a resource. That resource doesn't have to be located at any particular place; if it did, that would make the URI be a URL.
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
Hi Paul,

Thanks for your reply. I was ust trying to confirm that no internet connection means no problem, and you've confirmed -- since URI != URL.

Thanks!!!

Mike
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Are these tags OK to have with no Internet Connection?
 
Similar Threads
How to Avoid directives redundancy
Can't add taglib element to web.xml
Struts 1.3.5 Tiles Issue
DispatchAction Problem in Struts 1.3.10
tld files for struts 1.3.5