RE: Struts Action in Welcome File List
I got this problem sometime back.. But apparently it was a problem with one of the html tags- it wasn't properly closed. To detect it what I did was to Get a view Source on the blank page. Saved it as a .XML file. Opened the XML file in the browser. It showed exactly where the tag wasn't closed.. Swaroop -Original Message- From: message message [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:07 AM To: [EMAIL PROTECTED] Subject: Re: Struts Action in Welcome File List Actually this blank page phenomenon happend to me a long time ago. I remember taking out the line content type. That was the only change I made and it worked. From: Jon Wynacht [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts Action in Welcome File List Date: Tue, 29 Jul 2003 22:21:25 -0700 Didn't work for me. I'm stumped ;-( Jon On Tuesday, July 29, 2003, at 09:55 PM, Dan Tran wrote: This works for me %@ page language=java contentType=text/html;charset=utf-8 % % response.sendRedirect(./PMTAction.do); % -D - Original Message - From: Jon Wynacht [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - 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 :rendering hidden fields
How do you render an input hidden field inside a logic:iterate tag ..?? Actually here is what my code looks like : logic:iterate id=mybean name=formbean property=collectionofmybeans bean:write name=mybean property=aPropertyOfmybean -- Here I want to put my hidden field like this--- html:hidden property=thishiddenfieldname value=???(what should I put here) /logic:iterate I want the value of hidden field as another property of bean mybean(which is used in bean:write tag) suppose anotherPropertyofmybean .What to do? Thansk, Jitesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie :rendering hidden fields
hi, logic:iterate id="mybean" name="formbean" property="collectionofmybeans"bean:write name="mybean" property="aPropertyOfmybean" bean:define id="var"name="mybean" property="aPropertyOfmybean"html:hidden property="thishiddenfieldname" value="%= var %" / /logic:iterate hope this helps --nagi ---Original Message--- From: Struts Users Mailing List Date: Wednesday, July 30, 2003 12:10:58 PM To: Struts Users Mailing List Subject: Newbie :rendering hidden fields How do you render an input hidden field inside a logic:iterate tag ..??Actually here is what my code looks like :logic:iterate id="mybean" name="formbean" property="collectionofmybeans"bean:write name="mybean" property="aPropertyOfmybean"-- Here I want to put my hidden field like this---html:hidden property="thishiddenfieldname" value=???(what should I puthere)/logic:iterateI want the value of hidden field as another property of bean "mybean"(whichis used in bean:write tag) suppose "anotherPropertyofmybean" .What to do?Thansk,Jitesh-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]. IncrediMail - Email has finally evolved - Click Here
arrayList size
Hi, I am using an arrayList (list1) inside the form bean. How do I check the size of the list (using logic:equal) in the jsp, without creating any other varibale in the form bean (to store the size)? Thanks, Pramod This electronic mail message is intended solely for the named recipients and may contain confidential and proprietary business information of eFunds Corporation and all its subsidiaries. If you are not a named recipient, please notify the sender immediately. You may not disclose the contents to any other person; use this electronic mail message or its contents for any other purpose; or further store or copy its contents in any medium. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: arrayList size
Use this : bean:size id=size name=myFormBean property=theArrayList / logic:equal name=size value=... ... /logic:equal Nico. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:39 AM Subject: arrayList size Hi, I am using an arrayList (list1) inside the form bean. How do I check the size of the list (using logic:equal) in the jsp, without creating any other varibale in the form bean (to store the size)? Thanks, Pramod This electronic mail message is intended solely for the named recipients and may contain confidential and proprietary business information of eFunds Corporation and all its subsidiaries. If you are not a named recipient, please notify the sender immediately. You may not disclose the contents to any other person; use this electronic mail message or its contents for any other purpose; or further store or copy its contents in any medium. - 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: arrayList size
Thank you very much!! Konstadinis Euaggelos [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] rodyn.com cc: Subject: Re: arrayList size 07/30/2003 01:06 PM Please respond to Struts Users Mailing List From Struts in Action , bean:size id =list1size name =list1 logic:equal name=list1size value=0 Do everything you want here. /logic:equal Vangos. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:39 AM Subject: arrayList size Hi, I am using an arrayList (list1) inside the form bean. How do I check the size of the list (using logic:equal) in the jsp, without creating any other varibale in the form bean (to store the size)? Thanks, Pramod This electronic mail message is intended solely for the named recipients and may contain confidential and proprietary business information of eFunds Corporation and all its subsidiaries. If you are not a named recipient, please notify the sender immediately. You may not disclose the contents to any other person; use this electronic mail message or its contents for any other purpose; or further store or copy its contents in any medium. - 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] This electronic mail message is intended solely for the named recipients and may contain confidential and proprietary business information of eFunds Corporation and all its subsidiaries. If you are not a named recipient, please notify the sender immediately. You may not disclose the contents to any other person; use this electronic mail message or its contents for any other purpose; or further store or copy its contents in any medium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: arrayList size
Thank you !! It is working now! Nicolas De Loof To: Struts Users Mailing List [EMAIL PROTECTED] nicolas.deloof cc: @cgey.comSubject: Re: arrayList size 07/30/2003 01:05 PM Please respond to Struts Users Mailing List Use this : bean:size id=size name=myFormBean property=theArrayList / logic:equal name=size value=... ... /logic:equal Nico. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:39 AM Subject: arrayList size Hi, I am using an arrayList (list1) inside the form bean. How do I check the size of the list (using logic:equal) in the jsp, without creating any other varibale in the form bean (to store the size)? Thanks, Pramod This electronic mail message is intended solely for the named recipients and may contain confidential and proprietary business information of eFunds Corporation and all its subsidiaries. If you are not a named recipient, please notify the sender immediately. You may not disclose the contents to any other person; use this electronic mail message or its contents for any other purpose; or further store or copy its contents in any medium. - 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] This electronic mail message is intended solely for the named recipients and may contain confidential and proprietary business information of eFunds Corporation and all its subsidiaries. If you are not a named recipient, please notify the sender immediately. You may not disclose the contents to any other person; use this electronic mail message or its contents for any other purpose; or further store or copy its contents in any medium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to compile
The modified in the future errors might be due to a change in your system's clock or having the wrong time or wrong timezone offset in your system settings. It looks like there might be other problems, but bad modification times on files can definitely mess up a build so I would fix that first. These things might help: 1. Make sure your system time is set correctly (to the actual current time). Additionally, you may need to set your timezone offset, or at least make sure that it is set correctly. 2. Run 'ant clean' and try the build again. If you are still getting modified in the future errors, you might want to delete your project directory (assuming you don't have local changes that haven't yet been committed) and check everything out again. The build might work after that. If that doesn't work, your system settings are probably still messed up. -Max - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 7:26 PM Subject: Fw: Unable to compile I am sorry for posting this question second time on this list. Earlier I posted this question before I subscribed to the list. So I am thinking that I may have missed if any one replied to this email. Now I am subscribed to the list. Thanks for help! - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:43 PM Subject: Unable to compile Hi , I have recently downloaded the struts source distribution from CVS using anonymous login. I have also downloaded all the required jar files for the building the Struts source. I have modified the sample build.properties file to point to right locations for the required jar files. I am using Eclipse 2.1 and in built Ant plugin to build. I am getting following errors when I try to build. What am I missing? Thanks a lot for the help! prepare.library: [copy] Warning: struts-config_1_2.dtd modified in the future. [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library\classes\org\apache \struts\resources [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library compile.library: [javac] Warning: org\apache\struts\action\Action.java modified in the future. [javac] Warning: org\apache\struts\action\ActionMessage.java modified in the future. [javac] Warning: org\apache\struts\action\ActionResources.properties modified in the future. [javac] Warning: org\apache\struts\action\ActionServlet.java modified in the future. [javac] Warning: org\apache\struts\action\ActionServletWrapper.java modified in the future. [javac] Warning: org\apache\struts\action\ExceptionHandler.java modified in the future. [javac] Warning: org\apache\struts\action\RequestProcessor.java modified in the future. [javac] Warning: org\apache\struts\actions\DispatchAction.java modified in the future. [javac] Warning: org\apache\struts\actions\ForwardAction.java modified in the future. [javac] Warning: org\apache\struts\actions\IncludeAction.java modified in the future. [javac] Warning: org\apache\struts\actions\LocalStrings.properties modified in the future. [javac] Warning: org\apache\struts\actions\LookupDispatchAction.java modified in the future. [javac] Warning: org\apache\struts\actions\SwitchAction.java modified in the future. [javac] Warning: org\apache\struts\config\ActionConfig.java modified in the future. [javac] Warning: org\apache\struts\config\ConfigHelper.java modified in the future. [javac] Warning: org\apache\struts\config\ConfigHelperInterface.java modified in the future. [javac] Warning: org\apache\struts\config\ControllerConfig.java modified in the future. [javac] Warning: org\apache\struts\config\impl\ModuleConfigImpl.java modified in the future. [javac] Warning: org\apache\struts\config\ModuleConfigFactory.java modified in the future. [javac] Warning: org\apache\struts\Globals.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\CookieTag.java modified in the future.
Ready-made Struts components?
Hello, Does anyone know from where to look for ready-made Struts component packages? I haven't particular need, I am interested about all kind of components, like menuing system, tree component etc. Open source project or commercial product, no matter. I have done some intensive searching, but failed to found any. Thanks Jussi Koiranen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with redisplay of form values when issuing error messages
Hi All, I am currently using the Struts MVC2 framework to develop a wizard application. Upon reading the literature in regards to how Struts works, I noticed that my application will does not re-display form values entered by the user if errors are issued. Is it possible to re-display form values from an ActionForm if the validate method returns ActionErrors. If so, how do you achieve this? Do you need to store anything in a session object? Is it possible to re-display form values from an Action class if we return ActionErrors. Cheers Rodney
Struts with JRun4
Hi, Has anybody successfully deployed struts with JRun4? Are there any documents? Let me know. Regards, Samanth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with redisplay of form values when issuing error messages
it WILL redisplay the form with filled values. say, you submit a filled form, some data was wrong, the same form will be displayed WITH filled-in values. navjot |-Original Message- |From: Rodney Paul [mailto:[EMAIL PROTECTED] |Sent: Wednesday, July 30, 2003 2:09 PM |To: Struts Users Mailing List (E-mail) |Subject: Problem with redisplay of form values when issuing error |messages | | |Hi All, | |I am currently using the Struts MVC2 framework to develop a wizard |application. |Upon reading the literature in regards to how Struts works, I |noticed that my application |will does not re-display form values entered by the user if errors |are issued. | |Is it possible to re-display form values from an ActionForm if the |validate method returns |ActionErrors. If so, how do you achieve this? Do you need to store |anything in a session object? | |Is it possible to re-display form values from an Action class if |we return ActionErrors. | | |Cheers |Rodney | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts with JRun4
Hey there is nothing diffuclt in struts with Jrun -Original Message- From: Samanth Athrey [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:13 PM To: [EMAIL PROTECTED] Subject: Struts with JRun4 Hi, Has anybody successfully deployed struts with JRun4? Are there any documents? Let me know. Regards, Samanth - 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: Problem with redisplay of form values when issuing error messages
Hi Navjot, In my application this does not happen. I have tried many things to make it work, but simply it does not work. I dont know why this is the case, as I am using the standard Struts framework. I am using however a special Action class known as LookupDispatchAction. Cheers Rodney -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, 30 July 2003 4:42 PM To: Struts Users Mailing List Subject: RE: Problem with redisplay of form values when issuing error messages it WILL redisplay the form with filled values. say, you submit a filled form, some data was wrong, the same form will be displayed WITH filled-in values. navjot |-Original Message- |From: Rodney Paul [mailto:[EMAIL PROTECTED] |Sent: Wednesday, July 30, 2003 2:09 PM |To: Struts Users Mailing List (E-mail) |Subject: Problem with redisplay of form values when issuing error |messages | | |Hi All, | |I am currently using the Struts MVC2 framework to develop a wizard |application. |Upon reading the literature in regards to how Struts works, I |noticed that my application |will does not re-display form values entered by the user if errors |are issued. | |Is it possible to re-display form values from an ActionForm if the |validate method returns |ActionErrors. If so, how do you achieve this? Do you need to store |anything in a session object? | |Is it possible to re-display form values from an Action class if |we return ActionErrors. | | |Cheers |Rodney | - 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: Struts 1.1 and Tiles
I feel you need to specify the tiles processor in the struts-config. Please add the following line in your struts-config.xml file controller processorClass = org.apache.struts.tiles.TilesRequestProcessor/ Siva Oliver Reflé wrote: Hi fellows, At the moment I am working on tiles. But I have a big problem to get this stuff running. It seems that the Tiles plugin is not taking the forward from the Action . Below you find my config: struts-config.xml (Action Mapping Plugin): action-mappings action type=de.refle.TestAction path=/test forward name=success path=.view.peniguins/ /action /action-mappings plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ /plug-in tiles-defs.xml: tiles-definitions definition name=.basic.layout path=/jsp/basicLayout.jsp put name=title value=Default Title/ put name=header value=/jsp/header.jsp/ put name=menu value=/jsp/menu.jsp/ put name=content value=/jsp/defaultContentPage.jsp/ put name=footer value=/jsp/footer.jsp/ /definition definition name=.view.pengiuns extends=.basic.layout put name=title value=Welcome to the Store/ put name=content value=/jsp/viewPinguins.jsp/ /definition /tiles-definitions basicLayout.jsp: %@ taglib uri=http://jakarta.apache.org/struts/struts-tiles.tld; prefix=tiles % html headtitletiles:getAsString name=title//title/head body tiles:get name=header/br/ tiles:get name=menu/tiles:get name=content/br/ tiles:get name=footer/br/ /body /html viewPinguins.jsp: contains only a simple text nothing else Action: public class TestAction extends Action{ public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws java.lang.Exception { System.out.println(Now in Action); return actionMapping.findForward(success); } } When i call now the Action with http://localhost:8080/do/test i go Now in Action printed and then i get a page not found error. HTTP ERROR: 404 /tiles/.view.penguins Not Found RequestURI=/tiles/do/test Maybe you have an idea ? Thx in advance Oliver Reflé Software Architekt _ jaron.DIRECT GmbH Performance Marketing Solutions Hanauer Landstraße 196a D-60314 Frankfurt am Main Fon: + 49 (069) 40 58 66 - 0 Fax: + 49 (069) 40 58 66 - 29 Email:mailto:[EMAIL PROTECTED] Internet www.jaron.de __ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 -- COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test -- 1. GMX TopMail - Platz 1 und Testsieger! 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger! 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Struts 1.1 and Tiles
I added the line buit i still got the same error -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Siva Gesendet: Mittwoch, 30. Juli 2003 10:55 An: Struts Users Mailing List Betreff: Re: Struts 1.1 and Tiles I feel you need to specify the tiles processor in the struts-config. Please add the following line in your struts-config.xml file controller processorClass = org.apache.struts.tiles.TilesRequestProcessor/ Siva Oliver Reflé wrote: Hi fellows, At the moment I am working on tiles. But I have a big problem to get this stuff running. It seems that the Tiles plugin is not taking the forward from the Action . Below you find my config: struts-config.xml (Action Mapping Plugin): action-mappings action type=de.refle.TestAction path=/test forward name=success path=.view.peniguins/ /action /action-mappings plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ /plug-in tiles-defs.xml: tiles-definitions definition name=.basic.layout path=/jsp/basicLayout.jsp put name=title value=Default Title/ put name=header value=/jsp/header.jsp/ put name=menu value=/jsp/menu.jsp/ put name=content value=/jsp/defaultContentPage.jsp/ put name=footer value=/jsp/footer.jsp/ /definition definition name=.view.pengiuns extends=.basic.layout put name=title value=Welcome to the Store/ put name=content value=/jsp/viewPinguins.jsp/ /definition /tiles-definitions basicLayout.jsp: %@ taglib uri=http://jakarta.apache.org/struts/struts-tiles.tld; prefix=tiles % html headtitletiles:getAsString name=title//title/head body tiles:get name=header/br/ tiles:get name=menu/tiles:get name=content/br/ tiles:get name=footer/br/ /body /html viewPinguins.jsp: contains only a simple text nothing else Action: public class TestAction extends Action{ public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws java.lang.Exception { System.out.println(Now in Action); return actionMapping.findForward(success); } } When i call now the Action with http://localhost:8080/do/test i go Now in Action printed and then i get a page not found error. HTTP ERROR: 404 /tiles/.view.penguins Not Found RequestURI=/tiles/do/test Maybe you have an idea ? Thx in advance Oliver Reflé Software Architekt _ jaron.DIRECT GmbH Performance Marketing Solutions Hanauer Landstraße 196a D-60314 Frankfurt am Main Fon: + 49 (069) 40 58 66 - 0 Fax: + 49 (069) 40 58 66 - 29 Email:mailto:[EMAIL PROTECTED] Internet www.jaron.de __ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 -- COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test -- 1. GMX TopMail - Platz 1 und Testsieger! 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger! 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Struts 1.1 and Tiles
r u able to access .basic.layout ?? Oliver Reflé wrote: I added the line buit i still got the same error -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Siva Gesendet: Mittwoch, 30. Juli 2003 10:55 An: Struts Users Mailing List Betreff: Re: Struts 1.1 and Tiles I feel you need to specify the tiles processor in the struts-config. Please add the following line in your struts-config.xml file controller processorClass = org.apache.struts.tiles.TilesRequestProcessor/ Siva Oliver Reflé wrote: Hi fellows, At the moment I am working on tiles. But I have a big problem to get this stuff running. It seems that the Tiles plugin is not taking the forward from the Action . Below you find my config: struts-config.xml (Action Mapping Plugin): action-mappings action type=de.refle.TestAction path=/test forward name=success path=.view.peniguins/ /action /action-mappings plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ /plug-in tiles-defs.xml: tiles-definitions definition name=.basic.layout path=/jsp/basicLayout.jsp put name=title value=Default Title/ put name=header value=/jsp/header.jsp/ put name=menu value=/jsp/menu.jsp/ put name=content value=/jsp/defaultContentPage.jsp/ put name=footer value=/jsp/footer.jsp/ /definition definition name=.view.pengiuns extends=.basic.layout put name=title value=Welcome to the Store/ put name=content value=/jsp/viewPinguins.jsp/ /definition /tiles-definitions basicLayout.jsp: %@ taglib uri=http://jakarta.apache.org/struts/struts-tiles.tld; prefix=tiles % html headtitletiles:getAsString name=title//title/head body tiles:get name=header/br/ tiles:get name=menu/tiles:get name=content/br/ tiles:get name=footer/br/ /body /html viewPinguins.jsp: contains only a simple text nothing else Action: public class TestAction extends Action{ public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws java.lang.Exception { System.out.println(Now in Action); return actionMapping.findForward(success); } } When i call now the Action with http://localhost:8080/do/test i go Now in Action printed and then i get a page not found error. HTTP ERROR: 404 /tiles/.view.penguins Not Found RequestURI=/tiles/do/test Maybe you have an idea ? Thx in advance Oliver Reflé Software Architekt _ jaron.DIRECT GmbH Performance Marketing Solutions Hanauer Landstraße 196a D-60314 Frankfurt am Main Fon: + 49 (069) 40 58 66 - 0 Fax: + 49 (069) 40 58 66 - 29 Email:mailto:[EMAIL PROTECTED] Internet www.jaron.de __ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 -- COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test -- 1. GMX TopMail - Platz 1 und Testsieger! 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger! 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: Struts 1.1 and Tiles
I found the error :( It was my netbeans. It added name.jsp.jsp to my jsp names. This was why it didn't work. Sorry for that. Olli -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Siva Gesendet: Mittwoch, 30. Juli 2003 11:06 An: Oliver Reflé Cc: 'Struts Users Mailing List' Betreff: Re: AW: Struts 1.1 and Tiles r u able to access .basic.layout ?? Oliver Reflé wrote: I added the line buit i still got the same error -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Siva Gesendet: Mittwoch, 30. Juli 2003 10:55 An: Struts Users Mailing List Betreff: Re: Struts 1.1 and Tiles I feel you need to specify the tiles processor in the struts-config. Please add the following line in your struts-config.xml file controller processorClass = org.apache.struts.tiles.TilesRequestProcessor/ Siva Oliver Reflé wrote: Hi fellows, At the moment I am working on tiles. But I have a big problem to get this stuff running. It seems that the Tiles plugin is not taking the forward from the Action . Below you find my config: struts-config.xml (Action Mapping Plugin): action-mappings action type=de.refle.TestAction path=/test forward name=success path=.view.peniguins/ /action /action-mappings plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ /plug-in tiles-defs.xml: tiles-definitions definition name=.basic.layout path=/jsp/basicLayout.jsp put name=title value=Default Title/ put name=header value=/jsp/header.jsp/ put name=menu value=/jsp/menu.jsp/ put name=content value=/jsp/defaultContentPage.jsp/ put name=footer value=/jsp/footer.jsp/ /definition definition name=.view.pengiuns extends=.basic.layout put name=title value=Welcome to the Store/ put name=content value=/jsp/viewPinguins.jsp/ /definition /tiles-definitions basicLayout.jsp: %@ taglib uri=http://jakarta.apache.org/struts/struts-tiles.tld; prefix=tiles % html headtitletiles:getAsString name=title//title/head body tiles:get name=header/br/ tiles:get name=menu/tiles:get name=content/br/ tiles:get name=footer/br/ /body /html viewPinguins.jsp: contains only a simple text nothing else Action: public class TestAction extends Action{ public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws java.lang.Exception { System.out.println(Now in Action); return actionMapping.findForward(success); } } When i call now the Action with http://localhost:8080/do/test i go Now in Action printed and then i get a page not found error. HTTP ERROR: 404 /tiles/.view.penguins Not Found RequestURI=/tiles/do/test Maybe you have an idea ? Thx in advance Oliver Reflé Software Architekt _ jaron.DIRECT GmbH Performance Marketing Solutions Hanauer Landstraße 196a D-60314 Frankfurt am Main Fon: + 49 (069) 40 58 66 - 0 Fax: + 49 (069) 40 58 66 - 29 Email:mailto:[EMAIL PROTECTED] Internet www.jaron.de __ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 -- COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test -- 1. GMX TopMail - Platz 1 und Testsieger! 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger! 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003
RE: Ready-made Struts components?
The struts site has a link for the utilities. http://jakarta.apache.org/struts/resources -Original Message- From: Jussi Koiranen [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:28 PM To: Struts Users Mailing List Subject: Ready-made Struts components? Hello, Does anyone know from where to look for ready-made Struts component packages? I haven't particular need, I am interested about all kind of components, like menuing system, tree component etc. Open source project or commercial product, no matter. I have done some intensive searching, but failed to found any. Thanks Jussi Koiranen - 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 :rendering hidden fields
Use it just like bean:write html:hidden name=mybean property=aPropertyOfmybean/ I use it a lot. Jitesh Sinha wrote: How do you render an input hidden field inside a logic:iterate tag ..?? Actually here is what my code looks like : logic:iterate id=mybean name=formbean property=collectionofmybeans bean:write name=mybean property=aPropertyOfmybean -- Here I want to put my hidden field like this--- html:hidden property=thishiddenfieldname value=???(what should I put here) /logic:iterate I want the value of hidden field as another property of bean mybean(which is used in bean:write tag) suppose anotherPropertyofmybean .What to do? Thansk, Jitesh - 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: Transaction Token
And if the token is not valide, do you redirect them to an error page? manglu [EMAIL PROTECTED] wrote: The Trans token is fairly SImple Before a form is sent to the User in your action class make a saveToken(request) call. When the form is displayed on the client side there is a token attached which is sent along with the form on a submit by the Client When a call is received the token (sent by the Client) is compared with it's contents in Session via the isValidToken() which return true if there is a match else it returns false. In summary before sending form to user issue saveToken(request) and before processing issue a isValidToken() to see if the token is valid HTH Manglu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSLEXT
SSLEXT really works great for me when i switch from "http" to "https". Well when i am in https mode i submit a form as post methods, however the subsequent page is not secured. Obviously the action redirects to http mode, that is ok with me but it appends the form parameter values to the URL and it is visible in clients browser address bar. I do not want to see the form parameter values in the Address bar. Does any one experience the same problem and Any idea to solve this will be greatly appreciated thanks nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 IncrediMail - Email has finally evolved - Click Here
Re: Struts with JRun4
Yes. Believe it or not, I have a mission critical application running with JRun 4, Struts 1.1, JSTL 1.0 and other APIs right now and it works pretty well, I would say. JRun has a few issues with its EJB container and transactions, but that has nothing to do with your question :-P []s Michael Nascimento Santos JSR-207 Expert Group Member Sun Certified Programmer for the Java 2 Platform Sun Certified Programmer for the Java 2 Platform 1.4 Sun Certified Web Component Developer for J2EE Moderador SouJava - www.soujava.org.br - Original Message - From: Samanth Athrey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 5:42 AM Subject: Struts with JRun4 Hi, Has anybody successfully deployed struts with JRun4? Are there any documents? Let me know. Regards, Samanth - 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]
DispatchActions - using form validation for only some methods
Hi, I've just moved to using dispatch actions from my own implementation of something similair to relay actions. One facility my implementation gave me was to have the form validated when some actions were called, and not validated for other actions (at the expense of a bloated struts-config.xml). Using dispatch actions I am now explicitly calling the form's validation for those methods that require a validated form: ActionErrors errors = form.validate(mapping, request); if(!errors.isEmpty()) { saveErrors(request, errors); return new ActionForward(mapping.getInput()); } Is there a better way of achieving this? thanks, Paul ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Uploading a file to server using struts
Hi All, I have an urgent requirement. Has any body have the code how to upload a file to server using struts frame work. Regards Bhanu - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
AW: Problem in using Validator Framework with Struts
Hello! I found the problem. I poited to a wrong DTD... Thanx! Dirk -Ursprüngliche Nachricht- Von: Stephan Wiesner [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Juli 2003 06:58 An: Struts Users Mailing List Betreff: Re: Problem in using Validator Framework with Struts Hi Dirk, did you activate the plugin in struts-config? Maybe a typo? Struts 1.1 already contains the activated plugin and there is an example war where you might want to copy paste some lines. Dirk Behrendt wrote: Hello! I have a problem in using the Validator framework with Struts. I want to check textfields. When I start Tomcat, I got a lot of parse erros like this: element type plug-in must be declared. org.xml.SAXParseException I looked at other validation examples, but I did the same like in these examples. What is the general problem of such errors? Thanx! Dirk struts-config.xml - form-bean name=loginForm type=org.apache.struts.webapp.validator.RegistrationForm/ plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml/ /plug-in validation.xml -- form name=loginForm field property=login depends=required,mask arg0 key=lable.login/ var var-namemask/var-name var-value^[a-zA-Z0-9_.-]*$/var-value /var /field field property=password depends=required,mask arg0 key=lable.password/ var var-namemask/var-name var-value^[a-zA-Z0-9_.-]*$/var-value /var /field /form - 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]
Validator Framework: Can not evaluate regular expression
Hello! I want to check login and password fields. If I submit with empty textfields, the errors are shown correct ( required). But my regular expression was ignored. (see code below). What is necessary to check regular expressions? Dirk Struts-config.xml - form-bean name=loginForm type=sample.LoginForm/ !-- User login -- actionpath=/login type=sample.LoginAction name=loginForm scope=session validate=true input=/loginDone.jsp /action validation.xml -- form name=loginForm field property=login depends=required,mask msg name=mask key=error.loginForm.character.maskmsg/ arg0 key=label.login/ var var-namemask/var-name var-value^[a-zA-Z0-9_.-]*$/var-value /var /field field property=password depends=required,mask msg name=mask key=error.loginForm.character.maskmsg/ arg0 key=label.password/ var var-namemask/var-name var-value^[a-zA-Z0-9_.-]*$/var-value /var /field /form In my JSP --- logic:messagesPresent bean:message key=errors.header/ ul html:messages id=error libean:write name=error//li /html:messages /ulhr /logic:messagesPresent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Uploading a file to server using struts
You can use this code in your Action class after declaring a form element of type FormFile. FormFile file = (FormFile) theForm.get(theFile) ; String fileName = file.getFileName() ; int fileSize = file.getFileSize() ; if ( (fileName != null) (!fileName.equals()) ) { try { if (fileSize != 0) { File xmlFile = new File(uploadAreaTemp + File.separator + fileName) ; FileOutputStream fos ; fos = new FileOutputStream(xmlFile) ; byte[] fileData = file.getFileData() ; fos.write(fileData) ; fos.close() ; } catch (Exception e) {} -Original Message- From: bhanu sistla [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 5:41 PM To: [EMAIL PROTECTED] Subject: Uploading a file to server using struts Hi All, I have an urgent requirement. Has any body have the code how to upload a file to server using struts frame work. Regards Bhanu - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger **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]
Visual HTML editors with Struts
Looking through the mail archives, this seems to have been an active subject. We are looking at using Struts. We'd like to take advantage of the separation of business logic and presentation. However, our designers would like to continue using their visual HTML tools - particularly Adobe GoLive. Has anyone had any success recently in having Struts work with any visual tools - at least to the point where the tool doesn't blow up when encountering custom tags? Also, what about the idea of not using tag libraries? Can Struts be used without tag libraries - at least the visual tools would continue to work. Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validator Framework: Can not evaluate regular expression
If your code is a direct cut-n-paste, you've got an extra '' in your first regular expression? var-value^[a-zA-Z0-9_.-]*$/var-value -jeff On Wednesday, July 30, 2003, at 07:14 AM, Dirk Behrendt wrote: var-value^[a-zA-Z0-9_.-]*$/var-value - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uploading a file to server using struts
As part of the struts distribution there is a war file called struts-upload.war which explains just this! from:=?iso-8859-1?q?bhanu=20sistla?= [EMAIL PROTECTED] date:Wed, 30 Jul 2003 13:10:56 to: [EMAIL PROTECTED] subject: Re: Uploading a file to server using struts Hi All, I have an urgent requirement. Has any body have the code how to upload a file to server using struts frame work. Regards Bhanu - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uploading a file to server using struts
There is an example upload application in the struts distribution (struts-upload.war in the webapps directory) bhanu sistla wrote: Hi All, I have an urgent requirement. Has any body have the code how to upload a file to server using struts frame work. Regards Bhanu - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts with JRun4
We have a number of apps with struts 1.1, JSTL and JNDI. Nothing overly different to deploying on other app servers. Zoran Hi, Has anybody successfully deployed struts with JRun4? Are there any documents? Let me know. Regards, Samanth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile
If you have these errors... [javac] file org\xml\sax\helpers\DefaultHandler.class not found Make sure you have xerces.jar in your classpath Ignore the time warnings or set your clock. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 10:26 PM To: Struts Users Mailing List Subject: Fw: Unable to compile I am sorry for posting this question second time on this list. Earlier I posted this question before I subscribed to the list. So I am thinking that I may have missed if any one replied to this email. Now I am subscribed to the list. Thanks for help! - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:43 PM Subject: Unable to compile Hi , I have recently downloaded the struts source distribution from CVS using anonymous login. I have also downloaded all the required jar files for the building the Struts source. I have modified the sample build.properties file to point to right locations for the required jar files. I am using Eclipse 2.1 and in built Ant plugin to build. I am getting following errors when I try to build. What am I missing? Thanks a lot for the help! prepare.library: [copy] Warning: struts-config_1_2.dtd modified in the future. [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library\classes\org\apache \struts\resources [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library [copy] Copying 1 file to C:\Program Files\eclipse\workspace\jakarta-struts\target\library compile.library: [javac] Warning: org\apache\struts\action\Action.java modified in the future. [javac] Warning: org\apache\struts\action\ActionMessage.java modified in the future. [javac] Warning: org\apache\struts\action\ActionResources.properties modified in the future. [javac] Warning: org\apache\struts\action\ActionServlet.java modified in the future. [javac] Warning: org\apache\struts\action\ActionServletWrapper.java modified in the future. [javac] Warning: org\apache\struts\action\ExceptionHandler.java modified in the future. [javac] Warning: org\apache\struts\action\RequestProcessor.java modified in the future. [javac] Warning: org\apache\struts\actions\DispatchAction.java modified in the future. [javac] Warning: org\apache\struts\actions\ForwardAction.java modified in the future. [javac] Warning: org\apache\struts\actions\IncludeAction.java modified in the future. [javac] Warning: org\apache\struts\actions\LocalStrings.properties modified in the future. [javac] Warning: org\apache\struts\actions\LookupDispatchAction.java modified in the future. [javac] Warning: org\apache\struts\actions\SwitchAction.java modified in the future. [javac] Warning: org\apache\struts\config\ActionConfig.java modified in the future. [javac] Warning: org\apache\struts\config\ConfigHelper.java modified in the future. [javac] Warning: org\apache\struts\config\ConfigHelperInterface.java modified in the future. [javac] Warning: org\apache\struts\config\ControllerConfig.java modified in the future. [javac] Warning: org\apache\struts\config\impl\ModuleConfigImpl.java modified in the future. [javac] Warning: org\apache\struts\config\ModuleConfigFactory.java modified in the future. [javac] Warning: org\apache\struts\Globals.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\CookieTag.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\DefineTag.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\HeaderTag.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\IncludeTag.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\MessageTag.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\package.html modified in the future. [javac] Warning: org\apache\struts\taglib\bean\PageTag.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\ParameterTag.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\ResourceTag.java modified in the future. [javac] Warning: org\apache\struts\taglib\bean\SizeTag.java modified in the future. [javac]
[OT] Best super-class for context handling.
Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using DynaValidatorForm and html:select
In my form I have a html:select field with multiple=true as shown below: html:select multiple=true property=property1 logic:iterate collection=%=myTypes% id=type type=java.lang.String html:option value=%=type%/ bean:write name=type/ /html:option /logic:iterate /html:select where myTypes is String[]. In my struts-config file I am using DynaValidatorForms for the form beans. The form bean for the above is: form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=property1 type=java.lang.String / /form-bean In my Action class for this form I have tried to retrieve the values with: String prop1 = (String) form.get(property1); but this only returns the first element of the multiple select. I've also tried to use ArrayLists for the above casting,and also as the type for the form-property. When used for the casting I get a class cast exception. When used for the form-property I get informed that its an icompatible type as the select is returning a string. Does anyone know how to solve this problem? Thanks Daniel Massie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Best super-class for context handling.
There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:31:25 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Best super-class for context handling.
It's not for the actions (sorry I should have stated it in my original post) it's for the business logic and auxillary classes. Cheers Simon. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:52 PM Subject: Re: [OT] Best super-class for context handling. There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:31:25 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - 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: Visual HTML editors with Struts
I assume by 'visual HTML tool' you're referring to a WYSIWYG editor. In that case, any editor that supports JSP should work just fine. I don't use the abominations personally, so can't recommend one. As far as using struts w/o the custom tags, it's certainly doable, but hampering your development efforts in order to fit the idiosyncracies of your editor seems kinda ack basswards to me... Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Mike DiChiappari [EMAIL PROTECTED] on 07/30/2003 08:17:24 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Visual HTML editors with Struts Looking through the mail archives, this seems to have been an active subject. We are looking at using Struts. We'd like to take advantage of the separation of business logic and presentation. However, our designers would like to continue using their visual HTML tools - particularly Adobe GoLive. Has anyone had any success recently in having Struts work with any visual tools - at least to the point where the tool doesn't blow up when encountering custom tags? Also, what about the idea of not using tag libraries? Can Struts be used without tag libraries - at least the visual tools would continue to work. Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help needed in Struts deployment on Weblogic 8.1
Hi, We've a application that uses Struts 1.0 Ejb's... This application is deployed on Weblogic 8.1 on a Windows XP machine... We've created an ear for the application and deployed it using the admin console... The familiar classNotFound issue has been hauting us for some time... Initially I placed the struts.jar in the WEB-INF\lib of the web module(web.war) and deployed only the web module... It was working fine till then... Then I added a ejb module(ejb.jar) and created a app.ear using these files... This is when the problem started... Initially the ActionForm class of the struts package was not getiing loaded... We moved the struts.jar from the web-inf\lib to applib folder of the ear... This issue was resolved but then the classes present in the .war files were not getting loaded... We've other jar files that were initially present in the WEB-INF\lib folder which were also not getting loaded... We then moved all the jar files to the outer most ear... Even then the issue was not resolved... We added the MANIFEST.MF file to the web.war ejb.jar specifying the classpath for the jar files... No solution still... Next we added the classpath to the MANIFEST.MF file of the ear... Still no solution... We tried probably every possible permutation combination of placing the jar files in the various modules but some classes never get loaded... What is the solution to this problem?? We are using a evaluation copy of Weblogic... Is it because of that??? If not, is it an inherent problem with struts 1.0 (in this case should we use struts 1.1??) Any help in this matter would be welcomed... Navneet Saraogi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help needed in Struts deployment on Weblogic 8.1
This note might help: Appservers are not meant to make everything deployed on them accessible to the classpath of everything else. You still need to tell it where things lie. I'll assume that the servlet is in a WAR file, and the WAR file, in turn, is packaged in an EAR file, like this: theEar.ear |-- theEjb.jar |-- theWar.war |-- lib/libJar.jar theWar.war then, in order to find the EJB, needs to have a MANIFEST.MF file in it, with a Class-Path entry of theEjb.jar (the packaging as according to the relative locations in the EAR file). If you have a class that doesn't live in either the EJB jar or the WAR archive, then you should package that up into a jar file, and put it in the EAR (like lib/libJar.jar). Then, extend the Class-Path entry for theWar.war to include lib/libJar.jar. Likewise, if the EJB jar needs it, extend the Class-Path entry in it's MANIFEST.MF file. These issues are covered in the J2EE 1.3 spec, and the Java Extension Mechanism Spec. (J2EE 1.2 was meant to use this as well, but it was only implicit, not explicit.) thanks -raj Navneet Saraogi [EMAIL PROTECTED]To: [EMAIL PROTECTED] nfosys.com cc: Subject: Help needed in Struts deployment on Weblogic 8.1 30/07/2003 06:40 PM Please respond to Struts Users Mailing List Hi, We've a application that uses Struts 1.0 Ejb's... This application is deployed on Weblogic 8.1 on a Windows XP machine... We've created an ear for the application and deployed it using the admin console... The familiar classNotFound issue has been hauting us for some time... Initially I placed the struts.jar in the WEB-INF\lib of the web module(web.war) and deployed only the web module... It was working fine till then... Then I added a ejb module(ejb.jar) and created a app.ear using these files... This is when the problem started... Initially the ActionForm class of the struts package was not getiing loaded... We moved the struts.jar from the web-inf\lib to applib folder of the ear... This issue was resolved but then the classes present in the .war files were not getting loaded... We've other jar files that were initially present in the WEB-INF\lib folder which were also not getting loaded... We then moved all the jar files to the outer most ear... Even then the issue was not resolved... We added the MANIFEST.MF file to the web.war ejb.jar specifying the classpath for the jar files... No solution still... Next we added the classpath to the MANIFEST.MF file of the ear... Still no solution... We tried probably every possible permutation combination of placing the jar files in the various modules but some classes never get loaded... What is the solution to this problem?? We are using a evaluation copy of Weblogic... Is it because of that??? If not, is it an inherent problem with struts 1.0 (in this case should we use struts 1.1??) Any help in this matter would be welcomed... Navneet Saraogi - 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]
Lost form data after form.validate() and issuing error messages
Hello, I lose all form data if validate returns error for the form input. If action goes through validation without creating of any errors, XAction works fine. ShowXAction is used to display jsp and jsp posts to XAction. Any comments? You can see the code below. cheers, tuna * ShowXAction.java looks like follows: public final class ShowXAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception{ // Update form data if (form == null) { form = new XForm(); if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else session.setAttribute(mapping.getAttribute(), form); } XForm f = (XForm)form; f.setA(...); f.setB(...); //ensure, that form is submited only once saveToken(request); return mapping.findForward(success); } XAction.java looks like: public final class XAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { XForm f = (XForm)form; XBean b = new XBean(f.getA(), f.getB()); b.store(); //ensure, that form is submited only once saveToken(request); return mapping.findForward(success); } and struts-config.xml is like follows: !-- -- action path=/showx attribute=XForm scope=request validate=false type=com.xxx.yyy.ShowXAction forward name=success path=/x.jsp/ /action !-- -- action path=/x name=XForm scope=request input=/x.do validate=true type=com.xxx.yyy.XAction forward name=success path=/showy.do/ /action and finally XForm is like follows: public final class XForm extends ActionForm { private String a = null; private String b = null; public String getA() { return this.a; } public void setA(String a) { this.a = a; } public String getB() { return this.b; } public void setB(String b) { this.b = b; } public void reset(ActionMapping mapping, HttpServletRequest request) { this.a = null; this.b = null; } public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((this.a == null) || (this.a.trim().length() == 0)) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(form.a.missing)); } if ((this.b == null) || (this.b.trim().length() == 0)) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(form.b.missing)); } return errors; } public String toString() { StringBuffer sb = new StringBuffer(XForm[); sb.append(a=).append(this.a); sb.append(,b=).append(this.b); return sb.toString(); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Struts 1.0.2 in WebLogic 7.0
Hi All, I've deployed struts 1.0.2 in WebLogic 7.0. Now when I'm trying to access a JSP which uses Struts ActionForm I'm getting NoClassDefFoundError : - Jul 30, 2003 6:54:13 PM IST Error HTTP 101017 [ServletContext(id=460784 7,name=mizuhoapplicationweb.war,context-path=/mizuhoapp)] Root cause of ServletE xception java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:493) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic ClassLoader.java:390) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass Loader.java:152) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw areClassLoader.java:43) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563) at jsp_servlet._jsps.__namazusearch._jspService(__namazusearch.java:142) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:945) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:332) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:376) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:242) at weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Req uestDispatcherImpl.java:341) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic eManager.java:721) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat cherImpl.java:251) at org.apache.struts.action.ActionServlet.processActionForward(ActionSer vlet.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:159 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:945) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:332) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:242) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:5363) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic eManager.java:721) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3043) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2466) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133) Any solution for this problem will be highly appreciated. Regards, Sourav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Best super-class for context handling.
Ideally your business objects shouldn't know anything about the deployment environment. Not only is this good design, but it also allows you to migrate between (or support multiple) deployment environments with minimal hassle. If all you want to do is convert between relative paths and URI's, you should be able to use the facilities provided by java.io.File and java.net.URI, regardless of deployment context. Or am I missing something? Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:49:57 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: [OT] Best super-class for context handling. It's not for the actions (sorry I should have stated it in my original post) it's for the business logic and auxillary classes. Cheers Simon. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:52 PM Subject: Re: [OT] Best super-class for context handling. There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:31:25 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Running Struts 1.0.2 in WebLogic 7.0
Hi, is the struts.jar file in the CLASSPATH of your web ? You have to copy it to WEB-INF/lib, then it should work. Oliver -Ursprüngliche Nachricht- Von: souravm [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Juli 2003 15:27 An: Struts Users Mailing List Betreff: Running Struts 1.0.2 in WebLogic 7.0 Hi All, I've deployed struts 1.0.2 in WebLogic 7.0. Now when I'm trying to access a JSP which uses Struts ActionForm I'm getting NoClassDefFoundError : - Jul 30, 2003 6:54:13 PM IST Error HTTP 101017 [ServletContext(id=460784 7,name=mizuhoapplicationweb.war,context-path=/mizuhoapp)] Root cause of ServletE xception java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:493) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic ClassLoader.java:390) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass Loader.java:152) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw areClassLoader.java:43) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563) at jsp_servlet._jsps.__namazusearch._jspService(__namazusearch.java:142) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:945) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:332) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:376) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:242) at weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Req uestDispatcherImpl.java:341) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic eManager.java:721) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat cherImpl.java:251) at org.apache.struts.action.ActionServlet.processActionForward(ActionSer vlet.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:159 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:945) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:332) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:242) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:5363) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic eManager.java:721) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3043) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2466) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133) Any solution for this problem will be highly appreciated. Regards, Sourav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] multiple contexts, one .ear.
I have a Struts application which uses EJB's running on JBoss/Tomcat. In some cases we have two 'clients' running the application on the same server. They can both use the same deployed .ear if it's possible for each of them to use a different .properties file, because they would need to point to different database servers. Is it possible to direct an application to use a certain .properties file based on the requested domain, or is there another means to do this? We would really prefer not to deploy two seperate .ear files. Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Example of .ear including STRUTS and EJB on Borland Enterprise Server
Hi, I search sample or .ear which can be deployed on BES Including a .jar for EJB And .war using STRUTS FrameWork. Best regards, Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Struts 1.0.2 in WebLogic 7.0
struts.jar should NOT be in your weblogic classpath or the classpath it reads while booting. thanks -raj souravm [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] com cc: Subject: Running Struts 1.0.2 in WebLogic 7.0 30/07/2003 06:56 PM Please respond to Struts Users Mailing List Hi All, I've deployed struts 1.0.2 in WebLogic 7.0. Now when I'm trying to access a JSP which uses Struts ActionForm I'm getting NoClassDefFoundError : - Jul 30, 2003 6:54:13 PM IST Error HTTP 101017 [ServletContext(id=460784 7,name=mizuhoapplicationweb.war,context-path=/mizuhoapp)] Root cause of ServletE xception java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:493) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic ClassLoader.java:390) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass Loader.java:152) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw areClassLoader.java:43) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563) at jsp_servlet._jsps.__namazusearch._jspService(__namazusearch.java:142) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:945) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:332) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:376) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:242) at weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Req uestDispatcherImpl.java:341) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic eManager.java:721) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat cherImpl.java:251) at org.apache.struts.action.ActionServlet.processActionForward(ActionSer vlet.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:159 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:945) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:332) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:242) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:5363) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic eManager.java:721) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3043) at
html:errors/ not displaying the errors?
Hello, I'm using DynaValidatorForm to check certain form fields are entered as required. The validation is done sucessfully but I've recently added somthing that seems to have stopped html:errors/ from displaying the errors? Does anyone have any suggestions why this might have happened? is there a common mistake that might have caused this? or any tips on how to go about debugging it? regards James
RE: Lost form data after form.validate() and issuing error messages
In the input of second mapping try this /showy.do. Because after validate, you have to populate the form values again Let me know this works -Original Message- From: Tuna Vardar [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 6:58 PM To: [EMAIL PROTECTED] Subject: Lost form data after form.validate() and issuing error messages Hello, I lose all form data if validate returns error for the form input. If action goes through validation without creating of any errors, XAction works fine. ShowXAction is used to display jsp and jsp posts to XAction. Any comments? You can see the code below. cheers, tuna * ShowXAction.java looks like follows: public final class ShowXAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception{ // Update form data if (form == null) { form = new XForm(); if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else session.setAttribute(mapping.getAttribute(), form); } XForm f = (XForm)form; f.setA(...); f.setB(...); //ensure, that form is submited only once saveToken(request); return mapping.findForward(success); } XAction.java looks like: public final class XAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { XForm f = (XForm)form; XBean b = new XBean(f.getA(), f.getB()); b.store(); //ensure, that form is submited only once saveToken(request); return mapping.findForward(success); } and struts-config.xml is like follows: !-- -- action path=/showx attribute=XForm scope=request validate=false type=com.xxx.yyy.ShowXAction forward name=success path=/x.jsp/ /action !-- -- action path=/x name=XForm scope=request input=/x.do validate=true type=com.xxx.yyy.XAction forward name=success path=/showy.do/ /action and finally XForm is like follows: public final class XForm extends ActionForm { private String a = null; private String b = null; public String getA() { return this.a; } public void setA(String a) { this.a = a; } public String getB() { return this.b; } public void setB(String b) { this.b = b; } public void reset(ActionMapping mapping, HttpServletRequest request) { this.a = null; this.b = null; } public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((this.a == null) || (this.a.trim().length() == 0)) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(form.a.missing)); } if ((this.b == null) || (this.b.trim().length() == 0)) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(form.b.missing)); } return errors; } public String toString() { StringBuffer sb = new StringBuffer(XForm[); sb.append(a=).append(this.a); sb.append(,b=).append(this.b); return sb.toString(); } } - 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: [OT] Best super-class for context handling.
Ah, right. Not sure whether that's what I'm after. Here's a better explination. I am using files that are contained within the /WEB-INF/ dir within the web application to hold information required by the business logic. These files are not part of the controller or view but are required to generate the content data for the action classes. So I need something that will get the paths regardless of the enviroment they are in. I have chosen to pass all file names within the business logic in the form /WEB-INF/dir/file.x and have been using context.getRealPath() [or the correct method if that's wrong] to get the path name (which I had thought would be ok as it will always return the correct path regardless of where the webapp is deployed). Is this wrong, and is there a better way to do it? Cheers Simon - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:16 PM Subject: Re: [OT] Best super-class for context handling. Ideally your business objects shouldn't know anything about the deployment environment. Not only is this good design, but it also allows you to migrate between (or support multiple) deployment environments with minimal hassle. If all you want to do is convert between relative paths and URI's, you should be able to use the facilities provided by java.io.File and java.net.URI, regardless of deployment context. Or am I missing something? Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:49:57 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: [OT] Best super-class for context handling. It's not for the actions (sorry I should have stated it in my original post) it's for the business logic and auxillary classes. Cheers Simon. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:52 PM Subject: Re: [OT] Best super-class for context handling. There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:31:25 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - 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] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and
[OT]http to https shift
Hi, i have a website running on tomcat and also on websphere, i want to change some submit to go using https, like the login page and some sensitive information, can anyone point to some resource, where i can get info about submiting a secured response, on tomcat and websphere Ashish __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DispatchActions - using form validation for only some methods
Not sure if anybody answered you question or not yet but there are a couple things you can do... 1. Have many action mappings to one DispatchAction. action path=/a parameter=subtask type=my.Dispatch ... ... /action action path=/b parameter=subtask type=my.Dispatch ... ... /action link to each as /a.do?subtask=method1 and /b.do?subtask=method2 and then do validation per action and not per form. The other alternative suggested by Robert Taylor, which, once set up, is pretty slick but involves a little extension to how validator works: http://marc.theaimsgroup.com/?t=10535260067r=1w=2 -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 7:59 AM To: 'Struts Users Mailing List' Subject: DispatchActions - using form validation for only some methods Hi, I've just moved to using dispatch actions from my own implementation of something similair to relay actions. One facility my implementation gave me was to have the form validated when some actions were called, and not validated for other actions (at the expense of a bloated struts-config.xml). Using dispatch actions I am now explicitly calling the form's validation for those methods that require a validated form: ActionErrors errors = form.validate(mapping, request); if(!errors.isEmpty()) { saveErrors(request, errors); return new ActionForward(mapping.getInput()); } Is there a better way of achieving this? thanks, Paul ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - 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: html:errors/ not displaying the errors?
The errors tag consults a pageContext attribute (I believe in the request) which has a key of Globals.ERROR_KEY (unless you are in a module then I think the key is [Globals.ERROR_KEY + /modulename]) I guess you could start by seeing if the key exists in your JSP. -Original Message- From: James Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: html:errors/ not displaying the errors? Hello, I'm using DynaValidatorForm to check certain form fields are entered as required. The validation is done sucessfully but I've recently added somthing that seems to have stopped html:errors/ from displaying the errors? Does anyone have any suggestions why this might have happened? is there a common mistake that might have caused this? or any tips on how to go about debugging it? regards James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:errors/ not displaying the errors?
I forgot to mention that the only time I can remember that happening is when I first when to modules and I tried making my own custom bundle for messages in my module's struts config. Error messages weren't showing up because of the custom resource bundle name in my modules. As soon as I got rid of the custom bundle name in the module the errors showed up. -Original Message- From: James Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: html:errors/ not displaying the errors? Hello, I'm using DynaValidatorForm to check certain form fields are entered as required. The validation is done sucessfully but I've recently added somthing that seems to have stopped html:errors/ from displaying the errors? Does anyone have any suggestions why this might have happened? is there a common mistake that might have caused this? or any tips on how to go about debugging it? regards James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action in Welcome File List
Can't you just do this: welcome-file-list welcome-file/PMTAction.do/welcome-file /welcome-file-list I do it with JRun4. Not sure if all containers will do an action instead of a JSP. -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 12:41 AM To: Struts Users Mailing List Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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: Struts Action in Welcome File List
Nope this is not supported, the web.xml must map to a file. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:51 AM To: 'Struts Users Mailing List' Subject: RE: Struts Action in Welcome File List Can't you just do this: welcome-file-list welcome-file/PMTAction.do/welcome-file /welcome-file-list I do it with JRun4. Not sure if all containers will do an action instead of a JSP. -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 12:41 AM To: Struts Users Mailing List Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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: DispatchActions - using form validation for only some methods
I don't think I can utilise the first approach as I am always using the same action (via the html form's submit). The second approach may do the trick - though I'll have to start using the validator (rather than the default stuff in the action form). Thanks for your help, Paul -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: 30 July 2003 15:00 To: 'Struts Users Mailing List' Subject: RE: DispatchActions - using form validation for only some methods Not sure if anybody answered you question or not yet but there are a couple things you can do... 1. Have many action mappings to one DispatchAction. action path=/a parameter=subtask type=my.Dispatch ... ... /action action path=/b parameter=subtask type=my.Dispatch ... ... /action link to each as /a.do?subtask=method1 and /b.do?subtask=method2 and then do validation per action and not per form. The other alternative suggested by Robert Taylor, which, once set up, is pretty slick but involves a little extension to how validator works: http://marc.theaimsgroup.com/?t=10535260067r=1w=2 -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 7:59 AM To: 'Struts Users Mailing List' Subject: DispatchActions - using form validation for only some methods Hi, I've just moved to using dispatch actions from my own implementation of something similair to relay actions. One facility my implementation gave me was to have the form validated when some actions were called, and not validated for other actions (at the expense of a bloated struts-config.xml). Using dispatch actions I am now explicitly calling the form's validation for those methods that require a validated form: ActionErrors errors = form.validate(mapping, request); if(!errors.isEmpty()) { saveErrors(request, errors); return new ActionForward(mapping.getInput()); } Is there a better way of achieving this? thanks, Paul ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - 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: [OT] Best super-class for context handling.
Ok. I think I see what you're trying to do. One approach would be to specify a configuration class that can be passed to the business object(s). Then within your Action class, use Struts/Servlet specific methods to construct the configuration object from your files (if you use XML to specify the configuration, Commons-Digester will greatly simplify this process). Then, if you decide to move to a different deployment environment (such as a local command-line driven environment) all you have to do is provide a new class to build the configuration object. No need to change the business object(s) at all. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 09:47:55 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: [OT] Best super-class for context handling. Ah, right. Not sure whether that's what I'm after. Here's a better explination. I am using files that are contained within the /WEB-INF/ dir within the web application to hold information required by the business logic. These files are not part of the controller or view but are required to generate the content data for the action classes. So I need something that will get the paths regardless of the enviroment they are in. I have chosen to pass all file names within the business logic in the form /WEB-INF/dir/file.x and have been using context.getRealPath() [or the correct method if that's wrong] to get the path name (which I had thought would be ok as it will always return the correct path regardless of where the webapp is deployed). Is this wrong, and is there a better way to do it? Cheers Simon - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:16 PM Subject: Re: [OT] Best super-class for context handling. Ideally your business objects shouldn't know anything about the deployment environment. Not only is this good design, but it also allows you to migrate between (or support multiple) deployment environments with minimal hassle. If all you want to do is convert between relative paths and URI's, you should be able to use the facilities provided by java.io.File and java.net.URI, regardless of deployment context. Or am I missing something? Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:49:57 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: [OT] Best super-class for context handling. It's not for the actions (sorry I should have stated it in my original post) it's for the business logic and auxillary classes. Cheers Simon. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:52 PM Subject: Re: [OT] Best super-class for context handling. There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:31:25 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including
RE: Problem using DynaValidatorForm and html:select
Not sure if anybody solved you problem yet (I'm catching up on many struts emails) but change the one line in your struts config: form-property name=property1 type=java.lang.String[] / -Original Message- From: Daniel Massie [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 8:52 AM To: Struts Users Mailing List Subject: Problem using DynaValidatorForm and html:select In my form I have a html:select field with multiple=true as shown below: html:select multiple=true property=property1 logic:iterate collection=%=myTypes% id=type type=java.lang.String html:option value=%=type%/ bean:write name=type/ /html:option /logic:iterate /html:select where myTypes is String[]. In my struts-config file I am using DynaValidatorForms for the form beans. The form bean for the above is: form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=property1 type=java.lang.String / /form-bean In my Action class for this form I have tried to retrieve the values with: String prop1 = (String) form.get(property1); but this only returns the first element of the multiple select. I've also tried to use ArrayLists for the above casting,and also as the type for the form-property. When used for the casting I get a class cast exception. When used for the form-property I get informed that its an icompatible type as the select is returning a string. Does anyone know how to solve this problem? Thanks Daniel Massie - 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: [OT] Best super-class for context handling.
That's great. Thanks for your help. Cheers Simon. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 4:09 PM Subject: Re: [OT] Best super-class for context handling. Ok. I think I see what you're trying to do. One approach would be to specify a configuration class that can be passed to the business object(s). Then within your Action class, use Struts/Servlet specific methods to construct the configuration object from your files (if you use XML to specify the configuration, Commons-Digester will greatly simplify this process). Then, if you decide to move to a different deployment environment (such as a local command-line driven environment) all you have to do is provide a new class to build the configuration object. No need to change the business object(s) at all. HTH, Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 09:47:55 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: [OT] Best super-class for context handling. Ah, right. Not sure whether that's what I'm after. Here's a better explination. I am using files that are contained within the /WEB-INF/ dir within the web application to hold information required by the business logic. These files are not part of the controller or view but are required to generate the content data for the action classes. So I need something that will get the paths regardless of the enviroment they are in. I have chosen to pass all file names within the business logic in the form /WEB-INF/dir/file.x and have been using context.getRealPath() [or the correct method if that's wrong] to get the path name (which I had thought would be ok as it will always return the correct path regardless of where the webapp is deployed). Is this wrong, and is there a better way to do it? Cheers Simon - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:16 PM Subject: Re: [OT] Best super-class for context handling. Ideally your business objects shouldn't know anything about the deployment environment. Not only is this good design, but it also allows you to migrate between (or support multiple) deployment environments with minimal hassle. If all you want to do is convert between relative paths and URI's, you should be able to use the facilities provided by java.io.File and java.net.URI, regardless of deployment context. Or am I missing something? Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:49:57 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: [OT] Best super-class for context handling. It's not for the actions (sorry I should have stated it in my original post) it's for the business logic and auxillary classes. Cheers Simon. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 2:52 PM Subject: Re: [OT] Best super-class for context handling. There shouldn't be a need to pass the ServletContext around. Just call servlet.getServletContext() within your action. Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure Operations [EMAIL PROTECTED] (614) 213-6100 Simon Kelly [EMAIL PROTECTED] on 07/30/2003 08:31:25 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: [OT] Best super-class for context handling. Hi all, Bit off topic, sorry. But. What is the recommended super class to extend for a static class that could handle URL resolving? I want to put any code from all my other classes into one single class so I don't have to keep passing the ServletContext around when a class needs to resolve an absolute path or resolve a URL within the context. Any help appreciated. Cheers Simon 'My Friend sent me a postcard with a picture of the Earth. On the back he wrote: Wish you were here' - Steven Wright Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : [EMAIL PROTECTED]
RE: [OT]http to https shift
So your form resides on Websphere and you want to post it to the tomcat server? Or is it vice-versa? Can you please explain what exactly you are trying to do? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: [OT]http to https shift Hi, i have a website running on tomcat and also on websphere, i want to change some submit to go using https, like the login page and some sensitive information, can anyone point to some resource, where i can get info about submiting a secured response, on tomcat and websphere Ashish __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]http to https shift
Hi, i have website which works on tomcat or websphere, it is dependent on the client to select anyone, so if the client is using tomcat the form will be on tomcat and will be submited on tomcat, and same will be for websphere Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: So your form resides on Websphere and you want to post it to the tomcat server? Or is it vice-versa? Can you please explain what exactly you are trying to do? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: [OT]http to https shift Hi, i have a website running on tomcat and also on websphere, i want to change some submit to go using https, like the login page and some sensitive information, can anyone point to some resource, where i can get info about submiting a secured response, on tomcat and websphere Ashish __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple modules - Please help
It wouldn't be (easily) possible to change ForwardAction to be configurable between context and module relative because the ActionMapping only has one parameter which is already being used to provide the path. A couple of options would be to create a second version of ForwardAction (ModuleForwardAction ?) that returns a module relative ActionForward, or to create a simple action that returns an ActionForward which is configured in struts-config with a well-known name (success, in my example). I prefer the latter approach because it is more flexible and uses the standard method of configuring the ActionForward via struts-config. You'd have to create your own for now, but I hope to add this as a standard action. The action (SuccessAction): public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mapping.findForward(success); } struts-config.xml: !-- Module relative mapping -- action path=/showEdit type=com.ninsky.struts.actions.SuccessAction forward name=success path=/edit.jsp/ /action -or- !-- Context relative mapping -- action path=/showEdit type=com.ninsky.struts.actions.SuccessAction forward name=success path=/admin/edit.jsp contextRelative=true/ /action Steve -Original Message- From: Ajay Patil [mailto:[EMAIL PROTECTED] Sent: July 29, 2003 7:11 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Multiple modules - Please help Dear Steve, Thanks for finding the problem in the configuration file. I had not realized it. ** sorry for the typo in bug report ** So, now I have an enhancement request.. :) Would it be possible to enhance ForwardAction so that it also requires a MODULE relative path ? It would be then very intuitive and convenient. Also, splitting into modules will be easier as you simply have to chop off the module path globally. Changing module names will be even easier. If you think the above is ok and it doesnt conflict with the current implementation, I shall re-open the bug as an enhancement request. Please let me know, Thanks a bunch, Ajay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
request.getSession().invalidate() problem
Hi, I am using the invalidate() method to force logout of the logged client but even after a call to this method, clients can navigate to a secured content without beeing prompt for their password. Do you know what the problem is and/or how to solve it ? thanks, ionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using DynaValidatorForm and html:select
thanks, after changing that and the cast to String[] it works :) -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: 30 July 2003 15:32 To: 'Struts Users Mailing List' Subject: RE: Problem using DynaValidatorForm and html:select Not sure if anybody solved you problem yet (I'm catching up on many struts emails) but change the one line in your struts config: form-property name=property1 type=java.lang.String[] / -Original Message- From: Daniel Massie [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 8:52 AM To: Struts Users Mailing List Subject: Problem using DynaValidatorForm and html:select In my form I have a html:select field with multiple=true as shown below: html:select multiple=true property=property1 logic:iterate collection=%=myTypes% id=type type=java.lang.String html:option value=%=type%/ bean:write name=type/ /html:option /logic:iterate /html:select where myTypes is String[]. In my struts-config file I am using DynaValidatorForms for the form beans. The form bean for the above is: form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=property1 type=java.lang.String / /form-bean In my Action class for this form I have tried to retrieve the values with: String prop1 = (String) form.get(property1); but this only returns the first element of the multiple select. I've also tried to use ArrayLists for the above casting,and also as the type for the form-property. When used for the casting I get a class cast exception. When used for the form-property I get informed that its an icompatible type as the select is returning a string. Does anyone know how to solve this problem? Thanks Daniel Massie - 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: [OT]http to https shift
Well in that case if you have your site running on https then the form will automatically be submitted via https. Make sure that your login page is being submitted via https (https://www.yourserver.com/login.jsp --Amit -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:49 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, i have website which works on tomcat or websphere, it is dependent on the client to select anyone, so if the client is using tomcat the form will be on tomcat and will be submited on tomcat, and same will be for websphere Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: So your form resides on Websphere and you want to post it to the tomcat server? Or is it vice-versa? Can you please explain what exactly you are trying to do? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: [OT]http to https shift Hi, i have a website running on tomcat and also on websphere, i want to change some submit to go using https, like the login page and some sensitive information, can anyone point to some resource, where i can get info about submiting a secured response, on tomcat and websphere Ashish __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: Openings in J2EE/Struts
For future reference, commercial announcement emails like this one should have a subject that begins with [ANN]. This allows readers to filter traffic that is not specifically Struts related. K.C. Ajay Patil wrote: Hello, I am forwarding information about openings in J2EE/Struts in our company (based in Pune, India). Please email to Viraj ([EMAIL PROTECTED]) if interested. Thanks, Ajay Dear Friends, We are looking for Senior Software professionals with experience in Advanced Java technology. The candidates should have atleast 3-4 years of total IT experience out of which the recent 2 years experience should be of working on Advanced Java. If you know someone who is interested please send the profile to me or ask the candidate to get in touch with me. Its very very urgent !! thanks and regards, Viraj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lost form data after form.validate() and issuing error messages
Hello again, I wrote struts-config.xml wrong, the rright one is as follows: !-- -- action path=/showx attribute=XForm scope=request validate=false type=com.xxx.yyy.ShowXAction forward name=success path=/x.jsp/ /action !-- -- action path=/x name=XForm scope=request input=/showx.do validate=true type=com.xxx.yyy.XAction forward name=success path=/showy.do/ /action cheers, tuna Tuna Vardar wrote: Hello, I lose all form data if validate returns error for the form input. If action goes through validation without creating of any errors, XAction works fine. ShowXAction is used to display jsp and jsp posts to XAction. Any comments? You can see the code below. cheers, tuna * ShowXAction.java looks like follows: public final class ShowXAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception{ // Update form data if (form == null) { form = new XForm(); if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else session.setAttribute(mapping.getAttribute(), form); } XForm f = (XForm)form; f.setA(...); f.setB(...); //ensure, that form is submited only once saveToken(request);return mapping.findForward(success); } XAction.java looks like: public final class XAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { XForm f = (XForm)form; XBean b = new XBean(f.getA(), f.getB()); b.store(); //ensure, that form is submited only once saveToken(request);return mapping.findForward(success); } and struts-config.xml is like follows: !-- -- action path=/showx attribute=XForm scope=request validate=false type=com.xxx.yyy.ShowXAction forward name=success path=/x.jsp/ /action !-- -- action path=/x name=XForm scope=request input=/x.do validate=true type=com.xxx.yyy.XAction forward name=success path=/showy.do/ /action and finally XForm is like follows: public final class XForm extends ActionForm { private String a = null; private String b = null; public String getA() { return this.a; } public void setA(String a) { this.a = a; } public String getB() { return this.b; } public void setB(String b) { this.b = b; } public void reset(ActionMapping mapping, HttpServletRequest request) { this.a = null; this.b = null; } public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((this.a == null) || (this.a.trim().length() == 0)) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(form.a.missing)); } if ((this.b == null) || (this.b.trim().length() == 0)) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(form.b.missing)); } return errors; } public String toString() { StringBuffer sb = new StringBuffer(XForm[); sb.append(a=).append(this.a); sb.append(,b=).append(this.b); return sb.toString(); } } - 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 needed in Struts deployment on Weblogic 8.1
Hi Rajendra, The problem is - f I only deploy the .war of my application. It works fine. However, if I deploy the same .war within a .ear file, the error appears. Regards, Sourav -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 6:52 PM To: Struts Users Mailing List Subject: Re: Help needed in Struts deployment on Weblogic 8.1 This note might help: Appservers are not meant to make everything deployed on them accessible to the classpath of everything else. You still need to tell it where things lie. I'll assume that the servlet is in a WAR file, and the WAR file, in turn, is packaged in an EAR file, like this: theEar.ear |-- theEjb.jar |-- theWar.war |-- lib/libJar.jar theWar.war then, in order to find the EJB, needs to have a MANIFEST.MF file in it, with a Class-Path entry of theEjb.jar (the packaging as according to the relative locations in the EAR file). If you have a class that doesn't live in either the EJB jar or the WAR archive, then you should package that up into a jar file, and put it in the EAR (like lib/libJar.jar). Then, extend the Class-Path entry for theWar.war to include lib/libJar.jar. Likewise, if the EJB jar needs it, extend the Class-Path entry in it's MANIFEST.MF file. These issues are covered in the J2EE 1.3 spec, and the Java Extension Mechanism Spec. (J2EE 1.2 was meant to use this as well, but it was only implicit, not explicit.) thanks -raj Navneet Saraogi [EMAIL PROTECTED]To: [EMAIL PROTECTED] nfosys.com cc: Subject: Help needed in Struts deployment on Weblogic 8.1 30/07/2003 06:40 PM Please respond to Struts Users Mailing List Hi, We've a application that uses Struts 1.0 Ejb's... This application is deployed on Weblogic 8.1 on a Windows XP machine... We've created an ear for the application and deployed it using the admin console... The familiar classNotFound issue has been hauting us for some time... Initially I placed the struts.jar in the WEB-INF\lib of the web module(web.war) and deployed only the web module... It was working fine till then... Then I added a ejb module(ejb.jar) and created a app.ear using these files... This is when the problem started... Initially the ActionForm class of the struts package was not getiing loaded... We moved the struts.jar from the web-inf\lib to applib folder of the ear... This issue was resolved but then the classes present in the .war files were not getting loaded... We've other jar files that were initially present in the WEB-INF\lib folder which were also not getting loaded... We then moved all the jar files to the outer most ear... Even then the issue was not resolved... We added the MANIFEST.MF file to the web.war ejb.jar specifying the classpath for the jar files... No solution still... Next we added the classpath to the MANIFEST.MF file of the ear... Still no solution... We tried probably every possible permutation combination of placing the jar files in the various modules but some classes never get loaded... What is the solution to this problem?? We are using a evaluation copy of Weblogic... Is it because of that??? If not, is it an inherent problem with struts 1.0 (in this case should we use struts 1.1??) Any help in this matter would be welcomed... Navneet Saraogi - 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: [OT]http to https shift
Hi, this is what i need to do suppose i have a jsp login.jsp and there is a form defined in in like this html:form action=pages/login focus=userId /html:form how can i make this request go using https instead of http Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: Well in that case if you have your site running on https then the form will automatically be submitted via https. Make sure that your login page is being submitted via https (https://www.yourserver.com/login.jsp --Amit -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:49 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, i have website which works on tomcat or websphere, it is dependent on the client to select anyone, so if the client is using tomcat the form will be on tomcat and will be submited on tomcat, and same will be for websphere Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: So your form resides on Websphere and you want to post it to the tomcat server? Or is it vice-versa? Can you please explain what exactly you are trying to do? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: [OT]http to https shift Hi, i have a website running on tomcat and also on websphere, i want to change some submit to go using https, like the login page and some sensitive information, can anyone point to some resource, where i can get info about submiting a secured response, on tomcat and websphere Ashish __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lost form data after form.validate() and issuing error messages
yes, it goes to execute method of ShowXAction. Pankaj Borgaonkar wrote: Did u checked that after validate is the control is going to ShowXAction this method ? -Original Message- From: Tuna Vardar [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 8:45 PM To: Struts Users Mailing List Subject: Re: Lost form data after form.validate() and issuing error messages Hello again, I wrote struts-config.xml wrong, the rright one is as follows: !-- -- action path=/showx attribute=XForm scope=request validate=false type=com.xxx.yyy.ShowXAction forward name=success path=/x.jsp/ /action !-- -- action path=/x name=XForm scope=request input=/showx.do validate=true type=com.xxx.yyy.XAction forward name=success path=/showy.do/ /action cheers, tuna Tuna Vardar wrote: Hello, I lose all form data if validate returns error for the form input. If action goes through validation without creating of any errors, XAction works fine. ShowXAction is used to display jsp and jsp posts to XAction. Any comments? You can see the code below. cheers, tuna * ShowXAction.java looks like follows: public final class ShowXAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception{ // Update form data if (form == null) { form = new XForm(); if (request.equals(mapping.getScope())) request.setAttribute(mapping.getAttribute(), form); else session.setAttribute(mapping.getAttribute(), form); } XForm f = (XForm)form; f.setA(...); f.setB(...); //ensure, that form is submited only once saveToken(request);return mapping.findForward(success); } XAction.java looks like: public final class XAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { XForm f = (XForm)form; XBean b = new XBean(f.getA(), f.getB()); b.store(); //ensure, that form is submited only once saveToken(request);return mapping.findForward(success); } and struts-config.xml is like follows: !-- -- action path=/showx attribute=XForm scope=request validate=false type=com.xxx.yyy.ShowXAction forward name=success path=/x.jsp/ /action !-- -- action path=/x name=XForm scope=request input=/x.do validate=true type=com.xxx.yyy.XAction forward name=success path=/showy.do/ /action and finally XForm is like follows: public final class XForm extends ActionForm { private String a = null; private String b = null; public String getA() { return this.a; } public void setA(String a) { this.a = a; } public String getB() { return this.b; } public void setB(String b) { this.b = b; } public void reset(ActionMapping mapping, HttpServletRequest request) { this.a = null; this.b = null; } public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if ((this.a == null) || (this.a.trim().length() == 0)) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(form.a.missing)); } if ((this.b == null) || (this.b.trim().length() == 0)) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(form.b.missing)); } return errors; } public String toString() { StringBuffer sb = new StringBuffer(XForm[); sb.append(a=).append(this.a); sb.append(,b=).append(this.b); return sb.toString(); } } - 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: [OT]http to https shift
It works automatically! You don't have to mess with anything if you make sure that the user is accessing the login.jsp page via https -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:24 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, this is what i need to do suppose i have a jsp login.jsp and there is a form defined in in like this html:form action=pages/login focus=userId /html:form how can i make this request go using https instead of http Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: Well in that case if you have your site running on https then the form will automatically be submitted via https. Make sure that your login page is being submitted via https (https://www.yourserver.com/login.jsp --Amit -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:49 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, i have website which works on tomcat or websphere, it is dependent on the client to select anyone, so if the client is using tomcat the form will be on tomcat and will be submited on tomcat, and same will be for websphere Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: So your form resides on Websphere and you want to post it to the tomcat server? Or is it vice-versa? Can you please explain what exactly you are trying to do? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: [OT]http to https shift Hi, i have a website running on tomcat and also on websphere, i want to change some submit to go using https, like the login page and some sensitive information, can anyone point to some resource, where i can get info about submiting a secured response, on tomcat and websphere Ashish __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validating fields only in some situations question....
Hello, I have a question : I am using Validator framework with Struts. I have a login form on my web page which is associated with 3 buttons - Login, to log the user in Reset , to reset the form fields Register, which brings the user to a new registration page I use only one Action of the type DispatchAction which determines what exactly to do. My question is : how can I tell the Validator framework to perform validation only when the user presses the Login button and to ignore the vallidation when the users presses any of the two other buttons ? Thanks, Todor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help needed in Struts deployment on Weblogic 8.1
the ear should know where the war is. Are you using ant ? Where you make your web app... make sure you include struts.jat in lib dir tag . thanks -raj souravm [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] com cc: Subject: RE: Help needed in Struts deployment on Weblogic 8.1 30/07/2003 08:46 PM Please respond to Struts Users Mailing List Hi Rajendra, The problem is - f I only deploy the .war of my application. It works fine. However, if I deploy the same .war within a .ear file, the error appears. Regards, Sourav -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 6:52 PM To: Struts Users Mailing List Subject: Re: Help needed in Struts deployment on Weblogic 8.1 This note might help: Appservers are not meant to make everything deployed on them accessible to the classpath of everything else. You still need to tell it where things lie. I'll assume that the servlet is in a WAR file, and the WAR file, in turn, is packaged in an EAR file, like this: theEar.ear |-- theEjb.jar |-- theWar.war |-- lib/libJar.jar theWar.war then, in order to find the EJB, needs to have a MANIFEST.MF file in it, with a Class-Path entry of theEjb.jar (the packaging as according to the relative locations in the EAR file). If you have a class that doesn't live in either the EJB jar or the WAR archive, then you should package that up into a jar file, and put it in the EAR (like lib/libJar.jar). Then, extend the Class-Path entry for theWar.war to include lib/libJar.jar. Likewise, if the EJB jar needs it, extend the Class-Path entry in it's MANIFEST.MF file. These issues are covered in the J2EE 1.3 spec, and the Java Extension Mechanism Spec. (J2EE 1.2 was meant to use this as well, but it was only implicit, not explicit.) thanks -raj Navneet Saraogi [EMAIL PROTECTED]To: [EMAIL PROTECTED] nfosys.com cc: Subject: Help needed in Struts deployment on Weblogic 8.1 30/07/2003 06:40 PM Please respond to Struts Users Mailing List Hi, We've a application that uses Struts 1.0 Ejb's... This application is deployed on Weblogic 8.1 on a Windows XP machine... We've created an ear for the application and deployed it using the admin console... The familiar classNotFound issue has been hauting us for some time... Initially I placed the struts.jar in the WEB-INF\lib of the web module(web.war) and deployed only the web module... It was working fine till then... Then I added a ejb module(ejb.jar) and created a app.ear using these files... This is when the problem started... Initially the ActionForm class of the struts package was not getiing loaded... We moved the struts.jar from the web-inf\lib to applib folder of the ear... This issue was resolved but then the classes present in the .war files were not getting loaded... We've other jar files that were initially present in the WEB-INF\lib folder which were also not getting loaded... We then moved all the jar files to the outer most ear... Even then the issue was not resolved... We added the MANIFEST.MF file to the web.war ejb.jar specifying the classpath for the jar files... No solution still... Next we added the classpath to the MANIFEST.MF file of the ear... Still no
RE: [OT]http to https shift
You can get full details of how to switch back and forth between https and http at following link, as well at the other following link you can down load the distribution. Hope this helps http://jakarta.apache.org/struts/faqs/ssl.html http://sourceforge.net/project/showfiles.php?group_id=59967 Jay -Original Message- From: Amit Kirdatt [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 8:32 AM To: 'Struts Users Mailing List' Subject: RE: [OT]http to https shift It works automatically! You don't have to mess with anything if you make sure that the user is accessing the login.jsp page via https -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:24 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, this is what i need to do suppose i have a jsp login.jsp and there is a form defined in in like this html:form action=pages/login focus=userId /html:form how can i make this request go using https instead of http Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: Well in that case if you have your site running on https then the form will automatically be submitted via https. Make sure that your login page is being submitted via https (https://www.yourserver.com/login.jsp --Amit -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:49 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, i have website which works on tomcat or websphere, it is dependent on the client to select anyone, so if the client is using tomcat the form will be on tomcat and will be submited on tomcat, and same will be for websphere Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: So your form resides on Websphere and you want to post it to the tomcat server? Or is it vice-versa? Can you please explain what exactly you are trying to do? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: [OT]http to https shift Hi, i have a website running on tomcat and also on websphere, i want to change some submit to go using https, like the login page and some sensitive information, can anyone point to some resource, where i can get info about submiting a secured response, on tomcat and websphere Ashish __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader
RE: Validating fields only in some situations question....
I haven't tried this myself, this is directly from Ted's book Struts in Action(http://javaboutique.internet.com/resources/books/strutsAction/struts7 _2.html): html:cancel onclick=bCancel=true/ Suzette H. Daniel -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:37 AM To: Struts Users Mailing List Subject: Validating fields only in some situations question Hello, I have a question : I am using Validator framework with Struts. I have a login form on my web page which is associated with 3 buttons - Login, to log the user in Reset , to reset the form fields Register, which brings the user to a new registration page I use only one Action of the type DispatchAction which determines what exactly to do. My question is : how can I tell the Validator framework to perform validation only when the user presses the Login button and to ignore the vallidation when the users presses any of the two other buttons ? Thanks, Todor - 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: Validating fields only in some situations question....
I asked pretty much the same question a few hours ago. Heres the answer I got... Not sure if anybody answered you question or not yet but there are a couple things you can do... 1. Have many action mappings to one DispatchAction. action path=/a parameter=subtask type=my.Dispatch ... ... /action action path=/b parameter=subtask type=my.Dispatch ... ... /action link to each as /a.do?subtask=method1 and /b.do?subtask=method2 and then do validation per action and not per form. The other alternative suggested by Robert Taylor, which, once set up, is pretty slick but involves a little extension to how validator works: http://marc.theaimsgroup.com/?t=10535260067r=1w=2 -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 7:59 AM To: 'Struts Users Mailing List' Subject: DispatchActions - using form validation for only some methods Hi, I've just moved to using dispatch actions from my own implementation of something similair to relay actions. One facility my implementation gave me was to have the form validated when some actions were called, and not validated for other actions (at the expense of a bloated struts-config.xml). Using dispatch actions I am now explicitly calling the form's validation for those methods that require a validated form: ActionErrors errors = form.validate(mapping, request); if(!errors.isEmpty()) { saveErrors(request, errors); return new ActionForward(mapping.getInput()); } Is there a better way of achieving this? thanks, Paul -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] Sent: 30 July 2003 16:37 To: Struts Users Mailing List Subject: Validating fields only in some situations question Hello, I have a question : I am using Validator framework with Struts. I have a login form on my web page which is associated with 3 buttons - Login, to log the user in Reset , to reset the form fields Register, which brings the user to a new registration page I use only one Action of the type DispatchAction which determines what exactly to do. My question is : how can I tell the Validator framework to perform validation only when the user presses the Login button and to ignore the vallidation when the users presses any of the two other buttons ? Thanks, Todor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request.getSession().invalidate() problem
If you are using BASIC authentication, it will never work because of the way browsers work. []s Michael Nascimento Santos JSR-207 Expert Group Member Sun Certified Programmer for the Java 2 Platform Sun Certified Programmer for the Java 2 Platform 1.4 Sun Certified Web Component Developer for J2EE Moderador SouJava - www.soujava.org.br - Original Message - From: Ionel Gardais [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:47 AM Subject: request.getSession().invalidate() problem Hi, I am using the invalidate() method to force logout of the logged client but even after a call to this method, clients can navigate to a secured content without beeing prompt for their password. Do you know what the problem is and/or how to solve it ? thanks, ionel - 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: request.getSession().invalidate() problem
Ionel Gardais wrote: Hi, I am using the invalidate() method to force logout of the logged client but even after a call to this method, clients can navigate to a secured content without beeing prompt for their password. Do you know what the problem is and/or how to solve it ? This only works if you are doing your own authentication (such as with filters etc) by storing authenticated state in the session. If you use container-managed authentication, you cannot invalidate the user's session -- IIRC the best you can do is adjust the session timeout value. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]http to https shift
Hi I have login.jsp called from http, so need to switch to https while submiting the request Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: It works automatically! You don't have to mess with anything if you make sure that the user is accessing the login.jsp page via https -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:24 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, this is what i need to do suppose i have a jsp login.jsp and there is a form defined in in like this html:form action=pages/login focus=userId /html:form how can i make this request go using https instead of http Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: Well in that case if you have your site running on https then the form will automatically be submitted via https. Make sure that your login page is being submitted via https (https://www.yourserver.com/login.jsp --Amit -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:49 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, i have website which works on tomcat or websphere, it is dependent on the client to select anyone, so if the client is using tomcat the form will be on tomcat and will be submited on tomcat, and same will be for websphere Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: So your form resides on Websphere and you want to post it to the tomcat server? Or is it vice-versa? Can you please explain what exactly you are trying to do? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: [OT]http to https shift Hi, i have a website running on tomcat and also on websphere, i want to change some submit to go using https, like the login page and some sensitive information, can anyone point to some resource, where i can get info about submiting a secured response, on tomcat and websphere Ashish __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or
RE: [OT]http to https shift
Hi Thanx Ashish --- Mounagurusamy, Jayakumar (HAL) [EMAIL PROTECTED] wrote: You can get full details of how to switch back and forth between https and http at following link, as well at the other following link you can down load the distribution. Hope this helps http://jakarta.apache.org/struts/faqs/ssl.html http://sourceforge.net/project/showfiles.php?group_id=59967 Jay -Original Message- From: Amit Kirdatt [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 8:32 AM To: 'Struts Users Mailing List' Subject: RE: [OT]http to https shift It works automatically! You don't have to mess with anything if you make sure that the user is accessing the login.jsp page via https -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:24 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, this is what i need to do suppose i have a jsp login.jsp and there is a form defined in in like this html:form action=pages/login focus=userId /html:form how can i make this request go using https instead of http Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: Well in that case if you have your site running on https then the form will automatically be submitted via https. Make sure that your login page is being submitted via https (https://www.yourserver.com/login.jsp --Amit -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:49 AM To: Struts Users Mailing List Subject: RE: [OT]http to https shift Hi, i have website which works on tomcat or websphere, it is dependent on the client to select anyone, so if the client is using tomcat the form will be on tomcat and will be submited on tomcat, and same will be for websphere Ashish --- Amit Kirdatt [EMAIL PROTECTED] wrote: So your form resides on Websphere and you want to post it to the tomcat server? Or is it vice-versa? Can you please explain what exactly you are trying to do? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:10 AM To: [EMAIL PROTECTED] Subject: [OT]http to https shift Hi, i have a website running on tomcat and also on websphere, i want to change some submit to go using https, like the login page and some sensitive information, can anyone point to some resource, where i can get info about submiting a secured response, on tomcat and websphere Ashish __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Prob:Calling a bean:write inside html:text
Hi, Even though this is a frequent question, I could not get the Exact syntax for doing it. I tried initializing a textbox from one of the earlier bean's property,by nesting the bean:write inside html:text. It is giving errors. html:text property=username value = bean:writeproperty=phonename=registrationForm// I tried leaving the quotes but invain. Is there a proper syntax for such operation? Thanks. J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC ) Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie-question: validation across multiple pages
Hi all, I've been studying the mailing list but couldn't find anything that would help me. I'd be grateful if someone could give me a hint on this: I am collecting user input across multiple pages and validate it in the validate() method of the ActionForm. If an input field on the second or the third page is empty after submit, the framework will take me back to the first page. How can I make him turn me back to the page where the input field was left blank? Greetings Sebastian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Best super-class for context handling.
On Wed, 30 Jul 2003, Simon Kelly wrote: Date: Wed, 30 Jul 2003 15:47:55 +0200 From: Simon Kelly [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT] Best super-class for context handling. Ah, right. Not sure whether that's what I'm after. Here's a better explination. I am using files that are contained within the /WEB-INF/ dir within the web application to hold information required by the business logic. These files are not part of the controller or view but are required to generate the content data for the action classes. So I need something that will get the paths regardless of the enviroment they are in. I have chosen to pass all file names within the business logic in the form /WEB-INF/dir/file.x and have been using context.getRealPath() [or the correct method if that's wrong] to get the path name (which I had thought would be ok as it will always return the correct path regardless of where the webapp is deployed). Is this wrong, and is there a better way to do it? Assuming you're in an Action, do this: InputStream is = servlet.getServletContext().getResourceAsStream(/WEB-INF/dir/file.x); It will be portable everywhere, even if you end up running on containers that don't expand your webapp into an unpacked directory -- in those environments, getRealPath() will return null. Cheers Simon Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Prob:Calling a bean:write inside html:text
YOU CAN'T NEST TAGS. YOU CAN'T NEST TAGS. You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags is prohibited. If you nest a tag inside another tag, the page won't compile. Nesting tags ist verbotten. Do not nest tags if you want your page to work. The following won't work: html:test property=bean:write property=something / / The above won't work. Working pages do not have nested tags. The JSP specification prohibits nesting tags. If you nest tags, you are supporting terrorists. If you put one tag inside the attribute of another tag, the page will not compile. All work and no play make Homer something something. -= J -Original Message- From: guruprasad jakka [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:21 AM To: [EMAIL PROTECTED] Subject: Prob:Calling a bean:write inside html:text Hi, Even though this is a frequent question, I could not get the Exact syntax for doing it. I tried initializing a textbox from one of the earlier bean's property,by nesting the bean:write inside html:text. It is giving errors. html:textproperty=username value = bean:write property=phonename=registrationForm// I tried leaving the quotes but invain. Is there a proper syntax for such operation? Thanks. J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC ) Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - 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: Prob:Calling a bean:write inside html:text
hmm...someone on a rant here ;) what you want to do is something like: html:text name=yourBeanName property=yourBeanGetter/ -Original Message- From: James Childers [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 12:36 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Prob:Calling a bean:write inside html:text YOU CAN'T NEST TAGS. YOU CAN'T NEST TAGS. You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags is prohibited. If you nest a tag inside another tag, the page won't compile. Nesting tags ist verbotten. Do not nest tags if you want your page to work. The following won't work: html:test property=bean:write property=something / / The above won't work. Working pages do not have nested tags. The JSP specification prohibits nesting tags. If you nest tags, you are supporting terrorists. If you put one tag inside the attribute of another tag, the page will not compile. All work and no play make Homer something something. -= J -Original Message- From: guruprasad jakka [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:21 AM To: [EMAIL PROTECTED] Subject: Prob:Calling a bean:write inside html:text Hi, Even though this is a frequent question, I could not get the Exact syntax for doing it. I tried initializing a textbox from one of the earlier bean's property,by nesting the bean:write inside html:text. It is giving errors. html:textproperty=username value = bean:write property=phonename=registrationForm// I tried leaving the quotes but invain. Is there a proper syntax for such operation? Thanks. J G Guru Prasad V sem, Information Technology, Bachelor of Engineering, National Institute of Technology Karnataka, Surathkal. ( formerly KREC ) Get your own 800 number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag - 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]
extension + extended path info
All, I have a question about extended path info. It seems like an increasingly common way of passing additional information (action/read/update type info) to the servlet context. Is there any move to suggest this (or has it been suggested) as an improvement to the framework? It seems it would be helpful to be able to use extension mapping, but also be able to get the extended path info (or visa versa) as a way to integrate J2EE security with the framework. Just a thought, wondering if there is any interest. This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Problem in using Validator Framework with Struts
Hi! No, the code was not cut and paste... Dirk If your code is a direct cut-n-paste, you've got an extra '' in your first regular expression? var-value^[a-zA-Z0-9_.-]*$/var-value -jeff On Wednesday, July 30, 2003, at 07:14 AM, Dirk Behrendt wrote: var-value^[a-zA-Z0-9_.-]*$/var-value -Ursprüngliche Nachricht- Von: Dirk Behrendt [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Juli 2003 14:14 An: [EMAIL PROTECTED] Betreff: AW: Problem in using Validator Framework with Struts Hello! I found the problem. I poited to a wrong DTD... Thanx! Dirk -Ursprüngliche Nachricht- Von: Stephan Wiesner [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Juli 2003 06:58 An: Struts Users Mailing List Betreff: Re: Problem in using Validator Framework with Struts Hi Dirk, did you activate the plugin in struts-config? Maybe a typo? Struts 1.1 already contains the activated plugin and there is an example war where you might want to copy paste some lines. Dirk Behrendt wrote: Hello! I have a problem in using the Validator framework with Struts. I want to check textfields. When I start Tomcat, I got a lot of parse erros like this: element type plug-in must be declared. org.xml.SAXParseException I looked at other validation examples, but I did the same like in these examples. What is the general problem of such errors? Thanx! Dirk struts-config.xml - form-bean name=loginForm type=org.apache.struts.webapp.validator.RegistrationForm/ plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml/ /plug-in validation.xml -- form name=loginForm field property=login depends=required,mask arg0 key=lable.login/ var var-namemask/var-name var-value^[a-zA-Z0-9_.-]*$/var-value /var /field field property=password depends=required,mask arg0 key=lable.password/ var var-namemask/var-name var-value^[a-zA-Z0-9_.-]*$/var-value /var /field /form - 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: Prob:Calling a bean:write inside html:text
On Wed, 30 Jul 2003, James Childers wrote: Date: Wed, 30 Jul 2003 11:35:53 -0500 From: James Childers [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Prob:Calling a bean:write inside html:text YOU CAN'T NEST TAGS. YOU CAN'T NEST TAGS. You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags is prohibited. If you nest a tag inside another tag, the page won't compile. Nesting tags ist verbotten. Do not nest tags if you want your page to work. The following won't work: html:test property=bean:write property=something / / It is true that this won't work, but I would caution you that nesting tags actually means something different: html:form ... html:text .../ html:text .../ /html:form which is perfectly legitimate. A correct sentence describing what you cannot do is You cannot use one tag to create all or part of the attribute value of another tag. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Link/Forward inside error message
Hi all, I have an error message in ApplicationResources.properties like this: error.password.expired=Your password has expired. Please go to Change Password and select a new one. However Change Password needs to be a link to the Password Management page. In the JSP, I would have put: html:link forward=passwordmanagement...etc, but I don't know how to put put the forward in the ApplicationResources file. Is there a syntax for this? Or can I get the content of the forward inside the Action and pass it to the error when I create the ActionError? For testing purposes, I put an a href=/myapp/jsp/changePassword.jsp tag in the error description, but I don't want to have to edit this every time we move the ContextPath of the application. Any suggestions? thanks, Kat __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with Struts 1.1, html-el, and weblogic 6.1
I am using WebLogic 6.1 and struts I have not tried html-el. There are a few options for where you can put the libraries: 1. I have them in the lib directory under WEB-INF. 2. Another option is to put them in the classpath in startWebLogic. 3. The priority/treatment of classes can be changed by selecting PreferWebInfClasses=true in the web application tag in config.xml. It is likely that the way you compile your JSP's impacts how the class loaders are structured and therefore what classes can be found. We use weblogic.jspc to compile the JSP's before deployment. However JSP's currently recompile in production. Note also that I have had difficulties with the WebLogic jsp compiler, depending on service pack. I have a patch for service pack 5 to address difficulties. Here is the 1.1 release code: /** * Return the codeClass/code object for the specified fully qualified * class name, from this web application's class loader. * * @param className Fully qualified class name to be loaded * @return Class object * @exception ClassNotFoundException if the class cannot be found */ public static Class applicationClass(String className) throws ClassNotFoundException { // Look up the class loader to be used ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if (classLoader == null) { classLoader = RequestUtils.class.getClassLoader(); } // Attempt to load the specified class return (classLoader.loadClass(className)); } I wonder if the context class loader is not set in one of the two cases. You may want to use a debugger, or add some debug logs to find out. Since it works one way and not the other, you can guess that WebLogic is doing something different in each case, which to my mind is unexpected behavoir. Brendan -Original Message- From: Jarrod M. Lugo [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 12:38 PM To: [EMAIL PROTECTED] Apache. Org Subject: Problems with Struts 1.1, html-el, and weblogic 6.1 I have been running Struts 1.1 on WebLogic 6.1 with no problems (using both the html and html-el taglibs), until I tried to use the precompile option. If I have a page that uses the html taglib, the compilation works fine. But if I change the page to use the html-el taglib, I get this error. Any help would be greatly appreciated. Regards, Jarrod Lugo [ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory java.lang.ClassNotFoundException: org.apache.struts.util.PropertyMessageResourcesFactoryjava.lang.ClassNotFou ndException: org.apache.struts.util.PropertyMessageResourcesFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:183) at java.lang.ClassLoader.loadClass(ClassLoader.java:294) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281) at java.lang.ClassLoader.loadClass(ClassLoader.java:250) at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207) at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource sFactory.java:192) at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:576) at org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:134) at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource sFactory.java:192) at org.apache.struts.util.MessageResources.getMessageResources(MessageResources .java:576) at org.apache.struts.taglib.html.BaseTag.clinit(BaseTag.java:94) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.class$(ELBaseTagBeanInfo.j ava:81) at org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.getPropertyDescriptors(ELB aseTagBeanInfo.java:81) at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:341) at java.beans.Introspector.getBeanInfo(Introspector.java:291) at java.beans.Introspector.getBeanInfo(Introspector.java:123) at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1034) at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:972) at weblogic.servlet.jsp.StandardTagLib.init(StandardTagLib.java:207) at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:150) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4596) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4434) at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4281) at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2167) at
Displaying is easy, capturing is not..
Hello Everyone, I wonder if someone can help me with this problem. I would appreciate any smart suggestion. I have a JSP that displays a collection (ValueObject fields) Let's call the collection ABC - it consists of 6 items. I might have more than one ABC collections to display. This can be done by setting a Vector which consists of a number of ABC collections, and simply I can iterate through the Vector in my JSP and display all the ABC collections I have using textboxes. When the user tries to change any of those textboxes, I should be able to capture them. I have one submit button that I am using, and if, for example, I have two ABC's there, I should be able to capture all 12 items. (note that I might have 100 ABCs, in which case I have to capture 600 items.) How can I do that using one submit button? Thank you in advance, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help needed in Struts deployment on Weblogic 8.1
This looks like a class loading issue. In particular it sounds like your action classes are being put into the ejb.jar as well as or instead of in the .war. Make sure that: - War contains web assets + action classes and libs used by the front end (e.g., struts.jar and friends) - EJB jar contains the EJBs and the classes the EJBs depend on - Note that as per 8.1 spec, common libraries (e.g,. beanutils if you use it in both struts and your ejbs go in the .ear file in app-inf/lib). The WLS classloading scheme makes sure that your war can see anything in the ejb jar (but not the other way around) and that both can see the app-inf/lib jars. Regards, Rich -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:40 AM To: Struts Users Mailing List Subject: RE: Help needed in Struts deployment on Weblogic 8.1 the ear should know where the war is. Are you using ant ? Where you make your web app... make sure you include struts.jat in lib dir tag . thanks -raj souravm [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] com cc: Subject: RE: Help needed in Struts deployment on Weblogic 8.1 30/07/2003 08:46 PM Please respond to Struts Users Mailing List Hi Rajendra, The problem is - f I only deploy the .war of my application. It works fine. However, if I deploy the same .war within a .ear file, the error appears. Regards, Sourav -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 6:52 PM To: Struts Users Mailing List Subject: Re: Help needed in Struts deployment on Weblogic 8.1 This note might help: Appservers are not meant to make everything deployed on them accessible to the classpath of everything else. You still need to tell it where things lie. I'll assume that the servlet is in a WAR file, and the WAR file, in turn, is packaged in an EAR file, like this: theEar.ear |-- theEjb.jar |-- theWar.war |-- lib/libJar.jar theWar.war then, in order to find the EJB, needs to have a MANIFEST.MF file in it, with a Class-Path entry of theEjb.jar (the packaging as according to the relative locations in the EAR file). If you have a class that doesn't live in either the EJB jar or the WAR archive, then you should package that up into a jar file, and put it in the EAR (like lib/libJar.jar). Then, extend the Class-Path entry for theWar.war to include lib/libJar.jar. Likewise, if the EJB jar needs it, extend the Class-Path entry in it's MANIFEST.MF file. These issues are covered in the J2EE 1.3 spec, and the Java Extension Mechanism Spec. (J2EE 1.2 was meant to use this as well, but it was only implicit, not explicit.) thanks -raj Navneet Saraogi [EMAIL PROTECTED]To: [EMAIL PROTECTED] nfosys.com cc: Subject: Help needed in Struts deployment on Weblogic 8.1 30/07/2003 06:40 PM Please respond to Struts Users Mailing List Hi, We've a application that uses Struts 1.0 Ejb's... This application is deployed on Weblogic 8.1 on a Windows XP machine... We've created an ear for the application and deployed it using the admin console... The familiar classNotFound issue has been hauting us for some time... Initially I placed the struts.jar in the WEB-INF\lib of the web
RE: Link/Forward inside error message
It makes sense that the struts tags are done being interpreted after the error message is displayed so it won't get interpreted if in the error message. You could do something like (possibly a little modification to determine exactly which error is returned): Properties file: error.password.expired=Your password has expired. JSP: html:errors/ logic:present name== org.apache.struts.Globals.ERROR_KEY % font color=red Please go to html:link forward=passwordmanagementChange Password/html:link and create a new one. /font /logic:present -Original Message- From: Kat Luna [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 1:23 PM To: struts Subject: Link/Forward inside error message Hi all, I have an error message in ApplicationResources.properties like this: error.password.expired=Your password has expired. Please go to Change Password and select a new one. However Change Password needs to be a link to the Password Management page. In the JSP, I would have put: html:link forward=passwordmanagement...etc, but I don't know how to put put the forward in the ApplicationResources file. Is there a syntax for this? Or can I get the content of the forward inside the Action and pass it to the error when I create the ActionError? For testing purposes, I put an a href=/myapp/jsp/changePassword.jsp tag in the error description, but I don't want to have to edit this every time we move the ContextPath of the application. Any suggestions? thanks, Kat __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.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]
Re: Displaying is easy, capturing is not..
Hello Mona, is ABC is bean that has six properties that you need to show? and then you have a collection of ABC objects in a List or Vector? if so, you can use the indexed properties to capture all the changes done on the page. and yes, usually one submit button is enough for six hundred values!!! ATTA - Original Message - From: Alawadhi, Mona [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:32 AM Subject: Displaying is easy, capturing is not.. Hello Everyone, I wonder if someone can help me with this problem. I would appreciate any smart suggestion. I have a JSP that displays a collection (ValueObject fields) Let's call the collection ABC - it consists of 6 items. I might have more than one ABC collections to display. This can be done by setting a Vector which consists of a number of ABC collections, and simply I can iterate through the Vector in my JSP and display all the ABC collections I have using textboxes. When the user tries to change any of those textboxes, I should be able to capture them. I have one submit button that I am using, and if, for example, I have two ABC's there, I should be able to capture all 12 items. (note that I might have 100 ABCs, in which case I have to capture 600 items.) How can I do that using one submit button? Thank you in advance, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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: Displaying is easy, capturing is not..
How can I do that using one submit button? Yes, see the discussions about indexed properties this week. That's what they're for. -TPP - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Displaying is easy, capturing is not..
Use Map Backed Beans for that... Panchasheel -Original Message- From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 1:32 PM To: Struts Users Mailing List Subject: Displaying is easy, capturing is not.. Hello Everyone, I wonder if someone can help me with this problem. I would appreciate any smart suggestion. I have a JSP that displays a collection (ValueObject fields) Let's call the collection ABC - it consists of 6 items. I might have more than one ABC collections to display. This can be done by setting a Vector which consists of a number of ABC collections, and simply I can iterate through the Vector in my JSP and display all the ABC collections I have using textboxes. When the user tries to change any of those textboxes, I should be able to capture them. I have one submit button that I am using, and if, for example, I have two ABC's there, I should be able to capture all 12 items. (note that I might have 100 ABCs, in which case I have to capture 600 items.) How can I do that using one submit button? Thank you in advance, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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: Displaying is easy, capturing is not..
Mona, I don't think the user's browser will handle many more than 50 (a guess) much less 600 text input elements on a single page. I think you should re-think the UI so that fewer input elements are needed. Handling 600 input fields on the server side will take a long time (several seconds to a few minutes). -Richard -Original Message- From: atta-ur rehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:50 AM To: Struts Users Mailing List Subject: Re: Displaying is easy, capturing is not.. Hello Mona, is ABC is bean that has six properties that you need to show? and then you have a collection of ABC objects in a List or Vector? if so, you can use the indexed properties to capture all the changes done on the page. and yes, usually one submit button is enough for six hundred values!!! ATTA - Original Message - From: Alawadhi, Mona [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:32 AM Subject: Displaying is easy, capturing is not.. Hello Everyone, I wonder if someone can help me with this problem. I would appreciate any smart suggestion. I have a JSP that displays a collection (ValueObject fields) Let's call the collection ABC - it consists of 6 items. I might have more than one ABC collections to display. This can be done by setting a Vector which consists of a number of ABC collections, and simply I can iterate through the Vector in my JSP and display all the ABC collections I have using textboxes. When the user tries to change any of those textboxes, I should be able to capture them. I have one submit button that I am using, and if, for example, I have two ABC's there, I should be able to capture all 12 items. (note that I might have 100 ABCs, in which case I have to capture 600 items.) How can I do that using one submit button? Thank you in advance, Mona * The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. * - 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: Prob:Calling a bean:write inside html:text - Nesting is nice
It would be nice if this: aTag anAtribute=aValue / Parsed the same as: aTag anAtributeaValue/anAttribute /aTag Failing that it would be nice if any tags with attribute also accepted nested tags with the same name and meaning as an alternative. Brendan -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 10:23 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: RE: Prob:Calling a bean:write inside html:text On Wed, 30 Jul 2003, James Childers wrote: Date: Wed, 30 Jul 2003 11:35:53 -0500 From: James Childers [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Prob:Calling a bean:write inside html:text YOU CAN'T NEST TAGS. YOU CAN'T NEST TAGS. You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags is prohibited. If you nest a tag inside another tag, the page won't compile. Nesting tags ist verbotten. Do not nest tags if you want your page to work. The following won't work: html:test property=bean:write property=something / / It is true that this won't work, but I would caution you that nesting tags actually means something different: html:form ... html:text .../ html:text .../ /html:form which is perfectly legitimate. A correct sentence describing what you cannot do is You cannot use one tag to create all or part of the attribute value of another tag. Craig - 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]