Re: Struts application

2013-02-21 Thread Harsh
I am not able to locate struts2 portlet example. can some one help me point to correct location. following link doesn't talk about web.xml file configuration http://struts.apache.org/release/2.0.x/docs/struts-2-portlet-tutorial.html On Thu, Feb 21, 2013 at 3:59 PM, Brajesh Patel wrote: > thanks

Re: Struts 2.0.11.1 question

2011-03-10 Thread Harsh C
is setting up the InputStream from > > Gson. > > > > setJsonStream(new ByteArrayInputStream(new > > Gson().toJson(jsonResult).getBytes())); > > > > > > jsonResult is a Map, but could be any object or list of Objects. > > > > Paul > > > >

Re: Struts 2.0.11.1 question

2011-03-09 Thread Harsh C
11 1:19 AM, "Maurizio Cucchiara" wrote: > What do you mean by "not blessed"? > > Maurizio Cucchiara > > Il giorno 09/mar/2011 00.24, "Harsh C" ha scritto: > Hi, > > I don't know if this is the right list for a question regarding 2.0.11.1, if &g

Struts 2.0.11.1 question

2011-03-08 Thread Harsh C
which returns a JSON string without using the JSON plugin? -- *Thanks, Harsh*

Re: De-serialize JSON to Action

2011-01-31 Thread Harsh C
], > "targetIdBox":17101} > > As required by the json plugin, I would need to define a > setIdentifier(String), setTargetIdBox(int), and a setItems(List). That > works correctly, but I would like to automatice the conversion from a Map > to > a bean. Is it pos

Re: De-serialize JSON to Action

2011-01-31 Thread Harsh C
t; http://www.jgeppert.com/2010/06/how-to-parse-a-json-object-when-using-multisearch-for-jqgrid-with-java/ > > http://www.jgeppert.com/2010/06/how-to-parse-a-json-object-when-using-multisearch-for-jqgrid-with-java/ > > Johannes > > > Harsh C wrote: > > > > I have be

De-serialize JSON to Action

2011-01-31 Thread Harsh C
JSON string and "de-serialize" it to a Java bean? I would appreciate it if someone could point me to a best-practice for doing so. -- *Thanks, Harsh*

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-20 Thread Harsh Grover
> wrote: > Hard url? I didn't suggest you to hard code url inside namespace. You > should use namespace defined in your package declaration. > namespace="/YOUR_NAMESPACE"> > > home.jsp > > loadLogin > YOUR_NAMESPACE > true > true > >

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-20 Thread Harsh Grover
ruts.apache.org/2.0.14/struts2-core/apidocs/org/apache/struts2/dispatcher/ServletRedirectResult.html#prependServletContext > > > > thank > > > > 2011/1/20 Harsh Grover > > > >> small correction, the request goes to > >> http://localhost:8080/test/actions/loadLog

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-19 Thread Harsh Grover
small correction, the request goes to http://localhost:8080/test/actions/loadLogin.<http://localhost:8080/test/actions/loadLogin.jsp> action. On Wed, Jan 19, 2011 at 7:33 PM, Harsh Grover wrote: > here it is. > > > home.jsp > > loadLogin > true > true > &

Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-19 Thread Harsh Grover
st/actions/loadLogin.jsp, and bypassing the apache instance in front of it completely, even if the request comes from http://abc.com/test/actions/userLogin.action. Thanks On Wed, Jan 19, 2011 at 1:49 AM, Mohamed SIDI wrote: > can you put out your configuration in struts.xml? > > > &g

Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace

2011-01-18 Thread Harsh Grover
I'm using redirectAction to send the user to another action using redirectAction. However, if the namespace is not provided, the request is getting forwarded to localhost:8080 (my server instance). I'm using apache in front of my app server, and this is breaking my flow. Is there any configuration

AJAX file upload

2010-11-30 Thread Harsh C
How can I setup a AJAX-ified file upload page using Struts 2? If there is some integration with Dojo, it would be even better i.e. not use the OS specific file upload button etc. -- *Thanks, Harsh*

Re: Specify template to use for struts tag

2010-11-23 Thread Harsh C
Thanks! Actually, I used the template attribute and it worked great. Now, I have access to the default ftl as well as to the templates that I am creating. On Tue, Nov 23, 2010 at 3:23 PM, Dave Newton wrote: > Use the "theme" attribute. > > Dave > > On Tue, Nov 23,

Specify template to use for struts tag

2010-11-23 Thread Harsh C
Is there a way to specify a template to use for a struts tag, on a per tag basis e.g. I am trying to change the checkboxlist default L&F so that it renders in a table. This is working fine. But if I want to use the default L&F also, how do I do that. As of now, I copied the struts provided .ftl f

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
I am using Struts 2.2.1 and would like to get some AJAX functionality in my app, specifically, I would like to use Dojo. The Dojo plugin was deprecated for this release, is there some good documentation/tutorials for getting into Struts 2.2.1 with DOJO?

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
a list of Model objects, and upon checking some models, I wanted a list of selectedModel objects, is there a way in struts to do it? Thanks, HC On Wed, Nov 17, 2010 at 11:47 AM, Dave Newton wrote: > Could also be a type conversion error. > On Nov 17, 2010 2:46 PM, "Harsh C"

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
r back to the input result. > > Dave > On Nov 17, 2010 2:29 PM, "Harsh C" wrote: > > Hi, > > > > I have an input page which has a checkbox list in a form. Clicking submit > > takes the user to a 2nd JSP. > > The problem is that when I don't sele

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
Hi, I have an input page which has a checkbox list in a form. Clicking submit takes the user to a 2nd JSP. The problem is that when I don't select a checkbox and click on submit, I get to the output page, of course no value is displayed on the output page though. But if I select a checkbox and cli

RE: Reset struts form values: Struts 1.3

2007-04-24 Thread Chaudhary, Harsh
Yea, that's what I was thinking too. I was just wondering if Struts (or some other API) has a built-in caching mechanism. Thanks though, Harsh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: Tuesday, April 24, 2007 4:55 PM To: S

Reset struts form values: Struts 1.3

2007-04-24 Thread Chaudhary, Harsh
of caching mechanism or using Apache's beanutils. Harsh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts 1.3: Reset form values to previous state

2007-04-20 Thread Chaudhary, Harsh
Hi, I am using Struts 1.3. We have several strust forms which are pre-populated from a database. My questions is, if I want to provide the user with a way to reset the form to the initial values which were populated from the database. Is there any API or method calls for that. Automagic...FTW.

RE: Validation framework question

2007-03-13 Thread Chaudhary, Harsh
I tried to do that but I could not find where my IDE stores those files. I am using WSAD 5.1.1 with WebSphere. Any suggestions would be appreciated. Harsh. -Original Message- From: Mike Baroukh [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 11:56 AM To: Struts Users Mailing

RE: Validation framework question

2007-03-13 Thread Chaudhary, Harsh
I know that the exception "Maximum try/catch size reached" has something to do with the compiler but what I would likt to know is that whether or not any validation code is added to the compiled JSP file itself. Harsh. -Original Message- From: Mike Baroukh [mailto:[EMAIL

Validation framework question

2007-03-13 Thread Chaudhary, Harsh
validators. He says that when the JSP is compiled to a servlet, all the validation code is added to the compiled version of the JSP, something I do not agree with. Any inputs? Thanks, Harsh. - To unsubscribe, e-mail: [EMAIL

RE: Struts session scoped forms

2007-03-01 Thread Chaudhary, Harsh
thing which the struts-config file was meant to do, I don't know. Harsh. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 9:31 AM To: Struts Users Mailing List Subject: Re: Struts session scoped forms -BEGIN PGP SIGNED MES

RE: Struts session scoped forms

2007-02-28 Thread Chaudhary, Harsh
I am not doing things this way. I presented this as a hypothetical case and my question is why is this bad? I mean what problems can we run into using this technique. Thanks for the write up but I would appreciate something that in more in detail. Thanks, Harsh. -Original Message- From

Struts session scoped forms

2007-02-28 Thread Chaudhary, Harsh
ed out too much to make sense? Rehards, Harsh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Scriptlets in Struts tag

2007-02-27 Thread Chaudhary, Harsh
Works like a charm. Thanks a lot. My guess is that my problem could be due to the fact that anything within attributes like styleid etc. are just parsed as a string. Harsh. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 12:50 PM To

RE: Scriptlets in Struts tag

2007-02-27 Thread Chaudhary, Harsh
I tried that. But in the HTML rendered, the id attribute is rendered as: id='BLABLA<%=indexVal.intValue()%>' Harsh. -Original Message- From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 6:09 PM To: Struts Users Mailing List Subject: R

Scriptlets in Struts tag

2007-02-27 Thread Chaudhary, Harsh
My code: The code within the ->>> and <<<- is not working. I think it might be due to the way the tag is parsed in the JSP but does anyone know of a way to do this. Basically, I would like to have id='BLA1', id='BLA2

RE: Offtopic netbeans

2007-02-26 Thread Chaudhary, Harsh
I would any current version of NB would do that. I am not sure about the version numbers, but usually, all you have to do is to add a server from the runtimes view and point NB to the correct server folder that contains Tomcat. Harsh. -Original Message- From: Martin Gainty [mailto

RE: Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
I will try that. Thanks a lot for your input. Harsh. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 13, 2007 5:05 PM To: Struts Users Mailing List Subject: Re: Struts 1.3 pain -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harsh

RE: Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
There is no specific reason, But we have one custom validation, So is it good practice to revamp the entire the validator.xml file then? Any other gotchas from someone who has migrated a 1.2 app to 1.3? Harsh. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent

Struts 1.3 pain

2007-02-13 Thread Chaudhary, Harsh
ce it says java.lang.NullPointerException: No message resources found for bundle: org.apache.struts.action.MESSAGE I have the validator.xml, validator-rules.xml and errors.properties intact from my Struts 1.2 version. Any thoughts or ideas of what am doing wro

RE: Validating list backed struts form

2007-02-09 Thread Chaudhary, Harsh
Hmmm.cool. I will check it out. Harsh. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 10:05 AM To: Struts Users Mailing List Subject: Re: Validating list backed struts form On 2/9/07, Chaudhary, Harsh <[EMAIL PROTECTED]>

RE: Validating list backed struts form

2007-02-09 Thread Chaudhary, Harsh
Thanks for all the tips Niall. Its working to the point that is possible using Struts. Unfortunately, that does not solve my problem. And I cannot use your extension as we have this thing about registered jars here at work. I guess a custom validator it is then. Harsh. -Original Message

RE: Validating list backed struts form

2007-02-09 Thread Chaudhary, Harsh
looks like: Also, keeping in mind that I have 10 address fields which are required only if the fields are visible (it is a show hide kind of thing using JavaScript), is this even a good way to go in my case. Or should I just go ahead and build a custom validator. Harsh. -Origin

RE: Validating list backed struts form

2007-02-09 Thread Chaudhary, Harsh
required etc. I hope I was clear enough in my example. Harsh. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 4:35 AM To: Struts Users Mailing List Subject: Re: Validating list backed struts form Specify the property in your form

Validating list backed struts form

2007-02-08 Thread Chaudhary, Harsh
Hi, I am trying to validate a form which has an arraylist of Address objects. I would like some pointers on this or any references etc. Harsh.

Harsh: List backed form validation

2007-02-08 Thread Chaudhary, Harsh
Could anyone point me to a resource which explains how to validate a list backed form using the validator framework. Thanks, Harsh.

Reload Message resources i.e Resource Bundle

2006-08-16 Thread Harsh Gupta
How to Reload Message resources i.e Resource Bundles in struts 1.1??? ___ Harsh Gupta Software Engineer MPS Technologies (A Macmillan company) Email: h <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] Web: <http://www.mpstechnol

RE: Where do you submit bug reports for struts?

2006-06-01 Thread Chaudhary, Harsh
ecting RPAREN, found '.5' Any suggestions, Harsh. -Original Message- From: Chaudhary, Harsh Sent: Thursday, June 01, 2006 11:59 AM To: Struts Users Mailing List Subject: RE: Where do you submit bug reports for struts? I had actually posted this a few days back and received a re

RE: Where do you submit bug reports for struts?

2006-06-01 Thread Chaudhary, Harsh
bers with decimal points), I get an error. Any suggestions would be appreciated, Harsh. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 11:22 AM To: Struts Users Mailing List Subject: Re: Where do you submit bug reports for struts? On 6

Where do you submit bug reports for struts?

2006-06-01 Thread Chaudhary, Harsh
I would like to report a couple of bugs I have found in Struts Validation. I am pretty sure they are not Commons validator problems. Does anyone know where I could file a bug. Harsh. - To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [OT] Re: multiple

2006-05-30 Thread Chaudhary, Harsh
"resume-oriented programming" LOL. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 10:53 AM To: Struts Users Mailing List Subject: Re: [OT] Re: multiple Grab the Java Web Parts cookbook: http://sourceforge.net/project/showfiles.php?grou

RE: Struts, how to create wizard pages ??

2006-05-26 Thread Chaudhary, Harsh
Its not really that hard or even a design issue. Just have one separate Action class and Action form for each page. Call the action when the user hits submit, next etc. In the action class, save to the DB and forward to the next action. Harsh. -Original Message- From: A. Lotfi [mailto

RE: validation with validwhen

2006-05-26 Thread Chaudhary, Harsh
floatRange validations. It has to be > 0. It catches the error when I input 0 because it has to be greater than 0. But when I input 0.0, I don't get an error. Maybe yours is a similar situation. Harsh. -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Friday, May 26

RE: validation with validwhen

2006-05-26 Thread Chaudhary, Harsh
Fea, What version of struts are you using? Dumb question, but are you sure the key "lbl.notvalidnumber" is spelled right in your error messages properties file. Harsh. -Original Message- From: Krishnan, Vijaya [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 10:07 AM

RE: Hi, need of help

2006-05-26 Thread Chaudhary, Harsh
ook and it takes you through 90% of the stuff you would need to with Struts. Has nice diagrams explaining the flow in a struts app etc. Also, in the struts distribution, there is a sample app calles struts-examples.war which would help you get started. Harsh. -Original Message- From: Dave Newt

RE: validation with validwhen

2006-05-26 Thread Chaudhary, Harsh
Instead of this: (*this* >= 0) Use this: (*this* >= 0) Its to do with how your '>' characters are parsed. Harsh. -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 8:01 AM To: user@struts.apache.org Subject: RE: validation w

RE: Blank page when trying to forward

2006-05-26 Thread Chaudhary, Harsh
Can you see stack in your console? Maybe there's an exception. Harsh. -Original Message- From: Shervin Asgari [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 6:20 AM To: Struts Users Mailing List Subject: Blank page when trying to forward Hello. I am having a problem. A

RE: Sending run time value to custom tag

2006-05-26 Thread Chaudhary, Harsh
Actually we can. I know I have used I don't know hot to set up the TLD so that it happens for our custom tags though. Harsh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 3:45 AM To: user@struts.apache.org Subject: RE: Sending run

RE: forms in struts-layout tabs ??

2006-05-25 Thread Chaudhary, Harsh
multiple actions accessing that form. And save the data on each submit, tab etc. Harsh. -Original Message- From: A. Lotfi [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 3:53 PM To: user@struts.apache.org Subject: forms in struts-layout tabs ?? Hi, I have 8 forms (every form will

RE: Validation for second field must greater than the first field

2006-05-25 Thread Chaudhary, Harsh
. Considering it gives you access to a bunch of objects for free like the form bean, fields, the request object, errors object etc. You could probably do it in a separate class cueing off of the data from the form bean, but I think it would be much harder. Harsh. -Original Message- From

RE: Validation for second field must greater than the first field

2006-05-25 Thread Chaudhary, Harsh
The solution is to write a custom validator if you want to do it server side using validator. In your custom validator, create 2 calendars, one each for start date and end date. Then use the method call "before" or "after" on these calendar. Harsh. Man I got a lo

RE: How Validation framework's getVarValue method works?

2006-05-25 Thread Chaudhary, Harsh
I am sorry I wasn't clear enough in my reply. Here's what you need to do: String explainUrgency = field.getVarValue("explainUrgency"); String whatever = ValidatorUtils.getValueAsString(bean, explainUrgency); Harsh. -Original Message- From: Yildiz Terkesli [mailto:[EM

RE: How Validation framework's getVarValue method works?

2006-05-25 Thread Chaudhary, Harsh
Do this to get the value in urgency field. String year = ValidatorUtils.getValueAsString(bean, explainUrgency); Where bean is: public static boolean validateYourMethod(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator v, HttpServletRequest request) Harsh

RE: ValidatorActionForm vs ValidatorForm

2006-05-25 Thread Chaudhary, Harsh
a bit. Harsh. -Original Message- From: pantichd [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 1:35 PM To: user@struts.apache.org Subject: ValidatorActionForm vs ValidatorForm Hello, I'm struggling to understand the difference between the ValidatorActionForm an

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
file structure. Harsh. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:54 AM To: Struts Users Mailing List Subject: RE: Struts with Eclipse 3.1 Yes, I was trying that. I created an empty "Web project" in eclipse and imported st

RE: Valiation for the time HH:mm:SS

2006-05-25 Thread Chaudhary, Harsh
Check this out. I haven't used it myself. Just a pointer. Check out TimeValidator in the API docs. http://jakarta.apache.org/commons/validator/apidocs/index.html Harsh. -Original Message- From: Carl Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:54 AM To: Struts

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
A sample web project is bundeled with the struts distribution at like: \struts-1.2.8-bin\struts-1.2.8-bin\webapps Its called struts-examples.war. Get that running and then you can reuse that code to get started. Harsh. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
Sure you can do that. But you would not have any IDE support. Personally I don't care much for IDE support as all you need is entries in struts-cofig.xml, an Action class, a Struts form and an HTML or JSP page. Harsh. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED]

RE: Struts with Eclipse 3.1

2006-05-25 Thread Chaudhary, Harsh
plug-in for eclipse available at: http://download.eclipse.org/webtools/downloads/ This one is free. I have used it myself and its pretty good too. Harsh. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:06 AM To: user@struts.apache.org

RE: change date validator-rules

2006-05-25 Thread Chaudhary, Harsh
project in there which does these things and you can use that code. Harsh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 8:13 AM To: user@struts.apache.org Subject: Re: change date validator-rules The thing is that user can input nothing

RE: change date validator-rules

2006-05-25 Thread Chaudhary, Harsh
Or rather, if the value is #, return true. Harsh. -Original Message- From: Vinit Sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 7:54 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: change date validator-rules Write a custom validator rule, check for the

RE: number of days

2006-05-25 Thread Chaudhary, Harsh
There is no easy way man. best you can do is to find a JavaScript date library that already exists. Try the forums on java.net. Its way too much work to write a date handeler library yourself and its probably been done before.; Harsh. -Original Message- From: Abhimanyu Koul [mailto

RE: How can I pass all the request parameters into a bean ?

2006-05-25 Thread Chaudhary, Harsh
Isn't that what Struts forms do out of thye box. Harsh. -Original Message- From: Eric Chow [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 3:29 AM To: Struts User List Subject: How can I pass all the request parameters into a bean ? Hello, How can I pass all the re

RE: urgent

2006-05-25 Thread Chaudhary, Harsh
all you need is to write a CSS file which does what you want. Harsh. -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 12:56 AM To: Struts Mailing list Subject: urgent hi all! I want to display the records in a list using display tag in a

RE: More then 1 Action Forms in JSP

2006-05-25 Thread Chaudhary, Harsh
. Harsh. -Original Message- From: Raghuveer [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 12:42 AM To: user@struts.apache.org Subject: More then 1 Action Forms in JSP I have 10 JSP's and used 10 Action forms,10 action classes(dispatch action and action) with 10 Action Map

RE: Object size in App Server

2006-05-25 Thread Chaudhary, Harsh
I just wrote the object to a file as a bit blob and looked at the file size. But I needed something quick and dirty and not necessarily extremely accurate. Harsh. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 12:16 AM To: Struts Users

RE: display tag ??

2006-05-24 Thread Chaudhary, Harsh
The data comes from a List which can be set as a request Attribute. Harsh. P.S.: I also had to do a pagination solution for my project. After working with it for a while, I did not found it to be very useful except for the simplest of cases. My major beef with DT is the location of the TLD file

RE: Harsh: Issue with float validation instruts validator

2006-05-24 Thread Chaudhary, Harsh
I am surprised that noone else came across this issue. But for now, I think I will go with a custom validator. Unless I am missing something. Thanks, Harsh. -Original Message- From: The Jasper [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 2:59 AM To: Struts Users Mailing List

Harsh: Issue with float validation instruts validator

2006-05-23 Thread Chaudhary, Harsh
can only think this is a bug in the validation. Has anyone else noticed this issue? Any ideas or workarounds? Harsh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: validation

2006-05-23 Thread Chaudhary, Harsh
"maxLength" attribute of the HTML text field. Link: http://www.w3schools.com/htmldom/dom_obj_text.asp Further, you can also write a JavaScript function to make sure that only numeric values are allowed in the field. Harsh. -Original Message- From: fea jabi [mailto:[EMAIL PROTEC

RE: Req on

2006-05-22 Thread Chaudhary, Harsh
Since you don't want to go to the server for populating the values of the second list box, I would say JavaScript is the way to go. Harsh. -Original Message- From: Radha Krishna [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 9:56 AM To: user@struts.apache.org Subject: Req on

RE: is there any way to customize the client side validation popup window

2006-05-19 Thread Chaudhary, Harsh
If you mean the Browser pop up window, then no. You could think about server side validation and generating custom pop-ups using Javascript. Harsh. -Original Message- From: Lixin Chu [mailto:[EMAIL PROTECTED] Sent: Friday, May 19, 2006 4:59 PM To: Struts Users Mailing List Subject: is

RE: get message from MessageResources in Action Class

2006-05-18 Thread Chaudhary, Harsh
turn mapping.findForward("failure"); } Harsh. -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 8:57 AM To: user@struts.apache.org Subject: get message from MessageResources in Action Class Using struts 1.2.7 How to get the messa

RE: What is the reason behind sharing the same formbean by multiple actions

2006-05-17 Thread Chaudhary, Harsh
1. Maybe I have diffferent actions which work on the same data e.g. in a wizard like page flow, previous, next, save buttons etc. Harsh. -Original Message- From: Carl Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 4:31 PM To: Struts Users Mailing List Subject: Re: What

RE: - Design Issue with Struts Validation

2006-05-16 Thread Chaudhary, Harsh
I would go with the declarative approach. It lends to more flexibility. Harsh. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 1:27 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: - Design Issue with Struts

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Chaudhary, Harsh
s and nothing else. One thing you must remember is that ValidatorActionForm is available in the struts package in Struts 1.2.8. But from Struts 1.3, its available under a separate package called "struts extras". So, if you will be moving from 1.2.8 to 1.3, this is something you must c

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Chaudhary, Harsh
My first thought was that you might be using an action as you validation key i.e., in validation.xml, instead of: you had: But this is not the case. So, I can't really tell why this is happening. Harsh. -Original Message- From: josh t [mailto:[EMAIL PROTECTED] Sent: Friday, M

RE: Get request object

2006-05-12 Thread Chaudhary, Harsh
advise. Harsh. -Original Message- From: David Evans [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 3:42 PM To: Struts Users Mailing List Subject: RE: Get request object I would suggest in that scenario that you could create a property on your ActionForm for the object that is stored in

RE: extending ValidationForm instead of ValidatorActionForm

2006-05-12 Thread Chaudhary, Harsh
Could you also include of you validation.xml and struts-config.xml? Harsh. -Original Message- From: josh t [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 2:38 PM To: user@struts.apache.org Subject: extending ValidationForm instead of ValidatorActionForm When my form extends

RE: Get request object

2006-05-12 Thread Chaudhary, Harsh
from anywhere. If yes, then is there a way to do it. Any thoughts? Harsh. -Original Message- From: David Evans [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 1:41 PM To: Struts Users Mailing List Subject: Re: Get request object Hello, I don't think you can get the request fro

Get request object

2006-05-12 Thread Chaudhary, Harsh
or ServletConfig or something like that from where you could access the request object. I can find it. Anyone? Harsh. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Danny Lee Sent: Friday, May 12, 2006 9:52 AM To: user@struts.apache.org Subject: Re: Interesting

RE: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread Chaudhary, Harsh
I am not 100% on this as I don't know the package "org.apache.struts.chain.commands.servlet.ValidateActionForm" very well, but try extending your form from ValidatorForm from: org.apache.struts.validator.ValidatorForm Harsh. -Original Message- From: josh t [mailto:[

RE: Validator stops when an error is encountered

2006-05-09 Thread Chaudhary, Harsh
it? Any ideas? Harsh. -Original Message- From: Mulligan, Scott H [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 9:19 AM To: Struts Users Mailing List Subject: RE: Validator stops when an error is encountered Thanks Niall...that is exactly the type of thing I'm lookin

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
nta.jsp, a form submit calls Dispatch.do which forwards to an action like clientaValidation.do which runs the validations and then calls the next forward. Terrible design but this is in response to a change in our codebase which kind of messed things up a bit. Harsh. -Original Message-

Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
Now that I think about it, my question is just this: Is there a way to selectively validate fields in a struts form? Harsh. -Original Message- From: Quinn Stone [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 4:03 PM To: 'Struts Users Mailing List' Subject: RE: Valid

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
ere a way in struts to partially validate the fields of a struts form? I hope I was clear in my explanation. Harsh. -Original Message- From: Quinn Stone [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 4:03 PM To: 'Struts Users Mailing List' Subject: RE: Validation help:

RE: Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
ClientB i.e. I want to validate only Client B fields for ClientB action. All the fields are using the same struts form. That is why I am using a ValidatorActionForm instead of a ValidatorForm. Harsh. -Original Message- From: Quinn Stone [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006

Validation help: One struts form, multiple actions

2006-05-08 Thread Chaudhary, Harsh
${nameMask} I thought this should be straight forward, i.e., associate your validation formName to actions and set validate to true in struts-config.xml. But, its blowing out. Any ideas? Thanks, Harsh. - To unsubscribe, e-ma

RE: Marking fields with background colour having errors

2006-05-05 Thread Chaudhary, Harsh
retty soon. I am hesitant on doing that as in most companies, the list of "allowed" jars is limited and so I think it will be useful just to release the source code for it. Let me know if you need it. Harsh. -Original Message- From: Angelo zerr [mailto:[EMAIL PROTECTED] Sent:

RE: Issue with DHTML and DIV position

2006-05-02 Thread Chaudhary, Harsh
. Harsh. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 4:30 PM To: [EMAIL PROTECTED]; Struts Users Mailing List Subject: Issue with DHTML and DIV position Hi I am attaching a html file along this mail, and also posting a shorttext URL to

RE: Re: complex validation problem.

2006-04-28 Thread Chaudhary, Harsh
uts-action/struts-core/apidocs/index.html Look for a method: validateMask() Harsh. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Friday, April 28, 2006 4:37 PM To: user@struts.apache.org Subject: Re: complex validation problem. Jakub Milkiewicz w

RE: How to use displayTag

2006-04-28 Thread Chaudhary, Harsh
your list is really big, its a big big performance hit. Fortunately, you can bypass that behaviour and write your own pagination code, which kind of defeats the purpose. Anyways, if I get something to work, will keep posted. Another alternative could be the struts pager taglib. Harsh

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
. Actually, I am not sure if I got the name right too. The name of the file could be different. Its a web app bundled with the struts distribution. Harsh. -Original Message- From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 11:15 AM To: 'Struts Users Mailing

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
That looks good. Do you see any exception stack related to validation when you submit the form? Harsh. -Original Message- From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 11:07 AM To: 'Struts Users Mailing List' Subject: RE: validatewhen --- wh

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
en --- what's wrong? The validation is definitely called. If I submit the form with login field empty, alert is popping up. So I am sure is somewhere wrong with the validwhen.. But, where?? Jason -Original Message- From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] Sent: 28 April 2006

  1   2   >