Hi Adam, please, could you help me more? I've checked TLD and didn't find anything wrong... :-( Where is the problem?
Thanks Adam Hardy wrote: > On 10/21/2003 06:23 PM Honza Spurný wrote: >> Hi there, >> >> I'm novice in struts and TomCat and >> I have following problem: >> >> 1.) >> I have web application (let's call it MyApp) that I would like to >> protect by SSL connection, it means, that everything that is in >> $TOMCAT_HOME$/webapps/MyApp/ I'd like to request on SSL secure >> connection. >> >> 2.) >> I can established SSL connection on exactly files -- when I request >> for example http://myServer/MyApp/index.jsp it is automatically >> redirect to https://myServer:8888/MyApp/index.jsp (8888 is my SSL >> port) -- that OK. >> >> 3.) >> In my web.xml file I specified that I want index.jsp to be as >> Welcome page (since I have thought that this means, that when >> somebody send request only for MyApp directory the page index.jsp is >> returned -- TomCat returns http://myServer/MyApp/index.jsp for >> requested http://myServer/MyApp/ ...) >> >> This was the introduction, and now the question: >> >> - When I would like to access only http://myServer/MyApp/ the "Page >> not found"-error is returned. >> - When I would like to access https://myServer:8888/MyApp/ the >> https://myServer:8888/MyApp/index.jsp page is returned (correctly, >> as was described in paragraph 2.) >> - When I would like to access http://myServer/MyApp/index.jsp the >> https://myServer:8888/MyApp/index.jsp page is returned (correctly, >> the connection was redirect to SSL as was described in paragraph 1.) >> >> PLEASE, can anybody help me with this, since I need the index.jsp to >> be accessible on SSL connection only by requesting the directory -- >> after the request for http://myServer/MyApp/ is received, the TomCat >> should return https://myServer:8888/MyApp/index.jsp page. This I'm >> not still able to aim. PLEASE help me. >> >> If any idea or any detailing question, feel familiar to ask. THX, >> very much. >> >> Honza Spurny >> >> ------- Here is what i have in my MyApp/WEB-INF/web.xml ------- >> <web-app> >> <display-name>name</display-name> >> >> <security-constraint> >> <display-name>name</display-name> >> <web-resource-collection> >> <web-resource-name>name</web-resource-name> >> <url-pattern>/*</url-pattern> >> <http-method>GET</http-method> >> <http-method>POST</http-method> >> </web-resource-collection> >> >> <user-data-constraint> >> <transport-guarantee>INTEGRAL</transport-guarantee> >> </user-data-constraint> >> >> </security-constraint> >> >> <!-- Action Servlet Configuration --> >> <servlet> >> <servlet-name>action</servlet-name> >> >> >> >> >> >> >> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> >> <init-param> <param-name>config</param-name> >> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> >> <load-on-startup>2</load-on-startup> </servlet> >> >> <!-- Action Servlet Mapping --> >> <servlet-mapping> >> <servlet-name>action</servlet-name> >> <url-pattern>*.do</url-pattern> >> </servlet-mapping> >> >> <!-- The Welcome File List --> >> <welcome-file-list> >> <welcome-file>index.jsp</welcome-file> >> </welcome-file-list> >> >> <!-- Application Tag Library Descriptor --> >> <taglib> >> <taglib-uri>/WEB-INF/app.tld</taglib-uri> >> <taglib-location>/WEB-INF/app.tld</taglib-location> >> </taglib> >> >> <!-- Struts Tag Library Descriptors --> >> <taglib> >> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> >> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> >> </taglib> >> >> <taglib> >> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> >> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> >> </taglib> >> >> <taglib> >> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> >> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> >> </taglib> >> >> </web-app> >> >> >> ------- Here is what i have in my MyApp/index.jsp ------- >> <P>Welcome to index.jsp ...</P> > > Hi Honza, > I'm pretty sure that you have got to have the xml entities in your > web.xml in a different from what you are using. I am surprised the > web-app is loading at all. Have a look at the order the entities > should > be in, in the DTD specified at the top of the file. > > > Adam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]