Bean not in scope
Can someone tell me when this error comes javax.servlet.ServletException: bean login not found within scope I am stuck up in it Adarsh Gupta Software Engineer Patni Computer Systems Limited SDF-7, 4th Floor, Unit 17, SEEPZ Tel : (022)-8290479/8291454 Extn : 5741 Mobile : 9820224341 www.patni.com World-Wide Partnerships.World-Class Solutions.
Re: Struts/Container-Managed Authentication Question
Hello again Mete, ;-) I like this stuff. It's like a puzzle. Basically I made my welcome-page a dummy page that redirects the request to /login.do. I made /login.do a protected resource and what is ironic is that I made my home page the login page !! (in login-config). This kinda turns container-managed authentication on its head since the protected page becomes the login action while the login page becomes the homepage. But surprisingly it seems to work. So when the user goes to the page, after a redirect they arrive at the home page. On the home page, they can either fill in the login form and submit, or click on any one of the other links in which case the authentication process is dropped and the user is let go to other unprotected pages. While this may seem like another big mess, it satisfies the container since the form-based authentication is done normally. That is a clever setup, but I don't think it will work quite as intended under certain circumstances. When someone follows a link into the site and then tries to login, they will run into trouble. For instance, say Joe sends a link to /deep/in/site/somethingCool.do to his friend Ann. Ann follows the link and browses around for a while, and then decides to login. She enters her username and password and submits the login form in the page margin. Bang! Server error. Actually, on WebLogic, she will be taken the home page (or get a 404 error, depending on where she is in the site) without getting authenticated. On Tomcat, she'll get a server error. The problem is that the server received a j_security_check submittal before it sent the user to the login page. You might take the position that everyone should enter through the home page, but in reality this problem will pop up even for people that bookmark the home page (/index.do, for instance) and go to the site via the bookmark, or follow a link from a Google search results page. And the web loses much of its value if you can't link to pages within the site, even for intranet apps or web apps where you might want to send URLs to your co-workers or employees via email. You might be able to partially fix this behavior with some more trickery: 1. put something in the user's session if they visit the site home page (/index.jsp) 2. on every page (including the home page), check for the presence of the home page marker described above, if it isn't there put the current URL in the session and redirect them to the /login.do page, which will force the container security to jump in and redirect them to the home page (which is configured as the login page)... 3. in the home page, set the marker as usual but also check for a URL in the session, and if it is there remove the URL from the session and redirect them back to that URL The only bad effects you'll up (that I can think of) with this are: 1. there will be some delay from the redirecting when users first try to follow a link into the site 2. they will always end up at the home page (after being redirected there from /login.do) after logging in You can probably fix #2 by with even more trickery if you are feeling particularly industrious. If you can live with a short-term compromise of having a login link on every page rather than a login form, the first design I sent out should work for that. I have written a security filter that allows you to submit a login form without having been forced to the form. You then just configure the filter with a URL to dump users to after they authenticate themselves. Perhaps I should allow you to optionally configure the filter to remember where you submitted the form from and return you there upon successful authentication (a task for version 1.1). Anyway, I am in the process of preparing it for release (i.e. it works and I'm cleaning it up). -Max -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
how can I invoke a Tile Definition directly from the browser
Hi, How can I invoke a Tile Definition directly from the browser? This to minimize the number of JSP pages, and have them all defined in the xml config file. In Prakash Malani's article 'UI Design with Tiles and Struts' (http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html), based on Struts 1.0, is shown that you need to write a non operational Action Class, that does nothing but direct you to a mapping containing the Tile Definition. Is this still the way to go with Struts 1.1b1 ? Or are there better ways of doing this ? Where could I find more info on this ? Thanks in advance, Esther -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: how to Internationalized submit button?
i use different properties for each button: example: html:submit property=btnStorebean:message key=btn.store//html:submit html:submit property=btnCancelbean:message key=btn.cancel//html:submit if (btnStore != null) { } if (btnCancel != null) { } -Original Message- From: Hoang, Hai [mailto:[EMAIL PROTECTED]] Sent: Freitag, 19. Juli 2002 05:56 To: '[EMAIL PROTECTED]' Subject: how to Internationalized submit button? I want to internationalize the submit buttons on a form and I don't know how to do it. Currently, I mapped the value on the submit button to the property actionName in the ActionForm class. Base on the button the use clicked, I handle it propriately in the Action class, just like event handling mechanism. Now if I internationalize these buttons (html:submit property=actionName/bean:message key=button.add//html:submit, the value will change and my Action class will no longer work. Is there a way to work around this problem? To be specific, following is the detail about my setup 1. jsp page: html:submit property=actionName value=Add/ html:submit property=actionName value=Edit/ html:submit property=actionName value=Remove/ 2. actionForm class: public String getActionName() { return actionName; } public void setActionName( String actionName) { this.actionName = actionName; } 3. action class: ApplicationForm applicationForm = (ApplicationForm)form; String action = applicationForm.getActionName(); if (action == null) { action = Constants.BUTTON_CANCEL; } if (action.equals(Constants.BUTTON_CANCEL)) { applicationForm.setActionName(null); doAdd(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_ADD)) { doAdd(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_SAVE)) { doSave(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_EDIT) || action.equals(Constants.BUTTON_REMOVE)) { doEdit(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_UPDATE)) { doUpdate(mapping, applicationForm, request, response); } else if (action.equals(Constants.BUTTON_DELETE)) { doDelete(mapping, applicationForm, request, response); } Thank you for your help -- 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]
Could anyone give me some reason to use this custom tag like in struts ?
Hi, all Because I did not like custom tag. so please could anyone give me some reason to use this custom tag. Thanks
Re: Struts/Container-Managed Authentication Question
Subject: Re: Struts/Container-Managed Authentication Question From: Torgeir Veimo [EMAIL PROTECTED] === Max Cooper wrote: If you can live with a short-term compromise of having a login link on every page rather than a login form, the first design I sent out should work for that. I have written a security filter that allows you to submit a login form without having been forced to the form. You then just configure the filter with a URL to dump users to after they authenticate themselves. Perhaps I should allow you to optionally configure the filter to remember where you submitted the form from and return you there upon successful authentication (a task for version 1.1). Anyway, I am in the process of preparing it for release (i.e. it works and I'm cleaning it up). Will you post the source (or a link) in this forum to that filter? -- -Torgeir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Could anyone give me some reason to use this custom tag like in struts ?
Because I did not like custom tag. so please could anyone give me some reason to use this custom tag. Thanks Beside the lots of common reasons (works, clear, reusable etc) there is one more for me: The graphic designer has not messed up the logic in the page since I use custom tags. Actually I had to spend hours on cleaning up the page which used scriptlets and was beautified by him. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how can I invoke a Tile Definition directly from the browser
Hello, This is the way to go. Remember that Tiles definition's names are logical names. They can't be used directly as URL. You can also use a struts action taking the definition's name as request parameter. The action then insert the requested tiles. Such action already exist in Tiles sources (org.apache.struts.tiles.actions.DefinitionDispatcherAction.java) Cedric [EMAIL PROTECTED] wrote: Hi, How can I invoke a Tile Definition directly from the browser? This to minimize the number of JSP pages, and have them all defined in the xml config file. In Prakash Malani's article 'UI Design with Tiles and Struts' (http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html), based on Struts 1.0, is shown that you need to write a non operational Action Class, that does nothing but direct you to a mapping containing the Tile Definition. Is this still the way to go with Struts 1.1b1 ? Or are there better ways of doing this ? Where could I find more info on this ? Thanks in advance, Esther -- 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]
Documentation of the control flow of struts-projects
Hello all! Does anybody know a tool for automatic generation of control flow diagramms using the struts-config.xml? How do you create the doc of the control flow for your projects? Kind regards, Arne -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Commons-digester
Hi All, (I apologies in advance as this is not a struts specific question, but I'm aware that the commons-digester is used by Struts). Is anyone aware of any tutorials/documentation/examples for the commons-digester. I can only find the JavaDocs (and these are a bit sparse). 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.
Re: Struts/Container-Managed Authentication Question
Torgeir, Definitely. I'll be working on it next week (vacation, woo hoo! ;-) and hope to have a release version ready by the beginning of August. I'll post a link when it is ready. I plan to release the source code, and I'd also like to provide a binary version that you can easily drop into an app to replace container-manager security (just move your security constraints out of web.xml and into a new file, and provide a very simple realm implementation). A nice feature of this approach is that you can deploy your whole app, including the realm implementation (which often depends on other parts of your code), as a single war file with no external dependencies. This packaging consideration is what drove the development intitially. -Max - Original Message - From: Struts Newsgroup @[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 19, 2002 1:40 AM Subject: Re: Struts/Container-Managed Authentication Question Subject: Re: Struts/Container-Managed Authentication Question From: Torgeir Veimo [EMAIL PROTECTED] === Max Cooper wrote: If you can live with a short-term compromise of having a login link on every page rather than a login form, the first design I sent out should work for that. I have written a security filter that allows you to submit a login form without having been forced to the form. You then just configure the filter with a URL to dump users to after they authenticate themselves. Perhaps I should allow you to optionally configure the filter to remember where you submitted the form from and return you there upon successful authentication (a task for version 1.1). Anyway, I am in the process of preparing it for release (i.e. it works and I'm cleaning it up). Will you post the source (or a link) in this forum to that filter? -- -Torgeir -- 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]
Tiles + ActionForm.validation - problem !
Hi, list I'm very new to Tiles and when i tried to bind this cool stuff to my previously designed app, i met a problem with validation. I'm usin' Struts 1.0.2 stable ver. + tilesForStruts1.0.jar (external tiles lib). I need my action to forward back to the same page, when any errors appeared in struts-config.xml i have an action: action path=/loadSomething type=mypackage.LoadSomethingAction name=someForm forward name=success path=somePage/forward /action to load source page and another action mapping action path=/saveSomething type=mypackage.SaveSomethingAction name=someForm scope=request validate=true input=somePage forward name=success path=index.jsp/forward /action for savin entered data in tiles-def.xml i have definition: definition name=somePage path=/template.jsp put name=content value=some_page.jsp / /definition where some_page.jsp contains an input form. When validation method returns not empty ActionErrors i recieve internal server error message like this one: java.lang.IllegalAccessError: try to access method org.apache.struts.action.ActionForm.getMultipartRequestHandler()Lorg/apache/struts/upload/MultipartRequestHandler; from class org.apache.struts.tiles.ActionComponentServlet at org.apache.struts.tiles.ActionComponentServlet.processValidate(ActionComponentServlet.java:167) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) the question is How am i suppose to describe error page in action mapping ? input ? or somehow else . Help needed! (thanx a lot)
Tiles and modules (sub-apps)
Hi all, There is now a TilesPlugin for struts1.1. This plugin takes in charge the TilesRequestProcessor initialization. It is not anymore mandatory to specify the TilesRequestProcessor. Also, it is not needed anymore to use the ComponentActionServlet as servlet. You can just use the Struts servlet. The new plugin and TilesRequestProcessor work with struts multi modules (sub-applications). The tiles documentation uses one module called examples. Check the tiles-documentation.war file for how to. Cedric -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Good/Bad Practices
I'm taking a different approach which may or may not be the best way but it makes sense to me. I see Action classes and Action forms as throw away objects. They are not as reusable as business objects. I therefore try and reduce the number of those classes that I have to create. I try and group functionality and leverage DispatchAction. I also remove all business logic from the Action classes which makes them simple proxies to my business tier. In this fashion, I have more business components that can be reused and are easily tested and less Action classes. DispatchAction uses reflection to invoke the correct operation and therefore there is no messy if else logic. And because the Action class is a simple proxy, I have no business logic; just a call to my business service. If it fails, I propagate an exception and let Struts decide how it is to be handled. (Explicitely in 1.0 or declaratively in 1.1). I also use this one to many relationship with the ActionForms. I tend to place all the input fields I need into a large form for a group of related actions. I use the Struts Validator to house all the simple user input validation for my forms and therefore there is no complex logic in my form for validation. The fields are validated based on the action mapping. This also reduces the number of ActionForms I have to create. If you use DynaActionForms, then you can almost eliminate the number of physical forms you have to create. This is just one approach, ultimately you have to decide what works best for you. Good luck. robert -Original Message- From: Mark Nichols [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 12:00 PM To: Struts Users Mailing List Subject: RE: Good/Bad Practices I prefer the more granular approach, with many actions and JSPs over a more complex and generalized approach. In my case I find that having single-function actions and JSPs leads to easier coding today (and therefore easier maintenance tomorrow). I can also split the work up over more developers, rather than single threading development through one complex action. Our intranet application has about 60 separate 'screens', each with its own action. Maybe overkill, but for a first attempt at Struts this pattern has made life easier by far. /mark -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 9:32 AM To: Struts (E-mail) Subject: Good/Bad Practices Hey everyone, I've been trying to get in the habit of using good struts programming practices, (without making things too hard on myself). I have another question for anyone that could give me some input on it. I'm working on a data entry application, and the user can make three different types of entries. Let's call them A, B, and C. They each have some form fields in common with each other, but each has a couple unique fields. To add an entry, I have a separate JSP for each, and different action mappings for each (that all refer back to the same action class). This works fine. Now I'm working on an edit function for the entries. I have a link within a logic:iterate tag that displays a link to an edit form. I tried using one action and one JSP for the edits, but it gets very messy trying to allow for the different types of entries. Is it a bad idea to use lots of different action mappings and different JSP's for each operation for each type of entry, even though they are similar and all have to perform very similar operations? Or should I go to great lengths to make very complex generalized actions and JSP's that can handle any type of entry? I'm not sure how understandable my question is, or if it's a stupid question, but I want to get this figured out before I spend too much more time on the 'edit' functionality. I'm having some issues, and I keep redesigning the operation, so I'ld appreciate some input before I rewrite this shiznat too many more times. Thanks a lot everyone! ~ Keith http://www.buffalo.edu/~kkamholz -- 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: Commons-digester
Jon, just yesterday I had need to convert an XML document into some Java objects. I knew Struts used Digester for this so I read the package descriptions in the JavaDocs (http://jakarta.apache.org/commons/digester/api/index.html) and found them very useful. At least it was enough information for me to figure out how to use Digester in my scenario. I would also say take a look at some of the Struts sources such as how the Digester is initialized in the ActionServlet or used in the RequestProcessor. Sorry I don't have any links to more documentation or tutorials I just thought you might have overlooked the package information as it was enough to help me. robert -Original Message- From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:54 AM To: '[EMAIL PROTECTED]' Subject: Commons-digester Hi All, (I apologies in advance as this is not a struts specific question, but I'm aware that the commons-digester is used by Struts). Is anyone aware of any tutorials/documentation/examples for the commons-digester. I can only find the JavaDocs (and these are a bit sparse). 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: Documentation of the control flow of struts-projects
Hi Arne, I believe that the struts-console and/or the scrioworks Camino (http://www.scioworks.com) tools will produce diagrams from a struts-config. The ObjectAssembler plugin may also produce diagrams - I haven't got round to evaluating it yet so I couldn't say. (http://www.objectventure.com/products/objectassembler.html) Jon Ridgway -Original Message- From: Clauss, Arne [mailto:[EMAIL PROTECTED]] Sent: 19 July 2002 10:42 To: Struts Users Mailing List Subject: Documentation of the control flow of struts-projects Hello all! Does anybody know a tool for automatic generation of control flow diagramms using the struts-config.xml? How do you create the doc of the control flow for your projects? Kind regards, Arne -- 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: html:image
I think you may need to use the html:img/ tag which is the HTML equivalent for the img tag. The html:image/ tag renders an HTML input tag of type image. hth, Shane - Original Message - From: Joseph Barefoot [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 18, 2002 8:54 PM Subject: RE: html:image I think maybe it's the property attribute instead? Not sure about that, but you could give it a try. -Original Message- From: Keith Chew [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 5:45 PM To: Struts Users Mailing List Subject: html:image Hi Why doesn't the html:image tag allow for the name attribute? I am trying to use it within the iterate tag, ie logic:iterate id=something name=someBean property=someCollection html:image src=/images/image.gif name=something property=someAttribute/ /logic:iterate It does not recognise the name attribute. Any ideas? Keith -- 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]
new MVC with Standard Tags and DB sample
I have posted initial build of a new learning application on SourceForge basicPortal under CVS http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal It is using Struts with Standard Tags and X: Transform from DB, Realm base security, CURD, etc. etc. I have big plans for this, to be 20% of code that gets used 80% of time and faces and expression language compliant. (Err.. this build is not for newbies, but I will update it a lot and often.) To keep up on this and related topics, there is a mail list http://www.netbean.net/mailman/listinfo/mvc-programmers that also gets you password to other baseBeans.com features. and a newsgroups readers news.baseBeans.com. Hope you like, Vic C. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Setter Methods not being called in nested:iterate scenario :+(
Wrong! I'll eat my hat if you haven't been gotcha'd by the nested tags gotcha. If your form is in the request, it (and its beans content) will have disappeared after displaying your page, and the new form bean on instantiation for a new request (incoming submit) will not contain the beans, because it ain't been thro' your Action yet. You need to do it in your reset() or put your form in the session scope. Everybody on the list has heard this once a week since the invention of nested tags, I reckon - sorry folks. You can apologise too Hemant, unless you ain't been gotcha'd. Coz it's all in the archives. hemant wrote: Adam Thanks for responding.. The Actionform (rangesform) itself is my root and I have a collection reference collectionOfPairs in rangesform, replete with getter/setter methods. The collectionOfPairs is instantiated and populated. If not, I would not be seeing the page with the correct data. right? As I said earlier, the getters work, the setters do not work. All this inspite of having the bean in the form. Thanks hemant - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 18, 2002 4:39 PM Subject: Re: Setter Methods not being called in nested:iterate scenario :+( nested tags / indexed properties / nested beans gotcha. You have to instantiate the beans yourself in the form reset() if you want to capture the indexed properties. [this answer was automated, virtually] hemant wrote: Comrades, I am trying to Iterate over a Collection of Collections of ValueObjects and after some real painful experimentation (With VA 3.5.3 + Apache Tomcat + Poolman ), I got the page to come up properly :). So far so good. I went out and celebrated for a few minutes... The getter methods seem to work fine. But the user data is not being captured on Submit :( Please throw some light on this... Here is the snippet from my JSP. !--bean:define id=collectionOfPairs name = ldmservice property=ranges type=java.util.Collection scope=session/-- nested:root name=rangesform !--logic:iterate id=pairs name=collectionOfPairs type=java.util.Collection-- nested:iterate property=collectionOfRanges nested:iterate id=vopair property=this/ type=com.xxx.operations.mplanning.mpi.util.ValueObjectPair nested:root name=vopair ... ... tr td width=10%Description/td td width=90%nested:write name=vopair property=twVo.description//td /tr For some reason, the setter Method of setDescription(String xyz) is not being called. Please help... Many Thanks for Your Time Regards hemant -- 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]
Locale in FormBean
I want to have the Locale of the Browser in my FormBean, so that I can format some dates and time in the get Methods. Till now I'm creating and setting the Bean in the previeous called action. Is there a better way to do it? (an automatic one?) Thanks in advance Matthias. 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]
Re: Tiles + ActionForm.validation - problem !
Nobody meets this problem ? - Original Message - From: Slava_L [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 19, 2002 7:08 PM Subject: Tiles + ActionForm.validation - problem ! Hi, list I'm very new to Tiles and when i tried to bind this cool stuff to my previously designed app, i met a problem with validation. I'm usin' Struts 1.0.2 stable ver. + tilesForStruts1.0.jar (external tiles lib). I need my action to forward back to the same page, when any errors appeared in struts-config.xml i have an action: action path=/loadSomething type=mypackage.LoadSomethingAction name=someForm forward name=success path=somePage/forward /action to load source page and another action mapping action path=/saveSomething type=mypackage.SaveSomethingAction name=someForm scope=request validate=true input=somePage forward name=success path=index.jsp/forward /action for savin entered data in tiles-def.xml i have definition: definition name=somePage path=/template.jsp put name=content value=some_page.jsp / /definition where some_page.jsp contains an input form. When validation method returns not empty ActionErrors i recieve internal server error message like this one: java.lang.IllegalAccessError: try to access method org.apache.struts.action.ActionForm.getMultipartRequestHandler()Lorg/apache/ struts/upload/MultipartRequestHandler; from class org.apache.struts.tiles.ActionComponentServlet at org.apache.struts.tiles.ActionComponentServlet.processValidate(ActionCompone ntServlet.java:167) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) the question is How am i suppose to describe error page in action mapping ? input ? or somehow else . Help needed! (thanx a lot) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Locale in FormBean
One solution (but not recommended!) is to set the Locale in the reset method. Another solution are the formatting possibilities of the struts bean tags (http://jakarta.apache.org/struts/userGuide/struts-bean.html#write), that use formatting strings read from the ApplicationProperties.resources. Björn -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Gesendet am: Freitag, 19. Juli 2002 13:12 An: [EMAIL PROTECTED] Betreff: Locale in FormBean I want to have the Locale of the Browser in my FormBean, so that I can format some dates and time in the get Methods. Till now I'm creating and setting the Bean in the previeous called action. Is there a better way to do it? (an automatic one?) Thanks in advance Matthias. -- -- 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]
How to handle formbean for dynamically generated form?
Hello, I have a scenario here. I am generating a form which is dynamic. For example this form has some fields like FirstName, Last Name, Email Address, Phone Number. These fields are 1 set. When the user enter the number of sets, the form will be generating. let say user selects 3 sets, the form will displayed the above fields 3 times. I want to know how can I handle this situation using FormBean. I don't have maximum number for this set. User can enter any number to generate. I appreciate any helps. Thanks, Manju
Re: getting nested tags to work with DynaActionForm???
We want the form beans to stay in session, so it has to be able to be populated when build from an empty constructor (the way beans do). Enter lists of nested objects. In the constructor you have to instantiate the list, new ArrayList() or whatever. So, new request comes in for monkey number five. But our list is only just built, no objects waiting at index number five to take the items, information is lost forever. One way you can track it, is to store the information someplace as to how many are in the list, and build the list in the reset method or whatever. Not easy unless you give the bean access to the request object... which is bad. Enter lazy lists. When you build your array list, wrap it in the lazy list, when you do so, you pass it the definition/means to build objects for the lists. Your definition. Three options, pass it a class definition and it'll simply do a newInstance() on it, the class definition and argument details so it can call a constructor with arguments, or for the most complex, you can define a factory impl against an interface. 99% of the time the class def is all you'll need. For lists within lists... all you can to do is wrap the lists in the child objects and they'll grow just fine too. Why all this?... because from very simple beans you can just forget them, leave the scope as request, and rest assured all the lists or whatever are all built and ready to go. It's just another one of those things that Struts can do for you. I'm going to work them into DynaBeans for my own use at least, because then it's all marked up... don't have to touch anything, nothing has to be explicitly handled for collections. It's not mandatory... can easily specify a build-lists=true in the definition of the property. Specs are great for defining minimum involvement. It is true that a half complete spec implementation isn't a good thing at all, but I'm of the belief that for projects like this a spec should never define the limit of a product. Must admit Craig baffles me on this topic at times. Stuff like this lazy list thing because it's not in the bean spec, but yet I don't see nested dot notation properties and mapped properties in the bean spec either. :) The bean spec has aged a bit, mapped properties and whatever. Not that lazy lists should ever be in it. But... Struts is in the business of providing a cohesive, productive framework for creating applications defined by excellence in design. It does so many things correctly and automatically for you. Excellent. Wrapping my collections in lazy lists to my beans was one more step in me knowing my forms beans are happening correctly, the definition, request scope, the whole deal... one more thing I don't have to code any longer. Less code doing the right stuff is a good thing, hang any spec, IMHO :) Arron. On Fri, 2002-07-19 at 06:04, Adam Hardy wrote: Arron, I wonder how your lazy initialisation works. I'm afraid I didn't look at the code - since you said you wanted to explain it to the masses anyway, perhaps you won't mind explaining, rather than telling me not to be so lazy myself. Basically, if you have your example: In the request parameters: monkey[1].bunch[2].banana[3].color how does your collection wrapper know what class to instantiate for monkey, bunch, etc etc? Is this something that you configure in xml somewhere? Presumably an extension to dynaform configuration? Adam Arron Bates wrote: Craig, wouldn't this be fixed by getting the collections in the DynaForm to be wrapped by the lazy lists I commited a few weeks ago to commons?... then when they're being created when the request comes in, it'll all grow as needed and it'd just happen. Been missing the past couple of weeks due to bad flu among other things. Love to get in there and code it, but time is hard to find at the moment and there's other things I need to get on to, but the above feels like a good marriage. One of the things I have to do is describe the lazy collections to the masses. Seems a few have had list constrcution issues with request scope beens in the last fortnight. On Wed, 2002-07-17 at 12:45, Craig R. McClanahan wrote: On Tue, 16 Jul 2002, Rick Reumann wrote: Date: Tue, 16 Jul 2002 22:04:54 -0400 From: Rick Reumann [EMAIL PROTECTED] To: Craig R. McClanahan [EMAIL PROTECTED] Cc: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re[2]: getting nested tags to work with DynaActionForm??? On Tuesday, July 16, 2002, 9:04:04 PM, Craig R. McClanahan wrote: CRM Setting stuff like this up in the reset() method is the standard approach. CRM Arrays have to exist already for either standard JavaBean-based CRM ActionForms, as well as DynaActionForms. I'm still a bit confused by this. When I use a standard ActionForm I don't have to do anything special with my ArrayList in the ActionForm. A page that uses this ArrayList works fine. However
Resin 2.1.1 and Struts
I'm getting prepared to build a web app using Struts on (yet) another platform - Resin. If anyone has done this, are there any Resin-specific issues involved or is it as simple as adding struts.jar to the class path and putting struts-config in WEB-INF? Thanks...and I like the beaver (nature's engineer) as the cover for Chuck's book, Mark
a question on the example in struts documentation
Please let me know if I have understood it correctly. Just like in example in struts documentation I map my ActionServlet to *.do. I have a page someform.jsp whose logical name is say something.do. All server side validations are performed in the corresponding Action class. Now if some user of my page after viewing page something.do opens its html source in browser he will be able to find a base tag containing actual address to someform.jsp. Now if the same user copies and paste this address to someform.jsp in browser, now the request will not go to ActionServlet as it only captures *.do not .jsp. As a result Action class will be bypassed and thus all server side validations will be skipped by this user. Is this correct Amit Kumar
Bean context and validate() in ActionForm
Hi ! Here is the problem I try to deal with. Suppose a JSP page is shown on somebody's navigator ; this JSP is a form, whose action is a Struts action, and which needs a bean DataBean to be shown properly. Suppose now that the basic validation fails (i.e. the validate() method of the ActionForm returns a non-empty ActionErrors object). The Struts framework shows the page mentioned in the input parameter, in general the same page that yielded the validation error, so that the user can correct the mistyped fields. Now, the problem is I don't have my DataBean to show the page correctly. Do you think that the design should provide a way to keep all these request beans that were available before the validation failed ? Or do you think that it is up to the validate method to handle these beans to put them back in the request ? But then, one must be aware of all the needed beans, and I would assume that different people have developed the JSP file and the ActionForm code. I would personnaly think that the by-default behaviour should be to put back all these beans inside the next request that asks for corrective action on the fields ; it should not be taken care of by the code inside the validate() method, but, presumably inside the processValidate() method of the ActionServlet class. Thank you for your advice on this matter. Olivier Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et secrets. Ce message est adresse a l'individu ou l'entite dont les coordonnees figurent ci-dessus. Si vous n'etes pas le bon destinataire, nous vous demandons de ne pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de votre systeme. The information contained in this message is privileged, confidential, and protected from disclosure. This message is intended for the individual or entity adressed herein. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others ;also please notify the sender by replying to this message, and then delete it from your system. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Réf. : Bean context and validate() in ActionForm
I just thought that it is impossible to get the bean back, since it is a new request that is sent to the server, and my DataBean has vanished. So, is this situation not a problem ? I must redo everything I did concerning this bean : create it, populate it and put it in the request. Is this limitation not a strong incentive to use client-side checking ? Thx ! Olivier Olivier Schmeltzer 19/07/2002 14:22 Pour : [EMAIL PROTECTED] cc : Objet : Bean context and validate() in ActionForm Hi ! Here is the problem I try to deal with. Suppose a JSP page is shown on somebody's navigator ; this JSP is a form, whose action is a Struts action, and which needs a bean DataBean to be shown properly. Suppose now that the basic validation fails (i.e. the validate() method of the ActionForm returns a non-empty ActionErrors object). The Struts framework shows the page mentioned in the input parameter, in general the same page that yielded the validation error, so that the user can correct the mistyped fields. Now, the problem is I don't have my DataBean to show the page correctly. Do you think that the design should provide a way to keep all these request beans that were available before the validation failed ? Or do you think that it is up to the validate method to handle these beans to put them back in the request ? But then, one must be aware of all the needed beans, and I would assume that different people have developed the JSP file and the ActionForm code. I would personnaly think that the by-default behaviour should be to put back all these beans inside the next request that asks for corrective action on the fields ; it should not be taken care of by the code inside the validate() method, but, presumably inside the processValidate() method of the ActionServlet class. Thank you for your advice on this matter. Olivier Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et secrets. Ce message est adresse a l'individu ou l'entite dont les coordonnees figurent ci-dessus. Si vous n'etes pas le bon destinataire, nous vous demandons de ne pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de votre systeme. The information contained in this message is privileged, confidential, and protected from disclosure. This message is intended for the individual or entity adressed herein. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others ;also please notify the sender by replying to this message, and then delete it from your system. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to handle formbean for dynamically generated form?
It seems to me that you should use an Array of Strings to represent those fields that will be duplicated. When the form is submitted, each array will be automatically filled with the values of the specified property. It's pretty easy to do. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:30 AM To: 'Struts Users Mailing List' Subject: How to handle formbean for dynamically generated form? Hello, I have a scenario here. I am generating a form which is dynamic. For example this form has some fields like FirstName, Last Name, Email Address, Phone Number. These fields are 1 set. When the user enter the number of sets, the form will be generating. let say user selects 3 sets, the form will displayed the above fields 3 times. I want to know how can I handle this situation using FormBean. I don't have maximum number for this set. User can enter any number to generate. I appreciate any helps. Thanks, Manju -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Setter Methods not being called in nested:iterate scenario :+(
FYI This isn't a nested tags issue at all, but a nested bean-in-a-list issue which Struts had a long time before I wrote the nested tags. They're only guilty of making something quite complex very easy to do. :) Wrap your collections in org.apache.commons.collections.LazyList, provide a class definition of your child bean and it'll be sweet and ready to do without any other effort, even in the reset() method. Arron. On Fri, 2002-07-19 at 18:24, Adam Hardy wrote: Wrong! I'll eat my hat if you haven't been gotcha'd by the nested tags gotcha. If your form is in the request, it (and its beans content) will have disappeared after displaying your page, and the new form bean on instantiation for a new request (incoming submit) will not contain the beans, because it ain't been thro' your Action yet. You need to do it in your reset() or put your form in the session scope. Everybody on the list has heard this once a week since the invention of nested tags, I reckon - sorry folks. You can apologise too Hemant, unless you ain't been gotcha'd. Coz it's all in the archives. hemant wrote: Adam Thanks for responding.. The Actionform (rangesform) itself is my root and I have a collection reference collectionOfPairs in rangesform, replete with getter/setter methods. The collectionOfPairs is instantiated and populated. If not, I would not be seeing the page with the correct data. right? As I said earlier, the getters work, the setters do not work. All this inspite of having the bean in the form. Thanks hemant - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 18, 2002 4:39 PM Subject: Re: Setter Methods not being called in nested:iterate scenario :+( nested tags / indexed properties / nested beans gotcha. You have to instantiate the beans yourself in the form reset() if you want to capture the indexed properties. [this answer was automated, virtually] hemant wrote: Comrades, I am trying to Iterate over a Collection of Collections of ValueObjects and after some real painful experimentation (With VA 3.5.3 + Apache Tomcat + Poolman ), I got the page to come up properly :). So far so good. I went out and celebrated for a few minutes... The getter methods seem to work fine. But the user data is not being captured on Submit :( Please throw some light on this... Here is the snippet from my JSP. !--bean:define id=collectionOfPairs name = ldmservice property=ranges type=java.util.Collection scope=session/-- nested:root name=rangesform !--logic:iterate id=pairs name=collectionOfPairs type=java.util.Collection-- nested:iterate property=collectionOfRanges nested:iterate id=vopair property=this/ type=com.xxx.operations.mplanning.mpi.util.ValueObjectPair nested:root name=vopair ... ... tr td width=10%Description/td td width=90%nested:write name=vopair property=twVo.description//td /tr For some reason, the setter Method of setDescription(String xyz) is not being called. Please help... Many Thanks for Your Time Regards hemant -- 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: Réf. : Bean context and validate() in ActionForm
I don't understand why you're having this problem. I haven't had a problem with request-scope or session-scope beans being lost on validation. My bean is always preserved. Your bean isn't in the page scope is it? If so, that could be your problem. Also, I would have to disagree with your argument for client-side checking. I'm definitely no expert in these matters, but it seems significantly less reliable. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:37 AM To: [EMAIL PROTECTED] Subject: Réf. : Bean context and validate() in ActionForm I just thought that it is impossible to get the bean back, since it is a new request that is sent to the server, and my DataBean has vanished. So, is this situation not a problem ? I must redo everything I did concerning this bean : create it, populate it and put it in the request. Is this limitation not a strong incentive to use client-side checking ? Thx ! Olivier Olivier Schmeltzer 19/07/2002 14:22 Pour : [EMAIL PROTECTED] cc : Objet : Bean context and validate() in ActionForm Hi ! Here is the problem I try to deal with. Suppose a JSP page is shown on somebody's navigator ; this JSP is a form, whose action is a Struts action, and which needs a bean DataBean to be shown properly. Suppose now that the basic validation fails (i.e. the validate() method of the ActionForm returns a non-empty ActionErrors object). The Struts framework shows the page mentioned in the input parameter, in general the same page that yielded the validation error, so that the user can correct the mistyped fields. Now, the problem is I don't have my DataBean to show the page correctly. Do you think that the design should provide a way to keep all these request beans that were available before the validation failed ? Or do you think that it is up to the validate method to handle these beans to put them back in the request ? But then, one must be aware of all the needed beans, and I would assume that different people have developed the JSP file and the ActionForm code. I would personnaly think that the by-default behaviour should be to put back all these beans inside the next request that asks for corrective action on the fields ; it should not be taken care of by the code inside the validate() method, but, presumably inside the processValidate() method of the ActionServlet class. Thank you for your advice on this matter. Olivier Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et secrets. Ce message est adresse a l'individu ou l'entite dont les coordonnees figurent ci-dessus. Si vous n'etes pas le bon destinataire, nous vous demandons de ne pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de votre systeme. The information contained in this message is privileged, confidential, and protected from disclosure. This message is intended for the individual or entity adressed herein. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others ;also please notify the sender by replying to this message, and then delete it from your system. -- 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 handle formbean for dynamically generated form?
Keith, Thanks for the reply. In JSP I am using firstname1, firstname2etc..depending on the sets the user selected. Now my problem is to get the values in my Action Class. I am not yet clear how to use formbean in this case. You have mentioned to use array of strings. How the form bean will process these values. I appreciate your help. Thanks, Manju -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:39 AM To: 'Struts Users Mailing List' Subject: RE: How to handle formbean for dynamically generated form? It seems to me that you should use an Array of Strings to represent those fields that will be duplicated. When the form is submitted, each array will be automatically filled with the values of the specified property. It's pretty easy to do. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:30 AM To: 'Struts Users Mailing List' Subject: How to handle formbean for dynamically generated form? Hello, I have a scenario here. I am generating a form which is dynamic. For example this form has some fields like FirstName, Last Name, Email Address, Phone Number. These fields are 1 set. When the user enter the number of sets, the form will be generating. let say user selects 3 sets, the form will displayed the above fields 3 times. I want to know how can I handle this situation using FormBean. I don't have maximum number for this set. User can enter any number to generate. I appreciate any helps. Thanks, Manju -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Resin 2.1.1 and Struts
Pretty much performs as required. Quite tidy. Absolutely boots as it has a very optimised JSP compiler, to the letter of a spec. Makes writing tags harder because of the level of tag object reuse, but it all pays off. Because it moves faster than tomcat it's quicker to code with, kick it over an restart in a flash. Also may have to look out for the fact it likes to compile source in the classes directory. But that speeds dev work too, as just like JSP, you can simply change the code in your source and hit reload in the browser, and it'll all recompile and stuff automagically. Most cool. Arron. On Fri, 2002-07-19 at 22:33, Galbreath, Mark wrote: I'm getting prepared to build a web app using Struts on (yet) another platform - Resin. If anyone has done this, are there any Resin-specific issues involved or is it as simple as adding struts.jar to the class path and putting struts-config in WEB-INF? Thanks...and I like the beaver (nature's engineer) as the cover for Chuck's book, Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Resin 2.1.1 and Struts
I've been developing with Resin 2.1.1 and Struts and have found no Resin-specific issues that you need to be aware of. Try searching the Caucho newsgroup on their site for more info. ~Jason -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:33 AM To: Struts (E-mail) Subject: Resin 2.1.1 and Struts I'm getting prepared to build a web app using Struts on (yet) another platform - Resin. If anyone has done this, are there any Resin-specific issues involved or is it as simple as adding struts.jar to the class path and putting struts-config in WEB-INF? Thanks...and I like the beaver (nature's engineer) as the cover for Chuck's book, Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts-Validator
Thanks! Never occurred to me to check Dave's site :-) Jerry -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 9:17 PM To: Struts Users Mailing List Subject: Re: Struts-Validator http://home.earthlink.net/~dwinterfeldt/ Check that out. I think it may contain what you're after. Jerry Jalenak wrote: Can validator perform a comparison between two (or more) fields on a form? If so, does anyone have a quick example from the validator-rules.xml that they could post? Thanks. Jerry Jalenak 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Apps Released
Wow - that IS cool! Now that we've released our Struts applications to the public (see http://shop.voicestream.com/index.jsp and http://shop.t-mobile.com/index.jsp to see why I've been working 80-hour weeks for the past 4 months). I don't have to work weekends anymore (for awhile, anyway) and can have some fun with Struts on my own site. BTW: I tried to convince marketing to let me stick the Powered By Struts logo on the home page but they refused. Mark -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:50 AM To: Struts Users Mailing List Subject: Re: Resin 2.1.1 and Struts Pretty much performs as required. Quite tidy. Absolutely boots as it has a very optimised JSP compiler, to the letter of a spec. Makes writing tags harder because of the level of tag object reuse, but it all pays off. Because it moves faster than tomcat it's quicker to code with, kick it over an restart in a flash. Also may have to look out for the fact it likes to compile source in the classes directory. But that speeds dev work too, as just like JSP, you can simply change the code in your source and hit reload in the browser, and it'll all recompile and stuff automagically. Most cool. Arron. On Fri, 2002-07-19 at 22:33, Galbreath, Mark wrote: I'm getting prepared to build a web app using Struts on (yet) another platform - Resin. If anyone has done this, are there any Resin-specific issues involved or is it as simple as adding struts.jar to the class path and putting struts-config in WEB-INF? Thanks...and I like the beaver (nature's engineer) as the cover for Chuck's book, Mark -- 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: Resin 2.1.1 and Struts
Thanks, Jason. I subscribed to the user group 3 days ago and have bookmarked its archive. I wanted some general feedback from this forum before I got into specifics with the Resin group. Mark -Original Message- From: Rosenblum, Jason [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:58 AM I've been developing with Resin 2.1.1 and Struts and have found no Resin-specific issues that you need to be aware of. Try searching the Caucho newsgroup on their site for more info. ~Jason -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:33 AM I'm getting prepared to build a web app using Struts on (yet) another platform - Resin. If anyone has done this, are there any Resin-specific issues involved or is it as simple as adding struts.jar to the class path and putting struts-config in WEB-INF? Thanks...and I like the beaver (nature's engineer) as the cover for Chuck's book, Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
dynabeans, indexed text input fields
Hi All- I'm using Struts 1.0.2 and would like to know how I could utilize the DynaClass/DynaBean combination to handle the following situation: My application displays several editable tables whose underlying data might look like: unique_id description cost discount - 1 red widget 1.50 25% 2 blue widget1.60 20% 3 green widget 1.00 50% And the HTML would look like: input type=hidden name=unique_id1 value=1input type=text name=description1 size=50 value=red widget input type=hidden name=unique_id2 value=2input type=text name=description2 size=50 value=blue widget input type=hidden name=unique_id3 value=3input type=text name=description3 size=50 value=green widget (I've purposely left out the inputs for the cost and discount because you probably get the picture now) How would I use dynabean/dynaclass to transport this data to and from my html form and struts action? I've played with the dynabean/dynaclass a bit and it seems like the right direction to go. What I don't understand is how it would parse the input type's name (unique_id1, unique_id2, etc) to the name of a property in its list. Is this something that BeanUtils does? If so, I'm not entirely sure how BeanUtils does it and how that integrates within the existing Struts services. Could someone present an example based on the scenario I described above? Thanks, Jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]