RE: Newbie question: Attempting to run Struts Example application over ATG Dynamo
Which version of Dynamo are you running? I am also new to struts, but had no problem with setting up the example app. (I am running Dynamo5.5 and 5.6.1.) If you have trouble creating the web-app by hand, use the ACC. It would appear that Dynamo is not 100% complient with the JSP1.1 spec, since automatic type conversions of custom tag parameters are not supported. In the struts example, for instance, you would have to change all boolean parameters from ... paramName=true/false to ... paramName=%= true/false %. Other than that we have not had big problems with Dynamo and JSP (yet). Hope this helps Walter -Original Message- From: Tejas Jani [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 23:04 To: 'Struts Users Mailing List' Subject: RE: Newbie question: Attempting to run Struts Example application over ATG Dynamo I have searched the archive and have not found any sort of instructions on this. This would either mean that Struts on ATG is not a very popular choice OR Struts over ATG has not been tested till now I have attempted to make the struts-example application work on ATG 5.1 but have not been successful till now. I would like to know from another folks who have been able to do this successfully. -Original Message- From: Mueller, Ed [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 2:51 PM To: 'Struts Users Mailing List' Subject: RE: Newbie question: Attempting to run Struts Example application over ATG Dynamo I've checked the archives myself and I'll be darned if I can find any specific instructions on installing and setting up the example struts applications since you can't deploy war files directly. Please someone point us poor ATG Dynamo users to the right place! Thanks! -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 4:32 PM To: Struts Users Mailing List Subject: Re: Newbie question: Attempting to run Struts Example application over ATG Dynamo You should check the archives. http://www.mail-archive.com/struts-user%40jakarta.apache.org/ My recollection is that there are compliance issues with ATG Dynamo. Tejas Jani wrote: Hi all... I am a new user of Struts, as well as new to this group, just starting to use it with ATG Dynamo. I was trying to run the struts-example application shipped along with the binary distribution and wasnt very successful in doing that. I am not able to find any documentation related to any additional setup on ATG for doing this. I would like to have some opinions on the approach of using Struts on top of ATG - Is this a good combination - Has anyone been successfully able to do this - some of the challenges/gotchas that people have come across in doing this I would greatly appreciate any help and/or tips on this. Thanks Tejas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services -- 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]
html:file property type ?
Which must be the type of the property of a formbean when used as property-attribute of a html:file tag. And how is this html:file handled, should one implement some sort of multipart request handler in the formbean ? thx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts + Tiles: Design Question
Hello, You can have the html:form.../html:form tag in a common tiles ancestor inserting sub-tiles. Each sub-tiles can have tags like html:radio or submit. There is an example of that in tiles documentation (tiles-doc/tutorial/invoice/*.jsp). In this example, editInvoice.jsp declare the form, and then insert editAddress.jsp which use html:text. Hope this help, Cedric Sri Sankaran wrote: I am unable to use a common ancestor because some tags (such as html:select, html:radio) must be nested in a form and it doesn't recognize that this is indeed the case: Layout-Begin html:form .. Body-Tile-Begin html:radio Body-Tile-End .. Nav-Tile-Begin Previous-button Next-button .. Nav-Tile-End /html:form Layout-End So, I am forced to have the form tag in the Body-Tile. Even then I am forced to use JavaScript to indicate which of the buttons in the Nav-Tile was pressed. Could you elaborate on how you workaround it? Sri -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 11:33 AM To: 'Struts Users Mailing List' Subject: RE: Struts + Tiles: Design Question Cedric, You are right on the point. I been using this strategies over and over again to share from amon difference action. I works well for me, plus I really hate having JavaScript or hidden field to indicate which action your are intended to submit. I think this is the right way to do cuz you really do separate the controller logic from presentation logic, or you can say .. hidding the controller logic by abstracting the presentation. danny -Original Message- From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 3:19 AM To: Struts Users Mailing List Subject: Re: Struts + Tiles: Design Question There is several strategies. Are you sure that you need one single form for navigation and body ? * If navigation and body aren't related, you can put several forms, only one will be selected by browser when submitting. * If navigation and body are related, you need a common ancestor in the Tiles philosophy. A common ancestor is a tiles that will insert related sub-tiles. This ancestor contains the form, and sub-tiles contains form's elements. In your case, you can have an ancestor body playing this role, and inserting the navigation and real body Hope this help, Cedric Sri Sankaran wrote: Struts version: 1.0.2 Servlet engine: Tomcat 4.0.2 I am trying to build a wizard framework using Tiles. It follows the standard Windows wizard metaphor with a body panel and navigation buttons below. I am running into a problem and would like any opinions/suggestions. A logical use of Tiles would call for the body and nav buttons to be separate tiles that are combined using the tileDefinitions file. For example: definition name=Wizard path=/wizardLayout.jsp put name=titlevalue=Title.jsp/ put name=body value=/ put name=navigation value=Nav.jsp/ /definition !-- Intro page -- definition name=Intro extends=Wizard put name=bodyvalue=workflow/intro/intro.jsp/ /definition Here, the wizardLayout.jsp is solely responsible, as the name suggests, for laying out the various tiles using necessary HTML tags. The problem with this strategy is that by separating the body and nav into separate tiles limits the use of the Struts html:form tag. Firstly, the begin and end form tag must be in the same JSP. This prevents the tag from beginning in the 'body' tile and ending in the 'navigation' tile. There are other complications, even if I'm willing to compromise the design and place the html:form tag in the layout page (wizardLayout.jsp above). This would require some convoluted JavaScript that sets the form's action attribute on each page. The only workaround I have found is to have the body the navigation in the same tile; in other words -- not have a 'navigation' tile at all. This has a serious shortcoming in that it forces every body panel (i.e. every page in the wizard) to have knowledge of layout and therefore responsible for its maintenance. I really like the concept of Tiles and would love to use it to its fullest. Do you have any suggestions? Am I missing something fundamental? Sri -- 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
Re: jsp:include - Illegal to flush within a custom tag
Yes, Struts tags are considered as custom tags by the compiler. In fact, all tags except the ones starting by jsp: are custom tags. You have certainly put your jsp:include ... inside the body of a tag implementing BodyTag interface (like the iterate tag). It is not possible to do a flush inside such tag. jsp:include ... automatically do a flush, so you can't use it here ;-(. Cedric [EMAIL PROTECTED] wrote: Hi Cedric, Thanks for writing! Are Struts tags considered custom tags by the compiler? Because, I have never written a custom tag. I did, however, move my jsp:include to a different spot on the page and now it works fine :-) Thanks again Cedric Dumoulin [EMAIL PROTECTED] wrote: Does your jsp:include is in the body of a custom tag ? If yes, this is why compiler comply, and it refer to the enclosing tag, not the jsp:include tag. Cedric [EMAIL PROTECTED] wrote: Hi Struts Users, Why does the compiler think that my jsp:include is a custom tag? My include tag in the body of my JSP appears below: jsp:include page=/jsp/fileName.jsp flush=true jsp:param name=a value=0/ jsp:param name=b value=0/ /jsp:include I'm getting the Illegal to flush within a custom tag error on one JSP, but not on another JSP (in the same application) with the same include tag?!? Any thoughts appreciated! __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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] __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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]
Retreive a value from Bean
hi, I want assign the value returned from a bean to a variable in the JSP page. How can i implement it in struts. can anybody help me... _ Click below to visit monsterindia.com and review jobs in India or Abroad http://monsterindia.rediff.com/jobs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
multiple languages.
I want the user to select one language during login. How do I set this Language in struts? So that struts doesn't automatically detect the defaultlanguage of the browser. It should take the one I set. thanks in advance. Hanel Matthias Fachinformatiker (Anwendungsentwicklung) in Ausbildung Logistik World GmbH Fon:+49-841-9014-300 Marie-Curie-Strasse 6 Fax:+49-841-9014-302 D- 85055 Ingolstadt mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help !
Hello ! Can someone please help me to get off this list. I have tryed to send to the unsubscribe address, but my mail get rejected, so I'm trying to send from another address. I'm registered in the list as [EMAIL PROTECTED] Please help ! Sincerely -Knut Harald Langøren -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: File upload failure in struts 1.1b - FIX
Probably a good idea to wait until the fix is done properly - I saw this fix in the mail archives and it seemed to fix our problems, but I also don't have the time to do all the appropriate multi-platform / multi-servlet standards tests... Regards, Don -Original Message- From: Jeremy Prellwitz [mailto:[EMAIL PROTECTED]] Sent: Monday, 27 May 2002 6:39 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: File upload failure in struts 1.1b - FIX Hey Don, My original problem was on Tomcat 4.04b3.because we are using WebSphere in production at work, i thought i'd better switch to Tomcat 3.x as WebSphere only supports up to servlet 2.2 and jsp 1.1. But the problem persists on Tomcat 3.x. As for the XML tag syntax, i did use the correct form. i included the compact form in my discussion to show the whole tag, but i was too lazy to fill in the middle html:file / tags and such. :) I've identified the code where the exception is being thrown from, but i don't have the time to thoroughly go through it (i.e. properly understand it)so i've just recommended to my co-worker that he use a separate web-app for his upload pages using Struts 1.0.2 as a work-around, until this issue is fixed in a stable release of 1.1. - Original Message - From: Don Elliott [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 24, 2002 5:43 PM Subject: RE: File upload failure in struts 1.1b - FIX Hi Jeremy, Did you have the original problem with multi-part forms on Tomcat 3 ? I wasn't sure if the problem occured on Tomcat 3.x as it looks like all the people reporting the problem are using a Servlet 2.3 implementation (3.x is Servlet 2.2). I'm not sure why this is the case, but I do know when we moved from 3.3 of Tomcat to 4.0 we had to replace a lot of calls to deprecated methods specifically to do with URL handling on the Servlet Request objects, so maybe it has something to do with this being restructured...(only a guess) re. your tag - ensure you don't have an end tag '/' on your form tag as this ends the form without the form actually starting - ie. html:form action= enctype=multipart/form-data/ will blow up - you need html:form action= enctype=multipart/form-data input fields, including html:file .../ /html:form On non-multipart forms having the / on the form tag usually gives you a wierd error message about field name 'xxx' cannot be found in org.apache.struts.action.BEAN or something equivalent - I'm not sure how this manifests itself in a multi-part form. Regards, Don -Original Message- From: Jeremy Prellwitz [mailto:[EMAIL PROTECTED]] Sent: Saturday, 25 May 2002 1:07 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: File upload failure in struts 1.1b - FIX I tried this patch with Tomcat 3.3.1, and all i did was add: enctype=multipart/form-data to the html:form / element, and then i got the following exceptions: javax.servlet.ServletException: Multipart data doesn't start with boundary at org.apache.struts.upload.DiskMultipartRequestHandler.handleReq uest(DiskMultipartRequestHandler.java:103) at org.apache.struts.util.RequestUtils.populate (RequestUtils.java:908) at org.apache.struts.action.RequestProcessor.processPopulate (RequestProcessor.java:795) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:244) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1110) at org.apache.struts.action.ActionServlet.doPost (ActionServlet.java:470) at javax.servlet.http.HttpServlet.service (HttpServlet.java) at javax.servlet.http.HttpServlet.service (HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService (ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke (Handler.java:322) at org.apache.tomcat.core.Handler.service (Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service (ServletHandler.java:485) at org.apache.tomcat.facade.RequestDispatcherImpl.doForward (RequestDispatcherImpl.java:272) at org.apache.tomcat.facade.RequestDispatcherImpl.forward (RequestDispatcherImpl.java:174) at org.apache.struts.action.RequestProcessor.doForward (RequestProcessor.java:976) at org.apache.struts.action.RequestProcessor.processActionForward (RequestProcessor.java:408) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:269) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1110) at org.apache.struts.action.ActionServlet.doPost (ActionServlet.java:470) at javax.servlet.http.HttpServlet.service (HttpServlet.java) at javax.servlet.http.HttpServlet.service (HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService (ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke (Handler.java:322) at org.apache.tomcat.core.Handler.service (Handler.java:235) at
Re: multiple languages.
Subject: Re: multiple languages. From: Emmanuel Cornette [EMAIL PROTECTED] === found in the javadoc for the package org.apache.struts.util (package summary) : Using MessageResources With Struts If your application uses the Struts controller servlet, you can optionally configure Struts to load an application-specific message resources instance for you, and make it available as a servlet context attribute (in JSP terms, an application-scope bean). This mechanism is managed by setting the following servlet initialization parameters in the web application deployment descriptor: a.. application - The configuration string that will be passed to the createResources() method of the message resources factory, in order to identify the family of resources to be supported. If you use the standard message resources factory, this must be the base fully qualified name of the property resources files used to contain these messages, as illustrated above. b.. factory - Fully qualified Java class name of the MessageResourcesFactory to be used. By default, the standard implementation provided by Struts (org.apache.struts.util.PropertyMessageResourcesFactory) will be used. Struts provides several JSP custom tags that assume the existence of a java.util.Locale attribute in the user's session, under the key named by the constant string value of Action.LOCALE_KEY. Your own application logic can set this attribute at any time, or you can ask Struts to set it automatically (if not already set) based on the Accept-Language HTTP header included with the request. There are two mechanisms by which you request Struts to perform this service: a.. To have this service performed on every request submitted to the controller servlet, set the servlet initialization parameter locale to the value true in the application deployment descriptor. b.. To have this service performed by a JSP page when it is accessed directly by a user, utilize a form:html ... locale=true ... / tag at the top of each page. I hope it helps. Emmanuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I want the user to select one language during login. How do I set this Language in struts? So that struts doesn't automatically detect the defaultlanguage of the browser. It should take the one I set. thanks in advance. -- -- Hanel Matthias Fachinformatiker (Anwendungsentwicklung) in Ausbildung Logistik World GmbH Fon: +49-841-9014-300 Marie-Curie-Strasse 6 Fax: +49-841-9014-302 D- 85055 Ingolstadtmailto:[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: DynaActionForm reset vs ActionForm reset (URGENT, TIA)
Hi All, I run in same issue that Jay Paulsen did weeks ago. He did not get any answer so I would like to post if back. The point is that, Action Form reset() method does nothing which for my application is find. The problem arises when, migrating to DynaActionForms, reset() methods actually resets the form, previously to fill it with request parameters. Since my form holds disabled inputs, they are not transferred in the request. As the form is reset, I loose the previous values in the parameters, so I get null data for the disabled HTML input fields. This behaviour was fine in ActionForm, since values where stored (and not reset) in the form, but is making troubles with DynaActionForms. I would be grateful if anyone can give some pointer if this is a expected performance, and which is a workaround or the way to proceed or is just a design flaw in Struts 1.1. Best regards, Adolfo http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30062.html Hello, I just started playing with DynaActionForms and have noticed that the reset method resets all properties to their initial values. This is different from the ActionForm where the reset method did nothing. In the past I've usually redirected to an action to redisplay a form that was submitted but was found to be in error. Using a subclass of ActionForm without the reset method overridden allows for the form contents to be displayed across a sendRedirect. When I substitute the ActionForm subclass with a DynaActionForm, the contents are reset and there are no request parameters to repopulate it since a sendRedirect was used. This results in an empty form for the user. So I figure I have two options - 1) don't do a sendRedirect - do a forward instead 2) Subclass DynaActionForm and override reset to do nothing (hack) My questions ... Was I doing something bad (or ignorant) by not overriding the reset method on my old ActionForm sub classes? How do you handle errors - do you just forward to the page to redisplay the form? I was doing a sendRedirect to avoid the reload/refresh problem. What's the best way to avoid the refresh/reload problem? If I choose option 2 above - am I asking for trouble? Any comments are greatly appreciated. -Jay _ 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]
html:text and iso8859-2
Hi! The html:text tag don't display Strings, encoded in iso8859-2, properly. (Displays '?' for some charaters.) I'm using struts 1.0.2 and take the Strings from a database. Knows anyone a solution for this problem? Thanks, Mojo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DynaActionForm reset vs ActionForm reset (URGENT, TIA)
Posting to my own question: As I workaround I figure out to override the Struts 1.1 DynaActionForm with a customized one which has a reset doing nothing, and specify in struts-config the dyna forms with type=the customized DynaActionForm. However I am afraid that I am missing something. Adolfo. From: Adolfo Miguelez [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: DynaActionForm reset vs ActionForm reset (URGENT, TIA) Date: Mon, 27 May 2002 13:05:41 + Hi All, I run in same issue that Jay Paulsen did weeks ago. He did not get any answer so I would like to post if back. The point is that, Action Form reset() method does nothing which for my application is find. The problem arises when, migrating to DynaActionForms, reset() methods actually resets the form, previously to fill it with request parameters. Since my form holds disabled inputs, they are not transferred in the request. As the form is reset, I loose the previous values in the parameters, so I get null data for the disabled HTML input fields. This behaviour was fine in ActionForm, since values where stored (and not reset) in the form, but is making troubles with DynaActionForms. I would be grateful if anyone can give some pointer if this is a expected performance, and which is a workaround or the way to proceed or is just a design flaw in Struts 1.1. Best regards, Adolfo http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30062.html Hello, I just started playing with DynaActionForms and have noticed that the reset method resets all properties to their initial values. This is different from the ActionForm where the reset method did nothing. In the past I've usually redirected to an action to redisplay a form that was submitted but was found to be in error. Using a subclass of ActionForm without the reset method overridden allows for the form contents to be displayed across a sendRedirect. When I substitute the ActionForm subclass with a DynaActionForm, the contents are reset and there are no request parameters to repopulate it since a sendRedirect was used. This results in an empty form for the user. So I figure I have two options - 1) don't do a sendRedirect - do a forward instead 2) Subclass DynaActionForm and override reset to do nothing (hack) My questions ... Was I doing something bad (or ignorant) by not overriding the reset method on my old ActionForm sub classes? How do you handle errors - do you just forward to the page to redisplay the form? I was doing a sendRedirect to avoid the reload/refresh problem. What's the best way to avoid the refresh/reload problem? If I choose option 2 above - am I asking for trouble? Any comments are greatly appreciated. -Jay _ 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] 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: How to chain Actions
Hi, I think that the best solution is to link the 2 actions with the mapping defined in the Struts-config file. When the first one is finished, you call the appropiate forward mapping and then execute the second Action. Do not forget to set the needed object in the session or in the request object. Regards, Dams - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 27, 2002 12:50 PM Subject: How to chain Actions How do I best chain Actions? For example one to save data from a formular and one for getting the data for the new page. Or is it better to have just one action which can do both jobs? Is there any good article on the web? -- -- Hanel Matthias Fachinformatiker (Anwendungsentwicklung) in Ausbildung Logistik World GmbH Fon: +49-841-9014-300 Marie-Curie-Strasse 6 Fax: +49-841-9014-302 D- 85055 Ingolstadtmailto:[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]
Struts and Portlets
Hi There, Do you know if Struts and Portlets are compatible concepts? I don´t know enough about Portlets, but I know it´s a framework responsable for mounting a unified view from distinct applications (the portlets are the views for these applications). IBM has a framework for portals, and I would like to know if I can use struts with it. Thanks for any information, Rodrigo. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help !
Send an email to mailto:[EMAIL PROTECTED] then when it replies, reply to that msg. Later James Mitchell -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 26, 2002 5:01 PM To: [EMAIL PROTECTED] Subject: Help ! Hello ! Can someone please help me to get off this list. I have tryed to send to the unsubscribe address, but my mail get rejected, so I'm trying to send from another address. I'm registered in the list as [EMAIL PROTECTED] Please help ! Sincerely -Knut Harald Langxren -- 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 taglib usage slooow
Hi Jeff, A bit of a late reply I know, but if you have to wrap every output tag with various bits of logic to work out if the field is enabled etc, why not write your own custom tags that extend html:text etc and imbed the logic in them. Also if you don't require localization try setting html:htl locale=false at the head of your page. This *MAY* negate the amount of work done in the tags. Jon. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 16:04 To: Struts Users Mailing List Subject: RE: html taglib usage slooow Thanks Les, That is reassuring, For your ammusment.. It was decided that was decided that the users would have the ability to create custom user levels and be able to control each data field and have it be edit/read-only or not shown. So all my fields will be duplicated and wrapped in logic tags. I would love to hear from others... Wilson, Les J SI-FSIA [EMAIL PROTECTED] on 05/22/2002 09:39:23 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject: RE: html taglib usage slooow Hi Jeff, For what its worth, our experiences are a lot different to what have been mentioned. In one of our applications, we have an input jsp with around 50 (it varies per company) text input fields (all struts text tags displayed inside an iterate tag) and it displays in around a second - from clicking the link, invoking the action (which is fairly complex) and displaying the page. The users have never complained about performance. We are running on Silverstream Application Server and using version 1 of struts in production. Les Wilson Shell Finance Services Shell International Limited, Shell Centre, London SE1 7NA, United Kingdom Tel: +44 20 7934 6463 Other Tel: +44 7974 948877 Email: [EMAIL PROTECTED] Internet: http://www.shell.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 15:17 To: Struts Users Mailing List Subject: Re: html taglib usage slooow This topic comes up from time to time and it seems that I am never happy with the solution(s). There seems to be two main answers: 1 - do not use so many tags. 2 - find an Servlet Container that will handle tags in a speedy manner. Have I missed any? As for answer one - I am currently beginning the design stage of a project that will use struts ( our first one) and am looking forward to finding tags that clean up my code. I could probably get away with not using the bean write tags for all my labels but I am experimenting with the format attribute for currency and dates ect. It seems that fifty tags is a number that comes up from time to time. How does looping over tags factor into this? As for answer two: - Craig mentioned in this post that the nightly build of tomcat handles this much better. The nightly build thing will be a tough sell for me. Is there a particular production container that (at this time) is known for it's efficient tag handling (code generation, pooling ect) ? Summary: We are doing an internal A/R application. If you include labels, it is not hard to exceed 50 tags. I would be disappointed to find out that I cannot make use of the full power of Struts, and have to replace some tags with a scriplets. But at the same time I would like to know of some of these issues that I might face. Thanks. Victor Hadianto [EMAIL PROTECTED] on 05/21/2002 06:33:07 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: Re: html taglib usage slooow On Wed, 22 May 2002 02:11, you wrote: On Tue, May 21, 2002 at 12:01:06PM -0400, Galbreath, Mark wrote: Precompile the JSP. Have tried that, does not help. Even after compiling, it's really slow. This is not going to work .. read on . It seems, the problem is within the taglib implementation - either in the appserver or within struts. Erich, I have posted the similar issue weeks ago in the mailing list. We too found that the use of html:taglibs are really slow. After running the profiler we found that (in our case) the primary slowdown spot is the bean:write tag. We have hundreds of this tag in our page (it's a really complex page I assure you). Drilling down again to find the root cause I found the problem was that bean:write tags call request.getLocale(). request.getLocale(), for some reason we couldn't fathom, took ages to execute. This is why, in our situation, that the rendering of the page takes in average 80% of the time, even longer than multiple server roundtrips to the EJB server, action class logic and some other overheads. grrr . -- Victor Hadianto -- 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
logic:button
Hi, can somebody help me to know how logic:button... actually works. actually i need a next button which forwards it to some jsp page. i want to know how should i proceed. Regards Abhishek -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[ANNOUNCE] Struts Wizard Beta for ECLIPSE v2.0
Hello struts, Eclispe Struts Wizard v1.0 just released. This is Same UI like JBuilder Wizard but with SWT. Feature : - ActionForm, Action, input JSP and struts-config.xml generation powered by eclipse framework. - Compatible with Tomcat plugin from Sysdeo. - And some bugs... Available at http://www.mycgiserver.com/~eboudrant/ In future release: - perhaps support for Eclipse 1.0 (and WSAD). - support for Struts 1.1 - Include a struts-config editor... (perhaps with struts console;) -Emmanuel - Yahoo! Mail -- Une adresse yahoo.fr gratuite et en français !
RE: html taglib usage slooow
Thanks Jon, I have thought of that. This would be our first Struts project and I am still trying to understand what features to use and not use, so I would like to stay way from these types of tags. Having said that, a form with 25 text fields, may turn into a form with 70 tags (not including the labels) is going to be a problem then I guess I will have to consider other options. every field may be: logic:equal ... value=edit html:text ... /logic:equal logic:equal ... value=readOnly bean:write ... fomat=account.currency1 /logic:equal Bad Plan? I am eagerly awaiting every printed word from Chucks book. I am hoping the next two chapters (on view components) will answer some of these questions. I am puzzled tho... As Les pointed out, he has tags inside iterate tags. I am of the understanding that the tags get translated into code. The more tags the more code ( and try catch blocks ect.). The tag performance issue should not apply to a 5 column table row inside an iterate tag with say a html:radio, html:text, and a bean:write tag. If this was all that was on the page then I would say that this this page has only 3 tags. Jon.Ridgway [EMAIL PROTECTED] on 05/27/2002 11:00:37 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject: RE: html taglib usage slooow Hi Jeff, A bit of a late reply I know, but if you have to wrap every output tag with various bits of logic to work out if the field is enabled etc, why not write your own custom tags that extend html:text etc and imbed the logic in them. Also if you don't require localization try setting html:htl locale=false at the head of your page. This *MAY* negate the amount of work done in the tags. Jon. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 16:04 To: Struts Users Mailing List Subject: RE: html taglib usage slooow Thanks Les, That is reassuring, For your ammusment.. It was decided that was decided that the users would have the ability to create custom user levels and be able to control each data field and have it be edit/read-only or not shown. So all my fields will be duplicated and wrapped in logic tags. I would love to hear from others... Wilson, Les J SI-FSIA [EMAIL PROTECTED] on 05/22/2002 09:39:23 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] cc: Subject: RE: html taglib usage slooow Hi Jeff, For what its worth, our experiences are a lot different to what have been mentioned. In one of our applications, we have an input jsp with around 50 (it varies per company) text input fields (all struts text tags displayed inside an iterate tag) and it displays in around a second - from clicking the link, invoking the action (which is fairly complex) and displaying the page. The users have never complained about performance. We are running on Silverstream Application Server and using version 1 of struts in production. Les Wilson Shell Finance Services Shell International Limited, Shell Centre, London SE1 7NA, United Kingdom Tel: +44 20 7934 6463 Other Tel: +44 7974 948877 Email: [EMAIL PROTECTED] Internet: http://www.shell.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 15:17 To: Struts Users Mailing List Subject: Re: html taglib usage slooow This topic comes up from time to time and it seems that I am never happy with the solution(s). There seems to be two main answers: 1 - do not use so many tags. 2 - find an Servlet Container that will handle tags in a speedy manner. Have I missed any? As for answer one - I am currently beginning the design stage of a project that will use struts ( our first one) and am looking forward to finding tags that clean up my code. I could probably get away with not using the bean write tags for all my labels but I am experimenting with the format attribute for currency and dates ect. It seems that fifty tags is a number that comes up from time to time. How does looping over tags factor into this? As for answer two: - Craig mentioned in this post that the nightly build of tomcat handles this much better. The nightly build thing will be a tough sell for me. Is there a particular production container that (at this time) is known for it's efficient tag handling (code generation, pooling ect) ? Summary: We are doing an internal A/R application. If you include labels, it is not hard to exceed 50 tags. I would be disappointed to find out that I cannot make use of the full power of Struts, and have to replace some tags with a scriplets. But at the same time I would like to know of some of these issues that I might face. Thanks. Victor Hadianto [EMAIL PROTECTED] on 05/21/2002 06:33:07 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List
Re: Action executing twice
Subject: Re: Action executing twice From: jambo [EMAIL PROTECTED] === Not sure about the archives but if you use use a token then you can simply ignore multiple submissions (which are gunna happen anyway) Kumar Achanala [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... HI, I would like to know why my action is executing twice. In the JSP I am using form.submit() with image tag. In one of the archives it says that if you use form.submit() the action class will execute twice... is it true ??? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Validator
Hi, Has anyone used the server-side validation with DynaActionForms using the Struts Validator included in Struts 1.1-b1? There are two classes (DynaValidatorForm and DynaValidatorActionForm) in the package org.apache.struts.validator, but when I tried always generates a NullPointerException whith the getDynaClass() method. Example: // OK, but no validation form-bean name=loginForm type=org.apache.struts.action.DynaActionForm ... /form-bean // NullPointerException in getDynaClass() method form-bean name=loginForm type=org.apache.struts.validator.DynaValidatorActionForm ... /form-bean Thanks in advance, Fernando. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator
This may be of no help, but I didn't see that you had the dynamic attribute to true like this: form-bean dynamic=true name=loginForm type=org.apache.struts.action.DynaActionForm Chuck At 02:42 PM 5/27/2002 -0300, you wrote: Hi, Has anyone used the server-side validation with DynaActionForms using the Struts Validator included in Struts 1.1-b1? There are two classes (DynaValidatorForm and DynaValidatorActionForm) in the package org.apache.struts.validator, but when I tried always generates a NullPointerException whith the getDynaClass() method. Example: // OK, but no validation form-bean name=loginForm type=org.apache.struts.action.DynaActionForm ... /form-bean // NullPointerException in getDynaClass() method form-bean name=loginForm type=org.apache.struts.validator.DynaValidatorActionForm ... /form-bean Thanks in advance, Fernando. -- 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: How to chain Actions
The best thing, really, is to have a business object to do each thing. You can then call one, the other, or both from an Action. In practice, the Action should be less like a method and more like a macro. It just calls this business method or that business method, or this one and then that one. Then, you are only replicating calls between methods not any original code. This approach works well with using a base business class, like the Scaffold SuperAction. You can setup the usual Action code the way you like it, and then just override one hotspot method to call your business logic. http://cvs.apache.org/viewcvs/jakarta-struts/contrib/scaffold/src/framework/main/org/apache/scaffold/http/SuperAction.java But to chain Actions, you can just put the Action's URI inside an ActionForward, same as a JSP. Just remember that the container handles the forwarding, so when the request comes back the ActionServlet will treat it just like a new request, and do the whole autopopulation thing from scratch. This sometimes confuses developers who make a change in an ActionForm value that is repopulated from the request when they forward between Actions. One way around that is to put a mutable switch on your ActionForm. This can be used to turn off the mutators so that values are not changed by the ActionServlet. http://cvs.apache.org/viewcvs/jakarta-struts/contrib/scaffold/src/framework/main/org/apache/scaffold/http/SuperForm.java -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services [EMAIL PROTECTED] wrote: How do I best chain Actions? For example one to save data from a formular and one for getting the data for the new page. Or is it better to have just one action which can do both jobs? Is there any good article on the web? Hanel Matthias Fachinformatiker (Anwendungsentwicklung) in Ausbildung Logistik World GmbH Fon:+49-841-9014-300 Marie-Curie-Strasse 6 Fax:+49-841-9014-302 D- 85055 Ingolstadt 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: Getting an object from a Hashtable
The Struts 1.0 ActionServlet and custom tags were written to rely on the pre-Commons BeanUtils, which did not support maps. I don't believe anything along these lines is going to be available to a Struts 1.0 application. You'd have to replace the ActionServlet too, at which point it really wouldn't be a Struts 1.0 application anymore, and you could just as well go up to 1.1b. In 1.1, when bare Maps are being used in an application, an Action can be used to wrap it in a bean. It does not need to be a DynaBean, it just needs to have a public accessor and mutator, per the JavaBean conventions. The Commons BeanUtil's package will handle the rest. -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services Adolfo Miguelez wrote: Hhhmmm, yes, in that way, we can get a value in a map which in turn is wrapped as a bean property, but what about if my bean is a map itself. (NOTE: We know about the different concept among a JavaBean spec class and a java.util.Map). Is there any way for that situation? I have been inspecting BeanUtils package from Jakarta Commons, and it seens to inspect any kind of property within a bean, mapped, indexed, simple, nested, composed, but I can not find a way to inspect a map directly. The reason to use a map rather than a bean is that, in that way, we can have a general value object and not a specific bean for each JSP. AFAIK we can solve the problem by replacing the map by a dynabean as value object, but we have some application already working in production made with Struts 1.0, when not dynabeans were available, and we needed to work out our own tags to patch this situation. I have suspicions that experts rejects using maps as value objects. However I think that more for a traditional reason that for another one. I have seen at EJB design patterns by Floyd Marinescu, page 59, a pattern using hashmaps as data transfer objects. Could this transfer by understood as transfer to JSP? I would grateful any light. Any solution to this issue? Thanks in advance. Adolfo. From: Ted Husted [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Getting an object from a Hashtable Date: Fri, 24 May 2002 08:45:51 -0400 Under Struts 1.1b, you could probably use the same approach that is used to store ActionForm properties in a map. private Map values = null; public void setValues(Map values) { this.values = values; } public Map getValues() { return this.values; } public void setValue(String key, Object value) { getValues().put(key,value); } public Object getValue(String key) { return getValues().get(key); } logic:equal name=myBean property=value(valid) value=false Do something here. /logic:equal Struts Newsgroup (@Basebeans.com) wrote: Subject: Getting an object from a Hashtable From: Scott Curtis [EMAIL PROTECTED] === Hi, I want to be able to check the value of a property held within a hashtable using a Struts tag such as logic:equal /. For example I have a Hashtable which contains a collection of JavaBeans. In the JSP I know the key for each object in the Hashtable. I want to be able to select an object from the Hashtable according to a specified key and then compare a property value in the returned object using it's getter. Something along these lines: MyBean contains a Hashtable called myHash full of JavaBean conformant objects. MyBean has a getter to return the Hashtable getMyHash(). Each of the objects in the Hashtable is of type AnotherBean and they all have getters and setters. I want to get an object from the Hashtable using the key obj1. The bean returned using obj1 has a 'valid' property with a getter isValid(). This is what I want to do but it doesn't work obviously because Hashtable isn't a bean that can be queried from property getters and setters: logic:equal name=MyBean property=myHash.obj1.valid value=false Do something here. /logic:equal Is there another tag I can use to first get the AnotherBean from myHash in order for it to be used in the tag above? So basically me question is really simply how can I get an object from a Hashtable using Struts tags or any other tags out there? I don't want to iterate the Hashtable by the way. Thanks, if anyone understands that and can help. :-) - scott -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For
bean:write .. format=XXX
I have been looking for more documentation on the new format attribute in the bean write tag. I have found very little doc's. Could point me to or let me know if I am on the right track. It seems I can send the bean write tag a java.util.Date object or a native float and it will display it as per my definition. Do I get my format rules from the java.text package? If this is the intended usage I would be able to use the native values direct from my value objects. Am I correct? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[ANN] Struts Tips
Struts Tips is a twice-weekly column featuring practical cut-and-paste advice for Struts developers. The columns will first run on the MVC-Programmers list and later be available through Husted dot Com and JGuru. MVC-Programmer List - http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers Struts Tips archives - http://jguru.com/faq/subtopic.jsp?topicID=893704 - http://www.husted.com/struts/scaffolding/tips -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Dynamic form in struts 1.0.2
Hi I'm using Struts 1.0.2 and I've been struggling a while with a problem and I still don't know how to find a solution. I have a form filled from a database query. form Some text 1input type=hidden name=publication value=Some text 1input type=text name=ordervalue value=br Some text 2input type=hidden name=publication value=Some text 2input type=text name=ordervalue value=br ... /form The user fills the form with some values in the ordervalue-fields and posts it to a new window. In the new window I have a new form where I want to add the posted values to a hidden field. I'm perfectly satisfied with just a string representation of the name-value-pairs in the first form. But only the rows that are not left blank. I don't know how many fields there will be in the first form as they are generated. How should I do to transfer this information between the two forms to the hidden field Any help is appreciated. Best regards Andreas Guillemot -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Managing forms that post to remote URL's ?
What about writing your own tag? from:Greg Hess [EMAIL PROTECTED] date:Thu, 23 May 2002 15:15:26 to: [EMAIL PROTECTED] subject: RE: Managing forms that post to remote URL's ? You are the first person to respond to my question. My only problem was the alteration of the action url, the form was being populated and the client side validation was working fine. I was looking for an elegant way to do it in Struts, but have yet to find it. I am misusing the Framework as the html:form's we define are meant to be used in association with action mappings in struts config. So I just created a JavaScript method that assigned the appropriate value to the action and called my validation. Not that pretty but I didn't have to populate the form or write any validation JavaScript. Greg -Original Message- From: JM [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:42 PM To: Struts Users Mailing List Subject: RE: Managing forms that post to remote URL's ? Did you ever get your answer on this??? If I were you I would just use regular html (since it seems to be a very special exception to the norm). JM -Original Message- From: Greg Hess [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 4:16 PM To: Struts Mail List Subject: Managing forms that post to remote URL's ? Hi All, I am building a form that Post's its contents using SSL to a remote URL. I would like to use Struts to manage this form as I have some hidden input fields I would like Struts to auto populate and validate. I am defining the form as html:form action=https://some.secure.url; name=beanName scope=request type=com.beantype. The form is populated and validated but unfortunately the action has the name of my web application added to the start of the string so It is now an invalid url. Is there anyway I can do this without having to populate and validate the form myself, I am so spoiled now life is so nice with Struts :-). Thanks, Greg -- 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]
Problem with session
Hi, I have got two applications, one using struts(app1) and the other without struts(app2). Now I want to provide a link in the app2 to access app1. They are working good. But if I try to call the session variables from the app2 to app1, it is not getting the values. Any suggestions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with session
Well, if you are using a post Servlet 2.2 or later container, each web app gets its own application space. You can not share references across apps, including session data. You can probably use a global repository, like JNDI or something, if you need to share across apps, but that would be very slow. There may be other ways as well, such as a Context or something within the JVM. However, I am not completely clear with your problem. Perhaps you can elaborate a bit more. -Original Message- From: Sudhir [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 8:25 PM To: [EMAIL PROTECTED] Subject: Problem with session Hi, I have got two applications, one using struts(app1) and the other without struts(app2). Now I want to provide a link in the app2 to access app1. They are working good. But if I try to call the session variables from the app2 to app1, it is not getting the values. Any suggestions. -- 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]
Cannot find ActionMappings or ActionFormBeans collection
Can somebody, tell me the cause of this exception. I think there is something wrong with my configurations in my struts-config.xml. But i am unable to figure out. javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:816) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:528) at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:88) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) Thx, Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Repopulating data between forms.
I have a list page, that can display different categories of staff. In the form that supports the page I have a Collection of staff types, and an attribute that holds the selected staff type. One of the actions that can be performed from this page is to edit one of the displayed staff. In the form that supports this edit action, I also have an attribute that holds the selected staff type from the list page. This gets automatically populated for me, since the staff type is submitted with the page. When the user is done editing the staff members details, I return an ActionForward that sends me back to the list page. What I want is that role type to be automatically populated back into the list form, so that the list is displayed with staff of the type that were there when the user went to edit one. This isn't happening for me. What are the steps I need to do to get this to happen? I'd like to avoid creating hidden fields on the html page. I've tried request.setAttribute but this doesn't seem to work (which makes sense because it's a whole new request when you leave the action, right?). Thanks, Andrew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Validator and radio buttons
Can anyone help? I am using the Validator add on to do some client-side form validation, but have been unsuccessful in getting it to work with radio buttons or checkboxes. Any advice? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Repopulating data between forms.
Hi If u have a list of individual objects to be displayed on screen in the form of an editable list and u want to access the edited values in ur next action class, then I suggest u to use the nested tags concept. It avoids all the trouble of hidden fields and u would be able to access the data elements of individual objects inside the list. U can find a tutorial on nested tags at http://www.keyboardmonkey.com/struts/primer/Tutorial_partOne.html Regards, satish -Original Message- From: Andrew van der Voort [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 9:15 AM To: Struts-User-Help (E-mail) Subject: Repopulating data between forms. I have a list page, that can display different categories of staff. In the form that supports the page I have a Collection of staff types, and an attribute that holds the selected staff type. One of the actions that can be performed from this page is to edit one of the displayed staff. In the form that supports this edit action, I also have an attribute that holds the selected staff type from the list page. This gets automatically populated for me, since the staff type is submitted with the page. When the user is done editing the staff members details, I return an ActionForward that sends me back to the list page. What I want is that role type to be automatically populated back into the list form, so that the list is displayed with staff of the type that were there when the user went to edit one. This isn't happening for me. What are the steps I need to do to get this to happen? I'd like to avoid creating hidden fields on the html page. I've tried request.setAttribute but this doesn't seem to work (which makes sense because it's a whole new request when you leave the action, right?). Thanks, Andrew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[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]