Re: Validator and At Least 1 Checkbox Checked

2006-09-19 Thread Paul Benedict
I've always wanted this feature myself. However, no such validation exists.. but if you write it, you could share it back to the Struts community. So you'll have to add this validation yourself by override the validate() method of your form, checking the property's length; if it is not null t

Validator and At Least 1 Checkbox Checked

2006-09-19 Thread Mississippi John Hurt
Can struts validator validate that at least one checkbox in a set is checked? I guess somehow it has to validate that a String[] array property of the form has size of 1 or more, but I dont know how.

Re: Submit Button Tag passing an expression to onclik attribute

2006-09-19 Thread Paul Benedict
myval must be a server side Java variable. Do you have this value declared and with a value? Check by printing it out onto the JSP normally, it should be there; if it is not, you have another problem. chamal desilva wrote: Hi, Can we pass an expression to onclick handler of struts html:submit

Re: problems with request.getRequestURL() after migrating to Tomcat 5.5

2006-09-19 Thread Chris Pratt
In Resin (and I think the spec), request.getRequestURL() should give you back the URL (minus the query arguments) that was used. You can build the query String using request.getParameterNames() & getParameterValues() and rebuild it yourself, but since HttpUtils.getRequestURL has been deprecated,

Submit Button Tag passing an expression to onclik attribute

2006-09-19 Thread chamal desilva
Hi, Can we pass an expression to onclick handler of struts html:submit tag. We tried this. But the HTML is generated as onclick="hilightButton2('<%=myval%>');" The value of myval variable is not printed in html. Plz help us to solve this problem. Best Regards, Chamal. __

[ANNOUNCE] JSControlsTags add AJAX SLIDER and TREEVIEW

2006-09-19 Thread Angelo zerr
Hello, I mail you to announce that JSControlsTags project include new controls : SLIDER (with or without AJAX) and TREEVIEW (with or without AJAX) control. JSControlsTags is a taglib to easily manage javascript controls on client side (without AJAX) or on server side (with AJAX) in your JSP. It

Re: form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
sorry, it was a typo. I have a rigt method 'calc' itself. From: "Wendy Smoak" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: form-property value set in dispatch action is lost Date: Tue, 19 Sep 2006 13:23:36 -0700 On 9/19/06, fea jabi <

Re: converting a struts bean call to EL/JSTL

2006-09-19 Thread Laurie Harper
Bob wrote: I have a map of ui controls passed to a JSP. Each entry in the map contains a "label", "name", "value". The key used in the map is the "name". I iterate through as follows:

Re: form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
sorry, it was a typo. I have a rigt method 'calc' itself. From: "Wendy Smoak" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: form-property value set in dispatch action is lost Date: Tue, 19 Sep 2006 13:23:36 -0700 On 9/19/06, fea jabi <

Re: form-property value set in dispatch action is lost

2006-09-19 Thread Wendy Smoak
On 9/19/06, fea jabi <[EMAIL PROTECTED]> wrote: public class DispatchAction extends LookupDispatchAction { That's confusing... Struts already has a DispatchAction. protected Map getKeyMethodMap() { Map map = new HashMap(); map.put("btn.calc",

RE: form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
thanks for you reply. may I know why this has to be done. The form-bean is in session. I thought it can be set from any action. is it not so? From: "Givler, Eric" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: RE: form-property value set

RE: form-property value set in dispatch action is lost

2006-09-19 Thread Givler, Eric
Do you have to issue code after the call here: frm.set("typeName", "x"); like: placeFormBackInScope( mapping, frm, request ); which would place the updated form back in scope: public void placeFormInScope(ActionMapping mapping, ActionForm form,

RE: form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
I do have the dynamic="true" set too. .. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: form-property value set in dispatch action is lost Date: Tue, 19 Sep 2006 15:43:37 -0400 In struts config have a Dynavalidator

form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
In struts config have a Dynavalidator form-bean .. have prepare(Action) and dispath(LookupDispatchAction) actions for the jsp in the config which are session scoped. redirect="false"/> redirect="false"/> In the jsp have a submit button whi

Re: URLs on Wiki broken for ActionMessages page

2006-09-19 Thread Michael Jouravlev
On 9/19/06, Givler, Eric <[EMAIL PROTECTED]> wrote: On this page: http://wiki.apache.org/struts/ActionErrorsAndActionMessages Any of the URLs at the bottom do not appear to work. Thanks. Fixed. - To unsubscribe, e-mail: [EMAIL

converting a struts bean call to EL/JSTL

2006-09-19 Thread Bob
I have a map of ui controls passed to a JSP. Each entry in the map contains a "label", "name", "value". The key used in the map is the "name". I iterate through as follows: This

Re: exception when it reach tiles:insert tag ????

2006-09-19 Thread Monkeyden
Was it such a leap to consider posting the tile-def? Does '/coeuslite/mit/irb/common/cwIRBHeader.jsp' exist? Assuming you have a tag named "header" in your main tile-def, it appears as though you're trying to pass in the name of a file that does not exist or is otherwise inaccessible. On 9/19/

URLs on Wiki broken for ActionMessages page

2006-09-19 Thread Givler, Eric
On this page: http://wiki.apache.org/struts/ActionErrorsAndActionMessages Any of the URLs at the bottom do not appear to work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

exception when it reach tiles:insert tag ????

2006-09-19 Thread A. Lotfi
Hi, I am trying to run my web application , It displays the page in cwInformationLayout.jsp until and stop. cwInformationLayout.jsp : Here is the error : javax.servlet.jsp.JspException: ServletException in '/coeuslite/mit/utils/layouts

problems with request.getRequestURL() after migrating to Tomcat 5.5

2006-09-19 Thread Otmar Manuela
Hi, I know this was asked a while ago in this mailing list, but I couldn't find the answer. My problem is that I want a generic way to get the client URL in my action class. In Tomcat 5.0, I was able to do so by calling request.getRequestURL(), but apparently I was just lucky, because it wa

RE: how can i use two properties files?

2006-09-19 Thread Balwinder Kumar
Hi Configure struts config like this in jsp you can use image message resources as and default message resources can be used as I hope this would solve your problem. Bals -Original Message- From: SrinivasaReddy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 5:51 PM

Re: Struts 1.0 redirect problem!

2006-09-19 Thread Swaminathan Subramanian
That's the whole point. I do not understand why it is looking for this mapping when it has been set to be GroupRulesManager/returnToPrev. By the way, I tried changing the mapping to Global/returnToPrev and still got the same error. Using Firefox, I get redirected to google's search page after makin

RE: form-bean is not getting updated with the values entered

2006-09-19 Thread Givler, Eric
It appears that the value for your paymentPropertyName is not pointing to the INDIVIDUAL property, but to the ArrayList as a whole. Try setting it to a property of the object that is in the array list. ie. payments[#].amount Be sure your form has a getPayments method as well. -Original M

RE: Two drop downs, and I need that the contents of the second dependent on the value selected in the first!!!

2006-09-19 Thread Givler, Eric
You may want to use an struts mailing list archive search, and look at this thread: how to handle requests submitted using java script with a LookupDispatchAction subcalss http://article.gmane.org/gmane.comp.jakarta.struts.user/124351/match=lookupdispatchaction+subcalss+javascript Or a similar

RE: Two drop downs, and I need that the contents of the second dependent on the value selected in the first!!!

2006-09-19 Thread Asthana, Rahul
Could you set a hidden parameter before submitting- And write code in the function setDependentList() of the LookupDispatchAction Here i am assuming document.forms[0].operation is the name of the property the DispatchAction expects. -Original Message- From: Domingo A. Rodriguez

form-bean is not getting updated with the values entered

2006-09-19 Thread fea jabi
Have an ArrayList in the form-bean This contains the list of row objects required for the below table. using displaytag to display the the list of elements. requestURI="PrepareAction.do" class="table1"> .. ... I tried using

Re: struts - JDBC - EJB

2006-09-19 Thread Ted Husted
On 9/19/06, Ted Husted <[EMAIL PROTECTED]> wrote: The SASH-Safari site demonstrates using a Struts/Apache/Spring/Hibernate stack. * http://ibatis.apache.org/javadownloads.html Oops, the clipboard stuck: * http://swik.net/SASH-Safari -T. ---

Re: struts - JDBC - EJB

2006-09-19 Thread Ted Husted
Some teams do try to specialize, but the underlying purpose is "separation of concerns". As the website says: "Web applications based on JavaServer Pages sometimes commingle database code, page design code, and control flow code. In practice, we find that unless these concerns are separated, lar

Re: Two drop downs, and I need that the contents of the second dependent on the value selected in the first!!!

2006-09-19 Thread Domingo A. Rodriguez S.
javascript remoting or ajax should do fine there. google for it. --- yamilka vallejo ramos <[EMAIL PROTECTED]> escribió: > Hii everyone, > I have two drop downs in my jsp page, and I need to the contents of > the > second dependent on the value selected in the first. > To handle this, I need

Re: how can i use two properties files?

2006-09-19 Thread SrinivasaReddy
Ex code here null="false"/> null="false" key="esell.image"/> parameter="comresources.ErrorMessageResources" null="false" key="esell.error" /> parameter="comresources.ButtonMessageResources" null="false" key="esell.button" /> parameter="com.

how can i use two properties files?

2006-09-19 Thread Mallik
Hi Friends my application in big and it moduled into 4 i wnat to use one properties file for each module let me know how to configure in struts-config.xml and how can i specify which file to use thanks inadvance ur's Mallik -- View this message in context: http://www.nabble.com/how-can-i-use

RE: Caching

2006-09-19 Thread Krishna, Hari
use OScache With Best Regards, I.Hari krishna. Franklin Templeton Investments +91- 44 - 24407000 Extn:17123 -- -Original Message- From: Puneet Lakhina [mailto:[EMAIL P

Caching

2006-09-19 Thread Puneet Lakhina
Hi, I have an application whereby i first load all the data from the database(using joins etc. about 400 rows an 20 columns). Then the user is given an option to filter this data based on some parameters. Now instead of hitting the database again, wouldn't it be better if I could somehow reuse the

struts - JDBC - EJB

2006-09-19 Thread Tom Jerry
what is the actual purpose of struts ? is it that one person will be devoted to developing beans while the other will be involved in designing ? Would you please give me a sample appln that uses EJB with Oracle (SQL Plus) database.. a small one.. I dont know how to start off with it.

Re: validation - form set

2006-09-19 Thread Tom Jerry
Thanks :) Got it done :) On 9/19/06, Juanjo Cuadrado <[EMAIL PROTECTED]> wrote: Hi, the problem is the sequence of tags you have to put before Sorry for my English. 2006/9/19, Tom Jerry <[EMAIL PROTECTED]>: > > why do I get this error ? > > SEVERE: Parse Error at line 87 colum

Re: Two drop downs, and I need that the contents of the second dependent on the value selected in the first!!!

2006-09-19 Thread Juanjo Cuadrado
Hi, I don't know if I have you understands, but I think that this mail of Eric Givler responds to your question You'd need to rebuild the second list on the posting of the form, i.e. 1. get value selected from first list 2. invoke method to refresh dependent list based on user prm from fis

Re: validation - form set

2006-09-19 Thread Juanjo Cuadrado
Hi, the problem is the sequence of tags you have to put before Sorry for my English. 2006/9/19, Tom Jerry <[EMAIL PROTECTED]>: why do I get this error ? SEVERE: Parse Error at line 87 column 19: The content of element type "form-validation" must match "(global*,formset*)". org.x