Struts Submission

2007-04-11 Thread Chetan Pandey
processed. Pls WAIT and donot click the BACK BUTTON. I don't see how using regular Struts 1.2 I can fwd to a page but do work in the Background. Any Ideas or Improvements to this Idea. Thanks. Chetan ________

Struts 2.0 vs Struts 1.3.5 vs Struts 1.2

2007-01-26 Thread Chetan Pandey
with 1.3.5. How is it better than 1.2 Thanks. Chetan _ CHETAN PANDEY Executive - Technology Services BLUE, 1 Maritime Square, #13-02 Harbourfront Centre, Singapore 099253 DID +65-6212-0863 main line +65-6333-3336

JavaScript Error destroying Cache

2007-01-22 Thread Chetan Pandey
Chetan _____ CHETAN PANDEY Executive - Technology Services BLUE, 1 Maritime Square, #13-02 Harbourfront Centre, Singapore 099253 DID +65-6212-0863 main line +65-6333-3336 fax +65 6336-6334 email <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTE

RE: Browser Back Button

2007-01-10 Thread Chetan Pandey
rything from cache - since no debug statement is printed. I have checked other places also. Clicking back button doesn't go to the server. Since no debug statement is printed. Only the presence of the above line makes a weird difference. Chetan Pandey wrote: > To avoid th

Browser Back Button

2007-01-08 Thread Chetan Pandey
Thanks. Chetan _________ CHETAN PANDEY Executive - Technology Services BLUE, 1 Maritime Square, #13-02 Harbourfront Centre, Singapore 099253 DID +65-6212-0863 main line +65-6333-3336 fax +65 6336-6334 email <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] website <

Question about Filter Mapping

2006-12-12 Thread Chetan Pandey
Hi All: I have written a Filter AuthFilter for my Struts App. I am doing the following mapping. authFilter com.blue.marketing.emailer.util.AuthenticationFilter authFilter /manageEvent.do?function=list But the F

RE: Last Page Regenration

2006-11-09 Thread Chetan Pandey
Use Filters. On every page a User visits make it visit a Filter. Record the page when it is visited and store it in the DB. That what when he logs in fetch this value and send User to this page. Make sure you put your Filter Info in web.xml in the following manner: myFilter co

Error Pages in Struts App

2006-10-30 Thread Chetan Pandey
Hi All: I am trying to include an Error Page in my Struts-based Web App. The following is what I have in my web.xml 404 /errorPage.jsp java.lang.Exception /errorPage.jsp In one of my JSP Page - for testing purposes - I have included the following: Integer ii =

Facing Problem using html:select with html:options

2006-10-25 Thread Chetan Pandey
Hi All: I have a JSP Form in which one field is a multi-select drop-down box. An array of String is used to represent it I am facing this problem when trying to "Edit" stuff. The Drop-down initially has many different values selected. If I try to change selections everything is Fin

RE: Cannot get errors to display to screen

2006-10-18 Thread Chetan Pandey
I have had this problem. Erroneous pages are validated. You are correctly diverted to the JSP Page where Errors occurred but you do not see the Errors. One Line simple Solution. Add somewhere in the JSP and they will start showing exactly at this point. Chetan -Original Message- Fro

Faking a Submit in JSP Page

2006-10-15 Thread Chetan Pandey
Hi All: I have a Dropdown which on change must go to Server Side for certain processing. I have a onClick Event which does that. But the problem is I must record the value of other Form Elements and take them alsong with me which is unduly cumbersome. Somebody has ssuggested if you can

RE: How to put an image into a without CSS

2006-10-11 Thread Chetan Pandey
Then use and insert your image between the link opening and closing tags. Chetan -Original Message- From: José Carlos Ortiz [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 3:54 PM To: user@struts.apache.org Subject: Re: How to put an image into a without CSS Laurie Harpe

RE: How to put an image into a without CSS

2006-10-10 Thread Chetan Pandey
Hey Jose: You don’t need to Use tag or tag. Use the following Just remember USE , not Chetan -Original Message- From: José Carlos Ortiz [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 4:02 AM To: user@struts.apache.org Subject: How to put an image into a without CSS

Validating a Positive Decimal Number

2006-10-10 Thread Chetan Pandey
Hi All: I my Form I have a Field which expects any value greater than 0.0. I cannot find a regular expression for Positive Decimal Number greater than 0.0. There are many for positive Decimal Number including ZERO. Any suggestions please. Thanks. Chetan Pandey

RE: Struts Equivalent

2006-10-10 Thread Chetan Pandey
So is their a way we can say: session.removeAttribute("var1"); using Thanks. Chetan -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 7:36 PM To: Struts Users Mailing List Subject: Re: Struts Equivalent Chetan Pandey

Struts Equivalent

2006-10-10 Thread Chetan Pandey
For the following Scriptlet: <%session.setAttribute("var1",null); %> Is the following equivalent: Thanks and Regards. Chetan

Tag Not Working

2006-10-09 Thread Chetan Pandey
Hi All: I have defined a Variable using Tag that is printed in the next Line using a Logic:notEmpty check. But the problem is that it will print anyhow whether it is empty or Not. And the resulting print of "null" in the JSP is unacceptable. Here is my Definition <%=session.getAttri

RE: Role Based Action Mapping

2006-10-09 Thread Chetan Pandey
Hi Rajesh: It is imperative that your UserId-Password Table contains a role Field as well where each User is assigned a Role. In your context.xml you will need something like the follwing snippet Look at the above Lines in Red. It expects two Tables. A "userTable" and a "

Regarding the bean:include Tag

2006-09-28 Thread Chetan Pandey
Hi All: I am trying to use Where the forward is described in the List of Global Forwards in the following manner: This is failing repeatedly. I am getting the following exception: javax.servlet.jsp.JspException: Exception reading resource http://localhost:8080/lms/

RE: How to validate an integer array

2006-09-26 Thread Chetan Pandey
Struts Users Mailing List Subject: Re: How to validate an integer array On 9/26/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: > In my form I have > Int [] roleIds = null. > This is used as the Underlying Datatype of a multiple-select Drop-down. > Everything works fine but I am

How to validate an integer array

2006-09-26 Thread Chetan Pandey
Hi All: In my form I have Int [] roleIds = null. This is used as the Underlying Datatype of a multiple-select Drop-down. Everything works fine but I am not sure how to validate? The following that I tried did not work: test (*t

Validation

2006-09-15 Thread Chetan Pandey
I have two controls in a Form. Both of them are drop-down. One has multiple select enabled. I want to validate such that if User chooses something in "prerequisiteVO.prerequisiteCourseId" drop-down then he must also choose from drop-down "prerequisiteRole". However since "prerequisiteRole

Dynamic input forms in Struts

2006-09-11 Thread Chetan Pandey
Hi: When user is in page 1, he is asked to enter an integer. Let us say he entered 18 In the next page we show 18 Text-boxes: This is easy to generate using the following: But I don't understand what should go in the properties tags. What Data Structure sho

RE: Handling select tags with multiple = true

2006-09-10 Thread Chetan Pandey
n. If you want the array length for some purpose in your action then you can use the length attribute of the String array, why do you want to specify the length in your action form? -nirav On 9/11/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: > But how will I specify the array Lengt

RE: Handling select tags with multiple = true

2006-09-10 Thread Chetan Pandey
/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: > Hi All: > > > > I have the following: > > > > > > property="prerequisiteVO.prerequisiteCourseId" multiple="true" size="3"> > > key="lms.choose.prerequisite

Handling select tags with multiple = true

2006-09-10 Thread Chetan Pandey
Hi All: I have the following: My question is what all property= "prerequisiteVO.prerequisiteCourseId" can be. An array of Strings, an array of ints or an array of Integers. How about a Vector. If it is an array of ints which I prefer, how will I code them in my Formb

RE: Setting a Variable in Javascript Functions parameter

2006-09-08 Thread Chetan Pandey
x27; Previously jsMesage was being evaluated as Are you surewithout any quotes which to the Explorer will appear as a series of non-comma separated parameters hence erroneous. Thanks to all the kind responses, Fank and Puneet especially, or resolving this problem. Chetan Pandey -Orig

RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
return false ; } But when I click on "delete" no Javascript pops-up and the Server straight away deletes without a warning. Thanks. Chetan Pandey -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 2:37 PM To: St

RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
onclick = '<%="return confirmationMessage(" + jsMessage + ")" %>' Did not work. Chetan -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 2:18 PM To: Struts Users Mailing List Subject: Re: Setting a Variable in Javascript Functions parame

RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
ble in Javascript Functions parameter Then your JSP expression is not being evaluated... this *is* in a JSP, right?? Frank Chetan Pandey wrote: > Doing what you suggested results in a Confirm Box with Text = <%=jsMessage%> > > Is something wrong with my JS function. > > H

RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
alue to the javascript function, I think "onclick=return confirmationMessage('<%=jsMessage%>');" will work. The quotes inside the parentheses shouldn't be omitted. 2006/9/8, Chetan Pandey <[EMAIL PROTECTED]>: > > Hi Puneet: > > None of the suggestions wo

RE: Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
Hi Puneet: None of the suggestions worked. I even tried "onclick =returnconfirmationMessage(<%=jsMessage%>)" And other combinations with no help. Thanks. Chetan -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 11:13 PM To: Struts U

Setting a Variable in Javascript Functions parameter

2006-09-07 Thread Chetan Pandey
Hi All: I want to pass a Variable to my Javascript Function in the following manner Where jsmessage= " Are you sure you want to delete?" Currently the Confirm-Box is printing "jmessage". How do I force it to print the contents of "jmessage". I also tried using retur

sendRedirect in Struts

2006-08-28 Thread Chetan Pandey
I have a JSP Page. As soon as control passes to it I want to redirect to an action: <% response.sendRedirect("/loggingAction.do?function=login"); %> But the problem is I get a message: "The requested resource (/loggingAction) is not available." It seems JSP/Servelt method sendRedirec

Can we specify variables in html form tags action attribute

2006-08-22 Thread Chetan Pandey
Dear All: I am trying to put a variable in action attribute but it doesnt work. <%String propertyaction = "/manageProperty?function=edit"; pageContext.setAttribute(propertyaction,"propertyaction");%> Thanks. Chetan

Form Validation

2006-08-22 Thread Chetan Pandey
Hi All: I have one Dispatch Action class with two methods 'create' and 'edit'. Before Form is sent over it has to be validated. I have the following in struts-config.xml But the thing is Line input="property.create.page" makes validation possible for

Custom Validation Doesnt Work

2006-08-22 Thread Chetan Pandey
Hi All: I have the following Code in my Custom Validation class: if (propertyVO != null) { System.out.println("propertyVO != null.Hence Errors. Will return false"); errors.add(field.getKey(), Resources.getActionMessage(request, action, field)

Validation

2006-08-21 Thread Chetan Pandey
I have a field in my form for which I am doing the following validation. Basically it has to be exactly 5 characters long. The following works. minlength5 maxlength5 However

RE: Struts encoding problem ?

2006-08-14 Thread Chetan Pandey
Try sending its Unicode Equivalent. Available from www.unicode.org. CHetan -Original Message- From: Mark Breitner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 12:55 AM To: user@struts.apache.org Subject: Struts encoding problem ? Hi, I´ve got the problem the I want to send

RE: Client Side Validation

2006-08-03 Thread Chetan Pandey
cify the form bean like this : then you should call generated javascript with this the first letter in form bean name shouls be in lowercase also... HTH Irwan On 8/3/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: > Hi All: > > This is what I am doing. > >

RE: Client Side Validation

2006-08-02 Thread Chetan Pandey
Hi All: This is what I am doing. . . . . . . But the Code only does Server Side Validation. Am I missing naything pls. Thanks. Chetan Pandey -Original Message- From: Romu [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 02, 2006 3:28 PM To: Struts Users Mailing List Subject

RE: Runtime Expression in logic:equal

2006-08-01 Thread Chetan Pandey
Why don't you use displaytags (http://www.jamesgood.com:8080/displaytag-examples-1.1-SNAPSHOT/docs/tut_bas ic.html) Chetan Pandey -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 02, 2006 12:31 PM To: Struts Users Mailing List Subject: Ru

RE: Client Side Validation

2006-08-01 Thread Chetan Pandey
I have this: Where "validateRequired" comes from the following Javascript code in my validator-rules.xml But no Client-side Validation is occuring -Original Message- From: Lixin Chu [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 02, 2006 10:35

Client Side Validation

2006-08-01 Thread Chetan Pandey
Hi All: I am trying to do Client-Side Validation for my JSP Form: . . . . But the problem is I only see Server Side Validations no Client Side Validations. This is the Validator I am using which I copied from the Net: /**

RE: Struts ComboBox Validation

2006-07-31 Thread Chetan Pandey
ssage that Role is not available. Thanks. Chetan Pandey -Original Message- From: Irwan Nurwandi [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 1:11 PM To: Struts Users Mailing List Subject: Re: Struts ComboBox Validation > > But the thing is, since the default value is

Struts ComboBox Validation

2006-07-31 Thread Chetan Pandey
I have the following Combobox in my Struts Application: * Where holidexCodeVector is a simple Vector of Strings where currently only three values are stored: "IND" "AUS" "USA" I want to validate holidexCode using validation.xml But the

RE: Session Tracking

2006-07-27 Thread Chetan Pandey
1) User clicks on Logout on JSP page ( Can this be achieved by explicitly doing session.invalidate() ?) Yes. 2) User clicks on the close button on window This can be done in Javascript but I am told it doesn't work. In that case you have to depend on session timeout. Plus each time a new

RE: [OT] Re: Problems Using DisplayTag

2006-07-26 Thread Chetan Pandey
It is part of Struts. Other people have mailed about displaytag and been answered. Chetan -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 7:18 PM To: Struts Users Mailing List Subject: [OT] Re: Problems Using DisplayTag Chetan Pandey

Problems Using DisplayTag

2006-07-26 Thread Chetan Pandey
=org.displaytag.export.DefaultRtfExportView # if set, file is downloaded instead of opened in the browser window export.csv.filename=data.txt export.excel.filename=data.xls Thanks. Chetan Pandey

HTML Tags for JComboBox

2006-07-23 Thread Chetan Pandey
Hi List: I am using a JComboBox in the following manner: : Where holidexCodeVector is a Vector of Strings ( e.g. "BLUES", "IHG", "SINGTEL" etc ) I only want the index of the chosen item, not the String. For examples if User chose "IHG" I should get integer 1 , not the String "IHG" H