Struts FAILS to do a context-irrelative forward or redirect from Action
It seems Struts ALWAYS prefix application context to the map target /myapp/http://www.cnn.com I am pretty sure there is a bug in Struts Action. I tried all possibilities and all failed. If you through action, Struts ALWAYS prefix the context path. Does anybody has the same problem? -- Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to redirect to "http://www.cnn.com" from Struts Action?
It seems Struts ALWAYS prefix myapp context so it becomes /myapp/http://www.cnn.com -- Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Handling submitted form data with different encoding
It seems to me that there is no guarantee the browser will pass the right encoding to the servlet container. What I did are: 1. Specify the content type for the JSP output using <%@ page contentType="text/html; charset=utf-8" %>, which ensures that the JSP page is treated as UTF-8 able to represent all the characters needed. 2. Specify the content type to the browser using . Since the browser uses the encoding of the page to send form data, submissions will now use UTF-8. 3. Set up a filter that unconditionally sets the character encoding to be used in parsing the incoming request to utf-8 specified by the encoding filter initialization parameter in the web app deployment descriptor (/WEB-INF/web.xml). The call made in ther filtering process is request.setCharacterEncoding(encoding). The above steps should guarantee all form input will be taken in by servlet container in utf-8, regardless of locale. Would you please comment on that? Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
How to import Struts tag lib into Dreamweaver MX?
Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Display XML data with struts (XML<->JavaBean/JSP ? xsl tag ? stxx ?)
I tried Struts extension for Macromedia Ultra Dev. It does not work. Has anyone tried it? Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 1:09 PM To: '[EMAIL PROTECTED]' Subject: Display XML data with struts (XML<->JavaBean/JSP ? xsl tag ? stxx ?) I ask oneself about integration of XML data (XML data are contained in a string) with Struts. I read that several techniques are available: - 1) use an open tool to automatically generate JavaBean from the XML string store JavaBean in session and then JSP use JB; - 2) use the Struts xsl:apply tag, with nameXml = string XML but what is the easiest way to specify a XSL transformation if we don't know XSL syntax. I don't have time to learn XSL syntax in detail and I think that XSL examples for sophisticated GUI are not so many numerous. I think that XSL transformation must be used when we need to change the output's content type but does that make sense when the user interface is limited to web browsers ? what is the best way (XSL parameter type) in term of time performance ? Is it better to store an XML string in the session rather than JavaBean ? - 3) use the stxx extension. Even if stxx first aim is to remove the need to be use JSP and TagLibs for the presentation layer, it allows to manipulate JSP pages. This solution requires to define an XML action forward in the struts-config file, and then processing the document object (document of type org.jdom.document) in the JSP. It is not good to add JavaCode in the JSP page. Has somebody any advice or comparison about these techniques in term of complexity and time performance ? For the two first methods a Struts extension can be added to Macromedia Ultra Dev to facilitate the user interface development and templates or Tiles allow to create a consistent look and feel for the application. For the last point I suppose that XSL offer a similar mechanism. Thanks in advance for your remarks. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Debug Struts in Tomcat
The classes are reloaded automatically right now. For property file, you can to do an explicit reload for now. Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 12:27 PM To: 'Struts Users Mailing List' Subject: RE: Debug Struts in Tomcat In tomcat-users.xml add a manager role: Then, from your browser: http://yourip:8080/manager/reload?path=/struts-example Jacob Hookom CS Student University of Wisconsin, Eau Claire === http://www.swanked.net you're not hip enough yet -Original Message- From: Hoang, Hai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:24 AM To: 'struts-user' Subject: Debug Struts in Tomcat I am using Tomcat, Struts, and Eclipse to code my application. I found myself spend too much time reboot tomcat because either to changes the applicationResources.properties file or some action classes. Is there a better way for me to do this without reboot tomcat? Thanks -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
What is the path when specify an action with unknown set to true?
Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED]
Re: Does Indexed property in FormBean work?
I think in Struts 1.0.2, property like nested.myArray[i].name just does not work with form beans. I tried it with the example in struts-exercise-taglib and it does not work. So does it work with 1.1? "Galbreath, Mark" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hmmm...this sounds like config/mapping issue. Do you have the action= > > set to the corresponding path in struts-config and associated with > > the > bean and action class? Have you declared the bean as scope="session" > in struts-config? Finally, try an empty reset() in the bean so it's > properties are not rest to their defaults. > > How are you implementing the accessors and mutators in your bean? > > -Original Message- > From: Jason Zhou [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 17, 2002 4:52 PM > To: 'Struts Users Mailing List' > Subject: RE: Does Indexed property in FormBean work? > > > No. > > I have a FormBean called Department with an indexed property called > Employee. > > Department > { > Employee[] employee = ... > } > > Employee is a javabean with names, address, etc. > > In the html form, I have a table of html input field (html:text in > Struts) and each row representing one employee. > > So at first row the name field is associated with Employee[0].name > second row the name field is associated with Employee[1].name > third row the name field is associated with Employee[2].name > > I can use a for loop and Struts iterator tag. When I submit, the input > field will get back to the corresponding element in the indexed array. > > But the value is not loaded to the bean after the submit. > > Best Regards, > > J. Jason Zhou > Business Intelligence Platform Division (BIP), R & D, > SAS Institute, 100 SAS Campus Dr. > Cary, North Carolina 27513-8617 > Voice: 919-531-0568(O) > Email: [EMAIL PROTECTED] > > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 17, 2002 4:28 PM > To: 'Struts Users Mailing List' > Subject: RE: Does Indexed property in FormBean work? > > Jason, > > I'm not sure I understand what you are trying to do. It sounds like a > simple dropdown select list populated by associated List property on > the bean. I use the indexId to access particular elements in a List > in order remove selected elements from the List. Is this something > like you need? > > Mark > > -Original Message- > From: Jason Zhou [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 17, 2002 3:46 PM > To: 'Struts Users Mailing List' > Subject: Does Indexed property in FormBean work? > > > I have an indexed property in my form bean and I want to associate the > indexed property with a list of html input field in a form so that > values of my property can be displayed through the input field and > changes can be populated back to the indexed property. > > How can I do it in Struts? > > Best Regards, > > J. Jason Zhou > Business Intelligence Platform Division (BIP), R & D, > SAS Institute, 100 SAS Campus Dr. > Cary, North Carolina 27513-8617 > Voice: 919-531-0568(O) > Email: [EMAIL PROTECTED] > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Converting [] to %2B%2D in html input tag names
Hi, Maury: Are you using 1.1 beta or 1.0.2. I think 1.0.2 even do Not support an indexed field that is Not in at the last of the nested reference chain. Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 12:40 PM To: [EMAIL PROTECTED] Subject: Converting [] to %2B%2D in html input tag names Subject: Converting [] to %2B%2D in html input tag names From: Maurice Mills <[EMAIL PROTECTED]> === I am having a problem with HTML input field names getting converted to the wrong name. In my JSP I have a to generate multiple sets entry fields. They are named like: offer.allocations[0].name The problem is when the form is submitted, the [] in the names are getting changed to %2B and %2D. The properties can be found because the names are wrong. Has anyone ever seen this? Any suggestions? Thanks, Maury -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Does Indexed property in FormBean work?
No. I have a FormBean called Department with an indexed property called Employee. Department { Employee[] employee = ... } Employee is a javabean with names, address, etc. In the html form, I have a table of html input field (html:text in Struts) and each row representing one employee. So at first row the name field is associated with Employee[0].name second row the name field is associated with Employee[1].name third row the name field is associated with Employee[2].name I can use a for loop and Struts iterator tag. When I submit, the input field will get back to the corresponding element in the indexed array. But the value is not loaded to the bean after the submit. Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 4:28 PM To: 'Struts Users Mailing List' Subject: RE: Does Indexed property in FormBean work? Jason, I'm not sure I understand what you are trying to do. It sounds like a simple dropdown select list populated by associated List property on the bean. I use the indexId to access particular elements in a List in order remove selected elements from the List. Is this something like you need? Mark -Original Message----- From: Jason Zhou [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 3:46 PM To: 'Struts Users Mailing List' Subject: Does Indexed property in FormBean work? I have an indexed property in my form bean and I want to associate the indexed property with a list of html input field in a form so that values of my property can be displayed through the input field and changes can be populated back to the indexed property. How can I do it in Struts? Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Does Indexed property in FormBean work?
I have an indexed property in my form bean and I want to associate the indexed property with a list of html input field in a form so that values of my property can be displayed through the input field and changes can be populated back to the indexed property. How can I do it in Struts? Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R & D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>