[OT] SSLExt question
Hello, I'm hoping someone else has integrated Struts, Tiles and the SSL extensions from sslext.sourceforge.net. What I've done is tried to follow the sample sslext application and add the plugin to struts-config.xml along with the set-property secure=true to a couple of my actions and now everything is coming up as HTTP 400 errors. I'm using Jetty and everything was working prior to adding the sslext stuff. Here is an excerpt from my struts-config.xml file: plug-in className=org.apache.struts.action.SecurePlugIn set-property property=httpPort value=8080/ set-property property=httpsPort value=8443/ set-property property=enable value=true/ /plug-in And a sample from a login action: action path=/login-request type=org.apache.struts.actions.ForwardAction parameter=login set-property property=secure value=true/ /action I'll entertain any suggestions. Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] SSLExt question
On Sunday 02 March 2003 12:04, alexj wrote: Hi John, Have you update your struts-config file and change action mapping type like this way : action-mappings type=org.apache.struts.config.SecureActionConfig Yes, sorry I forgot to mention that. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] SSLExt question
On Sunday 02 March 2003 12:23, alexj wrote: have you use the ssl form tag in your page ? sslext:form action=/login No, but I can't even get that far to show the form. I'm trying to redirect through SSL with a basic form action in struts-config.xml to show the form for the first time with: org.apache.struts.actions.ForwardAction and setting the secure property to true. The complete action is: action path=/login-request type=org.apache.struts.actions.ForwardAction parameter=login set-property property=secure value=true/ /action It is simply a blank request, nothing else at that point. Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] SSLExt question
On Sunday 02 March 2003 12:30, alexj wrote: jetty is configured for ssl ? I don't know the procedure for jetty I use tomcat. Yes, I also have jetty configured correctly and a keystore installed since I can use SSL without struts. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] SSLExt question
On Sunday 02 March 2003 12:46, alexj wrote: have you got the correct sslext.jar for your version of struts ? does the sample app work ? Yes and yes. ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles, Struts 1.1 and index.jsp in EAR file
Hello Everyone, I'm trying to configure tiles and struts for use in a Web application packaged as an EAR file. In the application.xml file I can specify the welcome-page tag. Prior to using tiles it was simply /index.jsp, but now I want to configure it so that it can do the proper forwarding through the ActionServlet. Does anyone know the proper URL I can use to get it to display correctly? I've tried a number of different ones, including naming it as a .do action but this does not work. Any help is greatly appreciated as I don't want to have to create a separate definition for the welcome-page and then use a different one, once you're in the site. Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles, Struts 1.1 and index.jsp in EAR file
On Tuesday 18 February 2003 20:02, John Espey wrote: you can do a forward from index JSP Except I keep getting this error: HTTP ERROR: 500 Error - tag put : enclosing tag doesn't accept 'put' tag. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Navigation Frames and forward
Hello Everyone, I'm trying to conceive of a way, using frames and framesets and JSP's, to generate a dynamic navigation bar (the kind that typically reside along the left hand side of a web page) using Struts. The idea is that an action that is either selected from the navigation bar or a content page may change the state of the web application. Once this state change occurs I want to have a way to update both the navigation bar (if warranted) and the content frame. A co-worker suggested using JavaScript for this, but my contention is that you will couple Model behavior with a view and this type of partitioning should be avoided - IMHO. I believe this is a problem that others have faced and solved in the past and therefore want to solicit any feedback that may point me in the right direction. Thanks in advance for any and all input. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Navigation Frames and forward
On Saturday 15 February 2003 09:44, John Dubchak wrote: Hello Everyone, I'm trying to conceive of a way, using frames and framesets and JSP's, to generate a dynamic navigation bar (the kind that typically reside along the left hand side of a web page) using Struts. The idea is that an action that is either selected from the navigation bar or a content page may change the state of the web application. Once this state change occurs I want to have a way to update both the navigation bar (if warranted) and the content frame. A co-worker suggested using JavaScript for this, but my contention is that you will couple Model behavior with a view and this type of partitioning should be avoided - IMHO. I believe this is a problem that others have faced and solved in the past and therefore want to solicit any feedback that may point me in the right direction. Sorry, I should have mentioned that I'm using struts and that the navigation bar triggers a change in content with the html:link tag and the target attribute. My action then uses a mapping to forward to a JSP page, but I would like a way, if possible, to specify a target at this point to have it update both the navigation and content panes, but can't find anything that indicates if it can be done in the struts-config file and the forward tag. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newcomer question
Hello Everyone, I've done a little with Struts on a web-based application that I'm working on and have a very basic question that I can't seem to find an answer to. I have an index.jsp that has a basic navigation menu. I want to forward to a content page using a simple html link from the menu, like an href anchor. How do I do this using struts? Or should I just hard-code the page name as part of the href of a standard anchor tag? How is it generally done in a webapp with struts? I apologize for this basic question but I just can't seem to connect the dots on this. Thank you for your patience and any information you may provide. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newcomer question
On Sunday 09 February 2003 17:57, Todd Pierce wrote: What I do when linking to another (static?) page within the application is define a simple action for it in struts-action.xml and use the html:link tag: Todd, Thanks for the information. Can you provide me with an example of the html:link you mentioned? I'm getting errors when trying either the forward, href or page and specifiying an action as the argument. Eg: html:link forward=/basic-contentBasic Content/html:link with the folliwng information in my struts-config.xml file: action path=/basic-content type=com.mycompany.actions.BasicContentRequestAction forward name=success path=/content.jsp/ forward name=failure path=/index.jsp/ /action Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newcomer question
On Sunday 09 February 2003 18:31, Todd Pierce wrote: What errors and where? Your tag should be using the href attribute (forward refers to global forwards). I can't see anything wrong with your action mapping. Using the href attribute and clicking on the link I get: HTTP ERROR: 404 /body-content Not Found Just to reiterate, the link is specified as: html:link href=/body-contentBody Content/html:link After thinking about this for a minute though, I would I specifiy the proper html:form tag in order to have it automatically process the request upon clicking the link. Maybe that's what I'm missing? Thanks for your help. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RequestProcessor overload error
Hi, I've managed to find the documentation on creating a custom RequestProcessor that overloads the processPreProcess method. Everything compiles fine but when the application is deployed (on jBoss as an ear file with the struts jars in the WEB-INF/lib directory of the war file), I get a NoClassDefFound at run-time saying it can't find the RequestProcessor class. Does putting the struts.jar file in the WEB-INF/lib automatically make it available in the classpath of the application? Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]