Re: Web Application Security -- Help needed

2006-09-19 Thread Raja Nagendra Kumar
Hi, You need to define a secruity constaint similar to the following in web application. Once this done, container takes care of the two issues transperantly. Regards, Raja Nagendra Kumar, C.T.O, www.tejasoft.com session-config session-timeout10/session-timeout

validation - form set

2006-09-19 Thread Tom Jerry
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.xml.sax.SAXParseException: The content of element type form-validation must match (global*,formset*). form-validation formset form

Re: validation - form set

2006-09-19 Thread Raja Nagendra Kumar
As per the dtd, global attributes should come first and formset later.. Move the global tags before formset and this should fix it. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com - Original Message - From: Tom Jerry [EMAIL PROTECTED] To: Struts Users Mailing List

Re: validation - form set

2006-09-19 Thread Juanjo Cuadrado
Hi, the problem is the sequence of tags you have to put global before fromset 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

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

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 global before fromset Sorry for my English. 2006/9/19, Tom Jerry [EMAIL PROTECTED]: why do I get this error ? SEVERE: Parse Error at line 87

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.

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

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

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:

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,

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.

form-bean is not getting updated with the values entered

2006-09-19 Thread fea jabi
Have an ArrayList in the form-bean form-property name=payments type=java.util.ArrayList/ This contains the list of row objects required for the below table. using displaytag to display the the list of elements. display:table name=sessionScope.Form1.payments id=row

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- html:select property=orgId onchange='document.forms[0].operation='setDependentList'; document.forms[0].submit()' html:options collection=orgList property=value labelProperty=longName/ /html:select And write code in the function

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: 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

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

RE: how can i use two properties files?

2006-09-19 Thread Balwinder Kumar
Hi Configure struts config like this message-resources parameter=com.resources.MessageResources null=false/ message-resources parameter=comresources.ImageResources null=false key=image/ in jsp you can use image message resources as bean:message bundle='image'

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

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 tiles:insert attribute=header / and stop. cwInformationLayout.jsp : body text=#00 link=#023264 alink=#023264 vlink=#023264 style='#D1E5FF' table border=0 height=100%

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]

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

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: TABLE c:forEach var=entry items=${requestScope[param.forName].uiControls} TR TD

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

form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
In struts config have a Dynavalidator form-bean form-bean name=Form1 type= DynaValidatorForm form-property name=typeName type=java.lang.String/ .. /form-bean have prepare(Action) and dispath(LookupDispatchAction) actions for the jsp in the config which are session scoped. action

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

2006-09-19 Thread fea jabi
I do have the dynamic=true set too. form-bean name=Form1 type= DynaValidatorForm dynamic=true form-property name=typeName type=java.lang.String/ .. /form-bean From: fea jabi [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: user@struts.apache.org

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
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 user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org

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
sorry, it was a typo. I have a rigt method 'calc' itself. From: Wendy Smoak [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: form-property value set in dispatch action is lost Date: Tue, 19 Sep 2006

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: TABLE c:forEach var=entry items=${requestScope[param.forName].uiControls} TR TD

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 user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: form-property value set in dispatch action is lost Date: Tue, 19 Sep 2006

[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

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. html:submit styleClass=headerclk property=submit value=%=String.valueOf(ArrEmpList.get(i))% styleId='%=String.valueOf(ArrEmpList.get(i))%' onclick=hilightButton2('%=myval%'); /html:submit We tried this. But the HTML is

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,

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

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: 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