Re: Struts 1.2 using formbeans
hmm, I assume the input fields have the same name as the relevant form properties. Case is important. Perhaps you need an input parameter in your action definition. input=inputform.jsp or something along those lines. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to different JSPs
On 8/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, action path=/secure/dataChecks name=emptyForm type=org.springframework.web.struts.DelegatingActionProxy input=/secure/dataChecks.jsp / So here it is only possible to return to the given input JSP dataChecks.jsp. How can I return to the calling JSP without defining one action tag for every single JSP? If you don't close your actionmapping right away you can put forward tags in which you can define diffrent places to go. action ... forward.../ /action In your action class you can look for request params to decde which way to go. http://struts.apache.org/1.3.8/userGuide/building_controller.html#config for more info. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How exactly It happens !!!!!!!
On 8/13/07, Prashant Baviskar [EMAIL PROTECTED] wrote: How validator plug-in is read from deployment descriptor. How validation is performed Question indicated with arrow are more important. As I want to explicitly call validator framework of struts (Without using struts framework web/app server). I want to know the classes in struts framework which are responsible for this http://commons.apache.org/validator/ Struts validation uses apache commons validation. If all you want is the validation techniques you want the apache commons validation. The code called by the struts validator is the code of apache commons validator. If you don't want the struts framework or any kind of web/app server, then why would you care about how struts does anything. If you need to validate a value apache commons wil help you. http://commons.apache.org/validator/ I get the feeling you want to define an xml file with validation rules and plug this into an app. Apache commons validator is what you want to use. It has everything you need. What is it about struts that you want that isn't covered by apache commons validator? http://commons.apache.org/validator/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use of Struts Validation outside struts framework
On 8/13/07, Prashant Baviskar [EMAIL PROTECTED] wrote: struts application. I want to make use of above files (validation.xml, validator-rules.xml, other validation files) for validating same fields using Struts Validation framework How can I use these files for validation. hmm, well, Struts validation uses apache commons validation. It shouldn't be a big step to go from the on to the other, but I haven't actually ever looked into it. mvg, Jasper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Url Validator
/** * This expression derived/taken from the BNF for URI (RFC2396). */ private static final String URL_PATTERN = /^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/; the above regexp is what the validator seems to use to validate urls. For more information download the source from the apache commons project. btw, I am not so good at reading regexp to tell what the answer to your question is ot if this even answers your question. good luck ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Url Validator
well, I'm pretty sure after checking the rfc's (1738 section3.4 and 3.1, 1034 section 3.5 adn 1123 section 2.1) that you are building vaild url's under the http scheme. So either the validator is doing something wrong or you are. Mind a URL is deffined as: scheme:scheme-specific-part so it really matters which scheme you are validating. Assuming the validator is correct perhaps you need to specify what scheme you are using. Assuming you're code is correctwell check the source of the validator to see what it's doing wrong. Then steal the code (can you steal oss?), rewrite it and send it back to the creators with a pompous message about l33t you are compared to them and how sucky they are and how they are such poor hack0rs that they will never be able to find you... uhm, come to think of it that last part might not be such a good idea. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Nested tag and JavaScript
On 8/3/07, semaj.najraham [EMAIL PROTECTED] wrote: Guys.. any ideas?? Hi, I have never used this so I don't really know what I 'm talking about, but can't you use the onclick attribute of the nested tag to give it a javascript to execute? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: taglib documentation
On 7/31/07, Musachy Barroso [EMAIL PROTECTED] wrote: yeah I know. I have been fixing them on code as I find them, if you guys report them here I will take care of them http://struts.apache.org/1.3.8/struts-taglib/tagreference.htm Just about all descriptions on this page are riddled with unmarkedup tags. ;) mvg, Jasper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S1] access values of a Map
On 8/1/07, Alexander Jede [EMAIL PROTECTED] wrote: Hallo, me bean has a Map attribute. Now I want to get access to the values of the Map. But I do not want iterate throw the entire Map. In Java I would write something like: map.get(key) What is the best way to do this in my JSP with struts 1.3.8 ? I believe you can access indexed properties with bean:write through the property attribute. bean:write name=yourbeanhere property=yourindexedpropert[0]/ I believe this because the struts documentation tells me so. ;) Obviously you don't want [0] but something that lets you select whatever index you want at the time. I'll leave that as an exercise for the reader. mvg, Jasper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help in using regex in Validation.xml
On 8/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, This question can be termed as an OT as it is related to regex. I have a validation criteria which says: a number cannot start with 000 which is 9 digits in length. Can somebody help me in writing a regular expression for this? What exactly are the criteria? If its only a nine digit number that cannot start with 000 then I would look for a number which does start with 000 000\d(6) if it matches you know it's wrong. If the number of digits are variable, or you want to catch 00, 100 011, then it gets a little more difficult. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S1] access values of a Map
On 8/1/07, Alexander Jede [EMAIL PROTECTED] wrote: hmm ok I found it in the package description of bean. My problem was, I searched this information in the doc of the taglib (not javadoc). Does this work with other tags then bean:write / like logic:iterate / ? In general when using tags I would avoid the javadoc and go for the taglib doc (actually always look at the taglib reference, one stop shop for all you tag needs ;). I believe it also works for other tags, but don't quote me on thatunless it works. mvg, Jasper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
taglib documentation
Hi, I'm having a slight problem with the taglib documentation. The descriptions display the markup tags instead of doing them. This makes it really annoying to read. .I get this in firefox and IE. I was wondering if I was the onyl one? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Popup from struts
On 7/26/07, Carlos González López [EMAIL PROTECTED] wrote: Hi, I need to open a popup from struts-conf.xml. this is possible? I am going to assume struts 1.x I have been looking into how to manage popups in struts and the conclusion is really that you have to call it from javascript. I had been hoping for a neater way of handling it but oh well. As to calling it from struts-config.xml. Why would you want to? if its the entry into your app, well I don't think you want to popup. Otherwise just do a js that opens the aciton in a new window. Oh, in general popups are discouraged for webapps. I don't actually disagree with that, but for intranet apps, or more to the point trusted apps I think they are just fine. mvg, Jasper - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]