Per-Populating Form (Take 2)

2001-05-03 Thread Open Source
Hi All, I had previously posted a mail about prepopulating the form before it is presented to the user. My take on this is : 1.ActionForm will have a method called init(HttpServletRequest req). In this init method we can use any request parameters to initilize the form the very first time like

Prepopulate the Form

2001-05-02 Thread Open Source
Hi, I am wondering about the best way to Pre populate a form. The scenario is : User inputs some values in a Form X Depending on the values in Form X, I need to prepopulate the Form Y (access database thru EJBs and pre populate some fields in Form Y) I was wondering what is the best way to do t

Order of error messages

2001-03-20 Thread Open Source
Hi all, When a form is validated thru its validate() method , and the error messages are displayed using tag the messages are not in the order of form fields. This is understandable as the ActionErrors has a HashMap to contain the individual ActionError. However is it possible to ensure that or

Missing *.do (was Running Unpacked struts-example in WLS6.0)

2001-03-20 Thread Open Source
>>This should *not* be necessary. Even though the >> tag lists >>the >>action as "/saveRegistration", the generated HTML >>page should be >>submitting to "/saveRegistration.do" instead >>(assuming that you have >>included the regular mapping for the "*.do" pattern). >>Could you do a "View Sourc

Running Unpacked Struts in Weblogic 6.0 - solved.

2001-03-13 Thread Open Source
Hi all, Just wanted to share with all of you that when the unpacked struts-example is executed on Weblogic6.0 , there are some extra lines to be added to web.xml file to make it work (atleast I had to) First of all the reason for the failure in some of the jsps is that the FORM action is /saveRe

Handling multiple button actions in struts html form

2001-03-13 Thread Open Source
Hi, I have started developing some real life jsp applications with Struts now. I have a rather simple question which might have addresed in Struts , but I could not figure it out. I have two questions 1. When a html form (using struts) has 2 buttons - Submit and Cancel(. Submit will validate t

Weblogic 6.0 and Struts

2001-03-06 Thread Open Source
Hi all, Has anybody executed the entire struts-example (in unpacked format) on Weblogic6.0 ? Things like did not work for me. Apparently they failed at the weblogic level itself even before reading struts-config.xml Now if you are wondering why am I unpacking the war , ... well it simulates a r

Problems running unpacked Struts-example on Weblogic6.0

2001-03-01 Thread Open Source
Hi all, I was able to deploy and run struts-example.war. However running the unpacked version is running into a little bit of problem. Here is what I did : 1.Undeployed struts-example(war version) using the console. 2.Unjarred the war file into TEST (say) 3.Added struts.jar and TEST/Web-inf/class