THis is what I have in my jsp generated by Eclipse <%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%> <html> <head> <title>JSP for HelloForm form</title> </head> <body> <html:form action="hello"> name : <html:text property="name"/><html:errors property="name"/><br/> password : <html:password property="password"/><html:errors property="password"/><br/> <html:submit/><html:cancel/> </html:form> </body> </html> _____ From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 9:52 AM To: Dhanoa, Gurpreet S.; user@struts.apache.org Subject: RE: Developing and running Struts on Tomcat without an Internet Connection At 9:37 AM -0600 3/17/06, <[EMAIL PROTECTED]> wrote: You are referring to the tab lib files which are hosted on jakarta.apache.org website. When you are connected to the internet it get resolved by your web server and the moment you unhook it The problem starts. Best practice is to download the same tab lib files (Tld) and copy them in any of the folder under Your web application> once done change the path in your JSPs to load the tld file from your local path instead of jakarta.apache.org This is not true. Struts never retrieves TLD files from the internet. The fact that the URIs look like URLs is not important. TLD files are retrieved from the JAR in which they are packaged. On the other hand, Struts does (and commons-validator does) retrieve DTDs from the SYSTEM URL provided in a DOCTYPE declaration when doing validating parses of the various config XML files, IF there is no PUBLIC identifier, or if it doesn't recognize the public identifier. You can see exactly which PUBLIC identifiers Struts knows here: http://struts.apache.org/struts-action/xref/org/apache/struts/action/Act ionServlet.html#259 For any DOCTYPE using one of these identifiers, Struts will retrieve the corresponding DTD from the classpath instead. Hope this clarifies things. If it turns out that struts-blank has bad public ids in its DOCTYPE, please file a bug to that effect. Joe -----Original Message----- From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 9:28 PM To: Struts Users Mailing List Subject: Developing and running Struts on Tomcat without an Internet Connection I know this is supposed to work, but I'm getting an error starting up my Struts 1.2.8 application on Tomcat 5.5.15 when I unplug my computer from the Internet. The stack trace is: java.net.UnknownHostException: jakarta.apache.org at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.<init>(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC onnection.java:792) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:744) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:669) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:913) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent Entity(XMLEntityManager.java:973) I'm using Java 1.5.0 I'm using the standard DOCTYPES from the struts_blank webapp Any help is appreciated. Thanks, Richard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Joe Germuska [EMAIL PROTECTED] * http://blog.germuska.com "You really can't burn anything out by trying something new, and even if you can burn it out, it can be fixed. Try something new." -- Robert Moog