Form Question

2003-10-20 Thread Shishir K. Singh
Hello, I am new to struts and kind of working on my first struts project. One of my requirement is that based on a user input on a user form, the same form is displayed but with additional/different input field. These input fields are kind of conditional fields. Based on the value of the

Reset() and validate() using DynaActionForm

2003-10-21 Thread Shishir K. Singh
Hello, I am trying to use DynaActionForm. However, I would like to have the reset() and validate() functionality using DynaActionForm. Any pointers as to how to get around this without going back to ActionForm. TIA Shishir -

Dynamic creation of the input types on the form

2003-10-21 Thread Shishir K. Singh
Hello, Is there a way that I can create a form dynamically based on some XML configurable file. The configurable file will say what kind of input type it is. Eg text, checkbox etc and accordingly, I create the form input types and then display the fields. Eg My JSP looks like this right

Servlet call from JSP/HTML - Need help

2003-10-22 Thread Shishir K. Singh
Hi, Is there anyway that I can call a servlet from a Select Input type. The idea is that the moment user clicks on the drop down of an html:select type, the option is populate by data queried from database ( this logic resides in a servlet). I think that I may have to use the onClick

RE: Servlet call from JSP/HTML - Need help

2003-10-22 Thread Shishir K. Singh
.ibm.com/developerworks/library/wa-resc/ -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 AIM:jmitchtx -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 10:18 PM To: Struts Users

RE: Servlet call from JSP/HTML - Need help

2003-10-22 Thread Shishir K. Singh
some really complex db lookup based on other fields in the same form that was too dynamic to effectively preload results for. -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 October 2003 12:35 To: Struts Users Mailing List Subject: RE: Servlet call

RE: Servlet call from JSP/HTML - Need help

2003-10-23 Thread Shishir K. Singh
complex db lookup based on other fields in the same form that was too dynamic to effectively preload results for. -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: Thursday, 23 October 2003 12:35 To: Struts Users Mailing List Subject: RE: Servlet call from JSP

Html:image

2003-11-09 Thread Shishir K. Singh
Hello, How can I use runtime variable with the property attribute of html:image tag. Eg, My intent is to do the following. html:image property=c:out value='${}' / page=/a/b.gif / However, the value for property is not substituted. Am I missing something here ? TIA Shishir

Html:image

2003-11-10 Thread Shishir K. Singh
Hi, I am reposting this question. How can I use runtime variable with the property attribute of html:image tag. Eg, My intent is : html:image property=c:out value='${}' / page=/a/b.gif / However, the value for property is not substituted. I get the property as c:out

Form submission through java script

2003-11-10 Thread Shishir K. Singh
Hi, I have a form with one drop down menu list and two buttons (continue and previous ). The two buttons are hooked up to the LookupDispatchAction where I process the code as required by the action of the button. Everything works fine if I use the buttons. My requirement is that when I click

RE: Form submission through java script

2003-11-10 Thread Shishir K. Singh
call document.form.submit() - the JavaScript will automatically know what to do and where to submit to. Shishir K. Singh wrote: Hi, I have a form with one drop down menu list and two buttons (continue and previous ). The two buttons are hooked up to the LookupDispatchAction where I process

RE: Form submission through java script

2003-11-10 Thread Shishir K. Singh
. document.form.action='continue'; -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: lundi 10 novembre 2003 15:33 To: Struts Users Mailing List Subject: Form submission through java script Hi, I have a form with one drop down menu list and two buttons (continue

RE: Form submission through java script

2003-11-10 Thread Shishir K. Singh
a System.out on action, you will find it's null right now. You need to pass a valid action to the your dispatch Action so that it knows which handler to call. document.form.action='continue'; -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: lundi 10 novembre

RE: Form submission through java script

2003-11-10 Thread Shishir K. Singh
. --- Shishir K. Singh [EMAIL PROTECTED] wrote: I am getting the same error. The name of the button that I want to emulate is action and the value is Continue. Where/how do I set this parameter in the Java Script so that the LookupDispatchAction is able to get the value

Html:input help

2003-12-22 Thread Shishir K. Singh
Hi, I have two html:input (type text ) fields on my form and I am converting them to upper case using inline css style. I have included the rendered html page snippet. If you see, the PartNo retains the value uppercase value (TEST1). However, the Part Description is not correct even though the

RE: retrieving values from application.properties file

2003-12-23 Thread Shishir K. Singh
Use ResourceBundle resource = ResourceBundle.getBundle(resources.application); Else : If you are in Action/Lookup Dispatch Action class MessageResources resource = getResources(request); -Original Message- From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23,

RE: Nested Problem.

2003-12-23 Thread Shishir K. Singh
Why don't you design your bean like this: If it's a one time set of the collection,then public class NestedParentBean extends ActionFormBase{ private String parentName = null; private String parentId = null; private java.util.ArrayList childBeanCollection = null;

RE: Html:input help

2003-12-23 Thread Shishir K. Singh
, December 23, 2003 9:02 AM To: Shishir K. Singh; Struts Users Mailing List Subject: RE: Html:input help IMO, you're probably better off doing this kind of data transformation inside of an Action. Would it be at all possible to do this within your application? -Original Message- From: Shishir

RE: Html:input help

2003-12-23 Thread Shishir K. Singh
. -Original Message- From: Lobello Jeffrey [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 12:57 PM To: Shishir K. Singh; Pitchko, John SCAN--; Struts Users Mailing List Subject: RE: Html:input help Generally, CSS (such as text-transform) will alter the visual display/rendering of HTML

RE: dynamically add action ?

2004-01-07 Thread Shishir K. Singh
Isn't there a way to reinitialize the ActionServlet (or any Subclass that you may be using) at runtime. I think there is something to this effect in the Orielly Struts book. If I remember correctly , the book list two ways of doing it. Can't recollect it right now :(. -Original Message-

RE: Tiles with XML and XSL

2004-01-07 Thread Shishir K. Singh
Would you be looking for something like this http://www.openroad.ca/opencode/ Looks intriguing. I am in the process of evaluating this. Would appreciate any feedbacks/comments from anyone using this extension. Shishir -Original Message- From: Craig R. McClanahan [mailto:[EMAIL

RE: dynamically add action ?

2004-01-07 Thread Shishir K. Singh
it then separating the apps makes sense. If something goes wrong, you can manage it. Otherwise if the app bails it bails and its game over. On 7 Jan 2004, at 14:28, Shishir K. Singh wrote: Isn't there a way to reinitialize the ActionServlet (or any Subclass that you may be using) at runtime. I

RE: array-input form ?!

2004-01-07 Thread Shishir K. Singh
Do you want to store all the rows in each bean as array of Bean. In other words, if you have two rows, then have an bean Array of size 2. The bean will be off course having the first name last name and data... If so , this is certainly possible. Try looking at the DynaActionForm. Define the

RE: array-input form ?!

2004-01-07 Thread Shishir K. Singh
07, 2004 9:28 AM To: Struts Users Mailing List Subject: AW: array-input form ?! ok, yes this is what i want... but don?t use JSP ...(use velocity-framework) but thanks so i now know where i have to search (DynaActionForm) many thanks , Andi -Ursprungliche Nachricht- Von: Shishir K

RE: Resources from ActionForm

2004-01-07 Thread Shishir K. Singh
I think the messageresources is stored in the the application context. Don't know if you can access the application context in the form. One way would be to subclass RequestProcessor, put a static function to get the resource and use that. I would have been happier if an extra function could

RE: Resources from ActionForm

2004-01-07 Thread Shishir K. Singh
Ooops..I am sorry. I think you can do MessageResources resource = (MessageResources) servlet.getServletContext().getAttribute(PORTAL_RESOURCES); servlet is a protected field in ActionForm and hence accesible. Shishir -Original Message- From: Shishir K. Singh Sent: Wednesday

RE: Upload file

2004-01-07 Thread Shishir K. Singh
I think there are examples related to Upload in the struts src distribution. Download the src and go through that. That should get you started. Shishir -Original Message- From: Honza Spurný [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 12:41 PM To: [EMAIL PROTECTED]

RE: How to reset properties of a DynaValidatorForm

2004-01-07 Thread Shishir K. Singh
You may subclass DynaValidatorForm and override the reset function. As far as I am aware, the reset is handy for boolean values like checkboxes wherein you need to reset them back to false or true . Shishir -Original Message- From: Sheldon Hearn [mailto:[EMAIL PROTECTED] Sent:

RE: Best Practice for Reuse of JSPs for Display and Input?

2004-01-12 Thread Shishir K. Singh
I assume that you have a bean that stores all the relevant data and you read the bean to render the jsp. If so, I generally a flag attribute (display only) to the bean that I can set up in my action. In the jsp, if the flag is on, I just render it as a simple text else Would that work for

RE: Displaying same page after submiting a form

2004-01-12 Thread Shishir K. Singh
I think you need to add the forward to your action definition action path=/saveData type=com.micromuse.precision.disco.action.SaveAction name=saveDataForm parameter=/pages/disco/config_toolbar.jsp scope=session forwardname=success path=your jsp/

RE: Displaying same page after submiting a form

2004-01-12 Thread Shishir K. Singh
-Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: 12 January 2004 16:31 To: Struts Users Mailing List Subject: RE: Displaying same page after submiting a form I think you need to add the forward to your action definition action path=/saveData type

RE: Mandatory use of form rather than request object

2004-01-12 Thread Shishir K. Singh
To add onto that Using resuest.getA in the action does not make any sense since struts already does that for you by populating the form from the request param after the reset method on the form is called. Form should be the only data repository for you to consider between your view and

RE: Displaying same page after submiting a form

2004-01-12 Thread Shishir K. Singh
are still valid. Or, you could try using a ForwardAction. --- Shishir K. Singh [EMAIL PROTECTED] wrote: Hmmm..strange...can you send a screen shot of how the page looks before and after the submit. -Original Message- From: Leticia Golubov [mailto:[EMAIL PROTECTED] Sent: Monday

RE: Mandatory use of form rather than request object

2004-01-13 Thread Shishir K. Singh
Aaah...but these are not related to form actions and are more like query strings. I guess in this case, request.getParameter would still be the best bet, rather than trying to go for an overkill with the hidden id field etc etc ...just my thought. If you still don't want to request object,

RE: PLEASE HELP!!!!

2004-01-19 Thread Shishir K. Singh
I think you are missing this : !-- = Resource Settings -- message-resources parameter=resources.application null=false/ !-- -- Where resources is the directory within WEB-INF and

RE: [ANNOUNCE] Providers: Select solutions

2004-01-19 Thread Shishir K. Singh
Hi, I am getting XML parser error when running it on Tomcat 4.1.27 and jdk1.4.0. Can you tell what needs to be done ?? --- SEVERE: Parse Error at line 44 column 11: The content of element type web-app must match

RE: PLEASE HELP!!!!

2004-01-19 Thread Shishir K. Singh
Can you pls post your full web.xml and struts-config.xml (I seem to have deleted your earlier posting). Also, can you list your directory structure with the list of files in them. Shishir -Original Message- From: Anita Raeppel [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004

RE: Logic:iterate and html:text problem

2004-01-19 Thread Shishir K. Singh
Well, a) I have not used logic:iterate for these purpose, hence won't be able to help you out much there. I use the JSTL tags and try to keep away from the struts tag as much as possible. b) I would use ArrayList instead of Vectors. What I would do if I were you would be something like this:

RE: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Shishir K. Singh
: Select solutions Hi, correct the web.xml The error-message is quite clear... regards Alexander -Original Message- From: Shishir K. Singh [mailto:[EMAIL PROTECTED] Sent: Dienstag, 20. Januar 2004 02:43 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [ANNOUNCE] Providers: Select

RE: Designing for various Actions on JSP

2004-01-21 Thread Shishir K. Singh
You may want to look at LookUpDispatchAction or ImageButtonBeansManager (if using images). Shishir -Original Message- From: Parag Marathe [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 10:57 AM To: Struts Users Mailing List Subject: Designing for various Actions on JSP

RE: my.properties under war

2004-01-23 Thread Shishir K. Singh
I generally create resources directory under /WEB-INF/classes And qualify the properties file as resources.myfile (no extension). This way all of the properties file live under one roof -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 2:07

Directory Upload

2004-02-19 Thread Shishir K. Singh
Hello, Is there a way to upload a directory (recursive if flagged), using fileupload. Are there another ways of doing it ? Thanks Shishir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL