Re: [DESIGN] struts dialog / wizard

2007-02-25 Thread Madhav Bhargava
You can also have a look at easy wizard http://superinterface.com/easywizard.htm ~madhav On 2/26/07, Tom Schneider [EMAIL PROTECTED] wrote: Mark Menard has done some work in this area for struts2: http://www.vitarara.org/cms/node/84 For webwork I implemented something similar called a model

Re: struts tiles and validator framework

2006-11-07 Thread Madhav Bhargava
tile will need to have fields uniquely named? I thought this was a big ask and therefore wanted to know how tiles and struts validator framework work together. Thanks for the reply. ~madhav On 11/7/06, Antonio Petrelli [EMAIL PROTECTED] wrote: Madhav Bhargava ha scritto: Since i am using struts

struts tiles and validator framework

2006-11-06 Thread Madhav Bhargava
Hi All, I am using struts tiles for laying out all the pages. I am wondering how i can use struts client validator framework with struts tiles. The validation.xml file requires form name and then within the form tag we define the individual fields along with the respective validations. Since i

Re: How to make dropdown box editable.

2006-10-26 Thread Madhav Bhargava
Post the exact requirement. On 10/27/06, Chris Pratt [EMAIL PROTECTED] wrote: It's not possible in straight HTML. There are some DHTML tricks that combine text boxes with select boxes, but most that I've seen are ugly and unworkable. If you find a good solution to the problem, please post it

HttpSession facade

2006-08-29 Thread Madhav Bhargava
I was going thru the struts source code and was in particular reading the way they have implemented the synchronizer token pattern for preventing multiple submits on transacional pages. I saw that they have synchronized on session ID attribute. Is it possible that multiple session share the same

Re: [JAVA]Converting a string to date

2006-06-23 Thread Madhav Bhargava
There are many ways you can do it: One way is using Apache BeanUtils with Converters registered to it. This way automatic conversions can happen Again it depends on what date you want to convert- current date, arbitrary date. You can just go ahead and use SimpleDateFormat's format/parse

Re: [JAVA]Converting a string to date

2006-06-23 Thread Madhav Bhargava
For all these small things the best way is to google and find out. I am sure you will get enough hits to suffice what you need. On 6/24/06, Madhav Bhargava [EMAIL PROTECTED] wrote: There are many ways you can do it: One way is using Apache BeanUtils with Converters registered to it. This way

Re: Communicate between two struts apps

2006-06-23 Thread Madhav Bhargava
From your original mail the entire concept of having 2 war files bundled in one EAR file is a bit strange. You can totally avoid this by using different struts-config files and SwitchActions in struts. The two different teams can have their own set of actions, form beans, action mapping and

Re: Communicate between two struts apps

2006-06-23 Thread Madhav Bhargava
Could you please elaborate on the same. If there are several release processes, will you still go ahead with the same approach. On 6/24/06, Leon Rosenberg [EMAIL PROTECTED] wrote: On 6/23/06, Madhav Bhargava [EMAIL PROTECTED] wrote: From your original mail the entire concept of having 2 war

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Madhav Bhargava
with system. out.printlns so that i will check in the console. I dont understand whether its checking or not, coz its not entering into the form even i run in debug mode without values in username and password. Madhav Bhargava [EMAIL PROTECTED] wrote: If you give validate=true then you need to give

Re: Stopping Double Submits via mutex

2006-06-21 Thread Madhav Bhargava
Consider a scenario of a clustered environment where there are multiple servers handling requests from an application. On each of these servers session object will be replicated. This means that the same request can go more than once. Shouldn't this solution fail then? ~madhav On 6/21/06, Paul

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Madhav Bhargava
be more clear with the information. Madhav Bhargava [EMAIL PROTECTED] wrote: Paste the complete code for action form, snippet in JSP where you are fetching the messages. ~madhav On 6/21/06, Medicherla Lakshmi wrote: Hi, am still not able to recieve any error messages in the jsp. Is there any

Re: Stopping Double Submits via mutex

2006-06-21 Thread Madhav Bhargava
for a single JVM. On 6/21/06, Paul Benedict [EMAIL PROTECTED] wrote: Yes - of course it would. The solution is only for one JVM. You will need another approach for a clustered environment. Madhav Bhargava [EMAIL PROTECTED] wrote: Consider a scenario of a clustered environment where there are multiple

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Madhav Bhargava
If you give validate=true then you need to give input parameter in the struts-config as well. One more thing - in your JSP try using the following code: logic:messagesPresent html:messages id=errorMess bean:write name=errorMess/ /html:messages id=errorMess /logic:messagesPresent If

Re: best way to send parameters through more requests

2006-06-09 Thread Madhav Bhargava
there is another option. you can use apache JCS cache or open symphony's OScache for caching all objects that are required during user interaction. On 6/9/06, Emilia Ipate [EMAIL PROTECTED] wrote: Hello, all! Is there a solution besides using session, to send some request parameters from

Re: struts validation problem

2006-04-10 Thread Madhav Bhargava
am using i doubt there is *validwhen* available. I need to double check that. ~madhav On 4/10/06, Laurie Harper [EMAIL PROTECTED] wrote: Madhav Bhargava wrote: Hi All, I am using Struts 1.0 and struts-validator 1.0. I have a JSP which has 3 tabs. Each tab body has a different input

struts validation problem

2006-04-07 Thread Madhav Bhargava
Hi All, I am using Struts 1.0 and struts-validator 1.0. I have a JSP which has 3 tabs. Each tab body has a different input element inside it. I am using Ajax to dynamically generate the tab body content. Let me take an example and explain it. Assume there are 2 tabs - Tab1 and Tab2. *Controls in

Struts and Ajax

2006-04-06 Thread Madhav Bhargava
Hi All, I have 2 drop downs in my JSP. One drop down gets populated based on the value selected in the other drop down. At present this is done using a Tag handler call. The control goes to a rendering action which then forwards the call to the JSP. From within the JSP the tag handler is invoked

Re: forwarding vs redirecting issue

2006-03-28 Thread Madhav Bhargava
another approach to handle session scoped objects is to create a filter that will be responsible to clean up any session scope objects when they are not needed. Alternatively you can also overwrite the RequestProcessor processPreprocess method and do session cleaning there as well. If you want

Re: query parameters

2006-03-08 Thread Madhav Bhargava
-data (used for file uploads). There it's common-fileupload library which does the decoding. Why would you want to do the decoding yourself? The decoding/encoding process is done according to rfc1630 specifications. Madhav Bhargava a écrit : Hi All, It is a common practice to encode

File download

2006-03-08 Thread Madhav Bhargava
Hi All, I have a JSP where if a link is clicked then a Save As dialog box is invoked. If the user chooses to save the file, then on the successful completion of the file download i need to update a status in the database. After the status is updated the page from which the Save As dialog box was

Re: File download

2006-03-08 Thread Madhav Bhargava
a 'file then redirect' construction. That may be worth investigations. See HTTP rfc for informations. Madhav Bhargava a écrit : Hi All, I have a JSP where if a link is clicked then a Save As dialog box is invoked. If the user chooses to save the file, then on the successful completion

Re: File download

2006-03-08 Thread Madhav Bhargava
did not find anything that would be of help. On 3/8/06, Madhav Bhargava [EMAIL PROTECTED] wrote: Hmm... let me check that out. Will get back to you if this does not work. The purpose however is to know when the download is complete and to refresh a JSP. --Madhav On 3/8/06, David Delbecq

query parameters

2006-03-07 Thread Madhav Bhargava
Hi All, It is a common practice to encode special characters such as ' ', %, #, :, $ etc.. when sending parameters in the query string along with the URL. We have a similar requirement. Some of the query parameters can contain special characters and therefore we went for UTf-8 encoding. Before

Prevent validation of disabled JSP controls

2006-02-11 Thread Madhav Bhargava
Hi All, I have a JSP page where on the select of a radio button some controls are disabled/enabled. The form bean associated with this JSP extends ValidatorForm. I have created rules in validation-xml for each of these controls which are there on the screen. One rule that is common to all the

prevent validation of disabled fields on the JSP page

2006-02-10 Thread Madhav Bhargava
Hi All, I have a JSP page where on the select of a radio button some controls are disabled/enabled. The form bean associated with this JSP extends ValidatorForm. I have created rules in validation-xml for each of these controls which are there on the screen. One rule that is common to all the

Re: prevent validation of disabled fields on the JSP page

2006-02-10 Thread Madhav Bhargava
' || field.type == 'file' || field.type == 'radio' || field.type == 'checkbox' || field.type == 'select-one' || field.type == 'password') *field.disabled == false*) { Vlad Madhav Bhargava wrote