AW: Container Managed Authentication
Is there a documentation or a how-to around for CMA support in Struts? I found this to be helpful, although it is not struts-specific: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html If you are not using Tomcat, here is a more general explanation from the JWSDP tutorial that should apply to most web containers: http://java.sun.com/webservices/docs/1.1/tutorial/doc/WebAppSecurity.html Erik Thanks, Erik, but those I already know. I'm looking for some hints how you can access or handle the CMA stuff using Struts. I've seen that you can allow an action only for a speciffic role, configuring in struts-config.xml. So I thought there may be more support. Do you know anything about this? How can I access role information from a action or logout a user and so on? Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: AW: Question about html:select (again)
So this is what you have: html:select name=test multiple=true property=list size=8 html:optionsCollection property=list label=label value=name/ /html:select You're using the field list from the form bean for two purposes, which result in a conflict. In the html:select, the 'property' is supposed to store the selections by the user. In the html:options, the 'property' keeps the content for your selection box. I guess you should choos a different list for the selections, made by the user. Regards, Bernhard -Ursprüngliche Nachricht- Von: Peng Tuck Kwok Gesendet: Freitag, 28. Februar 2003 00:44 An: Hirschmann, Bernhard Betreff: Re: AW: AW: Question about html:select (again) That's funny, I did attach it. Nevermind here it is again. Hirschmann, Bernhard wrote: there is not attachment in your mail... -Ursprüngliche Nachricht- Von: Peng Tuck Kwok Gesendet: Donnerstag, 27. Februar 2003 11:41 An: Struts Users Mailing List Betreff: Re: AW: Question about html:select (again) Hey Bernhard thanks. Here it goes. Hirschmann, Bernhard wrote: Hey Pen, if you could post the JSP code, maybe I could give you a hint. Regards, Bernhard -Ursprüngliche Nachricht- Von: Peng Tuck Kwok Gesendet: Donnerstag, 27. Februar 2003 10:21 An: Struts Users Mailing List Betreff: Question about html:select (again) I've been able to display a collection of beans using the html:select tag in conjunction with with the html:optionsCollection tag but I am stuck with a problem. I get complains from struts that it has a type mismatch when it tries to set my attribute for the html:select field. I have public ArrayList getSelection() and public void setSelection(ArrayList input) . It seems the problem is at setSelection. Does anyone know how to make this work? I'm a little confused by this and I'm sorry if it doesn't make sense in the first read. THanks - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: AW: AW: Question about html:select (again)
If you get your values out of the form bean, and this form bean is valid not only for one request (configured in struts-config.xml), then you don't have to repopulate. If you explicitly want to repolulate, then this should be done in your action. But as I said, this is not necessary if you configure the validity in the right way. Bernhard -Ursprüngliche Nachricht- Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 28. Februar 2003 10:44 An: Struts Users Mailing List Betreff: Re: AW: AW: AW: Question about html:select (again) I've managed to fix this problem and if you click submit without validation then it is able to get the values :) But if you validate it and the page gets redirected back to the input page then the input page complains that it no longer able to get the collection. Where or how should I repopulate the list Bernhand ? ps : my tags look like this now, along with the necessary class changes. html:select name=compose multiple=true property=recipients size=8 html:optionsCollection label=name property=beanCollection value=number/ /html:select - 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]
AW: Results in multiple pages
Konstantina, if you want something like in Google, where you can view the first 10 hits, the clicking on next to see the next 10 hits, then you can use the pager taglib for this. http://jsptags.com/tags/navigation/pager/ Greetings to Greece! Bernhard -Ursprüngliche Nachricht- Von: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 28. Februar 2003 08:59 An: Struts Users Mailing List Betreff: Results in multiple pages Hello, I have the following problem and I'm not sure how I can solve it. The resultset returned from a query I'm making to the database has many records. What I want to do is to display each time 10 of these records in my page. How can i do this? I have searched the archive but I couldn't find anything similar. Any ideas or redirections to places where I could find a solution? Thank you in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: How to disable automatic session creation
Eric, as far as I know, there has been no changes in this way. Besides, Struts doesn't create sessions, but your servlet engine does. Struts recognizes if you deactivated cookies in your browser, in this case the session id is attachted to the URL. Regards, Bernhard -Ursprüngliche Nachricht- Von: Eric Jain [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 28. Februar 2003 11:33 An: struts-user Betreff: How to disable automatic session creation After upgrading to RC-1, I notice that Struts now always automatically creates sessions. For example, the html:form tag adds a jsessionid to the url for the first request, something it previously didn't do. Bug or feature? How do I disable sessions? This interferes with my caching strategy! -- Eric Jain - 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]
AW: Question about html:select (again)
Hey Pen, if you could post the JSP code, maybe I could give you a hint. Regards, Bernhard -Ursprüngliche Nachricht- Von: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 27. Februar 2003 10:21 An: Struts Users Mailing List Betreff: Question about html:select (again) I've been able to display a collection of beans using the html:select tag in conjunction with with the html:optionsCollection tag but I am stuck with a problem. I get complains from struts that it has a type mismatch when it tries to set my attribute for the html:select field. I have public ArrayList getSelection() and public void setSelection(ArrayList input) . It seems the problem is at setSelection. Does anyone know how to make this work? I'm a little confused by this and I'm sorry if it doesn't make sense in the first read. THanks - 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]
AW: Questions about html:link and a m p ;
Could you post the JSP code snippet for the link you're creating? As far as I know, no filter is used for creating the link. But as you described, it seems that the is transformed in HTML encoding. You may try the attribute filter=false in the html:link tag. Bernhard -Ursprüngliche Nachricht- Von: Morten Raahede Knudsen [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 27. Februar 2003 12:45 An: [EMAIL PROTECTED] Betreff: Questions about html:link and a m p ; Hi We are currently using Struts 1.02 at our site with satisfaction. However we are having some problems with the html:link tag. Some clients, for example some web crawlers, are not able to accept the form the parameters are written in: Example: page.do?a=1amp;b=2 When some clients see this, they request that exact string. And request.getParameter() fails in th Action instance. Is there any reason why page?a=1b=2 isn't used instead. Kind regards, Morten Raahede Knudsen - 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]
AW: Questions about html:link and a m p ;
...but there is no ampersand in the link. What I wanted was to see the the part where the ampersand is used. Tib posted a link to the HTML 4.0 specification, where this issue is discussed. So it seems that the form page.do?a=1amp;b=2 is valid, when I've understand right. So the problem is not your application, but web crawlers. Why do web crawlers crawl URIs like page.do?a=1amp;b=2 anyway? Shouldn't the just grab the page.do without the parameters? Bernhard -Ursprüngliche Nachricht- Von: Morten Raahede Knudsen [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 27. Februar 2003 14:37 An: [EMAIL PROTECTED] Betreff: Re: Questions about html:link and a m p ; Hi, Unfortunately, there is no 'filter' in the html:link tag. My code looks like this: html:link forward=sell styleClass=LargeBoxHeadersell/html:link Kind regards, Morten Raahede Knudsen Hirschmann, Bernhard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Could you post the JSP code snippet for the link you're creating? As far as I know, no filter is used for creating the link. But as you described, it seems that the is transformed in HTML encoding. You may try the attribute filter=false in the html:link tag. Bernhard -Ursprüngliche Nachricht- Von: Morten Raahede Knudsen [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 27. Februar 2003 12:45 An: [EMAIL PROTECTED] Betreff: Questions about html:link and a m p ; Hi We are currently using Struts 1.02 at our site with satisfaction. However we are having some problems with the html:link tag. Some clients, for example some web crawlers, are not able to accept the form the parameters are written in: Example: page.do?a=1amp;b=2 When some clients see this, they request that exact string. And request.getParameter() fails in th Action instance. Is there any reason why page?a=1b=2 isn't used instead. Kind regards, Morten Raahede Knudsen - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: HELP - SOS - Single Form Bean Problem
Hm - it looks fine for me... What makes you think, that a new form bean is created for every JSP? Did you debug through it? Surely for every session a new form bean will be created, but it shouldn't create new ones for all the JSPs in the same session. Bernhard -Ursprüngliche Nachricht- Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. Februar 2003 10:02 An: Hirschmann, Bernhard Betreff: Re: HELP - SOS - Single Form Bean Problem hi again :) I went through the tutorials, every time the sope is set to session, and same form bean is used. i have done the same, but stilll the new formbean instance is getting created. attached is my struts-config.xml Thanks Chetan - Original Message - From: Hirschmann, Bernhard [EMAIL PROTECTED] To: 'Chetan Sahasrabudhe' [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:25 PM Subject: AW: HELP - SOS - Single Form Bean Problem Sure you can use your form beans for as many JSPs as you want. Just make sure, they are valid not only for the request, but for the whole session or so. I think this toppic is described in some very basic tutorials, which you can find at the struts homepage. Regards, Bernhard -Ursprüngliche Nachricht- Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. Februar 2003 13:30 An: Hirschmann, Bernhard Betreff: Fw: HELP - SOS - Single Form Bean Problem - Original Message - From: Chetan Sahasrabudhe To: Struts Users Mailing List Sent: Monday, February 24, 2003 5:03 PM Subject: HELP - SOS - Single Form Bean Problem Has anyone used a single form bean for multiple jsps? I am trying to use it and have set form scope as session in my action declaration in config-struts file worst part is, for every jsp itz creating a new form bean ? whatz the catch, can anyone help me in this ? Regards Chetan ___ | | The trouble with being punctual | is that nobody's there to appreciate it. | | |___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Reporting an Exception message in a JSP.
You can pass one or more arguments to the constructor of ActionError. This argument could be your stack trace. In the resource string you have to handle the first argument as a {0}, the second as {1} etc. i.e. in you ApplicationResources.properties: error.msg=An error has occured. Stack trace: {0} Regards, Bernhard -Ursprüngliche Nachricht- Von: ROSSEL Olivier [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. Februar 2003 16:03 An: '[EMAIL PROTECTED]' Betreff: Reporting an Exception message in a JSP. I want to display the error message of an SQLException in my JSP. At first, I tried to set an ActionError with this message and to display it via html:errors/. It does not work because ActionError accepts as an input string the key of a property. So what's the nicest way to show to the user the error message that I get from my SQLException ? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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]
AW: How to Show gif image instead of html button in the forms for html:submit tag ?
Good morning Shabbir! try this: html:image page=/images/enter.gif property=submit value=Enter/ Regards, Bernhard -Ursprüngliche Nachricht- Von: Shabbir Khadir Mohammed [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. Februar 2003 09:15 An: Struts Users Mailing List Betreff: How to Show gif image instead of html button in the forms for html:submit tag ? Hi All Hope all are doing well. I am using following code for form submit in one of the JSP. html:submit property=submit value=Save/ It is displaying normal html button. On clicking this button form will be submitted to corresponding action. Now my question is, Instead of normal html button for submit, I want to display a GIF image and form should be submitted to corresponding action (WITH OUT using Java Script) on clicking that image. If any one has any info do share with me. Thanks Regards Shabbir **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Really dumb struts question...
Do you also have the form tag in your JSP? Bernhard -Ursprüngliche Nachricht- Von: Loren J. Erickson [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 08:59 An: [EMAIL PROTECTED] Betreff: Really dumb struts question... Like probably thousands of others, I'm trying to write a simple portal using Struts 1.0.2. I'm getting the following error that I can't figure out. org.apache.jasper.JasperException: No bean found under attribute key registerForm I've also included a snippet from my struts-config.xml. Seems like the form names match to me. Am I missing something? [SNIP] form-beans form-bean name=registerForm type=com.fmr.fpc.struts.RegisterForm/ /form-beans [SNIP] action-mappings actionpath=/Register type=com.fmr.fpc.struts.RegisterAction name=registerForm scope=request input=/Register.jsp /action /action-mappings [SNIP] - 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]
AW: Help in html option tag
Do you have the taglibs included in the header of your JSP? Bernhard -Ursprüngliche Nachricht- Von: Buics [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 09:36 An: Struts Users Mailing List Betreff: Help in html option tag anybody could help me this one, it takes me 2 days to figure this out and wheeeww 'til now I dont have a solution. html:select property=creditCardType size=1 html:options collection=%= Constants.CCTYPES_ARRAY_KEY % property=value labelProperty=label/ /html:select org.apache.jasper.JasperException: Cannot find bean under name org.apache.struts.taglib.html.BEAN Thank you in advance .. --buics -- It's good to be slow and steady; but it's better to be fast and reliable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Populating a html select in struts.
You can pre-populate your form in an action, which you have to call before showing the JSP. You then forward to the JSP from your action. Calling a action is done using ...yoururl.com/actionName.do in the browser url. Bernhard -Ursprüngliche Nachricht- Von: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 09:36 An: Struts Users Mailing List Betreff: Populating a html select in struts. How does one pre-populate a form field in struts which uses the multiple select ? I've tried it but I don't see anything being filled out in the select box, I've also created the necessary form beans for it to work. Help with this would be nice, thanks. - 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]
AW: Really dumb struts question...
You have in your struts-config.xml: actionpath=/ominterfaceinfo type=wigadmin.struts.action.OMInterfaceInfoAction attribute=WIGAdminWizardForm scope=session validate=true forward name=success path=/tpinterfaceinfo.jsp/ /action attribute is wrong for the form, as far as I know. Use name instead: actionpath=/ominterfaceinfo type=wigadmin.struts.action.OMInterfaceInfoAction name=WIGAdminWizardForm scope=session validate=true forward name=success path=/tpinterfaceinfo.jsp/ /action I hope that helps... Bernhard -Ursprüngliche Nachricht- Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 10:13 An: Hirschmann, Bernhard Betreff: Re: Really dumb struts question... have sent u a new mail with both the files, I am looking in this bug for last 4 hours and now I am stuck ..cant think anymore. this mail too has attachment of the same files Chetan - Original Message - From: Hirschmann, Bernhard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 2:36 PM Subject: AW: Really dumb struts question... You missed to attach the JSP. At least, I can't find it... Bernhard -Ursprüngliche Nachricht- Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 10:03 An: Struts Users Mailing List Betreff: Re: Really dumb struts question... Bernhard I am facing same problem and still getting the error saying Cannot retrieve definition for form bean null attached is my jsp and struts-config.xml, can u check the goofup I am doing one question, do we have to add struts package which is in webapps in classpath ? - Original Message - From: Hirschmann, Bernhard [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, February 21, 2003 2:23 PM Subject: AW: Really dumb struts question... Do you also have the form tag in your JSP? Bernhard -Ursprüngliche Nachricht- Von: Loren J. Erickson [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 08:59 An: [EMAIL PROTECTED] Betreff: Really dumb struts question... Like probably thousands of others, I'm trying to write a simple portal using Struts 1.0.2. I'm getting the following error that I can't figure out. org.apache.jasper.JasperException: No bean found under attribute key registerForm I've also included a snippet from my struts-config.xml. Seems like the form names match to me. Am I missing something? [SNIP] form-beans form-bean name=registerForm type=com.fmr.fpc.struts.RegisterForm/ /form-beans [SNIP] action-mappings actionpath=/Register type=com.fmr.fpc.struts.RegisterAction name=registerForm scope=request input=/Register.jsp /action /action-mappings [SNIP] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Yoooooooooohoooooooooo: Really dumb struts question...
*lol* ...no problem - it was a pleasure for me ;-) For a good start with stuts, I suggest studying the examples, which are contained in the distribution of struts. (the additional WAR files) In addition, the husted.com website by Ted is a great resource. Regards, Bernhard -Ursprüngliche Nachricht- Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 10:34 An: Struts Users Mailing List Betreff: Yoohoo: Really dumb struts question... Yahoo The real BIG one Thankx a million Bernhard great help man .. it worked :) btw where did u read this stuff .. please point me to the documentation for 1.1. beta related help so that I will stop sending queries like this :) Chetan - Original Message - From: Hirschmann, Bernhard [EMAIL PROTECTED] To: 'Chetan Sahasrabudhe' [EMAIL PROTECTED]; Struts User Mailing List (E-Mail) [EMAIL PROTECTED] Sent: Friday, February 21, 2003 2:54 PM Subject: AW: Really dumb struts question... You have in your struts-config.xml: actionpath=/ominterfaceinfo type=wigadmin.struts.action.OMInterfaceInfoAction attribute=WIGAdminWizardForm scope=session validate=true forward name=success path=/tpinterfaceinfo.jsp/ /action attribute is wrong for the form, as far as I know. Use name instead: actionpath=/ominterfaceinfo type=wigadmin.struts.action.OMInterfaceInfoAction name=WIGAdminWizardForm scope=session validate=true forward name=success path=/tpinterfaceinfo.jsp/ /action I hope that helps... Bernhard -Ursprüngliche Nachricht- Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 10:13 An: Hirschmann, Bernhard Betreff: Re: Really dumb struts question... have sent u a new mail with both the files, I am looking in this bug for last 4 hours and now I am stuck ..cant think anymore. this mail too has attachment of the same files Chetan - Original Message - From: Hirschmann, Bernhard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 2:36 PM Subject: AW: Really dumb struts question... You missed to attach the JSP. At least, I can't find it... Bernhard -Ursprüngliche Nachricht- Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 10:03 An: Struts Users Mailing List Betreff: Re: Really dumb struts question... Bernhard I am facing same problem and still getting the error saying Cannot retrieve definition for form bean null attached is my jsp and struts-config.xml, can u check the goofup I am doing one question, do we have to add struts package which is in webapps in classpath ? - Original Message - From: Hirschmann, Bernhard [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, February 21, 2003 2:23 PM Subject: AW: Really dumb struts question... Do you also have the form tag in your JSP? Bernhard -Ursprüngliche Nachricht- Von: Loren J. Erickson [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 08:59 An: [EMAIL PROTECTED] Betreff: Really dumb struts question... Like probably thousands of others, I'm trying to write a simple portal using Struts 1.0.2. I'm getting the following error that I can't figure out. org.apache.jasper.JasperException: No bean found under attribute key registerForm I've also included a snippet from my struts-config.xml. Seems like the form names match to me. Am I missing something? [SNIP] form-beans form-bean name=registerForm type=com.fmr.fpc.struts.RegisterForm/ /form-beans [SNIP] action-mappings actionpath=/Register type=com.fmr.fpc.struts.RegisterAction name=registerForm scope=request input=/Register.jsp /action /action-mappings [SNIP] - 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] - 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
AW: [OT] dick size
Könntest Du bitte endlich aufhören, die Struts Mailingliste mit diesem OT-Kram vollzumüllen?! Langsam nervt es wirklich! Bernhard -Ursprüngliche Nachricht- Von: Simon Kelly [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 10:36 An: Struts Users Mailing List Betreff: Re: [OT] dick size I recon the ISO have been fiddling with the standards again. Cos I just got a 12 ruler from supplies and it's a lot longer than what I thought 12 was! - Original Message - From: alexj [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 8:35 PM Subject: [OT] dick size After your IQ test why not try the dick size test ? Tell us your dick size you will maybe win a decicated email who claim you are the most stupid guy ever seen. Good luck. -- Alexandre Jaquet - - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: error in the attribute input of actionmapping when accesing a globalforward
Hey Ferran, I think the problem is the path you're using: /do/admin/AdminPreCreateUserentity=rolamp;action=findamp;reference=rol The syntax is not correct. I can't see where the URI ends and the arrtibutes start, but a correct syntax would be: /admin/ActionName.do?attribute1=valueattribute2=anothervalue So you at least miss the ? Bernhard -Ursprüngliche Nachricht- Von: Ferran Parra [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Februar 2003 16:49 An: Struts Users Mailing List Betreff: error in the attribute input of actionmapping when accesing a globalforward Hi all, I have the globalforward in the property input of the one action in action-mapping, i configure this in the controller in the struts-config.xml file in the struts1.1b3 in the struts-config.xml i have: controller inputForward=true nocache=true locale=true/ and in one actionmapping in the input attribute i refer a global forward: global-forwards ... forward name=adminCreateUser path=/do/admin/AdminPreCreateUserentity=rolamp;action=findamp;reference=r ol / ... /global-forwards action-mappings ... !-- AdminCreateUser -- action path=/admin/AdminCreateUser type=com.mubimedia.project.struts.action.AdminAction input=adminCreateUser name=userForm scope=request validate=true forward name=success path=.admin.index.page / /action ... /action-mappings then the error ocurr when i have redirect to input attribute of AdminCreateUser actionmapping. the tomcat says: type Status report message /adminCreateUser description The requested resource (/adminCreateUser) is not available. any idea??? thanks Ferran Parra Departament de Noves Tecnologies MUBIMEDIA S.L. -- [EMAIL PROTECTED] Mallorca, 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: bean:message problems with i18n
Hi Toby, I solved this problem doing something different: I instantiate now the Locale object only with the language parameter, and *without* the country parameter. new Locale(en,); This locale object is then stored in the session using the method: org.apache.struts.action.Action.setLocale(javax.servlet.http.HttpServletRequ est request, java.util.Locale locale); This way it works - don't ask me why. I guess it could be a bug in the bean:message tag. Regards, Bernhard -Ursprüngliche Nachricht- Von: Rademacher Tobias [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Februar 2003 12:08 An: 'Struts Users Mailing List' Betreff: RE: bean:message problems with i18n Hi Bernhard, I have the same problems as you. Application.properties (fallback english) Application_de_DE.properties( German translation ) I'm using 1.1b2. If your OS language is German the German property is used. If not the English one. My application does seem to use session saved Locales. Do you save the locale in the session? Maybe you try: controller nochache=true locale=true / in your struts-config.xml. I tried locale with 1.1b2 but not with nocache. Maybe that work in 1.1b3 and with both set to true. If it works with 1.1.b3 could you inform me? Bye Toby -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 7:15 PM To: 'Struts Users Mailing List' Subject: AW: bean:message problems with i18n James, thanks for your help! I tried it in different browser types and in different windows. So this appears also in different HTTPSessions. I can reload as much as I want, and I do not use any proxies for that. So I guess it is not a caching issue. I checked the html:html tag. The lang attribute has always the correct value, like set in the Action.setLocale() method. However, the wrong messages are always in the language, in which the bean:message tag has requested the message the very first time. The fallback mechanism just doesn't work anymore. Does the bean:message tag use some kind of caching using the resources? I also tried to switch back to struts 1.1b2, but with the same result. Bernhard -Ursprüngliche Nachricht- Von: James Childers [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Februar 2003 18:57 An: Struts Users Mailing List Betreff: RE: bean:message problems with i18n Have you tried opening up a new browser and trying again? Sounds like it may be a caching issue. Also, check that your html:html tag is generating the correct lang attribute. Reload the page and view source, then check the HTML tag. -= J -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 11:41 AM To: Struts User Mailing List (E-Mail) Subject: bean:message problems with i18n We have big problems with the use of the i18n messages, used with the bean:message tag. But the problems encounter only in a special scenario: 1.) A German user loggs in - a German locale is set using Action.setLocale() - exploring some JSPs, all messages are in German, that's good. 2.) The German user loggs out. 3.) A English user loggs in - a English locale is set using Action.setLocale() - all messages already show in 1.) are still shown in German. But messages from other JSPs not visited in 1.) are shown correctly in English. We use two ApplicationResources: ApplicationResources.properties (the fallback version, in English language) ApplicationResources_de.properties (the German variant) It seems to me, that the mechanism using the ApplicationResources is the reason, but I'm not sure... I debuged through the sources but didn't find the problem. Another strange thing is, that this has worked earlier, but now something must have happend while our further developing processes, so that this 'bug' is appearing. So I tried some older versions of this product we delivered to our customers, and suddenly in those versions is this bug also present. Maybe something on our application server has happend (WS 4.0.4), but I have no clue what this could be... In WSAD 4.0.2 it's the same like in WS 4.0.4. Any hint is highly appretiated. (I'm working on this the whole day now...) - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: bean:message problems with i18n
Hi Tobby, I guess you're right. I'm working on a bug in our application and was also on exactly the same method: Action.getLocale(request); Sometimes I get the right locale, sometimes not. Maybe it has something to do with a change in the struts sources: The constant Globals.LOCALE_KEY has once been Actions.LOCALE_KEY, I could imagine that something is mixed up now because of this. Is that possible? Ted, Craig? :-) Regards, Bernhard -Ursprüngliche Nachricht- Von: Rademacher Tobias [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Februar 2003 13:42 An: Hirschmann, Bernhard; 'Struts Users Mailing List'; Rademacher Tobias Betreff: RE: bean:message problems with i18n Hi Bernhard, This is what i logged with log4j within my action LOGGER.debug(Request Locale + request.getLocale() ); LOGGER.debug(Current locale: + getLocale(request)); log file snipplet: 2003-02-14 13:26:16,089 DEBUG [de.grob.portal.action.LoginAction] Request Locale de 2003-02-14 13:26:16,089 DEBUG [de.grob.portal.action.LoginAction] Current locale: en Interesting. Seems that the getLocale(HttpRequest request) method does not work correclty. Here ist the source of this method: /** * Return the user's currently selected Locale. * * @param request The request we are processing */ protected Locale getLocale(HttpServletRequest request) { HttpSession session = request.getSession(); Locale locale = (Locale) session.getAttribute(Globals.LOCALE_KEY); if (locale == null) locale = defaultLocale; return (locale); } I gues the session does not contain the Globals.LOCALE_KEY. Mhm. Since defaultLocale == Locale.getDefault() the OS Locale is choosen, which is incorrect and overwrite the feature. As far as I see the correct behavoir should be : /** * Return the user's currently selected Locale. * * @param request The request we are processing */ protected Locale getLocale(HttpServletRequest request) { HttpSession session = request.getSession(); Locale locale = (Locale) session.getAttribute(Globals.LOCALE_KEY); if (locale == null) locale = request.getLocale(); // return (locale); } This ensures that the correct language is choosen. What do you think? Bye Toby -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 12:48 PM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: AW: bean:message problems with i18n Hi Toby, I solved this problem doing something different: I instantiate now the Locale object only with the language parameter, and *without* the country parameter. new Locale(en,); This locale object is then stored in the session using the method: org.apache.struts.action.Action.setLocale(javax.servlet.http.H ttpServletRequ est request, java.util.Locale locale); This way it works - don't ask me why. I guess it could be a bug in the bean:message tag. Regards, Bernhard -Ursprüngliche Nachricht- Von: Rademacher Tobias [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Februar 2003 12:08 An: 'Struts Users Mailing List' Betreff: RE: bean:message problems with i18n Hi Bernhard, I have the same problems as you. Application.properties (fallback english) Application_de_DE.properties( German translation ) I'm using 1.1b2. If your OS language is German the German property is used. If not the English one. My application does seem to use session saved Locales. Do you save the locale in the session? Maybe you try: controller nochache=true locale=true / in your struts-config.xml. I tried locale with 1.1b2 but not with nocache. Maybe that work in 1.1b3 and with both set to true. If it works with 1.1.b3 could you inform me? Bye Toby -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 7:15 PM To: 'Struts Users Mailing List' Subject: AW: bean:message problems with i18n James, thanks for your help! I tried it in different browser types and in different windows. So this appears also in different HTTPSessions. I can reload as much as I want, and I do not use any proxies for that. So I guess it is not a caching issue. I checked the html:html tag. The lang attribute has always the correct value, like set in the Action.setLocale() method. However, the wrong messages are always in the language, in which the bean:message tag has requested the message the very first time. The fallback mechanism just doesn't work anymore. Does the bean:message tag use some kind of caching using the resources? I also tried to switch back to struts 1.1b2, but with the same result. Bernhard -Ursprüngliche Nachricht- Von: James
bean:message problems with i18n
We have big problems with the use of the i18n messages, used with the bean:message tag. But the problems encounter only in a special scenario: 1.) A German user loggs in - a German locale is set using Action.setLocale() - exploring some JSPs, all messages are in German, that's good. 2.) The German user loggs out. 3.) A English user loggs in - a English locale is set using Action.setLocale() - all messages already show in 1.) are still shown in German. But messages from other JSPs not visited in 1.) are shown correctly in English. We use two ApplicationResources: ApplicationResources.properties (the fallback version, in English language) ApplicationResources_de.properties (the German variant) It seems to me, that the mechanism using the ApplicationResources is the reason, but I'm not sure... I debuged through the sources but didn't find the problem. Another strange thing is, that this has worked earlier, but now something must have happend while our further developing processes, so that this 'bug' is appearing. So I tried some older versions of this product we delivered to our customers, and suddenly in those versions is this bug also present. Maybe something on our application server has happend (WS 4.0.4), but I have no clue what this could be... In WSAD 4.0.2 it's the same like in WS 4.0.4. Any hint is highly appretiated. (I'm working on this the whole day now...) Regards, Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: bean:message problems with i18n
I forgot: we use the struts version 1.1b3 -Ursprüngliche Nachricht- Von: Hirschmann, Bernhard Gesendet: Donnerstag, 13. Februar 2003 18:41 An: Struts User Mailing List (E-Mail) Betreff: bean:message problems with i18n We have big problems with the use of the i18n messages, used with the bean:message tag. But the problems encounter only in a special scenario: 1.) A German user loggs in - a German locale is set using Action.setLocale() - exploring some JSPs, all messages are in German, that's good. 2.) The German user loggs out. 3.) A English user loggs in - a English locale is set using Action.setLocale() - all messages already show in 1.) are still shown in German. But messages from other JSPs not visited in 1.) are shown correctly in English. We use two ApplicationResources: ApplicationResources.properties (the fallback version, in English language) ApplicationResources_de.properties (the German variant) It seems to me, that the mechanism using the ApplicationResources is the reason, but I'm not sure... I debuged through the sources but didn't find the problem. Another strange thing is, that this has worked earlier, but now something must have happend while our further developing processes, so that this 'bug' is appearing. So I tried some older versions of this product we delivered to our customers, and suddenly in those versions is this bug also present. Maybe something on our application server has happend (WS 4.0.4), but I have no clue what this could be... In WSAD 4.0.2 it's the same like in WS 4.0.4. Any hint is highly appretiated. (I'm working on this the whole day now...) Regards, Bernhard - 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]
AW: bean:message problems with i18n
James, thanks for your help! I tried it in different browser types and in different windows. So this appears also in different HTTPSessions. I can reload as much as I want, and I do not use any proxies for that. So I guess it is not a caching issue. I checked the html:html tag. The lang attribute has always the correct value, like set in the Action.setLocale() method. However, the wrong messages are always in the language, in which the bean:message tag has requested the message the very first time. The fallback mechanism just doesn't work anymore. Does the bean:message tag use some kind of caching using the resources? I also tried to switch back to struts 1.1b2, but with the same result. Bernhard -Ursprüngliche Nachricht- Von: James Childers [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Februar 2003 18:57 An: Struts Users Mailing List Betreff: RE: bean:message problems with i18n Have you tried opening up a new browser and trying again? Sounds like it may be a caching issue. Also, check that your html:html tag is generating the correct lang attribute. Reload the page and view source, then check the HTML tag. -= J -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 11:41 AM To: Struts User Mailing List (E-Mail) Subject: bean:message problems with i18n We have big problems with the use of the i18n messages, used with the bean:message tag. But the problems encounter only in a special scenario: 1.) A German user loggs in - a German locale is set using Action.setLocale() - exploring some JSPs, all messages are in German, that's good. 2.) The German user loggs out. 3.) A English user loggs in - a English locale is set using Action.setLocale() - all messages already show in 1.) are still shown in German. But messages from other JSPs not visited in 1.) are shown correctly in English. We use two ApplicationResources: ApplicationResources.properties (the fallback version, in English language) ApplicationResources_de.properties (the German variant) It seems to me, that the mechanism using the ApplicationResources is the reason, but I'm not sure... I debuged through the sources but didn't find the problem. Another strange thing is, that this has worked earlier, but now something must have happend while our further developing processes, so that this 'bug' is appearing. So I tried some older versions of this product we delivered to our customers, and suddenly in those versions is this bug also present. Maybe something on our application server has happend (WS 4.0.4), but I have no clue what this could be... In WSAD 4.0.2 it's the same like in WS 4.0.4. Any hint is highly appretiated. (I'm working on this the whole day now...) - 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]
AW: Generate XML documents from Beans
Vikas, we use the jar from .jdom.org to create JDOM objects firstly as representatives of the beans. They can then be transformed to a XML string with the XMLOutputter class, if this is what you want. Regards, Bernhard -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Februar 2003 19:18 An: [EMAIL PROTECTED] Betreff: Generate XML documents from Beans Can anyone throw some pointers on ways XML documents can be generated from java components - beans or a collection of beans? What API can be used? Thanks, Vikas - 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]
AW: How to set the active locale ???
Soren, to do that just create a Locale object with the language/country of the user who is loggin in, and in your action, call setLocale(). Regards, Bernhard -Ursprüngliche Nachricht- Von: Soeren Dalby [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Februar 2003 22:53 An: 'Struts Users Mailing List' Betreff: How to set the active locale ??? As default, I18N Struts-applications are managed by the language in the browser. I would like it to be based on a language-code in the users login and thus I need to set the locale/language designation that controls Struts Do you have a hint ?? Thanks in advance Med venlig hilsen / Best regards Søren Dalby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: bean:message problems with i18n
Hello all! this is still an open thread for me. It's horrifying... Any help highly appreciated! Regards, Bernhard -Ursprüngliche Nachricht- Von: Hirschmann, Bernhard Gesendet: Donnerstag, 13. Februar 2003 19:15 An: 'Struts Users Mailing List' Betreff: AW: bean:message problems with i18n James, thanks for your help! I tried it in different browser types and in different windows. So this appears also in different HTTPSessions. I can reload as much as I want, and I do not use any proxies for that. So I guess it is not a caching issue. I checked the html:html tag. The lang attribute has always the correct value, like set in the Action.setLocale() method. However, the wrong messages are always in the language, in which the bean:message tag has requested the message the very first time. The fallback mechanism just doesn't work anymore. Does the bean:message tag use some kind of caching using the resources? I also tried to switch back to struts 1.1b2, but with the same result. Bernhard -Ursprüngliche Nachricht- Von: James Childers [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Februar 2003 18:57 An: Struts Users Mailing List Betreff: RE: bean:message problems with i18n Have you tried opening up a new browser and trying again? Sounds like it may be a caching issue. Also, check that your html:html tag is generating the correct lang attribute. Reload the page and view source, then check the HTML tag. -= J -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 11:41 AM To: Struts User Mailing List (E-Mail) Subject: bean:message problems with i18n We have big problems with the use of the i18n messages, used with the bean:message tag. But the problems encounter only in a special scenario: 1.) A German user loggs in - a German locale is set using Action.setLocale() - exploring some JSPs, all messages are in German, that's good. 2.) The German user loggs out. 3.) A English user loggs in - a English locale is set using Action.setLocale() - all messages already show in 1.) are still shown in German. But messages from other JSPs not visited in 1.) are shown correctly in English. We use two ApplicationResources: ApplicationResources.properties (the fallback version, in English language) ApplicationResources_de.properties (the German variant) It seems to me, that the mechanism using the ApplicationResources is the reason, but I'm not sure... I debuged through the sources but didn't find the problem. Another strange thing is, that this has worked earlier, but now something must have happend while our further developing processes, so that this 'bug' is appearing. So I tried some older versions of this product we delivered to our customers, and suddenly in those versions is this bug also present. Maybe something on our application server has happend (WS 4.0.4), but I have no clue what this could be... In WSAD 4.0.2 it's the same like in WS 4.0.4. Any hint is highly appretiated. (I'm working on this the whole day now...) - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED: bean:message problems with i18n - BUG in bean:message ???
I found the problem: If I instantiate the Locale class with language=en and country=GB [new Locale(en,GB), or new Locale(es,ES)] then the bean:message tag will display not correctly in certain circumstances. If I use only the language for instantiation of Locale, everything works fine. Untill now, I don't know in which layer the problem is... If I have more time, I will try to find it. Maybe someone has a clue? Regards, Bernhard -Ursprüngliche Nachricht- Von: Hirschmann, Bernhard Gesendet: Freitag, 14. Februar 2003 08:18 An: 'Struts Users Mailing List' Betreff: AW: bean:message problems with i18n Hello all! this is still an open thread for me. It's horrifying... Any help highly appreciated! Regards, Bernhard -Ursprüngliche Nachricht- Von: Hirschmann, Bernhard Gesendet: Donnerstag, 13. Februar 2003 19:15 An: 'Struts Users Mailing List' Betreff: AW: bean:message problems with i18n James, thanks for your help! I tried it in different browser types and in different windows. So this appears also in different HTTPSessions. I can reload as much as I want, and I do not use any proxies for that. So I guess it is not a caching issue. I checked the html:html tag. The lang attribute has always the correct value, like set in the Action.setLocale() method. However, the wrong messages are always in the language, in which the bean:message tag has requested the message the very first time. The fallback mechanism just doesn't work anymore. Does the bean:message tag use some kind of caching using the resources? I also tried to switch back to struts 1.1b2, but with the same result. Bernhard -Ursprüngliche Nachricht- Von: James Childers [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Februar 2003 18:57 An: Struts Users Mailing List Betreff: RE: bean:message problems with i18n Have you tried opening up a new browser and trying again? Sounds like it may be a caching issue. Also, check that your html:html tag is generating the correct lang attribute. Reload the page and view source, then check the HTML tag. -= J -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 11:41 AM To: Struts User Mailing List (E-Mail) Subject: bean:message problems with i18n We have big problems with the use of the i18n messages, used with the bean:message tag. But the problems encounter only in a special scenario: 1.) A German user loggs in - a German locale is set using Action.setLocale() - exploring some JSPs, all messages are in German, that's good. 2.) The German user loggs out. 3.) A English user loggs in - a English locale is set using Action.setLocale() - all messages already show in 1.) are still shown in German. But messages from other JSPs not visited in 1.) are shown correctly in English. We use two ApplicationResources: ApplicationResources.properties (the fallback version, in English language) ApplicationResources_de.properties (the German variant) It seems to me, that the mechanism using the ApplicationResources is the reason, but I'm not sure... I debuged through the sources but didn't find the problem. Another strange thing is, that this has worked earlier, but now something must have happend while our further developing processes, so that this 'bug' is appearing. So I tried some older versions of this product we delivered to our customers, and suddenly in those versions is this bug also present. Maybe something on our application server has happend (WS 4.0.4), but I have no clue what this could be... In WSAD 4.0.2 it's the same like in WS 4.0.4. Any hint is highly appretiated. (I'm working on this the whole day now...) - 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] - 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]
setting a request parameter in JavaScript
Does somebody know how it is possible, to define a request parameter, while submitting a form via the JavaScript command submit() ??? I'm doing a submit() in a event handler of a html:select box and have to set also a request parameter. Regards, Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: setting a request parameter in JavaScript
Thanks for the hint, this seems to be a good work around. But just because I'm curious: is there a way to set a real request parameter for a submitting request? Like: .../myAction.do?parameter1=theValueparameter2anotherValue Regards, Bernhard -Ursprüngliche Nachricht- Von: João Luz Gesendet: Dienstag, 11. Februar 2003 13:46 An: Struts Users Mailing List Betreff: RE: setting a request parameter in JavaScript Set the form field before you do the submit! document.your form.your field.value = something; document.your form.submit(); I hope this will work Regards, Joao -Original Message- From: Hirschmann, Bernhard Sent: terça-feira, 11 de Fevereiro de 2003 12:36 To: Struts User Mailing List (E-Mail) Subject: setting a request parameter in JavaScript Does somebody know how it is possible, to define a request parameter, while submitting a form via the JavaScript command submit() ??? I'm doing a submit() in a event handler of a html:select box and have to set also a request parameter. Regards, Bernhard - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: setting a request parameter in JavaScript
Thanks Tib, but either I didn't understand, or this is not working... If I set the window.location in that way you suggested, it won't be submitted during a submit(). As far as I've understand, you can get the actual location, but you can't set a request parameter that way. Please correct me if I'm wrong. Did you try it like you suggested? Regards, Bernhard -Ursprüngliche Nachricht- Von: Gemes Tibor [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 11. Februar 2003 14:01 An: Struts Users Mailing List Betreff: Re: AW: setting a request parameter in JavaScript 2003. február 11. 13:53 dátummal Hirschmann, Bernhard ezt írtad: Thanks for the hint, this seems to be a good work around. But just because I'm curious: is there a way to set a real request parameter for a submitting request? Like: .../myAction.do?parameter1=theValueparameter2anotherValue window.location = 'http://server:port/context/myAction.do?parameter1=theValueparameter2=anoth erValue' Tib - 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]
AW: socket write error when using tiles
On Tue, 4 Feb 2003 08:32:30 -0500 [EMAIL PROTECTED] wrote: I have socket write error when using tiles. I suppose it is because users click on other action before the last tile is displayed. I have so many of these that I suspect this can cause performance issues. Anyone can explain or knows how to correct this. The pages display fine. I am using WSAD and WebSphere. Thank you. Stephan I am having this same problem. I'm running 1.1b2 in WTE. I'm sure that all of that exception handeling is causing some performance problems. Is this fixed in b3 or is this something we are doing wrong as developers? Matt I use the 1.1b3 in WS4 and WSAD4 and have the same effect. It occurs if you multi-submit before the response has happend. I'm not sure, if this IS really a performance topic. It seems to me that this may be the desired behavior. Doesn't it make sense do stop the response if another request occurs from this session at the time before the response was taken? I don't really know - maybe someone could comment this having the big picture... Regards, Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Iterating ValueObjects by using logic:iterate - Urgent
Ashokd, a Hashtable is not a Collection, so this can't work. You may use a HashSet or something. See http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate for the syntax. Regards, Bernhard -Ursprüngliche Nachricht- Von: ashokd [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 30. Januar 2002 11:42 An: Struts Users Mailing List Betreff: Iterating ValueObjects by using logic:iterate - Urgent Hi, I tested a sample example to display list of ValueObjects. If i setted these VOs to ArrayList the following code is working fine. % java.util.ArrayList bunchList = new java.util.ArrayList(); bunchList.add(new com.km.struts.tutorial.TestBean()); bunchList.add(new com.km.struts.tutorial.TestBean()); bunchList.add(new com.km.struts.tutorial.TestBean()); request.setAttribute(bunchList,bunchList); % logic:iterate id=testList name=bunchList bean:define id=testBean name=testList type=com.km.struts.tutorial.TestBean / tr bgcolor=#f7faff td valign=top align=left height=20bean:write name=testBean property=testSize /nbsp;/td td valign=top align=left height=20bean:write name=testBean property=testWeight /nbsp;/td td valign=top align=left height=20bean:write name=testBean property=testTaste /nbsp;/td /tr /logic:iterate But I want to display Hashtable (which contains some keys and values are ValueObjects). I tried like this it is giving follwing error. WebGroup X Servlet Error: java.util.Hashtable$Entry: java.lang.ClassCastException: java.util.Hashtable$Entry Code for Above Error is: % java.util.Hashtbale bunchList = new java.util.Hashtable(); bunchList.put(1,new com.km.struts.tutorial.TestBean()); bunchList.put(2,new com.km.struts.tutorial.TestBean()); bunchList.put(3,new com.km.struts.tutorial.TestBean()); request.setAttribute(bunchList,bunchList); % Any Suggestions on this please. Thanks in Advance, Ashok.D - 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]
AW: easy struts 0.6.3 ?
emmanuel, vielen Dank für diese aussagekräftige Nachricht. Freundliche Grüße, Bernhard Hirschmann -Ursprüngliche Nachricht- Von: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. Februar 2003 14:24 An: [EMAIL PROTECTED] Cc: Struts Users Mailing List Betreff: Re: easy struts 0.6.3 ? HEllo Alex, J'imagine que c'est à propos du bug avec les projets Tomcat Sysdeo, si oui alors il est corrigé dans CVS mais j'ai pas eu le temps de faire une release (j'ai pas CVS au boulot). Voici un pointeur vers le fichier concerné : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/easystruts/easystruts-plugin/ src/org/easystruts/eclipse/wizards/NewStrutsSupportWizardPage.java a+ -emmanuel --- alexj [EMAIL PROTECTED] a écrit : Hi anybody know when the easy struts 0.6.3 plug in for eclipse will be released ? Or anybody know in the source code where to update the add easy struts support ? Thanks -- Alexandre Jaquet - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - 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]
AW: AW: easy struts 0.6.3 ?
No problem! I just couldn't resist... ;-) Bernhard -Ursprüngliche Nachricht- Von: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. Februar 2003 14:57 An: Struts Users Mailing List Betreff: Re: AW: easy struts 0.6.3 ? Hi, I can speak french, I can speak english, I can understand spanish...but german, I can't ;) altavista-translate vielen Dank für diese aussagekräftige Nachricht in french merci beaucoup pour cette information valable /altavista-translate BTW: I write a response in french for Alex and by mistake I send it to struts-user list, sorry. -emmanuel --- Hirschmann, Bernhard [EMAIL PROTECTED] a écrit : emmanuel, vielen Dank für diese aussagekräftige Nachricht. Freundliche Grüße, Bernhard Hirschmann -Ursprüngliche Nachricht- Von: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. Februar 2003 14:24 An: [EMAIL PROTECTED] Cc: Struts Users Mailing List Betreff: Re: easy struts 0.6.3 ? HEllo Alex, J'imagine que c'est à propos du bug avec les projets Tomcat Sysdeo, si oui alors il est corrigé dans CVS mais j'ai pas eu le temps de faire une release (j'ai pas CVS au boulot). Voici un pointeur vers le fichier concerné : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/easystruts/easystruts-plugin/ src/org/easystruts/eclipse/wizards/NewStrutsSupportWizardPage.java a+ -emmanuel --- alexj [EMAIL PROTECTED] a écrit : Hi anybody know when the easy struts 0.6.3 plug in for eclipse will be released ? Or anybody know in the source code where to update the add easy struts support ? Thanks -- Alexandre Jaquet - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - 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] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - 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]
AW: Iterating ValueObjects by using logic:iterate - Urgent
Ashok, you're right, the Map interface is also valid. (see the user guide link below in one of the previous mails). Regards, Bernhard -Ursprüngliche Nachricht- Von: ashokd [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 30. Januar 2002 13:12 An: Struts Users Mailing List Cc: Hirschmann, Bernhard Betreff: Re: Iterating ValueObjects by using logic:iterate - Urgent Hi Bernhard, Thanks for your mail. The below example is worked by using Hastable and logic:iterate combination. % java.util.Hashtable bunchList = new java.util.Hashtable(); com.km.struts.tutorial.TestBean test1 = new com.km.struts.tutorial.TestBean(); bunchList.put(0,test1); bunchList.put(1,test1); bunchList.put(2,test1); request.setAttribute(bunchList,bunchList); % logic:iterate id=testList name=bunchList bean:define id=testBean name=testList type=com.km.struts.tutorial.TestBean property=value/ tr bgcolor=#f7faff td valign=top align=left height=20bean:write name=testBean property=testSize /nbsp;/td td valign=top align=left height=20bean:write name=testBean property=testWeight /nbsp;/td td valign=top align=left height=20bean:write name=testBean property=testTaste /nbsp;/td /tr /logic:iterate I forwarding this, if any one faces same problem, they can use this. Thanks Regards, Ashok.D - Original Message - From: Hirschmann, Bernhard [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 05, 2003 6:58 PM Subject: AW: Iterating ValueObjects by using logic:iterate - Urgent Ashokd, a Hashtable is not a Collection, so this can't work. You may use a HashSet or something. See http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate for the syntax. Regards, Bernhard -Ursprüngliche Nachricht- Von: ashokd [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 30. Januar 2002 11:42 An: Struts Users Mailing List Betreff: Iterating ValueObjects by using logic:iterate - Urgent Hi, I tested a sample example to display list of ValueObjects. If i setted these VOs to ArrayList the following code is working fine. % java.util.ArrayList bunchList = new java.util.ArrayList(); bunchList.add(new com.km.struts.tutorial.TestBean()); bunchList.add(new com.km.struts.tutorial.TestBean()); bunchList.add(new com.km.struts.tutorial.TestBean()); request.setAttribute(bunchList,bunchList); % logic:iterate id=testList name=bunchList bean:define id=testBean name=testList type=com.km.struts.tutorial.TestBean / tr bgcolor=#f7faff td valign=top align=left height=20bean:write name=testBean property=testSize /nbsp;/td td valign=top align=left height=20bean:write name=testBean property=testWeight /nbsp;/td td valign=top align=left height=20bean:write name=testBean property=testTaste /nbsp;/td /tr /logic:iterate But I want to display Hashtable (which contains some keys and values are ValueObjects). I tried like this it is giving follwing error. WebGroup X Servlet Error: java.util.Hashtable$Entry: java.lang.ClassCastException: java.util.Hashtable$Entry Code for Above Error is: % java.util.Hashtbale bunchList = new java.util.Hashtable(); bunchList.put(1,new com.km.struts.tutorial.TestBean()); bunchList.put(2,new com.km.struts.tutorial.TestBean()); bunchList.put(3,new com.km.struts.tutorial.TestBean()); request.setAttribute(bunchList,bunchList); % Any Suggestions on this please. Thanks in Advance, Ashok.D - 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] - 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]
AW: HTML entities
Mark, I guess this is one of the mostly asked questions... Have you ever searched the mailing list about that topic? The solution is: You just have to set the filter=false in the bean:write tag. Regards, Bernhard -Ursprüngliche Nachricht- Von: Mark Lowe [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. Februar 2003 11:16 An: Struts List Betreff: HTML entities Has anyone any information on preventing and being translated into lt; and gt; when using the tag libs.. I have a bunch of data in my sql... there are a few presentation tags strored in the db (e.g. br, b etc).. I've parsed the results to replace any entities to etc but they're being coverted in the jsp when iterating through the result... My results set contains br etc i read this into map which i then put into an array (array of maps) put the array in the request... It seems to me that the encoding is happening 1. during the iteration 2. when being set in the request 3. when being added to the map I'm working my way through these possibilties now but if anyone knows anything then please don't be shy.. Any suggestions? Thanks mark - 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]
AW: HTML entities (general Struts taglib problem with language entities)
Jesus! So much work for that purpose? :-) Have you tried to use UTF-8 for your JSPs? Then all that transforming to HTML encoding is not necessary anymore. It works great at my project, and I have to use more special characters than in German. (27 languages in fact) See http://www.anassina.com/struts/i18n/i18n.html for a full how-to. Regards, Bernhard -Ursprüngliche Nachricht- Von: mech [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. Februar 2003 11:42 An: 'Struts Users Mailing List' Betreff: RE: HTML entities (general Struts taglib problem with language entities) You can usually use the attribute (e.g. with bean:write): filter=true if you want special characters converted into html substitutions or filter=false if you like to format your view with br tags. Unfortunatally, i hate converting all my German language Umlaute into auml; uuml; etc. in my database. If I say filter=true my German special letters won't get filtered and I get stupid output if my Solaris server runs on English language instead like my development server in German language. If I say filter=true an use auml; etc. coming from my db fields, I get filtered to amp; which doesn't help much either... In the html output I would get amp;uuml; instead of uuml; So I have to always filter=false and use auml; etc. for all German characters in my db. :-( At least than I can also use html tags for formating stored in the db. So on question for the future development. Could the tag filter be enhanced to filter not only brackets etc. but also language characters? Otherwise you'll have a problems if you use filter=true and filter=false aswell. Either you have to convert all your database field's not to use any language specific characters. Or you can't use filter=true because your language specific html entities get converted twice because one character in the escape sequence (the character) gets filtered again... What would be needed would be an filter=true logic that doesn't filter the of escape sequences or to filter also language specific html entities. The last thing would be the cleaner way. Michael -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 4. Februar 2003 11:16 To: Struts List Subject: HTML entities Has anyone any information on preventing and being translated into lt; and gt; when using the tag libs.. I have a bunch of data in my sql... there are a few presentation tags strored in the db (e.g. br, b etc).. I've parsed the results to replace any entities to etc but they're being coverted in the jsp when iterating through the result... My results set contains br etc i read this into map which i then put into an array (array of maps) put the array in the request... It seems to me that the encoding is happening 1. during the iteration 2. when being set in the request 3. when being added to the map I'm working my way through these possibilties now but if anyone knows anything then please don't be shy.. Any suggestions? Thanks mark - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: HTML entities (general Struts taglib problem with language entities)
Hey Michael, that's right, if you define your JSP content as utf-8, it will be interpreted as utf-8. So your text comming from the DB *must* be utf-8 as well. If you use a different character set in you DB, you could use a transformer, which transforms this character set into utf-8. Then you don't have to worry about correct displaying in the browser. I would always use a resource bundle for your texts, no matter if you use only German. The special characters in the resource bundle could use HTML encoding, so you don't have to care about saving the properties files in utf-8. (We do it this way) You dont't have to save your JSPs in utf-8, since you don't use special characters in the JSP code. You surely don't do that, right? Because the first 128 characters of ASCII or ANSI are identical to utf-8, you don't have to care about that. Regards, Bernhard -Ursprüngliche Nachricht- Von: mech [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. Februar 2003 12:22 An: 'Struts Users Mailing List' Betreff: RE: HTML entities (general Struts taglib problem with language entities) I tried to set %@ page contentType=text/html; charset=UTF-8 % but now even my German development server displays all german characters as ? only. I guess I would have to use ALL text coming from resource bundles that are converted to UTF8. And I would have to set my db also to utf8, i guess. But since I don't need i18n, just german language, I saw no sense to start using resource bundles for only one language. Or does it help to save all jsps in UTF8. Guess my Eclipse won't let me do that, too. Any other or more ideas? Thx. Michael -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 4. Februar 2003 11:51 To: 'Struts Users Mailing List' Subject: AW: HTML entities (general Struts taglib problem with language entities) Jesus! So much work for that purpose? :-) Have you tried to use UTF-8 for your JSPs? Then all that transforming to HTML encoding is not necessary anymore. It works great at my project, and I have to use more special characters than in German. (27 languages in fact) See http://www.anassina.com/struts/i18n/i18n.html for a full how-to. Regards, Bernhard -Ursprüngliche Nachricht- Von: mech [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. Februar 2003 11:42 An: 'Struts Users Mailing List' Betreff: RE: HTML entities (general Struts taglib problem with language entities) You can usually use the attribute (e.g. with bean:write): filter=true if you want special characters converted into html substitutions or filter=false if you like to format your view with br tags. Unfortunatally, i hate converting all my German language Umlaute into auml; uuml; etc. in my database. If I say filter=true my German special letters won't get filtered and I get stupid output if my Solaris server runs on English language instead like my development server in German language. If I say filter=true an use auml; etc. coming from my db fields, I get filtered to amp; which doesn't help much either... In the html output I would get amp;uuml; instead of uuml; So I have to always filter=false and use auml; etc. for all German characters in my db. :-( At least than I can also use html tags for formating stored in the db. So on question for the future development. Could the tag filter be enhanced to filter not only brackets etc. but also language characters? Otherwise you'll have a problems if you use filter=true and filter=false aswell. Either you have to convert all your database field's not to use any language specific characters. Or you can't use filter=true because your language specific html entities get converted twice because one character in the escape sequence (the character) gets filtered again... What would be needed would be an filter=true logic that doesn't filter the of escape sequences or to filter also language specific html entities. The last thing would be the cleaner way. Michael -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 4. Februar 2003 11:16 To: Struts List Subject: HTML entities Has anyone any information on preventing and being translated into lt; and gt; when using the tag libs.. I have a bunch of data in my sql... there are a few presentation tags strored in the db (e.g. br, b etc).. I've parsed the results to replace any entities to etc but they're being coverted in the jsp when iterating through the result... My results set contains br etc i read this into map which i then put into an array (array of maps) put the array in the request... It seems to me that the encoding is happening 1. during the iteration 2. when being set in the request 3. when being added to the map I'm working my way through these possibilties now
AW: Struts,Tiles Websphere
Hey Risika, we also use WS4 with Tiles and we don't have any problem with it. I suppose you're having syntax problems... could you post some JSP snippet? Regards, Bernhard -Ursprüngliche Nachricht- Von: Risika RANDRIANASOLO [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. Februar 2003 12:10 An: 'Struts Users Mailing List' Betreff: Struts,Tiles Websphere Hi, My application is working with Websphere 4 and Struts. I'v tried to install Tiles to use the definitions possibilities but it doesn't work, I've always an XmlParserError (he doesn't recognize forward to a definition). Maybe my explainations don't clear butsomebody can help me to configure Websphere 4 with Tiles :-) Thanx a lot !! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: HTML entities (general Struts taglib problem with language entities)
Firstly: bean:write filter=true doesn't transform ü into uuml; it only transforms , , and into its HTML encoding. You can see that in the source code of org.apache.struts.util.ResponseUtils Secondly: If you're using charset=ISO-8859-1 your German special characters are only displayed correctly, if your're using a German locale, as far as I remember. Try to use a user with a different locale (english) on the same machine and the display will be messed up. But when I have text field originally coming from my MySQL database on that Solaris machine that I want to display with bean:write I encounter problems and receive only ? in my html source. Yes, if this text is encoded in ISO-8859-1 and your JSPs are told to use UTF-8 or vice versa. So you should use only one character encoding for your browser. Only bean:write filter=false in combination with data fields containing abcduuml;efgauml;test works fine. Yes, because this text is fully ASCII compatible. (there are no special characters) With bean:write filter=true the get's converted to amp; Yes, because [see firstly] I have no idea if this is more a mysql problem than a Tomcat/Struts issue since my above tests work fine as long as the data is not from db? Maybe it gets garbled in my database DAO classes already while querying the db... no idea... As I said: Make sure your text from the DB is encoded in UTF-8, then it will be displayed correctly in a JSP which uses UTF-8. I would always use a resource bundle for your texts, no matter if you use only German. The special characters in the resource bundle could use HTML encoding, so you don't have to care about saving the properties files in utf-8. (We do it this way) I would do it, if i could rely on someone editing those resource bundles later and using taglibs. But unfortunately I have to use plain html saved as .jsp whereever possible for latter maintenance of html-only folks. I think we're talking about two different things, are we? When I say resource bundle then I mean the use of the ApplicationResources.properties file. You can't use any taglib in it. But you can write schouml;n instead of schön. That's what I have meant. Is it more clear now? :-) Regards, Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: javax.servlet.jsp.JspException: Cannot retrieve mapping for action /submit
Cannot retrieve mapping for action /submit means, that in your struts-config.xml you don't have a action configured for the URI /submit. I hope this helps... Regards, Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: javax.servlet.jsp.JspException: Cannot retrieve mapping for a ction /submit
Ok, another chance: Did you try the usual things, like resart the servlet engine after editing the struts-config.xml? Or are you using a IDE like Eclipse? Then before restarting the servlet engine you should refresh from local your properties... (I don't know how your skills are, so maybe you don't know that) Regards, Bernhard -Ursprüngliche Nachricht- Von: Jefferson Magno Gesendet: Dienstag, 4. Februar 2003 13:27 An: Struts Users Mailing List Betreff: RE: AW: javax.servlet.jsp.JspException: Cannot retrieve mapping for a ction /submit Bernhard, I did exactly as described in the tutorial, my struts-config.xml (placed inside WEB-INF dir) has: action-mappings action path=/submit type=hansen.playground.SubmitAction name=submitForm input=/submit.jsp scope=request forward name=success path=/submit.jsp/ forward name=failure path=/submit.jsp/ /action /action-mappings And I verified that the SubmitAction does exist. Jefferson Em Ter, 2003-02-04 às 11:07, Hirschmann, Bernhard escreveu: Cannot retrieve mapping for action /submit means, that in your struts-config.xml you don't have a action configured for the URI /submit. I hope this helps... Regards, Bernhard - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Testing I18n.
Joni, if you want to change the locale depending on the user logging in to the application, you can use the setLocale (javax.servlet.http.HttpServletRequest request, java.util.Locale locale) in your Struts action class. This overrides the default locale of the browser. Regards, Bernhard -Ursprüngliche Nachricht- Von: Taylor Cowan Gesendet: Mittwoch, 5. Februar 2003 09:42 An: Struts Users Mailing List Betreff: Re: Testing I18n. Struts can detect the client's prefered language by using the accept-languages header value. You can do this on IE by selecting ToolsInternet OptionsLanguages and choosing Chinese as your preferred language. Then from within an action you can retrieve the locale with getLocale(req). Note that i18n in struts is different from swing in that you must always tell the java.text and util classes which locale to use. The default locale of the server may not be what the user wants. Is that what you meant by make struts to think that this application runs on Chinese/German locale? Taylor Cowan - Original Message - From: joni santoso To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 9:00 PM Subject: Testing I18n. Hi, I am using Win2kServer using English version. I wanna test the i18n support from struts. I want to create an app using Chinese and German language. How to emulate it using struts? I mean how to make struts to think that this application runs on Chinese/German locale. Regards, === Meriahkan Hari Kasih Sayang dengan mengirimkan Kartu Elektronik PlasaCom kepada kerabat dan teman yang Anda kasihi ! Kepada para pengguna TELKOMSave, lakukan pergantian kartu lama Anda segera ! http://www.telkomsave.com === - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Streaming PDF file problem
Sheldon, it is important for IE to the the length of the stream. response.setContentLength(byteArray.length); That was the solution in our case. Regards, Bernhard -Ursprüngliche Nachricht- Von: Jarnot Voytek Contr AU HQ/SC Gesendet: Montag, 3. Februar 2003 19:55 An: 'Struts Users Mailing List' Betreff: RE: Streaming PDF file problem I was having an IE + PDF problem as well; it seems that IE refuses to display a streamed PDF when using method=post - used get and everything started working... I didn't like this solution, so we ended up saving the PDFs to disk (sessionid.pdf) and redirecting to them. We've got a session listener that deletes the sessionid.pdf files when the session is destroyed. -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 12:49 PM To: [EMAIL PROTECTED] Subject: RE: Streaming PDF file problem BTW, the code for streaming a servlet works perfectly as a stand alone servlet, but fails for IE in the struts framework. Sheldon -Original Message- From: Chan, Sheldon Sent: Monday, February 03, 2003 9:36 AM To: '[EMAIL PROTECTED]' Subject:Streaming PDF file problem Hi all, I'm trying to stream a PDF from a Struts action by writing an array of bytes to the OutputStream of HttpServletResponse. It works great in Mozilla, however it fails on IE. When I attempt to execute the action, IE brings up its Save or Open dialogue box with the request Url as the file it's trying to save. When I click on Save, it gives me an error dialogue of Internet Explorer cannot download... . Any ideas? Thanks in advance for any help. Sheldon Here's the psuedo-code. OutputStream outputstream = null; try { byte[] responseBytes = getBody().getBytes(ENCODING); response.setContentType(application/pdf); response.setContentLength(responseBytes.length); response.setHeader(Content-Disposition, attachment; filename=myfile.pdf); response.setHeader(Pragma, no cache); response.setHeader(Cache-Control, no-cache); outputStream = response.getOutputStream(); outputStream.write(responseBytes, 0, responseBytes.length); } catch (Exception e) { // do something } finally { outputStream.close(); } - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: Transforming a String to valid HTML encoding
Thank you for your help, Craig. I don't know if you got me completely right.. or maybe I didn't understand. What I want to do is to transform the regional characters of a String like ü into uuml; The reason is, that I don't want to use utf-8, but ISO-8859-1 for my html pages. And if a ü appears in the ISO-8859-1 characterset in the browser, it is not displayed correctly in a browser using the english locale. But it is displayed correctly if uuml; is used. (what is the name for this format?) As far as I could learn, java.net.URLEncoder transforms into application/x-www-form-urlencoded MIME format, used for the URLs. But this format is not for the body of a html page, right? Regards, Bernhard -Ursprüngliche Nachricht- Von: Craig R. McClanahan Gesendet: Dienstag, 14. Januar 2003 19:06 An: Struts Users Mailing List Betreff: Re: AW: Transforming a String to valid HTML encoding On Tue, 14 Jan 2003, Hirschmann, Bernhard wrote: Date: Tue, 14 Jan 2003 17:31:03 +0100 From: Hirschmann, Bernhard [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: AW: Transforming a String to valid HTML encoding I wonder if this problem is too easy or too hard - may please somebody comment this? ResponseUtils is only worried about filtering the characters that could cause security problems -- it is not designed to be a general purpose URL encoder. For that, check out the java.net.URLEncoder class. Craig? Thank you very much Craig - original message - I still have the problem to transform a String containing national special characters to the appropriate HTML encoding. i.e.: schön reich -- schouml;n amp reich The class org.apache.struts.util.ResponseUtils only transforms the 4 characters , , and into their html representative. Is there another transformer around? Any hints highly appreciated. Regards, Bernhard -- 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]
AW: AW: AW: Transforming a String to valid HTML encoding
The reason is, that I don't want to use utf-8, but ISO-8859-1 for my html pages. And if a ü appears in the ISO-8859-1 characterset in the browser, What is wrong with utf-8? Nothing is wrong with utf-8. Maybe it would be the best to use it, even though everything is much more complex while handling stuff like the html form entries, which have to be converted. The main reason is that our customer has problems with its application server configuration when I deliver JSPs in utf-8. I don't know what kind of problems, because it is not possible for me to check the configuration - it is a high security area where they run their servers, and there are reasons why I'm not allowed to check it. I just deliver and get the bug reports... So I think I better use the ISO-8859-1 character set with html characters like amp. It may be stupid, but it eases a lot. Regards Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: AW: AW: AW: Transforming a String to valid HTML encoding
Nothing is wrong with utf-8. Maybe it would be the best to use it, even though everything is much more complex while handling stuff like the html form entries, which have to be converted. No, as far as you are using the SetCharacterEncoding filter coming with the example application of Tomcat. I think I have to study this in more detail - it still isn't quite clear for me. What is this SetCharacterEncoding filter doing? Is it only working with Tomcat? (We use WebSphere 4) I also have unicode characters from the DB which have to be displayed correctly. Is this filter good for that? Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Refresh on MSIE, PLEASE HELP!!
Sadly this doesn't solve the problem! Does your browser use a http proxy? Maybe this is the reason. Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: String , html encoding
How can I encode Strings to HTML content. including the special caracters (é, è), because I have bzzarre outpouts. I have the same problem and didn't find a proper solution for it. As far as I understand you have two possibilities: 1.) You use utf-8 as the character set of your JSPs, so the browser will interprete the characters correct. 2.) If you really want to use the HTML characters, you have to use a transformer, which transforms special the characters. I didn't found a transformer for that, so I have written my own. If you are interested in this transformer, just send me a mail. Regards, Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: String , html encoding
Do you really know what you're talking about? -Ursprüngliche Nachricht- Von: Mark Galbreath Gesendet: Mittwoch, 15. Januar 2003 16:32 An: 'Struts Users Mailing List' Betreff: RE: String , html encoding This is really a luzer question, dude. Even negative effort could have given you: http://www.asciitable.com/ Mark -Original Message- From: Ahmed ALAMI Sent: Wednesday, January 15, 2003 7:54 AM How can I encode Strings to HTML content. including the special caracters (é, è), because I have bzzarre outpouts. THX -- 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]
Transforming a String to valid HTML encoding
I still have the problem to transform a String containing national special characters to the appropriate HTML encoding. i.e.: schön reich -- schouml;n amp reich The class org.apache.struts.util.ResponseUtils only transforms the 4 characters , , and into their html representative. Is there another transformer around? Any hints highly appreciated. Regards, Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Design of action classes
Hi Joao, technically it is no problem to use one action for multiple tasks. You can use a request attribute to determine which use case you want to work through. But on the other side it appears cleaner to have a single action for a single use case. In our projects, we try to have separate actions for each use case. But sometimes we also share a action for use cases which are similar, like in your example. Regards, Bernhard -Ursprüngliche Nachricht- Von: João Paulo Batistella [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 14. Januar 2003 14:36 An: [EMAIL PROTECTED] Betreff: Design of action classes Hi. We are deciding about how to use action classes in our project. Is it a problem to let developers use the same action class to handle different operations? Example: The action UpdateUserAction could be used to insert a new user or to update the data of an existing user. Is it a problem? Or it's better to have InsertUserAction and SaveUserAction. They do almost the same thing so I think they could be same. Thanks, Joao Paulo. - Busca Yahoo! O melhor lugar para encontrar tudo o que você procura na Internet -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Transforming a String to valid HTML encoding
I wonder if this problem is too easy or too hard - may please somebody comment this? Craig? Thank you very much - original message - I still have the problem to transform a String containing national special characters to the appropriate HTML encoding. i.e.: schön reich -- schouml;n amp reich The class org.apache.struts.util.ResponseUtils only transforms the 4 characters , , and into their html representative. Is there another transformer around? Any hints highly appreciated. Regards, Bernhard -- 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]
Transforming a String to valid HTML encoding
I still have the problem to transform a String containing national special characters to the appropriate HTML encoding. i.e.: schön reich -- schouml;n amp reich The class org.apache.struts.util.ResponseUtils only transforms the 4 characters , , and into their html representative. But in an internationalized application we have 28 languages with all their special characters to handle. I guess we're not the first to solve this problem, but I can't find a transformer for that. Any hints highly appreciated. Regards, Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
using regexp in input validation
Is there a smooth way to use regular expressions in the input validation? i.e. to allow only [A-Z|a-z|0-9] Regards, Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Transforming a String to valid HTML encoding
Hello! Is there a parser around, which is able to parse a String with special characters (like in the German language), and can transform them into valid html encoding? (like schouml;n for schön) Best regards Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mixed up pages
I still have trouble with mixed up pages.. Sometimes there is output from form beans visible - see the screenshot here: http://www.boeny.de/Bug1.jpg Used is WebSphere - maybe this causes the trouble, I think. Any hints highly appretiated!! Best regards, Bernhard Hirschmann -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: mixed up pages
Posting html code is a little difficult for me, because this only appears very rarely.. But I remember when I once checked the resulting html code, that there suddenly appeared somewhere in the code something like a toString() output from some used beans. Sometimes at the very beginning of the page, sometimes at the middle. In the provided screenshot, you can see the output from a list, which should be displayed in the table below. Also you can see the tiles navigation between it. Very strange. I only can say, that in the JSP nothing is specified, which could produce this output. The problem must be somwhere else I think, maybe at the application server (WS). What to you think? Ever seen such a behavior? -Ursprüngliche Nachricht- Von: Andrew Hill [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 2. Dezember 2002 09:39 An: Struts Users Mailing List Betreff: RE: mixed up pages Might help if you post the JSP code responsible for rendering the page. The resulting html would also help. -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 16:29 To: Struts User Mailing List (E-Mail) Subject: mixed up pages I still have trouble with mixed up pages.. Sometimes there is output from form beans visible - see the screenshot here: http://www.boeny.de/Bug1.jpg Used is WebSphere - maybe this causes the trouble, I think. Any hints highly appretiated!! Best regards, Bernhard Hirschmann -- 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]
AW: Running Struts on Wepshere 4.0
Hey abhishek, we're running it on the same platform which works great. Just make sure, not to use the conventional Xalan an Xerces, but the one comming with WebSphere. So in the Library path of your project, don't add the JARs, but the variable WAS_XALAN and WAS_XERCES. Then the special libraries from the WS-plugin-dir will be used. I also suggest WSAD as the IDE for that platform. I'm pretty satisfied with it. Best regards, Bernhard -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 27. November 2002 12:25 An: [EMAIL PROTECTED] Betreff: Running Struts on Wepshere 4.0 Hi All, We have decided to go ahead with deploying struts framework on Websphere 4.0 so any body u has any idea /resource on it , pls share it with me I am trying to run struts but nt able to invoke logon.do servlet Pls help Thanks in advance abhishek ---Disclaimer The views of the author may not necessarily reflect those of the Company. All liability is excluded to the extent permitted by law for any claims arising as a result of the use of this medium to transmit information by or to IT Solutions (India) Pvt. Ltd. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Disclaimer -- 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]
checking a empty list
Hi group! I wonder if it's possible with a logic tag, to check if a List in a form is empty. This doesn't work, it just checks if the attachmentsList is null: logic:present name=document property=attachmentsList Regards, Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: checking a empty list
This works, great! Thank you! I wonder why this is not documented... at least not in http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html Is there no doc yet for the 1.1-b2? -Ursprüngliche Nachricht- Von: Karr, David [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 27. November 2002 18:25 An: Struts Users Mailing List Betreff: RE: checking a empty list Use logic:empty, not logic:present. -Original Message- From: Hirschmann, Bernhard [mailto:[EMAIL PROTECTED]] Hi group! I wonder if it's possible with a logic tag, to check if a List in a form is empty. This doesn't work, it just checks if the attachmentsList is null: logic:present name=document property=attachmentsList -- 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]
[OT] strange connection problem - 2nd try
Hello struts user! Second try with my problem. Maybe someone has a clue? -Ursprüngliche Nachricht- Von: Hirschmann, Bernhard Gesendet: Freitag, 22. November 2002 13:35 An: '[EMAIL PROTECTED]' Betreff: [OT] strange connection problem Hello! I have a strange problem with a socket write error from time to time with our application, which occures not reproducable, but maybe once or twice a day. In the browser I may see then besides parts of my regular view some toString results of my beans in the form. When I go back in the browser and try it again, in most cases everything works fine. So it really seems to be a something in the socket connection. But I hope I can prevent this somehow... Here is the stack trace when this happens: Error Message: Connection reset by peer: socket write error Error Code: 500 Target Servlet: null Error Stack: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled Code)) at com.ibm.ws.io.Stream.write(Stream.java(Compiled Code)) at com.ibm.ws.io.WriteStream.flush(WriteStream.java(Compiled Code)) at com.ibm.ws.http.ResponseStream.flush(ResponseStream.java(Compiled Code)) at com.ibm.ws.io.WriteStream.flush(WriteStream.java(Compiled Code)) at com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java(Compiled Code)) at com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java(Compiled Code)) at com.ibm.servlet.engine.srt.SRTOutputStream.flush(SRTOutputStream.java(Compil ed Code)) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java(Compiled Code)) at com.ibm.servlet.engine.srt.BufferedWriter.flushChars(BufferedWriter.java(Com piled Code)) at com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java(Co mpiled Code)) at com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java(Co mpiled Code)) at com.ibm.servlet.engine.srt.SRTServletResponse.flushBuffer(SRTServletResponse .java(Compiled Code)) at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServl etResponseProxy.java(Compiled Code)) at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServl etResponseProxy.java(Compiled Code)) at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServl etResponseProxy.java(Compiled Code)) at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java(Compiled Code)) at d_00025cBrowser.fg_jsp_0._jspService(fg_jsp_0.java:241) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:286) We're using WebSphere 4 on Win2K. Any hint highly appreciated! Regards, Bernhard -- 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]
[OT] strange connection problem
Hello! I have a strange problem with a socket write error from time to time with our application, which occures not reproducable, but maybe once or twice a day. In the browser I may see then besides parts of my regular view some toString results of my beans in the form. When I go back in the browser and try it again, in most cases everything works fine. So it really seems to be a something in the socket connection. But I hope I can prevent this somehow... Here is the stack trace when this happens: Error Message: Connection reset by peer: socket write error Error Code: 500 Target Servlet: null Error Stack: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled Code)) at com.ibm.ws.io.Stream.write(Stream.java(Compiled Code)) at com.ibm.ws.io.WriteStream.flush(WriteStream.java(Compiled Code)) at com.ibm.ws.http.ResponseStream.flush(ResponseStream.java(Compiled Code)) at com.ibm.ws.io.WriteStream.flush(WriteStream.java(Compiled Code)) at com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java(Compiled Code)) at com.ibm.servlet.engine.srp.SRPConnection.flush(SRPConnection.java(Compiled Code)) at com.ibm.servlet.engine.srt.SRTOutputStream.flush(SRTOutputStream.java(Compil ed Code)) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java(Compiled Code)) at com.ibm.servlet.engine.srt.BufferedWriter.flushChars(BufferedWriter.java(Com piled Code)) at com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java(Co mpiled Code)) at com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java(Co mpiled Code)) at com.ibm.servlet.engine.srt.SRTServletResponse.flushBuffer(SRTServletResponse .java(Compiled Code)) at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServl etResponseProxy.java(Compiled Code)) at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServl etResponseProxy.java(Compiled Code)) at com.ibm.servlet.engine.webapp.HttpServletResponseProxy.flushBuffer(HttpServl etResponseProxy.java(Compiled Code)) at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java(Compiled Code)) at d_00025cBrowser.fg_jsp_0._jspService(fg_jsp_0.java:241) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:286) We're using WebSphere 4 on Win2K. Any hint highly appreciated! Regards, Bernhard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Application Resources problems
Hey Jim, I'm not sure if this helps, but maybe something is mixed up with your files, when you edit the myApp/Web-inf/classes/org/comp/ApplicationResources.properties You shouldn't use the classes path, but the src path for editing. Usually your IDE will copy the ApplicationResources in the classes path during compilation. Maybe this is the reason for the strange behavior. Regards, Bernhard -Ursprüngliche Nachricht- Von: Jim Collins [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 22. November 2002 13:54 An: Struts Users Mailing List Betreff: Application Resources problems Hi, I am pulling my hair out with this problem. I have my resources file in the following directory: myApp/Web-inf/classes/org/comp/ApplicationResources.properties And in the web.xml file I have the following entry: init-param param-nameapplication/param-name param-valueorg.comp.ApplicationResources/param-value /init-param When I goto my startup jsp page which has a bean:message tag I get the following error: org.apache.jasper.JasperException: Cannot find bean namespace in scope null at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 48) If I change the entry in the web.xml file to: init-param param-nameapplication/param-name param-valueorg.comp.ApplicationResources.properties/param-value /init-param I get a different error message saying: org.apache.jasper.JasperException: Missing message for key app.title I know for a fact that there is a message for this key in the resources file. This problem is driving me crazy any help would be appreciated. Thanks Jim. -- 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]
[OT] AW: Eclipse
There's a menuitem refresh from local on the context menu of package or class. Use this to get changes recognized in Eclipse. Regards, Bernhard -Ursprüngliche Nachricht- Von: edgar [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 22. November 2002 18:01 An: 'Struts Users Mailing List' Betreff: Eclipse Does anyone have the issue where if you are using multiple tools to create a project and Eclipse is one of them, to get Eclipse to recognize files either refactored or created elsewhere. Thanks in advance Edgar 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]
AW: Fetching Data Using Struts!!!
Hey Yadnesh, that's pretty easy. You just keep a List in your form bean, containing the java beans, which keep the data for each line. In the JSP you just iterate over that List, accessing the beans. I'm doing that all the day... Did you take a look in the tutorials? Regards, Bernhard -Ursprüngliche Nachricht- Von: Yadnesh Chonkar [mailto:ychonkar;NEXGENIX.com] Gesendet: Donnerstag, 14. November 2002 16:31 An: Struts Users Mailing List Betreff: Fetching Data Using Struts!!! Though struts is good MVC framework. But guys correct me if i am wrong. The data fetching mechanism works only for simple screens, for complex screens it goes for a toss. eg Consider following screen, where user enter multiple data. EmpId NameGender Married? textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox textbox textbox (2 radio buttons m/f) 1 checkbox Save button Please elaborate as whats the best way to fetch this data using struts!! Yadnesh -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: unicode in struts
HOW do you set the charset? You should do it this way: %@ page contentType=text/html; charset=utf-8 % ...instead of this way: meta http-equiv=Content-Type content=text/html; charset=utf-8/ At least, this is my experience. Websphere on Solaris only with the first variant. Regards, Bernhard -Ursprüngliche Nachricht- Von: Huynh Ngoc Huy [mailto:huyhngoc;yahoo.com] Gesendet: Dienstag, 12. November 2002 09:03 An: Struts Users Mailing List Betreff: Re: unicode in struts Yes, I do. I had set the charset before I did, but it was so. Is there anything else I must set? Thanks Huy --- Gemes Tibor [EMAIL PROTECTED] wrote: 2002. november 12. 02:37 dátummal Huynh Ngoc Huy ezt írtad: Hi all, Does struts tags support unicode? I had stored a unicode-string into a session, but bean:write tag didn't display it correctly. Any help is appreciated! Yes it does. However if you do not set the charset, maybe the browser mess up the encoding. Did you set the content-type correctly in the page-directive? Hth, Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: AW: unicode in struts
Huy, you may provide a code snippet for more details about your problem. Bernhard -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: how to populate nested bean in actionform
Hey Denis, I'm not sure if I got you right, but you surely can access a nested bean in a form. i.e.: html:text name=aForm property=aBean.aData / ...is that understandable? (Do you have a nested taglib?) Regards, Bernhard -Ursprüngliche Nachricht- Von: Denis Wang [mailto:dwang;brandmuscle.com] Gesendet: Dienstag, 12. November 2002 14:20 An: struts Betreff: how to populate nested bean in actionform Hello, Suppose I have ActionForm aForm, which has a private field aBean. aBean is a dumb data hold class with a field aData. I can populate the aData from my backend data resources and write it to JSP as the following: nested:form action='the action related the aForm' nested:nest property='aBean' nested:write property='aData' ... My problem is how to read the aData from JSP and write it to my backend data resources. I tried: nested:form action='the action related the aForm' nested:nest property='aBean' nested:text property='aData' ... The server will throw NullPointerException. I am afraid the struts don't know how to initiate aBean before setProperty(aData). Any help will be highly appreciated! Denis -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: how to populate nested bean in actionform
You should always populate aBean to the form in the action. But you should also populate a empty aBean in the constructor of the form, to avoid a NullPointerException. regards, Bernhard -Ursprüngliche Nachricht- Von: Denis Wang [mailto:dwang;brandmuscle.com] Gesendet: Dienstag, 12. November 2002 14:43 An: Struts Users Mailing List Betreff: RE: how to populate nested bean in actionform Thanks for your reply. I know I can read the filed as you described. What if I want to populate the field? Where should I populate aBean? Should I initiate aBean in the default constructor of aForm? Should I initiate it from Action? I am trying. If I got a solution, I will post the solution. Thanks again for your attention. Denis -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
onchange submit problem
Hello! I use the onchange event handler to submit a form if a value in the select box is changed. However, the value doesn't get updated in the form before the submit occures. The form-bean doesn't get the actual selected value. html:select property=selectedLocation onchange=submit() html:options collection=locations property=code labelProperty=text / /html:select What did I forget? Regards, Bernhard -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: onchange submit problem
Hi Andrew, thanks for your help! The problem was really a inproper use of the form, so the right setter wasn't found. Regards, Bernhard -Ursprüngliche Nachricht- Von: Andrew Hill [mailto:andrew.david.hill;gridnode.com] Gesendet: Montag, 11. November 2002 10:30 An: Struts Users Mailing List Betreff: RE: onchange submit problem Hmm. Thats wierd. The value should be updated before the submit occurs - Ive been using similar code myself without troubles. Is the value submitted in the actual HttpRequest? (This would indicate a problem with your setter method on the form rather than in your jsp). -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
checkbox problem
Hello Struts user! I use a html:checkbox for setting a boolean value. But after submit, the boolean value in the form bean isn't set correctly. Do I have to use a String value for that in my form bean? I tried this, but without success. Regards, Bernhard -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: checkbox problem
Thanks for your comment, but I'm not sure if that's the problem. Here is the scenario: 1.) While populating the form, the value is true. 2.) Then the user disables the checkbox - for setting the value to false. 3.) Submit occurs. 4.) In the action I check the value and I see that it is true. Do I really have to reset the form for such a scenario? Regards, Bernhard -Ursprüngliche Nachricht- Von: James Mitchell [mailto:jmitchtx;telocity.com] Gesendet: Montag, 11. November 2002 14:36 An: Struts Users Mailing List Betreff: RE: checkbox problem You need to set it to false in the reset() method. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens? - Seymour Cray (1925-1996), father of supercomputing -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: checkbox problem
Hi Deepank, I don't use a JavaScript function for this. I use a simple submit button. You missunderstood. It shouldn't be unchecked, if it is true. I didn't write that. But it may sounds a bit confusing what I've written: 4.) In the action I check the value and I see that it is true means: 4.) In the action I INSPECT the value and I see that it is true ;-) -Ursprüngliche Nachricht- Von: Saini, Deepank [mailto:deepank.saini;cgey.com] Gesendet: Montag, 11. November 2002 14:46 An: 'Struts Users Mailing List' Betreff: RE: checkbox problem well i am not sure why it should show true if it has been unchecked, but one last shot, if u r calling a javascript function on the submit, the problem could well be in the javascript function. Bye the way do u have a submit button or r u caling a javascript function onchange of the checkbox? -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: AW: checkbox problem
Hey Tib, if I get you right, then the boolean value in the form will NOT be set to false, if I uncheck the cb and hit submit? Is that right? -Ursprüngliche Nachricht- Von: Gemes Tibor [mailto:gemes;regens.hu] Gesendet: Montag, 11. November 2002 14:58 An: Struts Users Mailing List Betreff: Re: AW: checkbox problem 2002. november 11. 14:42 dátummal Hirschmann, Bernhard ezt írtad: Thanks for your comment, but I'm not sure if that's the problem. Here is the scenario: 1.) While populating the form, the value is true. 2.) Then the user disables the checkbox - for setting the value to false. 3.) Submit occurs. 4.) In the action I check the value and I see that it is true. Do I really have to reset the form for such a scenario? You store your ActionForm in the session I guess. The form has the property set true. On submit the form does not receive any value for the very property as there is no such request parameter since the cb was not checked. So the property stays unchanged (ie checked). What would uncheck it then? Maybe the reset(). Hth Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
AW: AW: AW: checkbox problem
Ok, I think I got it now... Thank you for your patience! ;-) One final question: do I have to call form.reset() manually, or is this done automatically? Regards, Bernhard -Ursprüngliche Nachricht- Von: Gemes Tibor [mailto:gemes;regens.hu] Gesendet: Montag, 11. November 2002 15:10 An: Struts Users Mailing List Betreff: Re: AW: AW: checkbox problem 2002. november 11. 15:01 dátummal Hirschmann, Bernhard ezt írtad: Hey Tib, if I get you right, then the boolean value in the form will NOT be set to false, if I uncheck the cb and hit submit? Is that right? Yes. The cb sends the parameter iff it is checked. If the form is stored in the session AND the form reset() does not set the property to false, the property will stay true for ever. Tib -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org