RE: child window problem, URGENT!!!!!!
Hi Guys, Thanks for replying. we are trying to acheive this problem by avoiding javascript and scriplets as much as possible. Let me explian our scenario: We have a JSP page lets call it page 'A' in which we have 3 fields LastName, FirstName and MiddleName. We also have a link for search on this page. We have option that user can enter first few letters of the last name and search for the person using search link. We wanted to open a new window lets call it 'B' and display the names found on the basis of user input. Now when user double clicks on one name in child window 'B', that name will be displayed back on to the parent window i.e. 'A' in the appropriate fields. We are using following approach for the above scenario: we have 2 JSP's and 2 formbeans associated to that JSPs. Now when user enters first few letters of the LastName on parent form 'A' and clicks search link, we submit itself i.e. parent Form. We also have one flag in parent form ,apart from other attributes, whose value is false by default. In action (We use DispatchAction) we create instance of child form 'B' and set the attributes for query into it and put that into session. We make the flag in parent form equal to true and forward the mapping to itself. Now in parent JSP we use logic tag to check the value of that flag, if it is true then we call a javascript function to open a child window 'B'. Now in child 'B' JSP onload we submit itself i.e. Child Form with action equal to 'search'. In search method in action class of child form we talk to the business delegate and call the method to get the results for the user input, which is present in the child form bean, since we set that from parent and put it in session. Now after we get the possible matches on the basis of user input from business we forward the mapping to same page i.e child jsp. Now when user double clicks the one value from the list, we submit child form itself with action equal to selectPerson. In this method we get the parent form from the session and set the appropriate values in LastName, FirstName and MiddleName from the selected value and set the flag in parentform equal to false. Then thru javascript in child JSP we are reloading the parent and closing the child window. This doesn't reload the parent window with new values in the formbean, which is being set in child action. We checked the session using debugger and we found that values in the parent form are being updated by child action correctly. Questions: 1) Does location.realod()[in javascript] flush the new values set in the session ? 2) What is the best way to refresh or submit the parent from child? 3) Is there any better way to solve this (By avoiding use of javascript and scriplets as much as possible)? Sorry for long Email. Any help will be appreciated. Thanks, Samip __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: BeanUtils.populate exception
Do you know what the root exception is? It's usually included in the stack trace of the servlet exception (called nested exception or something like that). I think that would give a hint at what's really wrong. / Tomas - Original Message - From: Miriam Aguirre [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 1:36 AM Subject: RE: BeanUtils.populate exception ok.. since i haven't gotten anywhere in the past 3 hours, i'll repost this.. (i even looked through the source code, RequestUtils.java:774 is a throw exception, ha ha). anyway, to further clarify my exasperation i have the following in a jsp: td align=righthtml:checkbox value=true name=recordForm property=trng/nbsp;nbsp;/td tdbean:message key=font/TRNG/font/td td align=righthtml:checkbox value=true name=recordForm property=mb30/nbsp;nbsp;/td tdbean:message key=font/MB30/font/td which is rendered as follows : td align=rightinput type=checkbox name=trng value=truenbsp;nbsp;/td tdfont face=Arial, Helvetica, sans-serif size=2TRNG/font/td td align=rightinput type=checkbox name=mb30 value=truenbsp;nbsp;/td tdfont face=Arial, Helvetica, sans-serif size=2MB30/font/td and in the form bean i have : public boolean getTrng() { if(getRecord() != null) { if(getRecord().getMedsAccessInfo().getTrng().intValue() == Constants.TRUE) return true; } return false; } public boolean getMb30() { if(getRecord() != null) { if(getRecord().getMedsAccessInfo().getMb30().intValue() == Constants.TRUE) return true; } return false; } public void setTrng(boolean _trng) { getRecord().getMedsAccessInfo().setTrng(new Integer(Constants.TRUE)); } public void setMb30(boolean _mb30) { getRecord().getMedsAccessInfo().setMb30(new Integer(Constants.TRUE)); } when displaying the page with a record, all the getters work fine. if trng is checked, and the form is submitted, it works. if trng is checked, and any other box(es) is/are checked, and the form is submitted, it works. if trng is unchecked, and the form is submitted, it does not work. i'm not sure what the BeanUtils is complaining about.. i searched through the archives, and it looks like these bean util exceptions occur with indexed properties, but in my case, they're not indexed. does anyone see the problem here? thanks, -Miriam -Original Message- From: Miriam Aguirre [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 1:19 PM To: '[EMAIL PROTECTED]' Subject: BeanUtils.populate exception I'm having a weird problem with a form --- the form has some basic html:text, html:select and html:checkbox , fields are available to the user depending on the level of access they have. the weird part happens with a bunch of checkbox fields, for some users, they all work great, for other users, if i unselect a specific box i get : javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774) at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20 61) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) 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:865) at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source) at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source) at com.kivasoft.applogic.AppLogic.execute(Unknown Source) at com.kivasoft.applogic.AppLogic.execute(Unknown Source) at com.kivasoft.thread.ThreadBasic.run(Native Method) at java.lang.Thread.run(Thread.java:479) this is really bizzare, because if all the boxes are checked, it works fine. so it isn't some Action form/ jsp field naming discrepancy... anyone have any ideas ? or seen anything like it? i'm using struts-1.0.2 with iplanet 6.0 sp 4 on both win2000 and solaris thanks. -Miriam -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1 + Tiles
I have checked the latest tiles-documentation.war, and it use the new plugin;-) Following is the syntax for web.xml and struts-config.xml, extracted from the example. If you use multi -modules (multi subapps), you need one struts-config.xml per module. Tiles factory parameters can be set in web.xml or in struts-config.xml. The plugin first load parameters from web.xml, then overload them with struts-config.xml. This allows to specify default values in web.xml in case of multi modules. An appropriate documentation should come soon. Hope this help, Cedric web.xml : servlet servlet-nameaction/servlet-name servlet-class*org.apache.struts.action.ActionServlet*/servlet-class init-param param-namedefinitions-config/param-name param-value/WEB-INF/tiles-defs.xml,/WEB-INF/tiles-tests-defs.xml,/WEB-INF/tiles-tutorial-defs.xml, /WEB-INF/tiles-examples-defs.xml/param-value /init-param init-param param-namedefinitions-debug/param-name param-value0/param-value /init-param init-param param-namedefinitions-parser-details/param-name param-value0/param-value /init-param init-param param-namedefinitions-parser-validate/param-name param-valuetrue/param-value /init-param struts-config.xml : ... !-- == Associated Messages Ressource settings === -- !-- Not used by tiles or this website, but needed due to a bug in actual Struts version -- message-resources parameter=org.apache.struts.webapp.tiles.dev1-1.ApplicationResources null=false / !-- The Tiles plugin -- plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml, /WEB-INF/tiles-tests-defs.xml,/WEB-INF/tiles-tutorial-defs.xml, /WEB-INF/tiles-examples-defs.xml / set-property property=definitions-debug value=1 / set-property property=definitions-parser-details value=0 / set-property property=definitions-parser-validate value=true / /plug-in ... Jerry Jalenak wrote: I downloaded the latest nightly build, but the example .war files haven't been updated for this plug-in yet. Cedric, do you have an example web.xml, struts-config.xml, etc. that you could post (for us dummies that still have trouble reading the DTD :))? Thanks! Jerry -Original Message- From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 7:37 AM To: Struts Users Mailing List Subject: Re: Struts 1.1 + Tiles Hello, The Tiles plugin is now available in the main Struts core. It is not documented yet. The tiles war coming with Struts use it. You can the struts-config.xml file for the syntax. With this plugin, you don't need to use the ComponentActionServlet anymore. The plugin also takes in charge the request processor declaration, so you don't need to declare it. Actually, the tiles war coming with Struts has some blank pages, due to the fact that we currently moving the documentation pages to Struts pages. Hope this help, Cedric Eddie Bush wrote: Hi guys - I'm just starting to delve off into the 1.1 + Tiles stuff. Some of the Tiles docs speak of a plugin, but I don't find any sort of plugin anywhere - nor do I see where Struts supports plugins. I _do_ find a RequestProcessor mentioned - and I'm betting that is the plugin. Could someone please aye or nay me? Just would like to hear it from someone other than myself ;-) Thanks! Eddie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at (800)388-4675. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Where is Execute method..?
Hi all..! I think i'm missing somthing...!! This is from the chapter 3 of the Struts book at the serverside.com. It mentions about this execute method. However in API ( Struts 1.0) i dont have this within the Action class ...!!! The Struts Action class contains several methods, but the most important is the execute() method. Here is the method signature: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException; The execute() method is called on an instance of an Action class by the controller when a request is received from a client Where is the execute method..? rgds ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where is Execute method..?
execute() appears from version 1.1b1. It replaces de perform(), despite Struts1.1b1 maintains performs() for backwards compatibility. Adolfo From: Manish_Purang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Where is Execute method..? Date: Tue, 16 Jul 2002 15:09:01 +0530 Hi all..! I think i'm missing somthing...!! This is from the chapter 3 of the Struts book at the serverside.com. It mentions about this execute method. However in API ( Struts 1.0) i dont have this within the Action class ...!!! The Struts Action class contains several methods, but the most important is the execute() method. Here is the method signature: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException; The execute() method is called on an instance of an Action class by the controller when a request is received from a client Where is the execute method..? rgds ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY centerbemAdolfo Rodriguez Miguelez/emb/center /BODY /HTML _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where is Execute method..?
thnx for the quick reply..! that means we don't have perform in the 1.1b and performs makes its first appearance from 1.1 b right...? -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: Re: Where is Execute method..? execute() appears from version 1.1b1. It replaces de perform(), despite Struts1.1b1 maintains performs() for backwards compatibility. Adolfo From: Manish_Purang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Where is Execute method..? Date: Tue, 16 Jul 2002 15:09:01 +0530 Hi all..! I think i'm missing somthing...!! This is from the chapter 3 of the Struts book at the serverside.com. It mentions about this execute method. However in API ( Struts 1.0) i dont have this within the Action class ...!!! The Struts Action class contains several methods, but the most important is the execute() method. Here is the method signature: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException; The execute() method is called on an instance of an Action class by the controller when a request is received from a client Where is the execute method..? rgds ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY centerbemAdolfo Rodriguez Miguelez/emb/center /BODY /HTML _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Latest Nightly builds - WebLogic 6.1sp3
Hi All, I've just downloaded two lots of nightly builds 14/7 15/7 and both are giving me the following exception with no further indication of the problem when attempting to deploy an app that works with the jars, dtd's and tld's provided with the 1.1b1 release: 16-Jul-02 10:49:31 BST Error J2EE Error deploying application spf: Could not load spf 16-Jul-02 10:49:31 BST Error Management Error deploying application C:\bea\wlserver6.1\config\mydomain\applications\spf.war: java.lang.reflect.UndeclaredThrowableException Unfortunately I can't get WebLogic to tell me much more. Has anyone else seen this exception whilst trying to deploy? Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated.
How to make the frames work with JSP templates?
Subject: How to make the frames work with JSP templates? From: Hu Ji Rong [EMAIL PROTECTED] === Hi, all We want the frames for some parts of the pages to have the scroll. For example, the menu and content part of the template need to be scrollable. === menu |content | | |=== logo | footer === In our case, the logo and footer (contains summit buttons) never change so we want to hard code them in the template instead of using template:get name='footer'/. So the final template.jsp looks like this, only the menu and content frame is changing, but how to change this ' frame src=country_details.htm name=contentFrame ' to use things like this: template:get name='footer'/. Or maybe I am asking the wrong question. Can you help? Thanks in advance. JiRong ~~~ %@ page language=java % %@ taglib uri=/WEB-INF/struts-template.tld prefix=template % htmlheadtitletemplate:get name='title'//title/head body background='../images/background.gif' frameset cols=170,* frameborder=NO marginheight=0 marginwidth=0 resize=no frameset rows=180,*,50 border=0 marginheight=0 marginwidth=0 scrolling=no frame src=../general/banner.htm name=bannerFrame frameborder=NO framespacing=0 scrolling=no noresize target=main frame src=country_menu.htm name=menuFrame frameborder=NO framespacing=0 scrolling=NO noresize frame src=../general/banner.htm name=logoFrame frameborder=NO framespacing=0 scrolling=no noresize target=main /frameset frameset frameborder=NO marginheight=0 marginwidth=0 resize=no rows=*,47 frame src=country_details.htm name=contentFrame frameborder=NO framespacing=0 noresize frame name=buttons scrolling=no noresize src=../general/buttons.htm target=contents /frameset /frameset /body/html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Latest Nightly build
Hi All, Further to my previous post I have just enabled all debugging/logging in Struts/WebLogic and download the very latest build. I'm still getting an exception when attempting to deploy a web app that works fine with the 1.1b1 release. The exception is : 16-Jul-02 11:33:25 BST Debug HTTP Exception thrown while loading spf: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:78) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java :398) etc.. This is caused by something in struts.jar. If I replace the jar with the 1.1b1 jar the app deploys. Any ideas, suggestions much appreciated. Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated.
AW: Latest Nightly builds - WebLogic 6.1sp3
Hi Jon, did you had a look into you weblogic 'domain' log file (default filename is wl-domain.log)? You'll probably find an exception stacktrace there. Robert Gottofrey -Ursprüngliche Nachricht- Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 16. Juli 2002 11:57 An: '[EMAIL PROTECTED]' Betreff: Latest Nightly builds - WebLogic 6.1sp3 Hi All, I've just downloaded two lots of nightly builds 14/7 15/7 and both are giving me the following exception with no further indication of the problem when attempting to deploy an app that works with the jars, dtd's and tld's provided with the 1.1b1 release: 16-Jul-02 10:49:31 BST Error J2EE Error deploying application spf: Could not load spf 16-Jul-02 10:49:31 BST Error Management Error deploying application C:\bea\wlserver6.1\config\mydomain\applications\spf.war: java.lang.reflect.UndeclaredThrowableException Unfortunately I can't get WebLogic to tell me much more. Has anyone else seen this exception whilst trying to deploy? Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Latest Nightly build
Hi, try to remove the manifest-file from the struts.jar. WLS is very precise... If you have lots of time, then you could try to remove line by line from the manifest-file if step one yields a workable jar-file, until you find the true culprit... hope this helps Alexander -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 12:40 To: '[EMAIL PROTECTED]' Subject: Latest Nightly build Hi All, Further to my previous post I have just enabled all debugging/logging in Struts/WebLogic and download the very latest build. I'm still getting an exception when attempting to deploy a web app that works fine with the 1.1b1 release. The exception is : 16-Jul-02 11:33:25 BST Debug HTTP Exception thrown while loading spf: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:78) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java :398) etc.. This is caused by something in struts.jar. If I replace the jar with the 1.1b1 jar the app deploys. Any ideas, suggestions much appreciated. Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: MultipartRequestWrapper.getParameter() not returning anything - Problem FOUND (but not solved...)
Got it! One has been tracing through the Struts 1.1 source to see how it does its thing and one has worked out why Daniel and oneself are having difficulties. The problem lies in the way multipart forms are handled differently by the RequestProcessor. One of the first calls in RequestProcessor.process() is to processMultipart(). This will determine whether it is necessary to wrap the request with a MultipartRequestWrapper. It will NOT however initialise the parameters of the MultipartRequestWrapper instance yet. The RequestProcessor will then call other processXXX methods(): processPath, processLocale, processContent, processNoCache, processPreProcess, processMapping, processActionForm(*). These calls get passed the request - for a multipartform this is the MultipartRequestWrapper. This wrapper however has not at this stage had its parameters initialised - if one overrides these RequestProcessor methods in ones own RequestProcessor subclass then one cannot make use of request.getParameter() when one has a multipart request - it will just return null. For non-multipart requests however, it will work as expected. After this, processPopulate is called. If form==null (ie: one does not have any ActionForm associated with this request) then the method will return immediately , doing nothing. Otherwise it will delegate to RequestUtils.populate where it checks if a multipart form is being used. If this is the case it will get the MultipartRequestHandler (implementing class instance) and use it to process the request's input stream. THIS is the point when the parameters in the MultipartRequestWrapper get populated. After this, the action form is populated from the request using BeanUtils.populate as per normal. This logic has certain implications, the most obvious being that if one submits from a multipart form and one is not using any ActionForm then one will not have any request parameters, as they will not never be populated.(**) We are not amused ;-) We find this to be a rather odd way of doing things and think it would surely be much better and more transparent if the parameters in the MultipartRequestWrapper were initialised immediately in the call to processMultipart() and thus available to all the other overrideable methods in RequestProcessor that get called before processPopulate() when using multipart forms in the same way they already are when using non-multipart forms. Such a change should also include making population of parameters in the MultipartRequestWrapper independent of the ActionForm. That way one would not be forced to use an ActionForm should one desire to read properties in a multipart request. --- (*) This is a darn nuisance for us as we need to get a certain parameter value in my processActionForm(). (**) My problem was that because my code couldnt read that parameter in processActionForm(), I couldnt actually get my ActionForm instance, and thus when I got to my DispatchAction had no parameters to specify which method to be called... -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 12:53 To: Struts Users Mailing List Subject: RE: MultipartRequestWrapper.getParameter() not returning anything Daniel could have written this a wee bit clearer. It is indeed the struts request processor and not us that is doing the wrapping. The resulting HttpServletRequest (with implementing class of org.apache.struts.upload.MultipartRequestWrapper) is always returning null for getParameter() and an empty enumeration for getParameterNames(). (We ARE treating it like any other request - or would be if the code even got as far as calling our action methods) This of course kills our dispatch actions !--Our dispatch action class is actually a copypaste job as I wanted to add some convienience methods to all actions and got sick and tired trying to keep them synced between my ActionBase and DispatchActionBase. It is just a copy of the dispatch action in struts but inherits from my GTActionBase class which inherits from Action, instead of inheriting directly from Action as the original does.-- as they cannot find their method parameter... (It would also kill a lot of our own code if execution could even get that far...) Switch the form back to a normal form (as opposed to a multipart/form-data) enctype, and the parameters will start working again. btw: We *have* overridden the RequestProcessor with our own class that inherits from the struts supplied RequestProcessor, but our class only overrides the processActionForm() method (and even that delegates to the super().processActionForm()) when it doesnt have to perform special handling. In the process of disagnosing this problem I have overriden processMultipart() by copying and pasting the method into my request processor class, and have added two println so I can see it detecting the multipart nature of the request and choosing to use the wrapper (also moved the {} to a _readable_ position
how do set value in html :radio button ?
Title: Message when the action class from this jsp is called it will get the value of type string "The value to be passed". How do i pass the value of the xml path to the next action class through the value of the html:radio button. my code is as given below: html:radio property="selectedItems" name="svmCreate" value="The value to be passed" bean:write name="item" property="xmlPath" / Thanks in advance, Regards,Pradeep Sakre.__ "Success is how high you bounce when you hit bottom." Pradeep Sakre Project EngineerWipro Technologies#72,Keonics Electronics CityHosur Road,Bangalore-561 229.Tel:+91-80-8520408. Extn:5174.E-Mail : [EMAIL PROTECTED]__ **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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Latest Nightly builds - WebLogic 6.1sp3
Hi Robert, Thanks for the advice, I have check in this file but get no additional info. It looks like it is an issue with WLS; seems to have popped up on the list before (http://www.mail-archive.com/struts-user@jakarta.apache.org/msg32898.html); although I'm using a different service pack and the error only occurs with the latest nightly builds... Once again thanks for the advice. Jon Ridgway -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 11:20 To: [EMAIL PROTECTED] Subject: AW: Latest Nightly builds - WebLogic 6.1sp3 Hi Jon, did you had a look into you weblogic 'domain' log file (default filename is wl-domain.log)? You'll probably find an exception stacktrace there. Robert Gottofrey -Ursprüngliche Nachricht- Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 16. Juli 2002 11:57 An: '[EMAIL PROTECTED]' Betreff: Latest Nightly builds - WebLogic 6.1sp3 Hi All, I've just downloaded two lots of nightly builds 14/7 15/7 and both are giving me the following exception with no further indication of the problem when attempting to deploy an app that works with the jars, dtd's and tld's provided with the 1.1b1 release: 16-Jul-02 10:49:31 BST Error J2EE Error deploying application spf: Could not load spf 16-Jul-02 10:49:31 BST Error Management Error deploying application C:\bea\wlserver6.1\config\mydomain\applications\spf.war: java.lang.reflect.UndeclaredThrowableException Unfortunately I can't get WebLogic to tell me much more. Has anyone else seen this exception whilst trying to deploy? Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where is Execute method..?
- In struts 1.1b1 (for backwards compatibility): public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Call the deprecated method for backwards compatibility return (perform(mapping, form, request, response)); } so you must implement execute() in your Actions. However apps developed for Struts 1.0.* will run in Struts 1.1b1 for the previous. - In struts 1.0.* does not exist execute();. You must implement perform(). From: Manish_Purang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Where is Execute method..? Date: Tue, 16 Jul 2002 15:19:48 +0530 thnx for the quick reply..! that means we don't have perform in the 1.1b and performs makes its first appearance from 1.1 b right...? -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: Re: Where is Execute method..? execute() appears from version 1.1b1. It replaces de perform(), despite Struts1.1b1 maintains performs() for backwards compatibility. Adolfo From: Manish_Purang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Where is Execute method..? Date: Tue, 16 Jul 2002 15:09:01 +0530 Hi all..! I think i'm missing somthing...!! This is from the chapter 3 of the Struts book at the serverside.com. It mentions about this execute method. However in API ( Struts 1.0) i dont have this within the Action class ...!!! The Struts Action class contains several methods, but the most important is the execute() method. Here is the method signature: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException; The execute() method is called on an instance of an Action class by the controller when a request is received from a client Where is the execute method..? rgds ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY centerbemAdolfo Rodriguez Miguelez/emb/center /BODY /HTML _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY centerbemAdolfo Rodriguez Miguelez/emb/center /BODY /HTML _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Latest Nightly build
Hi Jesse, I'll give that ago and let you know what the problem is if I can track it down, thanks for the advice... Jon Ridgway -Original Message- From: Jesse Alexander (KADA 11) [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 11:52 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build Hi, try to remove the manifest-file from the struts.jar. WLS is very precise... If you have lots of time, then you could try to remove line by line from the manifest-file if step one yields a workable jar-file, until you find the true culprit... hope this helps Alexander -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 12:40 To: '[EMAIL PROTECTED]' Subject: Latest Nightly build Hi All, Further to my previous post I have just enabled all debugging/logging in Struts/WebLogic and download the very latest build. I'm still getting an exception when attempting to deploy a web app that works fine with the 1.1b1 release. The exception is : 16-Jul-02 11:33:25 BST Debug HTTP Exception thrown while loading spf: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:78) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java :398) etc.. This is caused by something in struts.jar. If I replace the jar with the 1.1b1 jar the app deploys. Any ideas, suggestions much appreciated. Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Latest Nightly build - corrupt Class-Path entry in manifest.mf
Hi All, The advice was spot on. The manifest.mf in the latest nightly builds is corrupt. The Class-Path entry is split over several lines, the break occurs half way through several referenced jar names. Jon Ridgway -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 12:08 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build Hi Jesse, I'll give that ago and let you know what the problem is if I can track it down, thanks for the advice... Jon Ridgway -Original Message- From: Jesse Alexander (KADA 11) [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 11:52 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build Hi, try to remove the manifest-file from the struts.jar. WLS is very precise... If you have lots of time, then you could try to remove line by line from the manifest-file if step one yields a workable jar-file, until you find the true culprit... hope this helps Alexander -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 12:40 To: '[EMAIL PROTECTED]' Subject: Latest Nightly build Hi All, Further to my previous post I have just enabled all debugging/logging in Struts/WebLogic and download the very latest build. I'm still getting an exception when attempting to deploy a web app that works fine with the 1.1b1 release. The exception is : 16-Jul-02 11:33:25 BST Debug HTTP Exception thrown while loading spf: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:78) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java :398) etc.. This is caused by something in struts.jar. If I replace the jar with the 1.1b1 jar the app deploys. Any ideas, suggestions much appreciated. Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
single sign on
Hi all, is it possible to have a single sign on with struts? And: is it possible to define an action-forward in struts-config.xml that points to a different application, ie a different folder under webapps? TIA, Nina -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Latest Nightly build - corrupt Class-Path entry in manifest.m f
Good and thanks for searching it, the problem with the manifest.mf and the class-path is, that according to the official docs the class-path-manifest-entry MUST be split at the 68th character and that theoretically it should be reassembled on the fly. Relaity shows that some servlet-engines (or is the JVM's or the class-loaders; I don't know) do not make it correctly. And at least WLS (or its class-loaders or the underlaying JVM's) is among the problematic issues. Alexander Jesse -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 13:17 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build - corrupt Class-Path entry in manifest.m f Hi All, The advice was spot on. The manifest.mf in the latest nightly builds is corrupt. The Class-Path entry is split over several lines, the break occurs half way through several referenced jar names. Jon Ridgway -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 12:08 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build Hi Jesse, I'll give that ago and let you know what the problem is if I can track it down, thanks for the advice... Jon Ridgway -Original Message- From: Jesse Alexander (KADA 11) [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 11:52 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build Hi, try to remove the manifest-file from the struts.jar. WLS is very precise... If you have lots of time, then you could try to remove line by line from the manifest-file if step one yields a workable jar-file, until you find the true culprit... hope this helps Alexander -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 12:40 To: '[EMAIL PROTECTED]' Subject: Latest Nightly build Hi All, Further to my previous post I have just enabled all debugging/logging in Struts/WebLogic and download the very latest build. I'm still getting an exception when attempting to deploy a web app that works fine with the 1.1b1 release. The exception is : 16-Jul-02 11:33:25 BST Debug HTTP Exception thrown while loading spf: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:78) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java :398) etc.. This is caused by something in struts.jar. If I replace the jar with the 1.1b1 jar the app deploys. Any ideas, suggestions much appreciated. Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
logging, log4j
hi, i am using for my own classes log4j for logging. unfortunately, not only my classes start producing output, but also struts classes, mostly the RequestProcessor: 3945 INFO struts.action.RequestProcessor - Processing a 'GET' for path '/home' how can I get only the logging from my classes? where am I doing something wrong? I use log4j like in the following example: public class ExampleClass { static Logger log = Logger.getLogger(ExampleClass.class.getName()); void method() { log.info(log me); } } log4j.properties is in the class root and automatically loaded. thanks! _ Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der Welt: http://www.hotmail.com/de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: logging, log4j
I had the same issue but I added the following to my log4j.properties file to control struts logging. log4j.category.org.apache.commons=WARN, A1 log4j.category.org.apache.struts=WARN, A1 -Original Message- From: petra staub [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 12:35 To: [EMAIL PROTECTED] Subject: logging, log4j hi, i am using for my own classes log4j for logging. unfortunately, not only my classes start producing output, but also struts classes, mostly the RequestProcessor: 3945 INFO struts.action.RequestProcessor - Processing a 'GET' for path '/home' how can I get only the logging from my classes? where am I doing something wrong? I use log4j like in the following example: public class ExampleClass { static Logger log = Logger.getLogger(ExampleClass.class.getName()); void method() { log.info(log me); } } log4j.properties is in the class root and automatically loaded. thanks! _ Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der Welt: http://www.hotmail.com/de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Stxx opencode
Hello, I have just downloaded the stxx package and I tried to run the stxx-example application. But unfortunately I had no luck. I run it with tomcat-4.0.4 and tomcat-3.2.4 but I got the following exception. Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently unavailable type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. I find stxx very flexible and since I have worked with struts I would be very interetsed in using it for my application development. So if anyone can help me I would be gradeful. Thank you in advance, Konstantina
RE: Stxx opencode
Have a look in the log file to see if you can pin down the actual error that occured, as if an exception is thrown when initialising stuff, thats the message you get. -Original Message- From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 20:00 To: Struts Users Mailing List Subject: Stxx opencode Hello, I have just downloaded the stxx package and I tried to run the stxx-example application. But unfortunately I had no luck. I run it with tomcat-4.0.4 and tomcat-3.2.4 but I got the following exception. Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently unavailable type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. I find stxx very flexible and since I have worked with struts I would be very interetsed in using it for my application development. So if anyone can help me I would be gradeful. Thank you in advance, Konstantina -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ValidatorPlugIn ClassCastException
I'm not sure what I did, but when my app starts up, the validator fails to load. The commons-logging.jar is in both the lib and WEB-INF/lib directory (tomcat 4.0.4). I searched the mail archive and came up dry. Any ideas? PEI-iCIS: 2002-07-16 09:04:27,983 ERROR ValidatorPlugIn: java.lang.ClassCastException: org.apache.commons.logging.impl.Log4jFactory org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:340) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400) at org.apache.commons.digester.Digester.init(Digester.java:310) at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(Unknow n Source) at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.ja va:219) at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167) at org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet. java:884) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:420) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 8) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3279) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:261) at org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:172 ) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:428) Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:495) ... 27 more Graham Lounder Java Developer Spatial Components Division CARIS 264 Rookwood Ave Fredericton NB E3B-2M2 Office 506 462-4218 Fax506 459-3849 [EMAIL PROTECTED] http://www.spatialcomponents.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Using Struts Taglibs?
Subject: Using Struts Taglibs? From: Xero [EMAIL PROTECTED] === Is there a lot of overhead in using Struts Taglibs? What would be in using it versus traditional code. example using the Struts HTMLTagLibs vs plain HTML? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Using Struts Taglibs?
Among other things the struts taglibs know how to pull values from your actionForm and your actionErrors (and other beans) so that you can display these easily. You can do the same with scriptlets embedded among the html parts of your jsp but of course its usually more work and a lot harder for us humans to read and maintain. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 20:25 To: [EMAIL PROTECTED] Subject: Using Struts Taglibs? Subject: Using Struts Taglibs? From: Xero [EMAIL PROTECTED] === Is there a lot of overhead in using Struts Taglibs? What would be in using it versus traditional code. example using the Struts HTMLTagLibs vs plain HTML? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Stxx opencode
You were right Andrew, I got the following exception: 2002-07-16 15:38:09 StandardContext[/stxx-example]: Servlet /stxx-example threw load() exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94 6) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) .. The problem is that I don't know what causes it. It is the first time that I come across to such an error. Any help would be really appreciated. Konstantina - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 2:59 PM Subject: RE: Stxx opencode Have a look in the log file to see if you can pin down the actual error that occured, as if an exception is thrown when initialising stuff, thats the message you get. -Original Message- From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 20:00 To: Struts Users Mailing List Subject: Stxx opencode Hello, I have just downloaded the stxx package and I tried to run the stxx-example application. But unfortunately I had no luck. I run it with tomcat-4.0.4 and tomcat-3.2.4 but I got the following exception. Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently unavailable -- -- type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. -- -- I find stxx very flexible and since I have worked with struts I would be very interetsed in using it for my application development. So if anyone can help me I would be gradeful. Thank you in advance, Konstantina -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Stxx opencode
Hmmm... Yep. Out of the frying pan into the fire! I havent played with stxx before, but normally when Ive had the servlet not available error it is because I have a problem with a config file, or am missing some resource. Your best bet is probably to have a look at your stxx config files (if it uses config files!). Since its the example app, you probably have all the config files and resources you need to run already so it is probably something specific to your system. Have a look at any config files that are with that example, and see if you have to set any paths or other installation specific info in there. I presume other apps, (such as the struts example) already work in your tomcat? -Original Message- From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 21:01 To: Struts Users Mailing List Subject: Re: Stxx opencode You were right Andrew, I got the following exception: 2002-07-16 15:38:09 StandardContext[/stxx-example]: Servlet /stxx-example threw load() exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94 6) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) .. The problem is that I don't know what causes it. It is the first time that I come across to such an error. Any help would be really appreciated. Konstantina - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 2:59 PM Subject: RE: Stxx opencode Have a look in the log file to see if you can pin down the actual error that occured, as if an exception is thrown when initialising stuff, thats the message you get. -Original Message- From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 20:00 To: Struts Users Mailing List Subject: Stxx opencode Hello, I have just downloaded the stxx package and I tried to run the stxx-example application. But unfortunately I had no luck. I run it with tomcat-4.0.4 and tomcat-3.2.4 but I got the following exception. Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently unavailable -- -- type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. -- -- I find stxx very flexible and since I have worked with struts I would be very interetsed in using it for my application development. So if anyone can help me I would be gradeful. Thank you in advance, Konstantina -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: single sign on
Tomcat has a single sign on feature... You'd have to do some code PS. If anyone has gotten JNDILDAP realms to Novell working let me know (yes I emailed the tomcat list too) -Original Message- From: nina.stranzenbach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 6:44 AM To: struts-user Subject: single sign on Hi all, is it possible to have a single sign on with struts? And: is it possible to define an action-forward in struts-config.xml that points to a different application, ie a different folder under webapps? TIA, Nina -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re: Struts + EJB ?
I'm actually evaluating possibilities to add EJB functionality to our struts projects. By reading a lot of articles I came to conclusion that the following architecture may work: Struts-Action - Processing http-request - Performing formal validation (validation framework) - Performing simple validation with methods defined in value object class (validations which only require data which is available in the value object) - Copying action form properties to value object properties - Calling remote EJB session bean (value object as parameter) - Handling workflow EJB session - Receiving request from struts action - Performing complex validation - Performing business logic - Calling Entity beans - Returning value object to strus action - Returning return/error codes to struts action Entity beans - As usual Is anybody using such an architecture including session beans - experiences? Do you see any cons? And a question out of scope: I'm new in the area of EJB (learning with Ed Roman's book). Everything looks quite interesting for me except the fact that the create method of entity beans is called with a lot of parameters, which obviously may change, if you add a property to your bean. Did I miss something with this subject or do I really have to live with this fact? I was assuming/hoping that a create method uses the object as parameter! Thanks for any assistance Rene -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where is Execute method..?
You mean, execute makes its first appearance from 1.1 b[sic] If you are really hung up on an execute() method, just extend Action and write an execute() method that calls super.perform()(what we did before we upgraded to 1.1b-1 so we wouldn't have to go back and rewrite all the method calls in other classes). Mark -Original Message- From: Manish_Purang [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 5:50 AM that means we don't have perform in the 1.1b and performs makes its first appearance from 1.1 b right...? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: MultipartRequestWrapper.getParameter() not returning anything - Problem FOUND (but not solved...)
I would recommend you to open a bug/enhancement report in Bugzilla if you really think this needs to be changed. http://nagoya.apache.org/bugzilla Attaching all of this info plus patches is always helpful. -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- Andrew Hill [EMAIL PROTECTED] wrote: Got it! One has been tracing through the Struts 1.1 source to see how it does its thing and one has worked out why Daniel and oneself are having difficulties. The problem lies in the way multipart forms are handled differently by the RequestProcessor. One of the first calls in RequestProcessor.process() is to processMultipart(). This will determine whether it is necessary to wrap the request with a MultipartRequestWrapper. It will NOT however initialise the parameters of the MultipartRequestWrapper instance yet. The RequestProcessor will then call other processXXX methods(): processPath, processLocale, processContent, processNoCache, processPreProcess, processMapping, processActionForm(*). These calls get passed the request - for a multipartform this is the MultipartRequestWrapper. This wrapper however has not at this stage had its parameters initialised - if one overrides these RequestProcessor methods in ones own RequestProcessor subclass then one cannot make use of request.getParameter() when one has a multipart request - it will just return null. For non-multipart requests however, it will work as expected. After this, processPopulate is called. If form==null (ie: one does not have any ActionForm associated with this request) then the method will return immediately , doing nothing. Otherwise it will delegate to RequestUtils.populate where it checks if a multipart form is being used. If this is the case it will get the MultipartRequestHandler (implementing class instance) and use it to process the request's input stream. THIS is the point when the parameters in the MultipartRequestWrapper get populated. After this, the action form is populated from the request using BeanUtils.populate as per normal. This logic has certain implications, the most obvious being that if one submits from a multipart form and one is not using any ActionForm then one will not have any request parameters, as they will not never be populated.(**) We are not amused ;-) We find this to be a rather odd way of doing things and think it would surely be much better and more transparent if the parameters in the MultipartRequestWrapper were initialised immediately in the call to processMultipart() and thus available to all the other overrideable methods in RequestProcessor that get called before processPopulate() when using multipart forms in the same way they already are when using non-multipart forms. Such a change should also include making population of parameters in the MultipartRequestWrapper independent of the ActionForm. That way one would not be forced to use an ActionForm should one desire to read properties in a multipart request. --- (*) This is a darn nuisance for us as we need to get a certain parameter value in my processActionForm(). (**) My problem was that because my code couldnt read that parameter in processActionForm(), I couldnt actually get my ActionForm instance, and thus when I got to my DispatchAction had no parameters to specify which method to be called... -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 12:53 To: Struts Users Mailing List Subject: RE: MultipartRequestWrapper.getParameter() not returning anything Daniel could have written this a wee bit clearer. It is indeed the struts request processor and not us that is doing the wrapping. The resulting HttpServletRequest (with implementing class of org.apache.struts.upload.MultipartRequestWrapper) is always returning null for getParameter() and an empty enumeration for getParameterNames(). (We ARE treating it like any other request - or would be if the code even got as far as calling our action methods) This of course kills our dispatch actions !--Our dispatch action class is actually a copypaste job as I wanted to add some convienience methods to all actions and got sick and tired trying to keep them synced between my ActionBase and DispatchActionBase. It is just a copy of the dispatch action in struts but inherits from my GTActionBase class which inherits from Action, instead of inheriting directly from Action as the original does.-- as they cannot find their method parameter... (It would also kill a lot of our own code if execution could even get that far...) Switch the form back to a normal form (as opposed to a multipart/form-data) enctype, and the parameters will start working again. btw: We *have* overridden the RequestProcessor with our own class that inherits from the struts supplied RequestProcessor, but our
Plug-In Ordering
With the move to a plug-in architecture, is the order that the plug-ins are specified in struts-config important? i.e. should the TilePlugIn come before the ValidatorPlugIn, and should everything come before any locally developed plug-ins, etc.? Jerry This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at (800)388-4675. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:errors
Something like this would make Struts more MVC-like I think, more flexible toward graphical design. Has anyone implemented tags that allow for this approach, or is it possible with existing Struts tags? tnx -Jan [EMAIL PROTECTED] 11-07-02 16:37 Like so? logic:messagesPresent font color=Redhtml:errors//font /logic:messagesPresent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Stxx opencode
Well, verything else is working. I will try to figure out what is wrong but I don't think I will find something since I have no experience in conf files of tomcat. Anyway. Thanks for sharing your ideas with me, Konstantina - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 4:09 PM Subject: RE: Stxx opencode Hmmm... Yep. Out of the frying pan into the fire! I havent played with stxx before, but normally when Ive had the servlet not available error it is because I have a problem with a config file, or am missing some resource. Your best bet is probably to have a look at your stxx config files (if it uses config files!). Since its the example app, you probably have all the config files and resources you need to run already so it is probably something specific to your system. Have a look at any config files that are with that example, and see if you have to set any paths or other installation specific info in there. I presume other apps, (such as the struts example) already work in your tomcat? -Original Message- From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 21:01 To: Struts Users Mailing List Subject: Re: Stxx opencode You were right Andrew, I got the following exception: 2002-07-16 15:38:09 StandardContext[/stxx-example]: Servlet /stxx-example threw load() exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94 6) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) .. The problem is that I don't know what causes it. It is the first time that I come across to such an error. Any help would be really appreciated. Konstantina - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 2:59 PM Subject: RE: Stxx opencode Have a look in the log file to see if you can pin down the actual error that occured, as if an exception is thrown when initialising stuff, thats the message you get. -Original Message- From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 20:00 To: Struts Users Mailing List Subject: Stxx opencode Hello, I have just downloaded the stxx package and I tried to run the stxx-example application. But unfortunately I had no luck. I run it with tomcat-4.0.4 and tomcat-3.2.4 but I got the following exception. Apache Tomcat/4.0.4 - HTTP Status 503 - Servlet action is currently unavailable -- -- type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. -- -- I find stxx very flexible and since I have worked with struts I would be very interetsed in using it for my application development. So if anyone can help me I would be gradeful. Thank you in advance, Konstantina -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Iterating multiple collections using logic:iterate- Is it possible with Struts?
Did anyone come across the problem of iterating over multiple collection objects in logic:iterate? The tag works fine if we have a single collection. But I am not getting it to work with multiple collections. I want to know if anyone has done the above using the logic:iterate tags? -Ravi Thanks Regards, Ravi Kora [EMAIL PROTECTED] 337-739-3434(M) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 3:14 PM To: Struts Users Mailing List Subject: RE: Html:checkbox issue Try this... HTML HEAD TITLE/TITLE /HEAD BODY form name=myForm method=post action=/myapp/doAction.do INPUT type=checkbox name=checkbox1check 1br INPUT type=checkbox name=checkbox2check 2br INPUT type=checkbox name=checkbox3check 3br INPUT type=checkbox name=checkbox4check 4br INPUT type=checkbox name=checkbox5check 5br INPUT type=checkbox name=checkbox6check 6br /form SCRIPT LANGUAGE=javascript !-- function SetChecked(val) { dml=document.forms[myForm]; len = dml.elements.length; var i=0; for( i = 0 ; i len ; i++) { if (dml.elements[i].type=='checkbox') { if ( val == 'off' ){ dml.elements[i].checked=false; }else if ( val == 'invert' ) { dml.elements[i].checked = (!dml.elements[i].checked); }else{ dml.elements[i].checked=true; } } } } //-- /SCRIPT Pnbsp;/P a href=javascript:SetChecked('on')Check All/a/ a href=javascript:SetChecked('off')Clear All/a/ a href=javascript:SetChecked('invert')Invert/a /BODY /HTML James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 9:44 AM To: 'Struts Users Mailing List' Subject: RE: Html:checkbox issue This is just a shot in the dark, but could you specify the onclick attribute of the checkbox to run some javascript? When clicked, you could swap the checkbox properties back and forth between checked and not checked. Does anyone else think something like this would work well? It's just an idea... ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Toni Nehme [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: Html:checkbox issue Hi All, I have checkbox displayed in a table and I am trying to create a a checkbox outside the table to check All the checkboxes inside the table. My table is using the logic:iterate tag and displays the table. Please, let me know if anybody knows how to solve this. Thanks. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
the context
Hi All, we are are developing a framework based on Struts, and adapting Struts to a propietary middleware which, in turns, as usually, deals with the backends. Struts would make up the presentation layer, more or less, delegating in other layers for the business stuff. It has been suggested a patter model, which I did not know before, and, approximately, it is based in a XML which holds all the application data in a tree structure grouped by functional roles. In that way, the data is not spread all around the app, but it is wrapped in this functional abstraction. It could be seen as a central structure for holding all the model (and i.e. the state) of the app. It is termed THE CONTEXT Actions fills the context, and send it to the middleware, which, in turns, sends it to business layer. It has empty fields for the data that has not been obtained yet (actually all the app data is wrapped inside the context). Business layer fills the new data into the context, and the whole context is sent back to the action which, in turns, extract the output data from it to fill the value objects and send this to the JSP for rendering. Well, we are having actually, quite a lot of problems in integrating this new element with Struts, with the ActionForms, with the validator. It is actually as a huge value object holding all the data of the app, travelling forwards and backwards along the app layers. My questions are: - has any of you seen a similar pattern? Any pointer is welcome. I do not identify anything in the GoF patterns, but maybe I am not realising of some of them. - what is your opinion about it? - could Struts, in future releases, include a context for wrapping the data model for the app? Thanks in advance and sorry for the philosophical question, Adolfo _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:errors
Maybe I am misunderstanding you, but the tags I put in below exist already (the sample is right out of a working jsp page) -Original Message- From: Jan.Vervecken [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:27 AM To: struts-user Subject: RE: html:errors Something like this would make Struts more MVC-like I think, more flexible toward graphical design. Has anyone implemented tags that allow for this approach, or is it possible with existing Struts tags? tnx -Jan [EMAIL PROTECTED] 11-07-02 16:37 Like so? logic:messagesPresent font color=Redhtml:errors//font /logic:messagesPresent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
using tiles in struts 1.1b ?
Hi all, I have downloaded the Struts 1.1b, and I'm going through the tutorial in the example application 'struts-tiles', which doesn't seem to be updated to the version 1.1b of Struts. I've got most things working, but now I'm stuck on 6.6 Definitions as Forward. Question: How do I get my Struts action to forward to a tile definition instead of an action ? I get the following message: 'Path forward.example.success.page' does not start with a / character' and if I add the /, then it will look for that action (in the strust-config.xml) which then of course doesn't exist ...how do I get it to look in the tiles-config.xml ? Thanks in advance, Esther web.xml ... !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.tiles.ActionComponentServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedefinitions-config/param-name param-value/WEB-INF/tilesDefinitions.xml/param-value /init-param init-param param-namedefinitions-debug/param-name param-value1/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet ... struts-config.xml ... !-- == Action Mapping Definitions == -- action-mappings !-- Struts forward example -- actionpath=/forward type=ForwardExampleAction forward name=success path=forward.example.success.page/ /action /action-mappings ... tilesDefinitions.xml ... !-- Struts forward definition example -- definition name=forward.example.success.page extends=mainLayout put name=title value=Struts Forward to 'success' / put name=body value=/forward/successBody.jsp / /definition ... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
logic:iterate never iterate through all the items
Why do logic:iterate only show me the last item of my collection? === Here is my code: logic:iterate id=item collection=%= WorkspaceHelper.getUserWorkspaces( pageContext ) %/ tr td colspan=2 a href= bean:write name=item property=name //a /td /tr /logic:iterate Im I missing something? My configuration is: Win2000, jdk1.4.0, struts 1.1 (yesterday build) Herve Tchepannou Software Engineer Objexis Coorporation Phone: (514) 932 3295 Ext. 231 mailto:[EMAIL PROTECTED] Objexis Coorporation http://www.objexis.com 1635 Sherbrooke West, Suite #405 Montreal, Qc H3H 1E2 Tel: 514.932.3295 Fax: 514.932.4639 http://www.objexis.com Important - This message may contain privileged and confidential information. It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation.
RE: html:errors
once I wished to have a possibility like this: html:text styleClass=input errorStyleClass=errorInput property=field1/ I wished struts could (based on the action errors set) which field has an error and which not -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 15:40 To: [EMAIL PROTECTED] Subject: RE: html:errors Maybe I am misunderstanding you, but the tags I put in below exist already (the sample is right out of a working jsp page) -Original Message- From: Jan.Vervecken [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:27 AM To: struts-user Subject: RE: html:errors Something like this would make Struts more MVC-like I think, more flexible toward graphical design. Has anyone implemented tags that allow for this approach, or is it possible with existing Struts tags? tnx -Jan [EMAIL PROTECTED] 11-07-02 16:37 Like so? logic:messagesPresent font color=Redhtml:errors//font /logic:messagesPresent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: logic:iterate never iterate through all the items
I think you must remove the / from the first tag of logic:iterate. Actually you are doing: logic:iterate/ /logic:iterate/ and should be logic:iterate /logic:iterate Hope that makes the trick, Adolfo From: Herve Tchepannou [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: logic:iterate never iterate through all the items Date: Tue, 16 Jul 2002 09:34:17 -0400 Why do logic:iterate only show me the last item of my collection? === Here is my code: logic:iterate id=item collection=%= WorkspaceHelper.getUserWorkspaces( pageContext ) %/ tr td colspan=2 a href= bean:write name=item property=name //a /td /tr /logic:iterate Im I missing something? My configuration is: Win2000, jdk1.4.0, struts 1.1 (yesterday build) Herve Tchepannou Software Engineer Objexis Coorporation Phone: (514) 932 3295 Ext. 231 mailto:[EMAIL PROTECTED] Objexis Coorporation http://www.objexis.com 1635 Sherbrooke West, Suite #405 Montreal, Qc H3H 1E2 Tel: 514.932.3295 Fax: 514.932.4639 http://www.objexis.com Important - This message may contain privileged and confidential information. It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation. HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY centerbemAdolfo Rodriguez Miguelez/emb/center /BODY /HTML _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ValidatorPlugIn ClassCastException
Ok, I found my problem. Foolish me, I put jar files in my WEB-INF/lib directory. I moved all the commons and xerces jar files to the common/lib directory and everything works. Graham -Original Message- From: Graham Lounder [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:11 AM To: Struts Users Mailing List Subject: ValidatorPlugIn ClassCastException I'm not sure what I did, but when my app starts up, the validator fails to load. The commons-logging.jar is in both the lib and WEB-INF/lib directory (tomcat 4.0.4). I searched the mail archive and came up dry. Any ideas? PEI-iCIS: 2002-07-16 09:04:27,983 ERROR ValidatorPlugIn: java.lang.ClassCastException: org.apache.commons.logging.impl.Log4jFactory org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:340) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400) at org.apache.commons.digester.Digester.init(Digester.java:310) at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(Unknow n Source) at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.ja va:219) at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167) at org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet. java:884) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:420) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 8) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3279) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:261) at org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:172 ) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:428) Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:495) ... 27 more Graham Lounder Java Developer Spatial Components Division CARIS 264 Rookwood Ave Fredericton NB E3B-2M2 Office 506 462-4218 Fax506 459-3849 [EMAIL PROTECTED] http://www.spatialcomponents.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Real path question
Hi, I have a parameter that is a file propertie in my plugIn, the parameter name is myFile and the parameter value is /WEB-INF/classes/myFile.properties. But when I try to read the file, the system is looking for it in c:\WEB-INF\classes\myFile.properties. How can I get the real path ? Thanks, William. _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Indexed Properties
Hi guys. I'm trying to use the Indexed properties of Struts 1.1. What I understood about indexedProperties is that it allows to have a set of properties (in a form bean) represented by an array of Strings. What I want to do is quite simple. I have a form with a dynamic list of radio buttons groups. in HTML it is something like this : form ... input type=radio name=myRadios1 value=Ainput type=radio name=myRadios1 value=B checked=checked input type=radio name=myRadios2 value=A checked=checkedinput type=radio name=myRadios2 value=B input type=radio name=myRadiosN value=A checked=checkedinput type=radio name=myRadiosN value=B /form in Java with Struts I wrote a FormBean (class MyFormBean) with a property using an array of strings : String[] myRadios (with getter and setter) in the JSP : html:form ... logic:iterate id=theRadio name=myFormBean property=myRadios html:radio property=myRadios indexed=true value=A/html:radio property=myRadios indexed=true value=B/ /logic:iterate /html:form If I initialize the property myRadios of my formbean with the following Array : String[] myRadios = {A,A,B,A}; the JSP generates the good numbers of radio items like this : form ... input type=radio name=myRadios1 value=Ainput type=radio name=myRadios1 value=B input type=radio name=myRadios2 value=Ainput type=radio name=myRadios2 value=B input type=radio name=myRadios3 value=Ainput type=radio name=myRadios3 value=B input type=radio name=myRadios4 value=Ainput type=radio name=myRadios4 value=B /form but the problem is that this radios aren't initialized with the good checked properties. What I'm waiting for is somethink like : form ... input type=radio name=myRadios1 value=A checked=checkedinput type=radio name=myRadios1 value=B input type=radio name=myRadios2 value=A checked=checkedinput type=radio name=myRadios2 value=B input type=radio name=myRadios3 value=Ainput type=radio name=myRadios3 value=B checked=checked input type=radio name=myRadios4 value=A checked=checkedinput type=radio name=myRadios4 value=B /form I don't understand what happens ?? Can you help me please. Thx. Arnaud HERITIER EAI Consulting Sopra Group Tél. : +33 (0)1 53 33 44 74 email : [EMAIL PROTECTED] Ce message est exclusivement destiné aux personnes dont le nom figure ci-dessus. Il peut contenir des informations confidentielles dont la divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse e-mail ci-dessus et de détruire toute copie. This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
RE: logic:iterate never iterate through all the items
thanx... thats was a silly mistake. It works now :-) -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: Re: logic:iterate never iterate through all the items I think you must remove the / from the first tag of logic:iterate. Actually you are doing: logic:iterate/ /logic:iterate/ and should be logic:iterate /logic:iterate Hope that makes the trick, Adolfo From: Herve Tchepannou [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: logic:iterate never iterate through all the items Date: Tue, 16 Jul 2002 09:34:17 -0400 Why do logic:iterate only show me the last item of my collection? === Here is my code: logic:iterate id=item collection=%= WorkspaceHelper.getUserWorkspaces( pageContext ) %/ tr td colspan=2 a href= bean:write name=item property=name //a /td /tr /logic:iterate Im I missing something? My configuration is: Win2000, jdk1.4.0, struts 1.1 (yesterday build) Herve Tchepannou Software Engineer Objexis Coorporation Phone: (514) 932 3295 Ext. 231 mailto:[EMAIL PROTECTED] Objexis Coorporation http://www.objexis.com 1635 Sherbrooke West, Suite #405 Montreal, Qc H3H 1E2 Tel: 514.932.3295 Fax: 514.932.4639 http://www.objexis.com Important - This message may contain privileged and confidential information. It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation. HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY centerbemAdolfo Rodriguez Miguelez/emb/center /BODY /HTML _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Latest Nightly build - corrupt Class-Path entry in manifest.m f
This probably started happening as of nightly build 20020616 since that is when the Class-Path: entry got added to the MANIFEST.MF file in CVS. If you open a bug for this in Bugzilla I'll get it taken care of tonight. Make sure to include all the info from this thread. http://nagoya.apache.org/bugzilla -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- Jesse Alexander (KADA 11) [EMAIL PROTECTED] wrote: Good and thanks for searching it, the problem with the manifest.mf and the class-path is, that according to the official docs the class-path-manifest-entry MUST be split at the 68th character and that theoretically it should be reassembled on the fly. Relaity shows that some servlet-engines (or is the JVM's or the class-loaders; I don't know) do not make it correctly. And at least WLS (or its class-loaders or the underlaying JVM's) is among the problematic issues. Alexander Jesse -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 13:17 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build - corrupt Class-Path entry in manifest.m f Hi All, The advice was spot on. The manifest.mf in the latest nightly builds is corrupt. The Class-Path entry is split over several lines, the break occurs half way through several referenced jar names. Jon Ridgway -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 12:08 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build Hi Jesse, I'll give that ago and let you know what the problem is if I can track it down, thanks for the advice... Jon Ridgway -Original Message- From: Jesse Alexander (KADA 11) [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 11:52 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build Hi, try to remove the manifest-file from the struts.jar. WLS is very precise... If you have lots of time, then you could try to remove line by line from the manifest-file if step one yields a workable jar-file, until you find the true culprit... hope this helps Alexander -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 12:40 To: '[EMAIL PROTECTED]' Subject: Latest Nightly build Hi All, Further to my previous post I have just enabled all debugging/logging in Struts/WebLogic and download the very latest build. I'm still getting an exception when attempting to deploy a web app that works fine with the 1.1b1 release. The exception is : 16-Jul-02 11:33:25 BST Debug HTTP Exception thrown while loading spf: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:78) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java :398) etc.. This is caused by something in struts.jar. If I replace the jar with the 1.1b1 jar the app deploys. Any ideas, suggestions much appreciated. Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To
RE: html:errors
So what you are looking to do is to display text with a different style if it is an error? logic:messagesPresent font color=Redhtml:errors//font /logic:messagesPresent logic:messagesPresent message=true html:messages id=message message=true header=message.bullet bean:write name=message/ /html:messages /logic:messagesPresent I am too familiar with setting an error to a specific field though... maybe thats what you are looking for? -Original Message- From: reigenheer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:45 AM To: struts-user Subject: RE: html:errors once I wished to have a possibility like this: html:text styleClass=input errorStyleClass=errorInput property=field1/ I wished struts could (based on the action errors set) which field has an error and which not -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 15:40 To: [EMAIL PROTECTED] Subject: RE: html:errors Maybe I am misunderstanding you, but the tags I put in below exist already (the sample is right out of a working jsp page) -Original Message- From: Jan.Vervecken [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:27 AM To: struts-user Subject: RE: html:errors Something like this would make Struts more MVC-like I think, more flexible toward graphical design. Has anyone implemented tags that allow for this approach, or is it possible with existing Struts tags? tnx -Jan [EMAIL PROTECTED] 11-07-02 16:37 Like so? logic:messagesPresent font color=Redhtml:errors//font /logic:messagesPresent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: using tiles in struts 1.1b ?
Everytime I run into this problem it is because either my app is not reading the tiles definitions or I have a definition mis-spelled... -Original Message- From: esther.miranda [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:41 AM To: struts-user Subject: using tiles in struts 1.1b ? Hi all, I have downloaded the Struts 1.1b, and I'm going through the tutorial in the example application 'struts-tiles', which doesn't seem to be updated to the version 1.1b of Struts. I've got most things working, but now I'm stuck on 6.6 Definitions as Forward. Question: How do I get my Struts action to forward to a tile definition instead of an action ? I get the following message: 'Path forward.example.success.page' does not start with a / character' and if I add the /, then it will look for that action (in the strust-config.xml) which then of course doesn't exist ...how do I get it to look in the tiles-config.xml ? Thanks in advance, Esther web.xml ... !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.tiles.ActionComponentServlet/servlet-c lass init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedefinitions-config/param-name param-value/WEB-INF/tilesDefinitions.xml/param-value /init-param init-param param-namedefinitions-debug/param-name param-value1/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet ... struts-config.xml ... !-- == Action Mapping Definitions == -- action-mappings !-- Struts forward example -- actionpath=/forward type=ForwardExampleAction forward name=success path=forward.example.success.page/ /action /action-mappings ... tilesDefinitions.xml ... !-- Struts forward definition example -- definition name=forward.example.success.page extends=mainLayout put name=title value=Struts Forward to 'success' / put name=body value=/forward/successBody.jsp / /definition ... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:errors
ah ... Since : Struts 1.1 ... sorry, I checked some older documentation tnx -Jan [EMAIL PROTECTED] 16-07-02 15:39 Maybe I am misunderstanding you, but the tags I put in below exist already (the sample is right out of a working jsp page) -Original Message- From: Jan.Vervecken [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:27 AM To: struts-user Subject: RE: html:errors Something like this would make Struts more MVC-like I think, more flexible toward graphical design. Has anyone implemented tags that allow for this approach, or is it possible with existing Struts tags? tnx -Jan [EMAIL PROTECTED] 11-07-02 16:37 Like so? logic:messagesPresent font color=Redhtml:errors//font /logic:messagesPresent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Latest Nightly build - corrupt Class-Path entry in manifest.m f
Hi James, I may have jumped the gun here; someone else has pointed out that the Class-Path entry should break to a new line after 68 chars. It's just that WebLogic 6.1 (not sure about 7) can't handle this. So I guess I should eat some humble pie and WebLogic should sort things out at their end... Jon Ridgway -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 15:09 To: Struts Users Mailing List Subject: RE: Latest Nightly build - corrupt Class-Path entry in manifest.m f This probably started happening as of nightly build 20020616 since that is when the Class-Path: entry got added to the MANIFEST.MF file in CVS. If you open a bug for this in Bugzilla I'll get it taken care of tonight. Make sure to include all the info from this thread. http://nagoya.apache.org/bugzilla -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- Jesse Alexander (KADA 11) [EMAIL PROTECTED] wrote: Good and thanks for searching it, the problem with the manifest.mf and the class-path is, that according to the official docs the class-path-manifest-entry MUST be split at the 68th character and that theoretically it should be reassembled on the fly. Relaity shows that some servlet-engines (or is the JVM's or the class-loaders; I don't know) do not make it correctly. And at least WLS (or its class-loaders or the underlaying JVM's) is among the problematic issues. Alexander Jesse -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 13:17 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build - corrupt Class-Path entry in manifest.m f Hi All, The advice was spot on. The manifest.mf in the latest nightly builds is corrupt. The Class-Path entry is split over several lines, the break occurs half way through several referenced jar names. Jon Ridgway -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 12:08 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build Hi Jesse, I'll give that ago and let you know what the problem is if I can track it down, thanks for the advice... Jon Ridgway -Original Message- From: Jesse Alexander (KADA 11) [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 11:52 To: 'Struts Users Mailing List' Subject: RE: Latest Nightly build Hi, try to remove the manifest-file from the struts.jar. WLS is very precise... If you have lots of time, then you could try to remove line by line from the manifest-file if step one yields a workable jar-file, until you find the true culprit... hope this helps Alexander -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 16. Juli 2002 12:40 To: '[EMAIL PROTECTED]' Subject: Latest Nightly build Hi All, Further to my previous post I have just enabled all debugging/logging in Struts/WebLogic and download the very latest build. I'm still getting an exception when attempting to deploy a web app that works fine with the 1.1b1 release. The exception is : 16-Jul-02 11:33:25 BST Debug HTTP Exception thrown while loading spf: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:78) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java :398) etc.. This is caused by something in struts.jar. If I replace the jar with the 1.1b1 jar the app deploys. Any ideas, suggestions much appreciated. Jon Ridgway The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The contents of this email are intended only for
RE: Indexed Properties - soluce :-)
Ok I found myself a solution (it seems) : I need to modify the JSP page to index manually the property and I don't need to use the indexed=true which indexes the BEAN and not the property : html:form ... logic:iterate id=theRadio indexId=index name=myFormBean property=myRadios html:radio property=%=\myRadios[\+index+\]\% value=A/html:radio property=%=\myRadios[\+index+\]\% value=B/ /logic:iterate /html:form Arnaud -Message d'origine- De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]] Envoyé : mardi 16 juillet 2002 15:50 À : Struts Users Mailing List (E-mail) Objet : Indexed Properties Hi guys. I'm trying to use the Indexed properties of Struts 1.1. What I understood about indexedProperties is that it allows to have a set of properties (in a form bean) represented by an array of Strings. What I want to do is quite simple. I have a form with a dynamic list of radio buttons groups. in HTML it is something like this : form ... input type=radio name=myRadios1 value=Ainput type=radio name=myRadios1 value=B checked=checked input type=radio name=myRadios2 value=A checked=checkedinput type=radio name=myRadios2 value=B input type=radio name=myRadiosN value=A checked=checkedinput type=radio name=myRadiosN value=B /form in Java with Struts I wrote a FormBean (class MyFormBean) with a property using an array of strings : String[] myRadios (with getter and setter) in the JSP : html:form ... logic:iterate id=theRadio name=myFormBean property=myRadios html:radio property=myRadios indexed=true value=A/html:radio property=myRadios indexed=true value=B/ /logic:iterate /html:form If I initialize the property myRadios of my formbean with the following Array : String[] myRadios = {A,A,B,A}; the JSP generates the good numbers of radio items like this : form ... input type=radio name=myRadios1 value=Ainput type=radio name=myRadios1 value=B input type=radio name=myRadios2 value=Ainput type=radio name=myRadios2 value=B input type=radio name=myRadios3 value=Ainput type=radio name=myRadios3 value=B input type=radio name=myRadios4 value=Ainput type=radio name=myRadios4 value=B /form but the problem is that this radios aren't initialized with the good checked properties. What I'm waiting for is somethink like : form ... input type=radio name=myRadios1 value=A checked=checkedinput type=radio name=myRadios1 value=B input type=radio name=myRadios2 value=A checked=checkedinput type=radio name=myRadios2 value=B input type=radio name=myRadios3 value=Ainput type=radio name=myRadios3 value=B checked=checked input type=radio name=myRadios4 value=A checked=checkedinput type=radio name=myRadios4 value=B /form I don't understand what happens ?? Can you help me please. Thx. Arnaud HERITIER EAI Consulting Sopra Group Tél. : +33 (0)1 53 33 44 74 email : [EMAIL PROTECTED] Ce message est exclusivement destiné aux personnes dont le nom figure ci-dessus. Il peut contenir des informations confidentielles dont la divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où vous avez reçu ce message par erreur, merci de le renvoyer à l'adresse e-mail ci-dessus et de détruire toute copie. This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: html:errors
Sorry about that... I started with the older struts, but did not really start working with it alot until recently under the 1.1 regime -Original Message- From: Jan.Vervecken [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:17 AM To: struts-user Subject: RE: html:errors ah ... Since : Struts 1.1 ... sorry, I checked some older documentation tnx -Jan [EMAIL PROTECTED] 16-07-02 15:39 Maybe I am misunderstanding you, but the tags I put in below exist already (the sample is right out of a working jsp page) -Original Message- From: Jan.Vervecken [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:27 AM To: struts-user Subject: RE: html:errors Something like this would make Struts more MVC-like I think, more flexible toward graphical design. Has anyone implemented tags that allow for this approach, or is it possible with existing Struts tags? tnx -Jan [EMAIL PROTECTED] 11-07-02 16:37 Like so? logic:messagesPresent font color=Redhtml:errors//font /logic:messagesPresent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Authentication, Authorization in Struts 1.1
Hi, Does Struts 1.1 provide any means of implementing Authentication/Authorization? While going through the code, I found the following methods related to (Security) Roles. processRoles() getRoles() setRoles() - How exactly are the Roles cofigured? Is struts-config.xml file used for this? A sample config would greatly help. - Which source does call setRoles() method? How is the roles attribute in ActionConfig.java populated? TIA, Regards, Amit Amit Vaidya Infosys, Pune Phone-20-29-32800 Extn-5828 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Exceeding JSP Size Limit w/ Tiles
I've run into the JSP size limitation on a couple of my JSP's (built with Tiles). I've tried to split out a set of common html:option statements that get used several times in the page (a list of US states), but I haven't figured out how to 'include' this list back into the JSP. I've tried using jsp:include and tiles:insert page=? but keep getting a message indicating that the HTTP response has already been flushed - therefore I can't do an include (this is Tomcat 3.3.1/servlet spec 2.2). On Cedric's web site for Tiles there is a comment that you can set/use bean value in the config. file, but I can't seem to find an example on how to do this. Does anyone have a example they can post? Is there a better way to handle this situation? Thanks in advance! Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at (800)388-4675. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Missing in Action ?
Hey, Higgins! Well, the trip to Amsterdam did not begin very well. Before we even leave BWI on Tuesday we are stuck on the tarmac for 2 hours while all the luggage in the hold is removed because there is a mismatch between the IDs on the luggage and the people on the plane. On the flight over on American Airlines we hit some turbulence just south of Newfoundland and the captain turned the seat belt sign on. Jane was chilly so I got up to find her an extra blanket. The bitch-flight-attendant-from-hell marched over to me and rudely ORDERED me to take my seat and buckle my seat belt. I told her I would as soon as found my wife a blanket. She told me she would get her a blanket and for me to sit down immediately. I sat down...we waited...and waited...and the bitch never returned. So I got up again and started looking through the over-heads for a blanket. She shows up again with some other dude and demands my boarding pass, which I hand the dude. We arrive at Heathrow 3-4 hours later without further incident. Before we can deplane, the London police come aboard, arrest me, and take me to the local station. I'm charged with Disobeying a direct order from the flight crew, thrown in a cell without running water, food or outside contact for 10 hours before I'm released on bail. The following day we spend all day in a magistrate's court in Uxbridge where, against the advise of my solicitor I plead guilty under protest (if I fight it, I have to post a bond and return to the UK sometime in the future) and am fined £300 (about US$450) and have to pay the solicitor another £150. Now I go through the administrative BS to get my bail money back and, because my passport has not accompanied the money, have to return all the way back to Heathrow for it. So at the end of my second day in London we are making a frantic race to Victoria station through the London Underground to get the last train to Dover. The Tube is very confusing, we get on the wrong line, and in the confusion I leave our carry-on bag on one of the lines containing, among other things, all our flight, train, ferry, and hotel reservations info. We finally get to Dover in time for the last ferry to Calais-Ville but by the time we get to Calais, all trains have stopped running and we have to wait until the next day (Friday) around noon. When we finally get to Amsterdam after about 8 hours on and off trains late Friday night, I can't the name of our hotel but remember where it appeared to be on the map on its website (I was wrong). So we walk through the streets (mainly the Red Light district) of Amsterdam for 3 hours searching for a hotel which name includes van Cleve (the only thing I can remember). We give up after realizing we have been walking (hiking, with heavy backpacks) in circles and go back to Centraal Station and the VVV. There, a VVV agent recognizes the name of the hotel and informs us it is only 3 blocks away and that we have been searching on the wrong (Old) side of the city. So we finally get to the hotel, but because we are 2 days late, our reservations have been cancelled and the hotel is, of course, fully booked). After about another hour, we obtain lodging at the Swissôtel right off the Dam, and, predictably, it takes us another hour to find it because we get lost again. We finally get to our room around midnight, dirty and soaked in sweat from hiking all over the city with our backpacks. The next morning (Saturday) we decided the last thing in the world we wanted to do was to get on another train and haul those backpacks up to Caspicum. So found a smoking coffee shop and ... well ... relaxed. Sorry we missed Dutch Nash Hash, but we kinda had our own hash ;-). And we never did get the damn blanket. Other than that, we had a GREAT time...more on that later - gotta do some Struts stuff. On!On! ad (Mark) -Original Message- From: Pierre-Marc LEFEBVRE [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:42 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Missing in action ? HHHi AD/FP, Did you ever made it to Europe this month ? You missed a great Dutch NH. On Out Higgins -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re: Struts + EJB ?
We are doing the same thing right now and so far so good. Since you are creating the ejbs you can define the create methods how ever you want. We use a value object and pass it into the create method. When we actually create the method we set the primary key in the value object and return that. --- René_Eigenheer [EMAIL PROTECTED] wrote: I'm actually evaluating possibilities to add EJB functionality to our struts projects. By reading a lot of articles I came to conclusion that the following architecture may work: Struts-Action - Processing http-request - Performing formal validation (validation framework) - Performing simple validation with methods defined in value object class (validations which only require data which is available in the value object) - Copying action form properties to value object properties - Calling remote EJB session bean (value object as parameter) - Handling workflow EJB session - Receiving request from struts action - Performing complex validation - Performing business logic - Calling Entity beans - Returning value object to strus action - Returning return/error codes to struts action Entity beans - As usual Is anybody using such an architecture including session beans - experiences? Do you see any cons? And a question out of scope: I'm new in the area of EJB (learning with Ed Roman's book). Everything looks quite interesting for me except the fact that the create method of entity beans is called with a lot of parameters, which obviously may change, if you add a property to your bean. Did I miss something with this subject or do I really have to live with this fact? I was assuming/hoping that a create method uses the object as parameter! Thanks for any assistance Rene -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
A good nightly build to start developing against
We are going to begin a new project tomorrow using struts and need to use the sub-applications functionality and thus the SwitchAction class which does not appear to be included in the Beta 1 release. Can someone point me to a generally more or less stable nightly build that includes this functionality. Thanks, Doug -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: logging, log4j
Hi Yes, but it works only, if you have an Appender named A1! Here my own Log4j.properties, where you can hide alle packages, you don't need: # Configure the rootlogger log4j.appender.WEBAPP=org.apache.log4j.ConsoleAppender log4j.appender.WEBAPP.layout=org.apache.log4j.PatternLayout log4j.appender.WEBAPP.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n # Second logger for filetrace log4j.appender.WEBAPPFILE=org.apache.log4j.RollingFileAppender log4j.appender.WEBAPPFILE.File=fortuna.log log4j.appender.WEBAPPFILE.MaxFileSize=100KB log4j.appender.WEBAPPFILE.MaxBackupIndex=5 log4j.appender.WEBAPPFILE.layout=org.apache.log4j.PatternLayout log4j.appender.WEBAPPFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n # Ab hier Konfiguration der App # All messages will go to console log4j.rootLogger=DEBUG, WEBAPP # All messages of my own app goes to file logger also log4j.logger.de.neusta=INHERITED, WEBAPPFILE # Here I can configger, from what level I will see the traces # in this case ALL log4j.appender.WEBAPP.threshold=ALL # Here you may hide some other packages log4j.logger.org.apache.commons=WARN Gruß Manfred -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von David Wilkinson Gesendet: Dienstag, 16. Juli 2002 13:52 An: 'Struts Users Mailing List' Betreff: RE: logging, log4j I had the same issue but I added the following to my log4j.properties file to control struts logging. log4j.category.org.apache.commons=WARN, A1 log4j.category.org.apache.struts=WARN, A1 -Original Message- From: petra staub [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 12:35 To: [EMAIL PROTECTED] Subject: logging, log4j hi, i am using for my own classes log4j for logging. unfortunately, not only my classes start producing output, but also struts classes, mostly the RequestProcessor: 3945 INFO struts.action.RequestProcessor - Processing a 'GET' for path '/home' how can I get only the logging from my classes? where am I doing something wrong? I use log4j like in the following example: public class ExampleClass { static Logger log = Logger.getLogger(ExampleClass.class.getName()); void method() { log.info(log me); } } log4j.properties is in the class root and automatically loaded. thanks! _ Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der Welt: http://www.hotmail.com/de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: A good nightly build to start developing against
I would recommend using the latest nightly build as it has the most up to date fixes, etc. There have been alot of unit tests added to the code and every nightly build has to pass these. Plus we're getting very close to 1.1b2 being released. We're down to only like 18 open bugs. If you find any problems in the builds you can submit a bug report and it will likely get fixed soon. -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- Bryant, Doug [EMAIL PROTECTED] wrote: We are going to begin a new project tomorrow using struts and need to use the sub-applications functionality and thus the SwitchAction class which does not appear to be included in the Beta 1 release. Can someone point me to a generally more or less stable nightly build that includes this functionality. Thanks, Doug -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
File upload Maximum limit
Hi, Does struts limits the size of the file being uploaded. Because we are facing a problem when the file size crosses 1MB. I have searched mail archive, haven't found any reply in that. Regards, R.Gopalakrishnan
RE: A good nightly build to start developing against
I'm using the nightly build of the 10 jully and I haven't got (not yet) any problem with it. arnaud -Message d'origine- De : Bryant, Doug [mailto:[EMAIL PROTECTED]] Envoyé : mardi 16 juillet 2002 16:53 À : '[EMAIL PROTECTED]' Objet : A good nightly build to start developing against We are going to begin a new project tomorrow using struts and need to use the sub-applications functionality and thus the SwitchAction class which does not appear to be included in the Beta 1 release. Can someone point me to a generally more or less stable nightly build that includes this functionality. Thanks, Doug -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Missing in Action ?
DAAMN!!! ...and I was just complaining about my weekend from hell..I guess I had a good weekend after hearing your story. Later James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:31 AM To: 'Pierre-Marc LEFEBVRE' Cc: Wankers (E-mail); Struts (E-mail) Subject: RE: Missing in Action ? Hey, Higgins! Well, the trip to Amsterdam did not begin very well. Before we even leave BWI on Tuesday we are stuck on the tarmac for 2 hours while all the luggage in the hold is removed because there is a mismatch between the IDs on the luggage and the people on the plane. On the flight over on American Airlines we hit some turbulence just south of Newfoundland and the captain turned the seat belt sign on. Jane was chilly so I got up to find her an extra blanket. The bitch-flight-attendant-from-hell marched over to me and rudely ORDERED me to take my seat and buckle my seat belt. I told her I would as soon as found my wife a blanket. She told me she would get her a blanket and for me to sit down immediately. I sat down...we waited...and waited...and the bitch never returned. So I got up again and started looking through the over-heads for a blanket. She shows up again with some other dude and demands my boarding pass, which I hand the dude. We arrive at Heathrow 3-4 hours later without further incident. Before we can deplane, the London police come aboard, arrest me, and take me to the local station. I'm charged with Disobeying a direct order from the flight crew, thrown in a cell without running water, food or outside contact for 10 hours before I'm released on bail. The following day we spend all day in a magistrate's court in Uxbridge where, against the advise of my solicitor I plead guilty under protest (if I fight it, I have to post a bond and return to the UK sometime in the future) and am fined £300 (about US$450) and have to pay the solicitor another £150. Now I go through the administrative BS to get my bail money back and, because my passport has not accompanied the money, have to return all the way back to Heathrow for it. So at the end of my second day in London we are making a frantic race to Victoria station through the London Underground to get the last train to Dover. The Tube is very confusing, we get on the wrong line, and in the confusion I leave our carry-on bag on one of the lines containing, among other things, all our flight, train, ferry, and hotel reservations info. We finally get to Dover in time for the last ferry to Calais-Ville but by the time we get to Calais, all trains have stopped running and we have to wait until the next day (Friday) around noon. When we finally get to Amsterdam after about 8 hours on and off trains late Friday night, I can't the name of our hotel but remember where it appeared to be on the map on its website (I was wrong). So we walk through the streets (mainly the Red Light district) of Amsterdam for 3 hours searching for a hotel which name includes van Cleve (the only thing I can remember). We give up after realizing we have been walking (hiking, with heavy backpacks) in circles and go back to Centraal Station and the VVV. There, a VVV agent recognizes the name of the hotel and informs us it is only 3 blocks away and that we have been searching on the wrong (Old) side of the city. So we finally get to the hotel, but because we are 2 days late, our reservations have been cancelled and the hotel is, of course, fully booked). After about another hour, we obtain lodging at the Swissôtel right off the Dam, and, predictably, it takes us another hour to find it because we get lost again. We finally get to our room around midnight, dirty and soaked in sweat from hiking all over the city with our backpacks. The next morning (Saturday) we decided the last thing in the world we wanted to do was to get on another train and haul those backpacks up to Caspicum. So found a smoking coffee shop and ... well ... relaxed. Sorry we missed Dutch Nash Hash, but we kinda had our own hash ;-). And we never did get the damn blanket. Other than that, we had a GREAT time...more on that later - gotta do some Struts stuff. On!On! ad (Mark) -Original Message- From: Pierre-Marc LEFEBVRE [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:42 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Missing in action ? HHHi AD/FP, Did you ever made it to Europe this month ? You missed a great Dutch NH. On Out Higgins -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Missing in Action ?
Yeah, and I only had a short nap on Sunday afternoon. I just want you to know that I have it rough! (Not to mention growing up living in a paper bag in the middle of the road! :-) Simon -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:28 AM To: Struts Users Mailing List Subject: RE: Missing in Action ? DAAMN!!! ...and I was just complaining about my weekend from hell..I guess I had a good weekend after hearing your story. Later James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:31 AM To: 'Pierre-Marc LEFEBVRE' Cc: Wankers (E-mail); Struts (E-mail) Subject: RE: Missing in Action ? Hey, Higgins! Well, the trip to Amsterdam did not begin very well. Before we even leave BWI on Tuesday we are stuck on the tarmac for 2 hours while all the luggage in the hold is removed because there is a mismatch between the IDs on the luggage and the people on the plane. On the flight over on American Airlines we hit some turbulence just south of Newfoundland and the captain turned the seat belt sign on. Jane was chilly so I got up to find her an extra blanket. The bitch-flight-attendant-from-hell marched over to me and rudely ORDERED me to take my seat and buckle my seat belt. I told her I would as soon as found my wife a blanket. She told me she would get her a blanket and for me to sit down immediately. I sat down...we waited...and waited...and the bitch never returned. So I got up again and started looking through the over-heads for a blanket. She shows up again with some other dude and demands my boarding pass, which I hand the dude. We arrive at Heathrow 3-4 hours later without further incident. Before we can deplane, the London police come aboard, arrest me, and take me to the local station. I'm charged with Disobeying a direct order from the flight crew, thrown in a cell without running water, food or outside contact for 10 hours before I'm released on bail. The following day we spend all day in a magistrate's court in Uxbridge where, against the advise of my solicitor I plead guilty under protest (if I fight it, I have to post a bond and return to the UK sometime in the future) and am fined £300 (about US$450) and have to pay the solicitor another £150. Now I go through the administrative BS to get my bail money back and, because my passport has not accompanied the money, have to return all the way back to Heathrow for it. So at the end of my second day in London we are making a frantic race to Victoria station through the London Underground to get the last train to Dover. The Tube is very confusing, we get on the wrong line, and in the confusion I leave our carry-on bag on one of the lines containing, among other things, all our flight, train, ferry, and hotel reservations info. We finally get to Dover in time for the last ferry to Calais-Ville but by the time we get to Calais, all trains have stopped running and we have to wait until the next day (Friday) around noon. When we finally get to Amsterdam after about 8 hours on and off trains late Friday night, I can't the name of our hotel but remember where it appeared to be on the map on its website (I was wrong). So we walk through the streets (mainly the Red Light district) of Amsterdam for 3 hours searching for a hotel which name includes van Cleve (the only thing I can remember). We give up after realizing we have been walking (hiking, with heavy backpacks) in circles and go back to Centraal Station and the VVV. There, a VVV agent recognizes the name of the hotel and informs us it is only 3 blocks away and that we have been searching on the wrong (Old) side of the city. So we finally get to the hotel, but because we are 2 days late, our reservations have been cancelled and the hotel is, of course, fully booked). After about another hour, we obtain lodging at the Swissôtel right off the Dam, and, predictably, it takes us another hour to find it because we get lost again. We finally get to our room around midnight, dirty and soaked in sweat from hiking all over the city with our backpacks. The next morning (Saturday) we decided the last thing in the world we wanted to do was to get on another train and haul those backpacks up to Caspicum. So found a smoking coffee shop and ... well ... relaxed. Sorry we missed Dutch Nash Hash, but we kinda had our own hash ;-). And we never did get the damn blanket. Other than that, we had a GREAT time...more on that later - gotta do some Struts stuff. On!On! ad (Mark) -Original Message- From: Pierre-Marc LEFEBVRE [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:42 AM To: [EMAIL PROTECTED] Cc:
RE: File upload Maximum limit
Our application is maxed out at 50mb, much beyond that, the server crashes. Jacob Hookom CS Student University of Wisconsin, Eau Claire === http://www.swanked.net you're not hip enough yet -Original Message- From: Gopalakrishnan Rangaswamy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:04 AM To: [EMAIL PROTECTED] Subject: File upload Maximum limit Hi, Does struts limits the size of the file being uploaded. Because we are facing a problem when the file size crosses 1MB. I have searched mail archive, haven't found any reply in that. Regards, R.Gopalakrishnan --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Exception with null Date form field
Hi, I've notice a lot of posts lately about the BeanUtils class. I was just wondering if someone could confirm if this is a previously reported bug that has been fixed in the nightly builds. I have a form bean that contains an attribute of type java.sql.Date. While attempting to save the values for this form and exception is thrown in BeanUtils.populate()/SqlDateConverter.convert() methods if the user leaves this date field blank. The ActionForm's validate method is never reached, so it appears that I can't catch this scenario. Is there a resolution to this?.besides changing the form type to a string. Thanks, Eric tomcat 4.0.3 struts 1.1b javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:954) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:795) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) . root cause org.apache.commons.beanutils.ConversionException at org.apache.commons.beanutils.converters.SqlDateConverter.convert(SqlDateConv erter.java:150) at org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:359) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:604) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:952) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:795) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) ** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with session ojects: memory size, updates
I read Value Object pattern on J2EE design pattern http://java.sun.com/blueprints/patterns/j2ee_patterns/catalog.html. I understood that JavaBean are an implementation of ValueObjects. a value object represents a business object, but it doesn't need to provide business methods on top of its data; it only provides methods to read its data, which makes it an ideal candidate for local access rather than remote access. So I don't understand your remark Another possible solution is to create Value Objects and serialize them. Did you want to say that EJB is a solution? Because we don't want to work with EJB. In my architecture I get data from an enterprise back-end system and then Action class create Value Objects(JavaBean) if the object required doesn't exist. If I need to update data on the back-end server, then a manager is in charge of serializing and sending JavaBean across the Network. But to maintain user information (JavaBeans) over multiple requests and pass data between Action and JSP I need to store ValueObject in a cache(session or request scope). Could you detail please why ValueObejct serialization can be a solution to session size growth ? Thanks a lot in advance -Original Message- From: Manish_Purang [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 07:31 To: Struts Users Mailing List Subject: RE: Problem with session ojects: memory size, updates hi, Maybe you could take a look at any of the ejb or java bean design pattern books to get an exhaustive idea about the value objects ..! you can download one free pdf version from the serverisde.com-- (Ejb Design patterns by Floyd Marinescu ) Rgds -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:52 AM To: 'Struts Users Mailing List' Subject: RE: Problem with session ojects: memory size, updates Perhaps my question is stupid but I am not sure to know the Value object notion well. Could you give more details about Value Objects? What is the difference between JavaBean and ValueObject(or Data Transfer Object also I believe)? Value objects are shared by the web and the back-end tier. Thanks Sandra -Original Message- From: Dave Hodson [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 00:38 To: Struts Users Mailing List Subject: RE: Problem with session ojects: memory size, updates Another possible solution is to create Value Objects and serialize them... Dave --- Dave Hodson MessageCast, inc. Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.messagecast.net -Original Message- From: Jesse Alexander (KADA 11) [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 10:56 PM To: Struts Users Mailing List Subject: RE: Problem with session ojects: memory size, updates Hi Sandra, I prefer to remove the objects from the session as soon as I can declare that they are not usefull anymore. EG.: In action_1 I build a model-object, use it in jsp_1 and process the users action in action_2. If the usecase is finished here, I remove the object from the session. As for session size: The 4kB recommendation comes from servers that support clustering. Because the session must be propagated to all members of the cluster, it should be kept as small as possible. We have a few application running with substantial numbers of concurrent users that can have up several megabytes of session-data. If the usecase needs it, do it. Often we have the case that a few users need lots of session data, and most users just a few bytes... Ok for us session-data is used, because our persistance level is on a CORBA-backend host and we have no jdbc on our midrange. Therefor we calculate it is cheaper to a few Gig of memory to our servers in order to save on network-data-transfer. hope this helps Alexander -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Freitag, 12. Juli 2002 13:11 To: 'Struts Users Mailing List' Subject: RE: Problem with session ojects: memory size, updates Importance: High Thanks John for your response, I have already read the message http://www.mail-archive.com/struts-user@jakarta.apache.org/msg 34592.html but I would like to have more details with real examples. I believe that the best way is to try. I read that objects in the session must be removed unlike the request objects. Is it good to do that when the application invalidates the session ?. Because we save objects in the session in order to access data during all the session life. I would like to have advices or tricks for updating and looking up session objects (JavaBeans and not EJB). Imagine I have the following business objects model: Class A composed of several instances B, each B item can be composed of several C instances. (nested beans). If the list of each sub-beans is variable, must I use dynaBean ? Imagine the user make a request about the instance B2, I get data information and store
RE: Missing in Action ?
I forgot to mention that besides all that, AA lost our luggage from BWI to Heathrow, which cost us an additional 1/2 day and several trips to Terminal 3. :-( -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:29 AM Yeah, and I only had a short nap on Sunday afternoon. I just want you to know that I have it rough! (Not to mention growing up living in a paper bag in the middle of the road! :-) Simon -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:28 AM DAAMN!!! ...and I was just complaining about my weekend from hell..I guess I had a good weekend after hearing your story. Later James Mitchell -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:31 AM Well, the trip to Amsterdam did not begin very well. Before we even leave BWI on Tuesday we are stuck on the tarmac for 2 hours while all the luggage in the hold is removed because there is a mismatch between the IDs on the luggage and the people on the plane. On the flight over on American Airlines we hit some turbulence just south of Newfoundland and the captain turned the seat belt sign on. Jane was chilly so I got up to find her an extra blanket. The bitch-flight-attendant-from-hell marched over to me and rudely ORDERED me to take my seat and buckle my seat belt. I told her I would as soon as found my wife a blanket. She told me she would get her a blanket and for me to sit down immediately. I sat down...we waited...and waited...and the bitch never returned. So I got up again and started looking through the over-heads for a blanket. She shows up again with some other dude and demands my boarding pass, which I hand the dude. We arrive at Heathrow 3-4 hours later without further incident. Before we can deplane, the London police come aboard, arrest me, and take me to the local station. I'm charged with Disobeying a direct order from the flight crew, thrown in a cell without running water, food or outside contact for 10 hours before I'm released on bail. The following day we spend all day in a magistrate's court in Uxbridge where, against the advise of my solicitor I plead guilty under protest (if I fight it, I have to post a bond and return to the UK sometime in the future) and am fined £300 (about US$450) and have to pay the solicitor another £150. Now I go through the administrative BS to get my bail money back and, because my passport has not accompanied the money, have to return all the way back to Heathrow for it. So at the end of my second day in London we are making a frantic race to Victoria station through the London Underground to get the last train to Dover. The Tube is very confusing, we get on the wrong line, and in the confusion I leave our carry-on bag on one of the lines containing, among other things, all our flight, train, ferry, and hotel reservations info. We finally get to Dover in time for the last ferry to Calais-Ville but by the time we get to Calais, all trains have stopped running and we have to wait until the next day (Friday) around noon. When we finally get to Amsterdam after about 8 hours on and off trains late Friday night, I can't the name of our hotel but remember where it appeared to be on the map on its website (I was wrong). So we walk through the streets (mainly the Red Light district) of Amsterdam for 3 hours searching for a hotel which name includes van Cleve (the only thing I can remember). We give up after realizing we have been walking (hiking, with heavy backpacks) in circles and go back to Centraal Station and the VVV. There, a VVV agent recognizes the name of the hotel and informs us it is only 3 blocks away and that we have been searching on the wrong (Old) side of the city. So we finally get to the hotel, but because we are 2 days late, our reservations have been cancelled and the hotel is, of course, fully booked). After about another hour, we obtain lodging at the Swissôtel right off the Dam, and, predictably, it takes us another hour to find it because we get lost again. We finally get to our room around midnight, dirty and soaked in sweat from hiking all over the city with our backpacks. The next morning (Saturday) we decided the last thing in the world we wanted to do was to get on another train and haul those backpacks up to Caspicum. So found a smoking coffee shop and ... well ... relaxed. Sorry we missed Dutch Nash Hash, but we kinda had our own hash ;-). And we never did get the damn blanket. Other than that, we had a GREAT time...more on that later - gotta do some Struts stuff. On!On! ad (Mark) -Original Message- From: Pierre-Marc LEFEBVRE [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:42 AM HHHi AD/FP, Did you ever made it to Europe this month ? You
What should I do in Action if I do not want to forward to anywhere in perform()???
Subject: What should I do in Action if I do not want to forward to anywhere in perform()??? From: J. Jason Zhou [EMAIL PROTECTED] === I just want to write out something through response object and do NOT want to forward to any jsp page??? -- Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where is Execute method..?
On Tue, 16 Jul 2002, Manish_Purang wrote: Date: Tue, 16 Jul 2002 15:19:48 +0530 From: Manish_Purang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Where is Execute method..? thnx for the quick reply..! that means we don't have perform in the 1.1b and performs makes its first appearance from 1.1 b right...? No, you have it backwards. In 1.0, the method you implement in an Action is perform(). For 1.1, you can continue to use perform(), but should eventually switch to execute(). The reason for the change is that execute() lets you throw an exception from your business logic, and allow the exception handling you've configured in struts-config.xml figure out what to do next. Craig -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: Re: Where is Execute method..? execute() appears from version 1.1b1. It replaces de perform(), despite Struts1.1b1 maintains performs() for backwards compatibility. Adolfo From: Manish_Purang [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Where is Execute method..? Date: Tue, 16 Jul 2002 15:09:01 +0530 Hi all..! I think i'm missing somthing...!! This is from the chapter 3 of the Struts book at the serverside.com. It mentions about this execute method. However in API ( Struts 1.0) i dont have this within the Action class ...!!! The Struts Action class contains several methods, but the most important is the execute() method. Here is the method signature: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException; The execute() method is called on an instance of an Action class by the controller when a request is received from a client Where is the execute method..? rgds ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] HTML HEAD TITLEAdolfo's signature/TITLE /HEAD BODY centerbemAdolfo Rodriguez Miguelez/emb/center /BODY /HTML _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Missing in Action ?
I never fly into London anymore, Heathrow or Gatwick. I find Birmingham International Airport to be a much calmer experience. Same level of facilities, but less traffic, nicer people and MUCH easier to get to the motorway. And the other helpful factor for me is that it is the same distance from Birmingham to my parents house as it would be from London. Not that I have any plans to fly again anytime soon with all the stupidity displayed by the U.S. airport security folks. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:39 AM To: 'Struts Users Mailing List' Subject: RE: Missing in Action ? I forgot to mention that besides all that, AA lost our luggage from BWI to Heathrow, which cost us an additional 1/2 day and several trips to Terminal 3. :-( -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:29 AM Yeah, and I only had a short nap on Sunday afternoon. I just want you to know that I have it rough! (Not to mention growing up living in a paper bag in the middle of the road! :-) Simon -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:28 AM DAAMN!!! ...and I was just complaining about my weekend from hell..I guess I had a good weekend after hearing your story. Later James Mitchell -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:31 AM Well, the trip to Amsterdam did not begin very well. Before we even leave BWI on Tuesday we are stuck on the tarmac for 2 hours while all the luggage in the hold is removed because there is a mismatch between the IDs on the luggage and the people on the plane. On the flight over on American Airlines we hit some turbulence just south of Newfoundland and the captain turned the seat belt sign on. Jane was chilly so I got up to find her an extra blanket. The bitch-flight-attendant-from-hell marched over to me and rudely ORDERED me to take my seat and buckle my seat belt. I told her I would as soon as found my wife a blanket. She told me she would get her a blanket and for me to sit down immediately. I sat down...we waited...and waited...and the bitch never returned. So I got up again and started looking through the over-heads for a blanket. She shows up again with some other dude and demands my boarding pass, which I hand the dude. We arrive at Heathrow 3-4 hours later without further incident. Before we can deplane, the London police come aboard, arrest me, and take me to the local station. I'm charged with Disobeying a direct order from the flight crew, thrown in a cell without running water, food or outside contact for 10 hours before I'm released on bail. The following day we spend all day in a magistrate's court in Uxbridge where, against the advise of my solicitor I plead guilty under protest (if I fight it, I have to post a bond and return to the UK sometime in the future) and am fined £300 (about US$450) and have to pay the solicitor another £150. Now I go through the administrative BS to get my bail money back and, because my passport has not accompanied the money, have to return all the way back to Heathrow for it. So at the end of my second day in London we are making a frantic race to Victoria station through the London Underground to get the last train to Dover. The Tube is very confusing, we get on the wrong line, and in the confusion I leave our carry-on bag on one of the lines containing, among other things, all our flight, train, ferry, and hotel reservations info. We finally get to Dover in time for the last ferry to Calais-Ville but by the time we get to Calais, all trains have stopped running and we have to wait until the next day (Friday) around noon. When we finally get to Amsterdam after about 8 hours on and off trains late Friday night, I can't the name of our hotel but remember where it appeared to be on the map on its website (I was wrong). So we walk through the streets (mainly the Red Light district) of Amsterdam for 3 hours searching for a hotel which name includes van Cleve (the only thing I can remember). We give up after realizing we have been walking (hiking, with heavy backpacks) in circles and go back to Centraal Station and the VVV. There, a VVV agent recognizes the name of the hotel and informs us it is only 3 blocks away and that we have been searching on the wrong (Old) side of the city. So we finally get to the hotel, but because we are 2 days late, our reservations have been cancelled and the hotel is, of course,
Related Select lists
I have an application that needs to provide a way for a user to drill down through hierarchical data. I'd like to do what heavyweight clients are able to do and relate two select lists to each other. That way, when a choice is made from the first select, the options in the second are filtered to those relating. ColdFusion has a custom tag which generates a bunch of Javascript to do this. I'd like to find the best way to do it with Struts. Any thoughts? Thanks, Ben Geyer Caterpillar Inc. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Latest Nightly build
On Tue, 16 Jul 2002, Jon.Ridgway wrote: Date: Tue, 16 Jul 2002 11:39:37 +0100 From: Jon.Ridgway [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Latest Nightly build Hi All, Further to my previous post I have just enabled all debugging/logging in Struts/WebLogic and download the very latest build. I'm still getting an exception when attempting to deploy a web app that works fine with the 1.1b1 release. The exception is : 16-Jul-02 11:33:25 BST Debug HTTP Exception thrown while loading spf: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:78) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java :398) The fact that this is coming from WebLogic's code (presumably the part that reads JAR file manifests) implies that it's something going on inside WebLogic's JVM. I'm afraid you're going to have to go to them for help to figure out precisely what it's complaining about. etc.. This is caused by something in struts.jar. If I replace the jar with the 1.1b1 jar the app deploys. Any ideas, suggestions much appreciated. Jon Ridgway Craig The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What should I do in Action if I do not want to forward to anywhere in perform()???
return null from your Action. (you can't forward anyway if you've written to the browser) James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:40 AM To: [EMAIL PROTECTED] Subject: What should I do in Action if I do not want to forward to anywhere in perform()??? Subject: What should I do in Action if I do not want to forward to anywhere in perform()??? From: J. Jason Zhou [EMAIL PROTECTED] === I just want to write out something through response object and do NOT want to forward to any jsp page??? -- Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Plug-In Ordering
On Tue, 16 Jul 2002, Jerry Jalenak wrote: Date: Tue, 16 Jul 2002 08:24:10 -0500 From: Jerry Jalenak [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Plug-In Ordering With the move to a plug-in architecture, is the order that the plug-ins are specified in struts-config important? i.e. should the TilePlugIn come before the ValidatorPlugIn, and should everything come before any locally developed plug-ins, etc.? The init() methods of plugins are called in they order they are listed in struts-config.xml. Off the top of my head, I don't know if there are order dependencies between tiles and validator, but the usual rules apply -- if *your* plugin depends on some other plugin having been initialized first, be sure to put your plugin after that one in the config file. Jerry Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Missing in Action ?
Aaahhh...airport security - that's another tail of woe that I'll save for tomorrow! And I agree with you on the incredible stupidity exercised by American airport and flight personnel. The next time I go to Europe, I'm taking a boat! -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:49 AM To: Struts Users Mailing List Subject: RE: Missing in Action ? I never fly into London anymore, Heathrow or Gatwick. I find Birmingham International Airport to be a much calmer experience. Same level of facilities, but less traffic, nicer people and MUCH easier to get to the motorway. And the other helpful factor for me is that it is the same distance from Birmingham to my parents house as it would be from London. Not that I have any plans to fly again anytime soon with all the stupidity displayed by the U.S. airport security folks. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:39 AM To: 'Struts Users Mailing List' Subject: RE: Missing in Action ? I forgot to mention that besides all that, AA lost our luggage from BWI to Heathrow, which cost us an additional 1/2 day and several trips to Terminal 3. :-( -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:29 AM Yeah, and I only had a short nap on Sunday afternoon. I just want you to know that I have it rough! (Not to mention growing up living in a paper bag in the middle of the road! :-) Simon -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:28 AM DAAMN!!! ...and I was just complaining about my weekend from hell..I guess I had a good weekend after hearing your story. Later James Mitchell -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:31 AM Well, the trip to Amsterdam did not begin very well. Before we even leave BWI on Tuesday we are stuck on the tarmac for 2 hours while all the luggage in the hold is removed because there is a mismatch between the IDs on the luggage and the people on the plane. On the flight over on American Airlines we hit some turbulence just south of Newfoundland and the captain turned the seat belt sign on. Jane was chilly so I got up to find her an extra blanket. The bitch-flight-attendant-from-hell marched over to me and rudely ORDERED me to take my seat and buckle my seat belt. I told her I would as soon as found my wife a blanket. She told me she would get her a blanket and for me to sit down immediately. I sat down...we waited...and waited...and the bitch never returned. So I got up again and started looking through the over-heads for a blanket. She shows up again with some other dude and demands my boarding pass, which I hand the dude. We arrive at Heathrow 3-4 hours later without further incident. Before we can deplane, the London police come aboard, arrest me, and take me to the local station. I'm charged with Disobeying a direct order from the flight crew, thrown in a cell without running water, food or outside contact for 10 hours before I'm released on bail. The following day we spend all day in a magistrate's court in Uxbridge where, against the advise of my solicitor I plead guilty under protest (if I fight it, I have to post a bond and return to the UK sometime in the future) and am fined £300 (about US$450) and have to pay the solicitor another £150. Now I go through the administrative BS to get my bail money back and, because my passport has not accompanied the money, have to return all the way back to Heathrow for it. So at the end of my second day in London we are making a frantic race to Victoria station through the London Underground to get the last train to Dover. The Tube is very confusing, we get on the wrong line, and in the confusion I leave our carry-on bag on one of the lines containing, among other things, all our flight, train, ferry, and hotel reservations info. We finally get to Dover in time for the last ferry to Calais-Ville but by the time we get to Calais, all trains have stopped running and we have to wait until the next day (Friday) around noon. When we finally get to Amsterdam after about 8 hours on and off trains late Friday night, I can't the name of our hotel but remember where it appeared to be on the map on its website (I was wrong). So we walk through the streets (mainly the Red Light district) of Amsterdam for 3 hours searching for a hotel which name includes van Cleve (the only thing I can remember). We give up after realizing we
Re: Authentication, Authorization in Struts 1.1
On Tue, 16 Jul 2002, Amit Vaidya wrote: Date: Tue, 16 Jul 2002 16:06:41 +0530 From: Amit Vaidya [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Authentication, Authorization in Struts 1.1 Hi, Does Struts 1.1 provide any means of implementing Authentication/Authorization? No, and it shouldn't. That should be the container's responsibility. While going through the code, I found the following methods related to (Security) Roles. processRoles() getRoles() setRoles() - How exactly are the Roles cofigured? Is struts-config.xml file used for this? A sample config would greatly help. - Which source does call setRoles() method? How is the roles attribute in ActionConfig.java populated? TIA, The roles being talked about are the ones you can use with container managed security that is provided by your servlet container. You configure security-constraint elements in your web.xml file that declare the required roles to access certain URLs, and then you configure your container's user database (details will be specific to which container you use) to add appropriate users and roles. Details on security constraints are in the servlet spec. http://java.sun.com/products/servlet/download/ For example, if you're using Tomcat 4, the default user database is an XML file $CATALINA_HOME/conf/tomcat-users.xml. Out of the box, the example application has a protected area that you can experiment with, and then look at the web.xml file to see how it was configured: http://localhost:8080/examples/jsp/security/protected/ with a username tomcat and password tomcat (if you haven't adjusted the default user file). Tomcat also has lots of other flexibility, including the use of a database or directory server as the source of user information, the ability to use different user databases for different webapps, and so on. In 4.1.x releases, there is even an administrative webapp (built on top of Struts) that lets you add and remove users through a GUI. Every container will provide it's own mechanisms to do that sort of thing. But your application just protects things in terms of roles, and will run on any such container. Regards, Amit Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Exception with null Date form field
On Tue, 16 Jul 2002, Schneider, Eric wrote: Date: Tue, 16 Jul 2002 09:33:45 -0600 From: Schneider, Eric [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Exception with null Date form field Hi, I've notice a lot of posts lately about the BeanUtils class. I was just wondering if someone could confirm if this is a previously reported bug that has been fixed in the nightly builds. I have a form bean that contains an attribute of type java.sql.Date. While attempting to save the values for this form and exception is thrown in BeanUtils.populate()/SqlDateConverter.convert() methods if the user leaves this date field blank. The ActionForm's validate method is never reached, so it appears that I can't catch this scenario. Is there a resolution to this?.besides changing the form type to a string. In your form bean, this field should be a String, not a Date. That is for two reasons: * Populating the form bean happens before validation, so you have to ensure that conversion will be successful. It won't be if the user types an invalid value. That's what happened to you here. * If the user does type an invalid value, you want to be able to reproduce exactly what he or she *did* type, just like any GUI program will. Conversion to a Date should happen in your Action, once you know that validation has been successful and that you won't run into conversion errors. A copyProperties() method was added to BeanUtils that knows how to do the conversions that is perfect for use in such circumstances. But your form bean field should absolutely NOT be a Date. Thanks, Eric Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Debug Struts in Tomcat
I am using Tomcat, Struts, and Eclipse to code my application. I found myself spend too much time reboot tomcat because either to changes the applicationResources.properties file or some action classes. Is there a better way for me to do this without reboot tomcat? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Debug Struts in Tomcat
In tomcat-users.xml add a manager role: tomcat-users user name=tomcat password=tomcat roles=tomcat / user name=role1 password=tomcat roles=role1 / user name=both password=tomcat roles=tomcat,role1 / user name=sa password=love23 roles=manager / /tomcat-users Then, from your browser: http://yourip:8080/manager/reload?path=/struts-example Jacob Hookom CS Student University of Wisconsin, Eau Claire === http://www.swanked.net you're not hip enough yet -Original Message- From: Hoang, Hai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:24 AM To: 'struts-user' Subject: Debug Struts in Tomcat I am using Tomcat, Struts, and Eclipse to code my application. I found myself spend too much time reboot tomcat because either to changes the applicationResources.properties file or some action classes. Is there a better way for me to do this without reboot tomcat? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Debug Struts in Tomcat
The classes are reloaded automatically right now. For property file, you can to do an explicit reload for now. Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 12:27 PM To: 'Struts Users Mailing List' Subject: RE: Debug Struts in Tomcat In tomcat-users.xml add a manager role: tomcat-users user name=tomcat password=tomcat roles=tomcat / user name=role1 password=tomcat roles=role1 / user name=both password=tomcat roles=tomcat,role1 / user name=sa password=love23 roles=manager / /tomcat-users Then, from your browser: http://yourip:8080/manager/reload?path=/struts-example Jacob Hookom CS Student University of Wisconsin, Eau Claire === http://www.swanked.net you're not hip enough yet -Original Message- From: Hoang, Hai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:24 AM To: 'struts-user' Subject: Debug Struts in Tomcat I am using Tomcat, Struts, and Eclipse to code my application. I found myself spend too much time reboot tomcat because either to changes the applicationResources.properties file or some action classes. Is there a better way for me to do this without reboot tomcat? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Debug Struts in Tomcat
I don't know much about Eclipse, but I use an Ant task that uses the Tomcat manager app to reload my web app after I deploy it. I also compile, build, and deploy my web app from Ant, which allows me to run a single task that takes care of everything at once at the click of a button: compile, build, undeploy web app on Tomcat, copy to app server deploy directory, deploy app on Tomcat. If Eclipse incorporates Ant or another make-like facility, then you could use a similar methodology. Take a look at the Tomcat manager app for reloading your application on-the-fly: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html Jason -Original Message- From: Hoang, Hai [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:24 AM To: 'struts-user' Subject: Debug Struts in Tomcat I am using Tomcat, Struts, and Eclipse to code my application. I found myself spend too much time reboot tomcat because either to changes the applicationResources.properties file or some action classes. Is there a better way for me to do this without reboot tomcat? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Authentication, Authorization in Struts 1.1
Hi, Every container will provide it's own mechanisms to do that sort of thing. But your application just protects things in terms of roles, and will run on any such container. but does that mechanism work sort of automatically? Or do I have to implement it within the Controller? e.g.: if (mapping.getRoles() = ContainerSecurity.getUserRole()) mapping.findForward(gothere) If it works automatically, what happens when the access is not allowed for the user? Regards, Amit Craig thanks, Rainer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: BeanUtils.populate exception
unfortunately, that's the only exception in the log : i;m going to try to change all the field/method names to all capitals.. not sure if that will help, but i guess it can't hurt to try. -Miriam [15/Jul/2002 17:04:47:1] error: Exception: SERVLET-execution_failed: Error in executing servlet action: javax.servlet.ServletException: BeanUtils.populate Exception Stack Trace: javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774) at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20 61) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source) at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source) at com.kivasoft.applogic.AppLogic.execute(Unknown Source) at com.kivasoft.applogic.AppLogic.execute(Unknown Source) at com.kivasoft.thread.ThreadBasic.run(Native Method) at java.lang.Thread.run(Thread.java:479) -Original Message- From: Tomas Viberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 12:26 AM To: Struts Users Mailing List Subject: Re: BeanUtils.populate exception Do you know what the root exception is? It's usually included in the stack trace of the servlet exception (called nested exception or something like that). I think that would give a hint at what's really wrong. / Tomas - Original Message - From: Miriam Aguirre [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 1:36 AM Subject: RE: BeanUtils.populate exception ok.. since i haven't gotten anywhere in the past 3 hours, i'll repost this.. (i even looked through the source code, RequestUtils.java:774 is a throw exception, ha ha). anyway, to further clarify my exasperation i have the following in a jsp: td align=righthtml:checkbox value=true name=recordForm property=trng/nbsp;nbsp;/td tdbean:message key=font/TRNG/font/td td align=righthtml:checkbox value=true name=recordForm property=mb30/nbsp;nbsp;/td tdbean:message key=font/MB30/font/td which is rendered as follows : td align=rightinput type=checkbox name=trng value=truenbsp;nbsp;/td tdfont face=Arial, Helvetica, sans-serif size=2TRNG/font/td td align=rightinput type=checkbox name=mb30 value=truenbsp;nbsp;/td tdfont face=Arial, Helvetica, sans-serif size=2MB30/font/td and in the form bean i have : public boolean getTrng() { if(getRecord() != null) { if(getRecord().getMedsAccessInfo().getTrng().intValue() == Constants.TRUE) return true; } return false; } public boolean getMb30() { if(getRecord() != null) { if(getRecord().getMedsAccessInfo().getMb30().intValue() == Constants.TRUE) return true; } return false; } public void setTrng(boolean _trng) { getRecord().getMedsAccessInfo().setTrng(new Integer(Constants.TRUE)); } public void setMb30(boolean _mb30) { getRecord().getMedsAccessInfo().setMb30(new Integer(Constants.TRUE)); } when displaying the page with a record, all the getters work fine. if trng is checked, and the form is submitted, it works. if trng is checked, and any other box(es) is/are checked, and the form is submitted, it works. if trng is unchecked, and the form is submitted, it does not work. i'm not sure what the BeanUtils is complaining about.. i searched through the archives, and it looks like these bean util exceptions occur with indexed properties, but in my case, they're not indexed. does anyone see the problem here? thanks, -Miriam -Original Message- From: Miriam Aguirre [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 1:19 PM To: '[EMAIL PROTECTED]' Subject: BeanUtils.populate exception I'm having a weird problem with a form --- the form has some basic html:text, html:select and html:checkbox , fields are available to the user depending on the level of access they have. the weird part happens with a bunch of checkbox fields, for some users, they all work great, for other users, if i unselect a specific box i get : javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774) at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20 61) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
Display XML data with struts (XML-JavaBean/JSP ? xsl tag ? stxx ?)
I ask oneself about integration of XML data (XML data are contained in a string) with Struts. I read that several techniques are available: - 1) use an open tool to automatically generate JavaBean from the XML string store JavaBean in session and then JSP use JB; - 2) use the Struts xsl:apply tag, with nameXml = string XML but what is the easiest way to specify a XSL transformation if we don't know XSL syntax. I don't have time to learn XSL syntax in detail and I think that XSL examples for sophisticated GUI are not so many numerous. I think that XSL transformation must be used when we need to change the output's content type but does that make sense when the user interface is limited to web browsers ? what is the best way (XSL parameter type) in term of time performance ? Is it better to store an XML string in the session rather than JavaBean ? - 3) use the stxx extension. Even if stxx first aim is to remove the need to be use JSP and TagLibs for the presentation layer, it allows to manipulate JSP pages. This solution requires to define an XML action forward in the struts-config file, and then processing the document object (document of type org.jdom.document) in the JSP. It is not good to add JavaCode in the JSP page. Has somebody any advice or comparison about these techniques in term of complexity and time performance ? For the two first methods a Struts extension can be added to Macromedia Ultra Dev to facilitate the user interface development and templates or Tiles allow to create a consistent look and feel for the application. For the last point I suppose that XSL offer a similar mechanism. Thanks in advance for your remarks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
html:form weirdness in Websphere 3.5.5
Subject: html:form weirdness in Websphere 3.5.5 From: Reginald Ister [EMAIL PROTECTED] === Hi, I have the following action define in struts-config.xml: action path=/login type=com.mycompany.actions.LoginAction name=loginForm scope=request validate=true input=/jsp/login.jsp / with the corresponding formbean: form-bean name=loginForm type=com.mycompany.actions.LoginForm / In my login jsp I have the form defined as html:form action=login method=post focus=username target=_top When this is rendered in Websphere, the form action is: form name=loginForm method=post action=/app/login target=_top While the correct rendering should be: form name=loginForm method=post action=/app/do/login target=_top Notice the missing /do pattern. Has anyone else seen this behavior? I am using Struts 1.0.2 with Tiles Reg -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Authentication, Authorization in Struts 1.1
Subject: Re: Authentication, Authorization in Struts 1.1 From: Vic C. [EMAIL PROTECTED] === Another link: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRealm Is one example, and it lets you do single sign on accross webapps if you read, all with 0 coding. It is a app server thing, not a framework thing. Vic Craig R. McClanahan wrote: On Tue, 16 Jul 2002, Amit Vaidya wrote: Date: Tue, 16 Jul 2002 16:06:41 +0530 From: Amit Vaidya [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Authentication, Authorization in Struts 1.1 Hi, Does Struts 1.1 provide any means of implementing Authentication/Authorization? No, and it shouldn't. That should be the container's responsibility. While going through the code, I found the following methods related to (Security) Roles. processRoles() getRoles() setRoles() - How exactly are the Roles cofigured? Is struts-config.xml file used for this? A sample config would greatly help. - Which source does call setRoles() method? How is the roles attribute in ActionConfig.java populated? TIA, The roles being talked about are the ones you can use with container managed security that is provided by your servlet container. You configure security-constraint elements in your web.xml file that declare the required roles to access certain URLs, and then you configure your container's user database (details will be specific to which container you use) to add appropriate users and roles. Details on security constraints are in the servlet spec. http://java.sun.com/products/servlet/download/ For example, if you're using Tomcat 4, the default user database is an XML file $CATALINA_HOME/conf/tomcat-users.xml. Out of the box, the example application has a protected area that you can experiment with, and then look at the web.xml file to see how it was configured: http://localhost:8080/examples/jsp/security/protected/ with a username tomcat and password tomcat (if you haven't adjusted the default user file). Tomcat also has lots of other flexibility, including the use of a database or directory server as the source of user information, the ability to use different user databases for different webapps, and so on. In 4.1.x releases, there is even an administrative webapp (built on top of Struts) that lets you add and remove users through a GUI. Every container will provide it's own mechanisms to do that sort of thing. But your application just protects things in terms of roles, and will run on any such container. Regards, Amit Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Authentication, Authorization in Struts 1.1
Hi, Role validation is already implemented in the RequestProcessor portion of the Controller via the RequestProcessor.processRoles method. Take a look at the processRoles code (great thing about OpenSource), but in a nutshell: processRoles 1. checks the ActionMapping to see if roles are configured for authorization to the requested Action. 2. If no roles are defined in the ActionMapping, then processRoles returns true and the RequestProcessor continues as normal, processing the requested Action. 3. If roles are defined, the request.isUserinRole method is used to have the container determine what roles the authenticated user is a member of. 4. If the user is a member of an authorized role (from ActionMapping), then processRoles returns true and processing continues as normal. 5. If the user is NOT a member of an authorized role, processRoles writes an HTTP 400 error to the HttpServletResponse with a message and returns false, so Struts processing does not continue. I would imagine that to customize a Struts response for the 400 error, you could configure an error-page error-code400/error-code location/struts-mapping/struts-action/location /error-page or you could override processRoles to do some other custom response. Jason -Original Message- From: rainer juenger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 9:39 AM To: Struts Users Mailing List Subject: Re: Authentication, Authorization in Struts 1.1 Hi, Every container will provide it's own mechanisms to do that sort of thing. But your application just protects things in terms of roles, and will run on any such container. but does that mechanism work sort of automatically? Or do I have to implement it within the Controller? e.g.: if (mapping.getRoles() = ContainerSecurity.getUserRole()) mapping.findForward(gothere) If it works automatically, what happens when the access is not allowed for the user? Regards, Amit Craig thanks, Rainer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Display XML data with struts (XML-JavaBean/JSP ? xsl tag ? stxx ?)
I tried Struts extension for Macromedia Ultra Dev. It does not work. Has anyone tried it? Best Regards, J. Jason Zhou Business Intelligence Platform Division (BIP), R D, SAS Institute, 100 SAS Campus Dr. Cary, North Carolina 27513-8617 Voice: 919-531-0568(O) Email: [EMAIL PROTECTED] -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 1:09 PM To: '[EMAIL PROTECTED]' Subject: Display XML data with struts (XML-JavaBean/JSP ? xsl tag ? stxx ?) I ask oneself about integration of XML data (XML data are contained in a string) with Struts. I read that several techniques are available: - 1) use an open tool to automatically generate JavaBean from the XML string store JavaBean in session and then JSP use JB; - 2) use the Struts xsl:apply tag, with nameXml = string XML but what is the easiest way to specify a XSL transformation if we don't know XSL syntax. I don't have time to learn XSL syntax in detail and I think that XSL examples for sophisticated GUI are not so many numerous. I think that XSL transformation must be used when we need to change the output's content type but does that make sense when the user interface is limited to web browsers ? what is the best way (XSL parameter type) in term of time performance ? Is it better to store an XML string in the session rather than JavaBean ? - 3) use the stxx extension. Even if stxx first aim is to remove the need to be use JSP and TagLibs for the presentation layer, it allows to manipulate JSP pages. This solution requires to define an XML action forward in the struts-config file, and then processing the document object (document of type org.jdom.document) in the JSP. It is not good to add JavaCode in the JSP page. Has somebody any advice or comparison about these techniques in term of complexity and time performance ? For the two first methods a Struts extension can be added to Macromedia Ultra Dev to facilitate the user interface development and templates or Tiles allow to create a consistent look and feel for the application. For the last point I suppose that XSL offer a similar mechanism. Thanks in advance for your remarks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Indexed Properties - soluce :-)
May I make a suggestion? You're causing the implicit creation of many strings ... and doing it in a loop (bad). Try this: html:form ... logic:iterate id=theRadio indexId=index name=myFormBean property=myRadios html:radio property=myRadios[%= index %] value=A/html:radio property=myRadios[%= index %] value=B/ /logic:iterate /html:form This way, you don't have the implicit string creation (you get one every time you use the + to concatenate). Object creation is slow :-( so don't do it if you don't have to. Regards, Eddie Arnaud HERITIER wrote: Ok I found myself a solution (it seems) : I need to modify the JSP page to index manually the property and I don't need to use the indexed=true which indexes the BEAN and not the property : html:form ... logic:iterate id=theRadio indexId=index name=myFormBean property=myRadios html:radio property=%=\myRadios[\+index+\]\% value=A/html:radio property=%=\myRadios[\+index+\]\% value=B/ /logic:iterate /html:form Arnaud -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Real path question
Property files are treated like Java classes (in a sense). You reference them by their package. Thus, my best guess is that your putting the actual file path in for your parameter value is causing the behavior you see. What you _should_ do (assuming you have it in your top-level classes directory) is simply reference it by it's file name: myFile.properties. Note that you could move it into your applications package struction and reference it by it's fully-qualified package name, thus: WEB-INF/classes/com/mycompany/config/myFile.properties would be referenced as com.mycompany.config.myFile.properties ... just like you'd reference a class ... HTH, Eddie William W wrote: Hi, I have a parameter that is a file propertie in my plugIn, the parameter name is myFile and the parameter value is /WEB-INF/classes/myFile.properties. But when I try to read the file, the system is looking for it in c:\WEB-INF\classes\myFile.properties. How can I get the real path ? Thanks, William. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
enctype= multipart form, validation errors, file is lost
I think my original message was lost - please excuse if you receive this twice: Hello Everyone, I am having trouble with a multi-part form, using Struts 1.1b-1 and Tomcat 4.0. I had seen some older messages on the list archives (1yr+ old), but I was wondering if anyone has a more recent solution. When a string field fails validation, even after supplying a valid multi-part(file) for upload, the stack trace that comes out to the browser includes this message: javax.servlet.ServletException: MultipartIterator: no multipart request data sent. The same form, when all the fields are valid, executes with no problem. It's just that the file that is being uploaded is lost when a different field fails struts validation. Does anyone have the same problem? If so, what did you do about it? Thanks very much, Eva
Re: using tiles in struts 1.1b ?
See the other thread entitled Struts 1.1 + Tiles -- if you've just subscribed, try searching the archives for it. Cedric (the Tiles maintainer) just posted a nice reply to my question :-) Regards, Eddie [EMAIL PROTECTED] wrote: Hi all, I have downloaded the Struts 1.1b, and I'm going through the tutorial in the example application 'struts-tiles', which doesn't seem to be updated to the version 1.1b of Struts. I've got most things working, but now I'm stuck on 6.6 Definitions as Forward. Question: How do I get my Struts action to forward to a tile definition instead of an action ? I get the following message: 'Path forward.example.success.page' does not start with a / character' and if I add the /, then it will look for that action (in the strust-config.xml) which then of course doesn't exist ...how do I get it to look in the tiles-config.xml ? Thanks in advance, Esther -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts 1.1 + Tiles
Thanks, Cedric :-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How do I pass value
Hello, I am new to struts and currently trying to test the following scenario. After submitting a form, a image has to be displayed to the user. The image is dynamically generated.The image file name is generated by the business tier.As a part of the submission process, I have an action bean , action and business logic class. I also have a forward for success. action path=/image type=com.test.action.imageFormAction scope=request name=imageForm validate=true input=/image.jsp forward name=Success path=/showimage.jsp/ /action form-bean name=imageForm type=com.test.form.imageForm/ In other words after the image.jsp is processed, I want to invoke the showimage.jsp. This jsp file displays the image using img src. The problem I have is how do I pass the filename generated by the business(model) tier to showimage.jsp. Any help will be appreciated. Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
html:options
Hi, We're trying to use the html:options tag (struts 1.0.2) to render a drop list containing the values from a String Tokenizer, which is tokenizing a comma delimited string. We just want a drop list that contains each of the values in the list, with the value and description identical. The behaviour we are seeing is that we are getting half the number of options, because the code is sticking the first value from the list as the value, then the second as the description, then the third as the second value, and the forth as the second description. This would appear to be bourne out by this code from the tag itself: // Otherwise, use the separate iterators mode to render options else { // Construct iterators for the values and labels collections Iterator valuesIterator = getIterator(name, property); Iterator labelsIterator = null; if ((labelName == null) (labelProperty == null)) labelsIterator = getIterator(name, property); // Same coll. else labelsIterator = getIterator(labelName, labelProperty); // Render the options tags for each element of the values coll. while (valuesIterator.hasNext()) { String value = valuesIterator.next().toString(); String label = value; if (labelsIterator.hasNext()) label = labelsIterator.next().toString(); addOption(sb, value, label, selectTag.isMatched(value)); } } It's using the same iterator for labels and values, and doing a next() twice per row. Is this a bug? Am I missing something obvious? Cheers, Tim. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How do I pass value
I am new to struts and currently trying to test the following scenario. After submitting a form, a image has to be displayed to the user. The image is dynamically generated.The image file name is generated by the business tier.As a part of the submission process, I have an action bean , action and business logic class. I also have a forward for success. action path=/image type=com.test.action.imageFormAction scope=request name=imageForm validate=true input=/image.jsp forward name=Success path=/showimage.jsp/ /action form-bean name=imageForm type=com.test.form.imageForm/ In other words after the image.jsp is processed, I want to invoke the showimage.jsp. This jsp file displays the image using img src. The problem I have is how do I pass the filename generated by the business(model) tier to showimage.jsp. Any help will be appreciated. Thanks in advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: child window problem, URGENT!!!!!!
Hi Guys, Thanks for replying. we are trying to acheive this problem by avoiding javascript and scriplets as much as possible. Let me explian our scenario: We have a JSP page lets call it page 'A' in which we have 3 fields LastName, FirstName and MiddleName. We also have a link for search on this page. We have option that user can enter first few letters of the last name and search for the person using search link. We wanted to open a new window lets call it 'B' and display the names found on the basis of user input. Now when user double clicks on one name in child window 'B', that name will be displayed back on to the parent window i.e. 'A' in the appropriate fields. We are using following approach for the above scenario: we have 2 JSP's and 2 formbeans associated to that JSPs. Now when user enters first few letters of the LastName on parent form 'A' and clicks search link, we submit itself i.e. parent Form. We also have one flag in parent form ,apart from other attributes, whose value is false by default. In action (We use DispatchAction) we create instance of child form 'B' and set the attributes for query into it and put that into session. We make the flag in parent form equal to true and forward the mapping to itself. Now in parent JSP we use logic tag to check the value of that flag, if it is true then we call a javascript function to open a child window 'B'. Now in child 'B' JSP onload we submit itself i.e. Child Form with action equal to 'search'. In search method in action class of child form we talk to the business delegate and call the method to get the results for the user input, which is present in the child form bean, since we set that from parent and put it in session. Now after we get the possible matches on the basis of user input from business we forward the mapping to same page i.e child jsp. Now when user double clicks the one value from the list, we submit child form itself with action equal to selectPerson. In this method we get the parent form from the session and set the appropriate values in LastName, FirstName and MiddleName from the selected value and set the flag in parentform equal to false. Then thru javascript in child JSP we are reloading the parent and closing the child window. This doesn't reload the parent window with new values in the formbean, which is being set in child action. We checked the session using debugger and we found that values in the parent form are being updated by child action correctly. Questions: 1) Does location.realod()[in javascript] flush the new values set in the session ? 2) What is the best way to refresh or submit the parent from child? 3) Is there any better way to solve this (By avoiding use of javascript and scriplets as much as possible)? Sorry for long Email. Any help will be appreciated. Thanks, Samip __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
What does locale=true really do?
Hello, Various documents suggest that we are supposed to say: html:html locale="true" in Struts-based JSP files. This directive somehow sets the locale automatically, as I understand it. But I am wondering exactly how Struts sets a locale. Does anyone know? I am hoping that Struts won't just blindly pick up the language of the heaviest weight in the request's Accept-Language header, because that is simply wrong. When there is no German version of a .jsp file, "accept-language: de" should not be honored, for example. I am hoping that somehow Struts knows the list of available languages for a page, but I cannot seem to locate that description. Does anyone know anything about it? T. "Kuro" Kurosaka, Internationalization Architect IONA Technologies, Santa Clara, CA USA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ORM
I had some really bad experiences with Toplink. It offers really quick mapping tools, but we found that a number of the relationships to key indexes often had to be massaged or data store performance would be poor. Many times we just moved over to VIEWS with direct mapping, and let the DB guys work out mapping perfomance issues, because the return sets that Toplink made were flawed or super slow. I have not used OJB but I am interested, when in doubt though you can alsways just use good 'ol JDBC in the scope of your data store object...which gives you the best control but takes time to code and isn't as flexible as text or XML descriptors that let you just edit a file to make relationship changes. clay -Original Message- From: Ferran Parra [SMTP:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 10:29 AM To: Struts Users Mailing List Subject:ORM which is the better Object Relational Mapping for relational databases (jdbc) and why?? jakata OJB, castor, toplink, ... other thanks --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN Tel: 93 215 21 91 / Fax: 93 215 41 21 --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]