RE: application resources and escape characters
In response to my own post: I apologize for being stupid. I did not realize that the properties editor of my IDE (netbeans) automatically converted escape characters as well as other special characters... So every \n I typed became a \\n :( No wonder it didn't work. Cheers, Jan -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Saturday, July 24, 2004 7:20 PM To: 'Struts Users Mailing List' Subject: application resources and escape characters Hi list, I extract language specific messages from the struts application resources within my applications logic to generate the subject and body of auto generated emails. I used to do this via string constants but switched over to using the resources. Everything works fine except the line breaks I would like to have in the text. I generate only plain text emails and used to have something like the following to insert line breaks whenever I needed them: String body = This is a test \n\n new line below...; Resulting in the following email body: mail body This is a test new line below... /mail body That worked fine as long as I used the String constants (as in the example above) but ceased to do so after switching to the org.apache.struts.util.PropertyMessageResources variant. My application resources contain the same string as before but the email message then looks like this: mail body This is a test \n\n new line below... /mail body Any ideas how this can happen, or possibly a solution? I can not fall back to sending html mails unfortunately... TIA, Jan - 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]
RE: HELP Re: Mail Delivery Failure
Yes, please! -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Sunday, July 25, 2004 8:37 PM To: Struts Users Mailing List Subject: HELP Re: Mail Delivery Failure I've gotten about fifty of these in the last couple of weeks. Can someone remove this person from the list? Thanks, Erik [EMAIL PROTECTED] wrote: Delivery Failure Report. The following message was incorrectly addressed. Recipient: [EMAIL PROTECTED] is unrecognised. Please contact [EMAIL PROTECTED] for further assistance --- Received: from 127.0.0.1 by firewall (VPOP3) with POP3; Sun, 25 Jul 2004 13:48:24 +0530 Received: from ([209.237.227.199]) for [EMAIL PROTECTED] with MailEnable Catch-All Filter; Sat, 24 Jul 2004 05:03:10 +0530 Received: from mail.apache.org ([209.237.227.199]) by rahulgoel.com with MailEnable ESMTP; Sat, 24 Jul 2004 05:03:09 +0530 Received: (qmail 69741 invoked by uid 500); 23 Jul 2004 23:32:53 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Struts Users Mailing List user.struts.apache.org Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 69728 invoked by uid 99); 23 Jul 2004 23:32:53 - X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received: from [207.69.200.148] (HELO granger.mail.mindspring.net) (207.69.200.148) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 23 Jul 2004 16:32:50 -0700 Received: from sdn-ap-003scfairp0408.dialsprint.net ([63.184.209.154] helo=mindspring.com) by granger.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1Bo9Wy-0006XJ-00 for [EMAIL PROTECTED]; Fri, 23 Jul 2004 19:32:49 -0400 Message-ID: [EMAIL PROTECTED] Date: Fri, 23 Jul 2004 19:31:46 -0400 From: Erik Weber [EMAIL PROTECTED] User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: 1.21 References: [EMAIL PROTECTED] [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked - 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]
application resources and escape characters
Hi list, I extract language specific messages from the struts application resources within my applications logic to generate the subject and body of auto generated emails. I used to do this via string constants but switched over to using the resources. Everything works fine except the line breaks I would like to have in the text. I generate only plain text emails and used to have something like the following to insert line breaks whenever I needed them: String body = This is a test \n\n new line below...; Resulting in the following email body: mail body This is a test new line below... /mail body That worked fine as long as I used the String constants (as in the example above) but ceased to do so after switching to the org.apache.struts.util.PropertyMessageResources variant. My application resources contain the same string as before but the email message then looks like this: mail body This is a test \n\n new line below... /mail body Any ideas how this can happen, or possibly a solution? I can not fall back to sending html mails unfortunately... TIA, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Best practice for background service
Thanks to all for their answers, I think I will look into doing this with java.util.Timer TimerTask for now and keep Spring and Quartz in mind to be looked at later. I now that it usually takes quite a bit of time to get to terms with a new framework (for me that is, of course) and I just can't spare the time right now. Cheers thanks again. Jan -Original Message- From: Daniel Perry [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 3:48 PM To: Struts Users Mailing List Subject: RE: [OT] Best practice for background service Quartz is very easy to use. No need for thread programming. But Job classes are created as and when they are needed (so no initialisation and shared object). Create a struts plug-in which initialises quartz, and sets up the jobs (very little code needed). Daniel. -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow Sent: 15 July 2004 14:29 To: [EMAIL PROTECTED] Subject: Re: [OT] Best practice for background service Jan, Bryan's recommendation of Spring and Quartz sounds good though I have not had a chance to work with these yet. If you want to roll your own I suggest you look at the java.util.Timer and java.util.TimerTask objects -- they work well for these type of services. See http://java.sun.com/j2se/1.4.2/docs/api/java/util/TimerTask.html. Jan Behrens wrote: Hi list, I am coding an app where I rely on a background service to check regularly for new mail. I want to instantiate my service component (the one checking for mail) when the context is loaded and have it running in a background thread. I have done only very limited coding with threads so far :( What I plan to do is to create a controller servlet that is loaded on startup and that creates instances of all my services. All services extend Thread and are started by invoking the run() method when the controller servlet starts. Would that work? How would I then set the intervall on which my mail service checks for new mail? Could this be done using sleep(interval)? I wonder whether anyone has tips on this for a newbie or if there is such a thing as a best practice on this. TIA, Jan - 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]
RE: Help Require !!!!!!!!!!!
Buland, you might have to rewrite your mail to get an answer. Subjects like Help Require !!! usually ensure that no one ever bothers reading your post. Please keep in mind that everybody on this list answers voluntarily in his/her spare time. Please do not take offence and think of this mail as a little advice on the unspoken rules of every mailing list. (and life in general :) Cheers, Jan -Original Message- From: Buland Altaf [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 1:26 PM To: [EMAIL PROTECTED] Subject: Help Require !!! Hi Theres, I am stucking on some issues and those are:- ___ Problem 1 __ 1. I am facing later mentioned problem of master-detail from on session time out.I am using DynaActionForms with array properties as form-bean property. form-property name=vefiryOrMakeBrokerDetail type=com.abamco.clientVerification.VerifyOrMakeBrokerPayments[]/ and i have set session as its action scope. But 2. when my application restarts and i Re-fresh the masteer-detail form it gives me the following error: - Error Start - HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: BeanUtils.populate org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1190) g.apache.struts.action.RequestProcessor.processPopulate(Reques tProcessor.j ava:821) g.apache.struts.action.RequestProcessor.process(RequestProcess or.java:254) g.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause java.lang.ArrayIndexOutOfBoundsException java.lang.reflect.Array.get(Native Method) org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:296) g.apache.commons.beanutils.PropertyUtils.getIndexedProperty(Pr opertyUtils. java:474) g.apache.commons.beanutils.PropertyUtils.getIndexedProperty(Pr opertyUtils. java:428) g.apache.commons.beanutils.PropertyUtils.getNestedProperty(Pro pertyUtils.j ava:770) g.apache.commons.beanutils.PropertyUtils.getProperty(PropertyU tils.java:80 1) g.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881) org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1188) g.apache.struts.action.RequestProcessor.processPopulate(Reques tProcessor.j ava:821) g.apache.struts.action.RequestProcessor.process(RequestProcess or.java:254) g.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) note The full stack trace of the root cause is available in the Tomcat logs. Apache Tomcat/5.0.16 - Error End - I have my own created reset button in which i nullify all teh feilds. But, tis method is now a callback method. I do't override the reset(ActionMapping,HttServletRequest) method. All the form properties exactly matching with their corresponding dynaactionfrom properties and this screen is working properly. It only behave abnormally when my web app context restarts or tomcat restarts as in that case session will lost. __ Problem 2 _ 2. Also, One more problem.I have tried to fix it but as a new commer I have now stucked. Actually, I have a bean which i want to use in jsp with iterate tag. and i have like this:- logic:present name=individualAccountRegForm property=client logic:iterate id=client name=individualAccountRegForm property=client html:hidden name=client indexed=true property=status/ tr td align=lefthtml:text name=client indexed=true property=clientId//td td align=lefthtml:radio name=client property=primaryClient idName=client value=primaryClient indexed=true//td /tr /logic:iterate /logic:present I mean to say that if i have indexed properties and i want to check some equal operator on it then there is no indexed attribute in logic:equal or any other comparison tag. even then it picks the indexed property value properly. How this happens.Is thie any auto build flexibility in those tags top check the commign property that either iot is a normal or indexed property. __ Problem 3 I have the radio buttons, but they are not behaving properly. I want to use radio buttons with indexed
RE: Access to message properties from within application
-Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 6:46 PM To: Struts Users Mailing List Subject: RE: Access to message properties from within application -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 9:44 AM To: 'Struts Users Mailing List' Subject: RE: Access to message properties from within application Thanks Jim, RTFM I did (yoda would say ;) What I want to do though, is access the localized messages from within my application code - not from within my JSP's or Servlets but out of my logic. I could not find anything on this in the manual yet. Am I beeing completely ignorant not seeing the obvious, or is this not that easy? Jim Barrows wrote: Ah in that case. you are reading the wrong FM, you probably want the J2SE documentation, and are looking for MessageFormat. I assume that you have found and don't want to use org.apache.struts.util.MessageResources for this. I found org.apache.struts.util.MessageResources now ;) and am trying to get it to do what I want. Thanks for the hint. Cheers, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Best practice for background service
Hi list, I am coding an app where I rely on a background service to check regularly for new mail. I want to instantiate my service component (the one checking for mail) when the context is loaded and have it running in a background thread. I have done only very limited coding with threads so far :( What I plan to do is to create a controller servlet that is loaded on startup and that creates instances of all my services. All services extend Thread and are started by invoking the run() method when the controller servlet starts. Would that work? How would I then set the intervall on which my mail service checks for new mail? Could this be done using sleep(interval)? I wonder whether anyone has tips on this for a newbie or if there is such a thing as a best practice on this. TIA, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Access to message properties from within application
Hi List, is there a way to access the language specific messages stored in my resource file from within my logics java code? I understand that I will probably need to specify the locale that I need - that should not be the problem though. TIA, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Access to message properties from within application
Anyone? If the solution is to obvious, give me a hint. Thanks, Jan -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:14 AM To: Struts Users Mailing List Subject: Access to message properties from within application Hi List, is there a way to access the language specific messages stored in my resource file from within my logics java code? I understand that I will probably need to specify the locale that I need - that should not be the problem though. TIA, Jan - 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]
RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request
Hi Adam, I am new to Struts so this is more of a shot in the dark but anyway... Could it be that the problem is that you only have one global forward pointing to your login? So from a controll flow point of view wouldn't that mean that you can only access login.do as an entry to your system? Have you tried adding a global forward for your help.do as well? Cheers, Jan -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 7:31 PM To: 'Struts Users Mailing List' Subject: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Folks, I have a strange problem that is confusing me: I have a simple login page with a Help button defined like this: html:link href=javascript:displayHelp('loginPage')%img border=0 height=28 name=Image10 src=images/b_help_1.gif width=32/html:link When pressed, the JavaScript displayHelp() method below is called: function displayHelp(context) { [snip] var url = html:rewrite page='/help.do' / url += ?context= + context; [snip] window.open(url, HelpWindow, windowOptions); } This page is the first page that the user sees, having been redirected from index.jsp like this: logic:redirect forward=login/ The problem is that before a user logs in, pressing the Help button results in the error HTTP Status 500 - No Context configured to process this request being displayed. However after a user logs in (and presses the browser back button to return to the login page) the link works fine and the help is displayed OK. Its as if the act of logging in sets up a context within which the actions work The relevant bits of my struts-config looks like this: global-forwards forward name=login path=/pages/Login.jsp / /global-forwards action-mappings action input=/pages/Login.jsp name=loginActionForm path=/login scope=request type=com.expensys.expensyswt.struts.action.Login validate=true forward name=home path=/pages/Home.jsp / /action action path=/help scope=request type=com.expensys.expensyswt.struts.action.DisplayHelp validate=false forward name=loginHelp path=/pages/help/LoginHelp.jsp / forward name=displayHelpTopics path=/pages/help/HelpTopics.jsp / /action /action-mappings Does anyone know what is going on here? Why does the /help.do action URL work after the user has logged in but not before? Is it to do with the fact that no action has been called before the log in takes place? TIA - Adam - 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]
RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request
Hi Adam, I thought that it might be that - as you are not in any action before you actually login - you need to define a global forward for Struts to associate an action (e.g. a forward) with it. After you have logged in, you are sort of within the controll-flow and therefore your defined action will be found but before that, you need a global action to enter the controll-flow... Just out of curiosity, have you tried it? Jan -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 12:31 PM To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Thanks Jan, You may be right but I am not sure how this would help The login global forward redirects the user to a Login.jsp page. From Login.jsp 2 actions can be called: login.do and help.do. login.do validates the user and logs them in. help.do displays help. The weirdness is that login.do always works. help.do does not *until* the user has logged in once. I would have thought that if Tomcat was setup wrong then neither action would work, but I am grasping at straws :-) Adam -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: 30 June 2004 10:11 To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Hi Adam, I am new to Struts so this is more of a shot in the dark but anyway... Could it be that the problem is that you only have one global forward pointing to your login? So from a controll flow point of view wouldn't that mean that you can only access login.do as an entry to your system? Have you tried adding a global forward for your help.do as well? Cheers, Jan -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 7:31 PM To: 'Struts Users Mailing List' Subject: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Folks, I have a strange problem that is confusing me: I have a simple login page with a Help button defined like this: html:link href=javascript:displayHelp('loginPage')%img border=0 height=28 name=Image10 src=images/b_help_1.gif width=32/html:link When pressed, the JavaScript displayHelp() method below is called: function displayHelp(context) { [snip] var url = html:rewrite page='/help.do' / url += ?context= + context; [snip] window.open(url, HelpWindow, windowOptions); } This page is the first page that the user sees, having been redirected from index.jsp like this: logic:redirect forward=login/ The problem is that before a user logs in, pressing the Help button results in the error HTTP Status 500 - No Context configured to process this request being displayed. However after a user logs in (and presses the browser back button to return to the login page) the link works fine and the help is displayed OK. Its as if the act of logging in sets up a context within which the actions work The relevant bits of my struts-config looks like this: global-forwards forward name=login path=/pages/Login.jsp / /global-forwards action-mappings action input=/pages/Login.jsp name=loginActionForm path=/login scope=request type=com.expensys.expensyswt.struts.action.Login validate=true forward name=home path=/pages/Home.jsp / /action action path=/help scope=request type=com.expensys.expensyswt.struts.action.DisplayHelp validate=false forward name=loginHelp path=/pages/help/LoginHelp.jsp / forward name=displayHelpTopics path=/pages/help/HelpTopics.jsp / /action /action-mappings Does anyone know what is going on here? Why does the /help.do action URL work after the user has logged in but not before? Is it to do with the fact that no action has been called before the log in takes place? TIA - Adam - 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]
RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request
Hi Adam, sorry to hear that :( Why don't you include those two jsp's and your struts-config in your next mail. I am at the moment working on an Struts webapp (my first ;) and could easily drop them in there and see whether my Tomcat generates them same error or not? Might help in finding out whether it is a Struts problem or somehow linked to your setup. Jan -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 2:04 PM To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Jan, Thanks for your help. I just tried this and the results are the same. Hovering the mouse over the link makes http:/localhost:8080/ExpenSysWT/help.do appear in the browser status field. That's the correct path to the action, but the 500 error still occurs. Adam -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: 30 June 2004 12:57 To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Yes, I understand (I think!). How do I define a global action? Is it a global forward with the path set an action? e.g. global-forwards forward name=help path=/help.do / ... /global-forwards How would I call that from within a JSP? Use logic:redirect? Thanks - Adam -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: 30 June 2004 11:49 To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Hi Adam, I thought that it might be that - as you are not in any action before you actually login - you need to define a global forward for Struts to associate an action (e.g. a forward) with it. After you have logged in, you are sort of within the controll-flow and therefore your defined action will be found but before that, you need a global action to enter the controll-flow... Just out of curiosity, have you tried it? Jan -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 12:31 PM To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Thanks Jan, You may be right but I am not sure how this would help The login global forward redirects the user to a Login.jsp page. From Login.jsp 2 actions can be called: login.do and help.do. login.do validates the user and logs them in. help.do displays help. The weirdness is that login.do always works. help.do does not *until* the user has logged in once. I would have thought that if Tomcat was setup wrong then neither action would work, but I am grasping at straws :-) Adam -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: 30 June 2004 10:11 To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Hi Adam, I am new to Struts so this is more of a shot in the dark but anyway... Could it be that the problem is that you only have one global forward pointing to your login? So from a controll flow point of view wouldn't that mean that you can only access login.do as an entry to your system? Have you tried adding a global forward for your help.do as well? Cheers, Jan -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 7:31 PM To: 'Struts Users Mailing List' Subject: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Folks, I have a strange problem that is confusing me: I have a simple login page with a Help button defined like this: html:link href=javascript:displayHelp('loginPage')%img border=0 height=28 name=Image10 src=images/b_help_1.gif width=32/html:link When pressed, the JavaScript displayHelp() method below is called: function displayHelp(context) { [snip] var url = html:rewrite page='/help.do' / url += ?context= + context; [snip] window.open(url, HelpWindow, windowOptions); } This page is the first page that the user sees, having been redirected from index.jsp like this: logic:redirect forward=login/ The problem is that before a user logs in, pressing the Help button results in the error HTTP Status 500 - No Context configured to process this request being displayed. However after a user logs in (and presses the browser back button to return to the login page) the link works fine and the help is displayed OK. Its as if the act of logging in sets up a context within which the actions work The relevant bits of my struts-config looks like this: global-forwards forward name=login path=/pages/Login.jsp / /global-forwards action-mappings action
RE: Newbie question re. forms in combination with tiles
You are right Rick ;) Those are my favourite problems... they just disappear Cheers, Jan -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 6:48 PM To: Struts Users Mailing List Subject: Re: Newbie question re. forms in combination with tiles Jan Behrens wrote: please ignore, solved this one myself ;) he he did you solve it half way into typing up the message:) You never really asked a question:) -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 12:58 PM To: Struts Users Mailing List Subject: Newbie question re. forms in combination with tiles Hi List, I am quite new to Struts and hit a bit of a wall right now. Here is what I am doing: I am using tiles to manage the layout of my webapp - it consists basically of a table that defines something like this: --- ||| ||| ||| ||| ||| ||| - 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] -- Rick - 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]
Newbie question re. forms in combination with tiles
Hi List, I am quite new to Struts and hit a bit of a wall right now. Here is what I am doing: I am using tiles to manage the layout of my webapp - it consists basically of a table that defines something like this: --- ||| ||| ||| ||| ||| ||| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question re. forms in combination with tiles
please ignore, solved this one myself ;) -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 12:58 PM To: Struts Users Mailing List Subject: Newbie question re. forms in combination with tiles Hi List, I am quite new to Struts and hit a bit of a wall right now. Here is what I am doing: I am using tiles to manage the layout of my webapp - it consists basically of a table that defines something like this: --- ||| ||| ||| ||| ||| ||| - 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]
Newbie question re. CSS and Struts
Hi List, I wonder what would be a best practice for formating output when using Struts. Is there such a thing as a struts.css that gets included by default and might even contain elements for each / some tags out of the tld's? TIA Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question re. CSS and Struts
Thanks Matthias, looks like a powerfull tool for formatting tables, on first glance it seemed a bit of an overkill for what I need to do though. I wonder, what the general approach for this is? I mean, do many people use CSS in combination with Struts or do you normally attache something like font bla... to each property in your message property file, or... TIA Jan -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 2:19 PM To: 'Struts Users Mailing List' Subject: RE: Newbie question re. CSS and Struts Jan, take a look at http://displaytag.sf.net that taglib builds nice html-tables you can you it with struts. Cheers, -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 2:16 PM To: 'Struts Users Mailing List' Subject: Newbie question re. CSS and Struts Hi List, I wonder what would be a best practice for formating output when using Struts. Is there such a thing as a struts.css that gets included by default and might even contain elements for each / some tags out of the tld's? TIA Jan - 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]