HashMap and updates

2008-03-25 Thread Kalpesh Modi
Hi, I am having a problem in updates. I have a base class Employee.java. I have subclasses HourlyEmployee.java, ContractEmployee.java, FullTimeEmployee.java. I display these three types of employees under 3 tabs on my JSP. I create 3 lists for each type of employees and put these lists in a Hash

Re: [struts] Struts 2 and JSP 2.0 tags

2008-03-18 Thread Kalpesh Modi
Thanks Dale very much for your help. Dale Newfield <[EMAIL PROTECTED]> wrote: Kalpesh Modi wrote: > Is there anyway to use the JSP 2.0 tag files and the Struts 2.0 tags together. Yes, all you have to do is add the taglib at the top of your .tag file so that you can refer to the s: t

Struts 2 and JSP 2.0 tags

2008-03-17 Thread Kalpesh Modi
Hi, Is there anyway to use the JSP 2.0 tag files and the Struts 2.0 tags together. I have created a JSP 2.0 .tag file. Inside that file, I want to access the attributes passed from the main jsp. I want to access the attributes using the Struts 2.0 tags. Is there any way to do it? I am using St

RE: Need to do pagination but can't use DisplayTag

2006-08-15 Thread kalpesh modi
Yes David is right. You can use display tag with JSP 1.2 Check - Java version/application server requirements at http://displaytag.sourceforge.net/11/migrating.html Thanks, -Kalpesh David Friedman <[EMAIL PROTECTED]> wrote: I've used displaytag 1.X in JSP 1.2. Did you subscribe to their mai

Re: Struts encoding problem ?

2006-08-15 Thread kalpesh modi
You can configure your web.xml file. In Weblogic, you do something like this. /foo UTF-8 In Tomcat, something like this. javaEncoding> >UTF8 Thanks, -Kalpesh Mark Breitner <[EMAIL PROTECTED]> wrote: Hi, I´ve got the problem the I want to send the "€" (Euro) character via

Re: EventActionDispatcher, specifying event from ActionClass not JSP?

2006-08-11 Thread kalpesh modi
body? On 8/10/06, Mississippi John Hurt wrote: > > It doesn't seem to pick up the eventName. It forwards to the 2nd action > class alright, but somehow the EventActionDispatcher is told which event, is > it via a form parameter or request attribute? Which one? > > > On 8

Re: html:checkbox issue

2006-08-10 Thread kalpesh modi
You can keep the default value for the checkbox field to be "off" in the form bean. It will be set to "on" only if the checkbox is checked on the JSP. Thanks, -Kalpesh Adam Gordon <[EMAIL PROTECTED]> wrote: I'm sure this is a coding problem (they usually are...) on the server-side: I've got an

Re: Plz Help, Urgent

2006-08-10 Thread kalpesh modi
gt; Thatz the reason, am not able to understand where is the problem >> > like. > >> Shervin Asgari wrote: >> I don't think you have changed everywhere. Try searching for >> menuitems If you have Linux then try grep -r menuitems * if nothing, >> th

Re: Issue with Struts check box

2006-08-10 Thread kalpesh modi
You need to reset the checkbox value in the ActionForm's reset method. Thanks, -Kalpesh - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.

Re: EventActionDispatcher, specifying event from ActionClass not JSP?

2006-08-10 Thread kalpesh modi
You can do something like return new ActionForward("/secondAction.do?eventName"); Thanks, -Kalpesh - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

RE: Validation message Help

2006-08-10 Thread kalpesh modi
As Tejas mentioned, you can use the tag to apply the style to the text boxes. If the error message for that particular field is present, it will apply the style to the text field. As far as displaying a single error message, you can again use on the top of the JSP instead of . Inside the

Re: Plz Help, Urgent

2006-08-10 Thread kalpesh modi
It seems that you have not changed the JSP name in your forward. You are still forwarding to the old JSP in your code. Thanks, -Kalpesh - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.

Re: Removing page from browser history

2006-08-02 Thread kalpesh modi
Have you tried using redirect in your action mapping? It should work. Thanks, -Kalpesh - How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.

Re: two form one jsp

2006-08-02 Thread kalpesh modi
Is it not possible to use two seperate form beans? -Kalpesh - How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.

Re: two form one jsp

2006-08-01 Thread kalpesh modi
I am not sure whether document. form['formName'] will work or not. Give it a try. -Kalpesh - Yahoo! Music Unlimited - Access over 1 million songs.Try it free.

Re: OK ... I'm almost there ..... just not quite yet

2006-08-01 Thread kalpesh modi
You can create a Student object with say FirstName, LastName etc. The form will have a list of Student objects. I usually do with the ActionForm. I havent tried it with DynaActionForm. On the first page, when the user enters the number of students (say 5) , create a list of 5 student objects i

Re: Struts-el and Weblogic 9.1

2006-03-14 Thread kalpesh modi
Weblogic 8.1 support servlet 2.3 and 9.1 should support servlet 2.4 Thanks, -Kalpesh - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.

RE: Re: Multiple File Upload using Struts (number of files dynamic)

2006-02-15 Thread kalpesh modi
I suggest you declare file list as List type. Keep the form in the session. When you click on the Add button, you increase the size of the List by one and display to the user with one extra empty browse . HTH. - Relax. Yahoo! Mail virus scanning

Re: Spawning a new window from Action.execute

2006-02-13 Thread kalpesh modi
You will need to use javascript. Let the javascript function call your action class and open a new window. HTH. - Yahoo! Mail Use Photomail to share photos without annoying attachments.

RE: show single html:error message for multiple fields validation

2006-02-08 Thread kalpesh modi
You can do something like this: HTH. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

RE: show single html:error message for multiple fields validation

2006-02-08 Thread kalpesh modi
You can do something like this: HTH. - Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.

Re: DispatchAction question !

2006-02-07 Thread kalpesh modi
In that case, you can create a method like private void initailization(HttpServlet Request){ .. initialization code } In you dispatchaction methods, you can check for the session variable, and not found call this method. - Relax. Yahoo! Ma

Re: DispatchAction question !

2006-02-07 Thread kalpesh modi
What do you do with the sectors retrieved? Do you put it in any scope? - Relax. Yahoo! Mail virus scanning helps detect nasty viruses!

Re: DispatchAction question !

2006-02-07 Thread kalpesh modi
Put your initialization code in method public ActionForward initialize(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { sectService = new SectorDaoService(request); sectOwnerService = new SectorOwnerDaoService(); sectServ

RE: Conditionally checking an html:checkbox field

2006-01-31 Thread kalpesh modi
I never tried with boolean but try making it a String. It should work with a String. - Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

RE: Conditionally checking an html:checkbox field

2006-01-31 Thread kalpesh modi
You need to set it to the value that gets submitted when you check a checkbox and submit the form. - Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.

Re: Conditionally checking an html:checkbox field

2006-01-31 Thread kalpesh modi
Try the check condition in your action class and set/not set the checkbox and then forward it to the JSP. Hope this helps. - What are the most popular cars? Find out at Yahoo! Autos

Re: Validation Issue

2006-01-30 Thread kalpesh modi
Mention the JSP as value to your input attribute. - Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.