Re: calling method of a bean from JSP

2006-09-14 Thread Lixin Chu
What are you trying to achieve? Maybe you're trying to put logic in your JSPs that more properly belongs in an action. thanks. what i am trying to do is to get the value of a field. Say I get a list of items: class item { Set values; ... } The item has a set of Values: class Value { Attribu

Struts with dynamically generated html:Text

2006-09-14 Thread Aftab Vhora
Hi, In my page I am generating text boxes dynamically(i.e. clicking on a button "Add more" will add a text box in my page.) Now I want to implement my ActionForm to capture the data entered in those dynamically generated text boxes. Is it possible in struts ? If yes, please provide me the so

required if validation doesn'nt work

2006-09-14 Thread Heidy Gutiérrez Guzmán
I'm using " requiredif " validation from Validator Framework, but does'nt work. I have de rule in the validator-rules.xml and the method validateRequiredIf exists in org.apache.struts.validator.FieldChecks in the struts jar. I have read that requiredif is deprecated in struts 1.2, but that does'

Re: struts issue...

2006-09-14 Thread Michael Jouravlev
Disabled input elements of an HTML form are not submitted. Use HTTP sniffer to see what is submitted and what not. On 9/14/06, Dean, Michael <[EMAIL PROTECTED]> wrote: Interesting problem... I have a submit button which includes a property = "method" with value="Save"...the enclosing form is

struts issue...

2006-09-14 Thread Dean, Michael
Interesting problem... I have a submit button which includes a property = "method" with value="Save"...the enclosing form is submitted to a Struts DispatchAction sub-class which is configured to rely on the "method" parameter for delegation. In order to prevent a double-submit, in my onSu

Re: empty fields of an input form get default value after submitting

2006-09-14 Thread Scott Van Wart
Laurie Harper wrote: Sandra Reichert wrote: Hi, I have an input form in jsp. After submitting empty fields (user entered nothing in input field) are set by default with specific values depending on their data typ. So an empty Integer field is set to 0, an String field to "" an so on. But i wan

Re: Using ValidatorFramework for different validation scenarios of same functioanlity/form.

2006-09-14 Thread Laurie Harper
Anil Kumar T wrote: Hi Group, I need a help on general issue which every body would have solved. Generally we'll have four operations like Add, Update, Query and Remove. I believe we can use DispatchAction to handle all these operation in a single action. So for the validation part we are plann

dependent drop down lists

2006-09-14 Thread Joe Yuen
I currently having trouble implementing dependent drop down lists. Do anyone know where I might see an example of how to implement such a thing? Thanks, -Joe

Re: Hpw to pass multiple parameters in

2006-09-14 Thread Laurie Harper
Alternatively, you can stick with html:link but supply your parameters as a map: http://struts.apache.org/1.2.9/userGuide/struts-html.html#link L. Andrè Kapp (AJ) wrote: You can use this type of link href=' // put your app name here to keep context

Re: Validation framework for Dynamically added HTML elements?

2006-09-14 Thread Laurie Harper
You can achieve what you want more simply; no need to start using Ajax just for expanding an input form :-) What you need to do is to generate additional rows that use the correct naming conventions for the parameter names. Start by getting the form working for some fixed number of input rows,

Re: empty fields of an input form get default value after submitting

2006-09-14 Thread Laurie Harper
Sandra Reichert wrote: Hi, I have an input form in jsp. After submitting empty fields (user entered nothing in input field) are set by default with specific values depending on their data typ. So an empty Integer field is set to 0, an String field to "" an so on. But i want to have a null value

Re: calling method of a bean from JSP

2006-09-14 Thread Laurie Harper
Lixin Chu wrote: I thought this is for getting the value of a property ? and how to pass a Yes. parameter to the method ? I think I have tried that but does not work. You can't invoke arbitrary bean methods with EL; it's designed for accessing properties, not calling arbitrary methods.

Re: validate an html:multibox and show messages in the own page

2006-09-14 Thread Laurie Harper
Heidy Gutiérrez Guzmán wrote: Hi I'm using the struts tags. I need validate the total of "checked" that have been selected. I can do that with java script code, but i need put a var in the session scope with the purpose of show the error message later, and that, i can not do that with the java

Configuring Struts Validator with Multiple Modules

2006-09-14 Thread Scott Smith
I have a struts 1.2.9 app that has several modules (assume they are named "a" and "b"). In my struts-config-a.xml file, I have a form defined as followed: My validation.xml file looks like:

Re: DownloadAction and concurrent threads

2006-09-14 Thread David Durham
David Durham wrote: David Grundberg wrote: Actually, Oliver Meyn wrote the following question. My apologies to David Grundberg for misquoting. My app needs to allow downloads of relatively large files (10MB). Because Struts can/will reuse Actions for different threads, I'm worried that wh

Re: RE: [Struts 2] link not rending from iterator

2006-09-14 Thread Garner Shawn
I figured it out finally. I was using url as my bean property name when it was actually url. I must have gotten it switched around somehow. Thanks for the help. Shawn On 9/13/06, Garner Shawn <[EMAIL PROTECTED]> wrote: Also I just saw that the s:a tag doesn't support the target attribute. I w

Re: DownloadAction and concurrent threads

2006-09-14 Thread David Durham
David Grundberg wrote: My app needs to allow downloads of relatively large files (10MB). Because Struts can/will reuse Actions for different threads, I'm worried that when multiple requests attempt to download these big files that a single "BigFileDownloadAction" will block until a download is

Re: Validation framework +dropdowns

2006-09-14 Thread Christopher Goldman
On Thu, 2006-09-14 at 16:13 +0530, Vaneet Sharma wrote: > Hii Frns > > I have two drop downs in my jsp page, > > I want to validate second drop down only when the value of selected item > of first drop down is 2. > Can anybody tell me how to do this using validation framework. Check this out

RE: Problems using LookUp Dispatch Action

2006-09-14 Thread David Friedman
If your class extends LookupDispatchAction, why isn't your own class named in the stacktrace below? It looks like it is invoking a regular LookupDispatchAction. Also, you can lookup code online to find the offending line (just copy it into an editor which has line number so you can check out line

Problems using LookUp Dispatch Action

2006-09-14 Thread Heidy Gutiérrez Guzmán
Hi I'm using an action class that extends from LookUpDispatchAction. I have more similar class and everithing is ok, but now, it's trow the following exception: SEVERE: Servlet.service() for servlet action threw exception java.lang.NullPointerException at org.apache.struts.actions.Look

Re: report generation

2006-09-14 Thread Daan
try overriding the execute() method in the GenerateMagicReport class. On 9/14/06, Gomathi <[EMAIL PROTECTED]> wrote: hai, how to generate report whenever click one button. this report has no frame and no button

Re: Struts for locale

2006-09-14 Thread Manfred Wolff
See http://struts.apache.org/1.2.9/userGuide/building_view.html#i18n Struts goes mobile: http://strutsme.org Raghuveer wrote: > What precautions i need to take for my struts project to be accessed in > Canada(French language) and Other Countries(English) > > > > > > > -

Re: Struts Project + Logging

2006-09-14 Thread Manfred Wolff
Just an example: log4j.rootCategory= DEBUG, ConsoleApp, FileMyApp, FileOtherApp log4j.appender.ConsoleApp.threshold=DEBUG log4j.appender.FileApp.threshold=DEBUG #+ # Appender for my application #+ log4j.appender.FileMyApp=org.apach

Struts for locale

2006-09-14 Thread Raghuveer
What precautions i need to take for my struts project to be accessed in Canada(French language) and Other Countries(English) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts Project + Logging

2006-09-14 Thread Raghuveer
Since for struts framework commons-logging.jar is used How can I use Commons logging so that logs related to my application are sent to separate log file. How to configure my logger by log.properties realted to application alone. -

Refresh HTTP Header and Struts

2006-09-14 Thread Adam Gordon
So the controller element in the struts config XML file has an attribute called "nocache" which, if set to true, sets some caching headers on the response. I don't see it in the documentation, but is there a way to set the Refresh header without using my own controller and setting it on all th

Re: RE: [Struts 2] link not rending from iterator

2006-09-14 Thread Ted Husted
Either way, the underlying problem would be the reference to the property on downloadsList. Is there a "getUrl" method on the downloadsList object? Have you tried a href="" target="_blank">Click to Download -T. On 9/13/06, Garner Shawn <[EMAIL PROTECTED]> wrote: Also I just saw that the s:a ta

RE: Hpw to pass multiple parameters in

2006-09-14 Thread AJ
You can use this type of link href=' // put your app name here to keep context '> Andre -Original Message- From: Sheetal Gupta [mailto:[E

Hpw to pass multiple parameters in

2006-09-14 Thread Sheetal Gupta
Hi, Can anybody tell me how to pass multiple parameters in I tried the following snippet, cmd : but it don't work.. It is only giving value of "Module" and not the "DeviceType" Regards, Sheetal

Re: OT(Open pdf in a frame on a web page)

2006-09-14 Thread Martin Gainty
Good Morning Mr Singh Which tag libraries are you using? Could you display the jsp which deploys the menu? Martin -- * This email message and any files transmitted with it contain confidential information intended only for the p

RE: Validation framework for Dynamically added HTML elements?

2006-09-14 Thread Mallik
Hi friend, i want how to create array of elements please help me urs Mallik Patil, Sheetal wrote: > > U can create array and create field as per reqiuirment,but this has > limit and here problem is for "arrayindexoutofboundexception" after > limit exceeds. > Elsewise u can use ajax, put ur for

Validation framework +dropdowns

2006-09-14 Thread Vaneet Sharma
Hii Frns I have two drop downs in my jsp page, I want to validate second drop down only when the value of selected item of first drop down is 2. Can anybody tell me how to do this using validation framework. Regards Vaneet. Sharma CRISIL. Office- (91)-22-6644 4116 M- (91)-93223 39127 Dis

Re: DownloadAction and concurrent threads

2006-09-14 Thread David Grundberg
I see no reason why the DownloadAction would be programmed to synchronize against anything, especially for the whole download, that would be a real showstopper! If you don't use instance variables, and only read from a database (with a connection for each download) or a filesystem, you wouldn't