masking in dynavalidation

2006-05-04 Thread Shivani Sawhney
Hi,

 

I have some issues using dynavalidations.

 

1.  In masking we give a list of character we want to allow. But is
there a way to give the list of characters that I don't want to allow,
because are exceptions are less.

E.g. : I want the user to not to enter single and double quotes in the text
area,  but allow all other characters.

 

2.  How do I allow the user to press enter key for a text area. I ve
been trying to do this through validation, but could not achieve the
desired.

 

 

Any help on the above topics will be appreciated.

 

Thanks in advance

 

Shivani

 

 



RE: Narrow down on an element in a select list with every key press

2006-01-30 Thread Shivani Sawhney

Thanks so much Raghu for such a quick reply. 
Actually I am using a list and not a textbox and I do not want a suggest
list but just want to narrow down on the content of a populated drop
down list.

I'll explain... if I have a standard drop down list for country names
and the list includes ..., "Iceland", "India", ..., "Namibia"...
Now, if you press "I" at the drop down list you'll be taken to the first
element that starts with "I", which is Iceland. But, if you press "In",
you'll not be taken to the first element that starts with "In", which is
India, but to the first element that starts with "N", which is Namibia. 
This is the standard way a drop down list will.
The feature that I want is like recursive sort or narrowing down on the
elements of the list.

(If you want to try what I am talking about, just try creating an
account/user on any website and in the country drop down list try
choosing India. You may try hotmail. )

Thanks for your suggestion.

Regards,

Shivani

 

-Original Message-
From: Raghu Kanchustambham [mailto:[EMAIL PROTECTED] 
Sent: 30 January, 2006 4:54 PM
To: Struts Users Mailing List
Subject: Re: Narrow down on an element in a select list with every key
press

Shivani,
You may want to take a look at the suggest tag provided by
Struts-layout taglibrary.

http://struts.application-servers.com/suggest/index.html

I have personally used this tag and it is quite easy to get it
working. The best thing is that you do not need to write a single line
of Javascript. Everything is encapsulated into this Tag.

The example listed is very close to what you want. When you write your
"callback" Class (in the above example - CountrySuggestAction)  you
can decide the "list" that "qualifies" with your keypress.

Also I strongly recommend this set of tags to anyone who wants to have
some "rich" functionality and do not want to move to JSF. The tabs
functionality, interdependent combos, treeviews, sorting, paging etc
are very useful and easy to use. Besides as I understand from their
site this is mature for more than 5 years.

I have been using their tags and they ROCK ! :-)

HTH,
Raghu



On 1/30/06, Shivani Sawhney <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> Is it possible, through Struts or JavaScript, to narrow down on an
> element in a select list with every key press?
>
> I have a sorted select list for country names. If I have entries for
> "Iceland" and "India" in the pick list, then pressing "I" would take
me
> to "Iceland" but pressing "In" will take me to element starting with
"N"
> and not to "India". Is there any way that I can narrow down on an
> element in a select list with every key press?
>
> This functionality can well be achieved in applications but can this
be
> achieved in web based solutions. I don't mind using JavaScript too.
>
>
>
> Any help will be appreciated.
>
> Regards,
>
> Shivani
>
> **
>
> NetEdge Computing Global Services Private Limited.
>
> A-14, Sector-7, NOIDA U.P. 201-301
>
> Tel #  91-120-2423281, 2423282
>
> Fax #  91-120-2423279
>
> URL  http//www.netedgecomputing.com
>
> **
>
> This message may contain confidential and/or privileged information.
If
> you are not the addressee or authorized to receive this for the
> addressee, you must not use, copy, disclose or take any action based
on
> this message or any information herein. If you have received this
> message in error, please advise the sender immediately by reply e-mail
> and delete this message. Thank you for your cooperation
>
>
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Narrow down on an element in a select list with every key press

2006-01-30 Thread Shivani Sawhney
Hi,

 

Is it possible, through Struts or JavaScript, to narrow down on an
element in a select list with every key press? 

I have a sorted select list for country names. If I have entries for
"Iceland" and "India" in the pick list, then pressing "I" would take me
to "Iceland" but pressing "In" will take me to element starting with "N"
and not to "India". Is there any way that I can narrow down on an
element in a select list with every key press?

This functionality can well be achieved in applications but can this be
achieved in web based solutions. I don't mind using JavaScript too.

 

Any help will be appreciated.

Regards,

Shivani

**

NetEdge Computing Global Services Private Limited. 

A-14, Sector-7, NOIDA U.P. 201-301

Tel #  91-120-2423281, 2423282

Fax #  91-120-2423279

URL  http//www.netedgecomputing.com

**

This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation 

 



Masking in valition-admin.xml

2006-01-16 Thread Shivani Sawhney
Hi,

 

I have used masking in validation-admin.xml in my project. The problem
is that I want '&' to be allowed to my text boxes on which masking is
done but masking does not allow me to put ampersand. Please help me in
this context.

 

Thanks

 



Struts version for websphere 5.1?

2006-01-05 Thread Shivani Sawhney
Hi,

 

I am trying to run a very simple application on struts on WebSphere 5.1
and am getting the following error:

 

SRVE0026E: [Servlet Error]-[]: java.lang.NullPointerException at
org.apache.struts.taglib.TagUtils.pageURL(TagUtils.java:1114) at
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.ja
va:466) at
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.ja
va:329) at
org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:475) at
org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:334) at
org.apache.jsp._welcome._jspService(_welcome.java:90) at
com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java
:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:344) at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet
.java:662) at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:7
60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
com.ibm.ws.webcontainer.servlet.StrictS --  --

 

Is it because I am not using the correct version of struts for Websphere
5.1?

Can someone please tell me that which version of struts would work fine
with IBM WebSphere 5.1 server or if the problem is with something else?

 

Any help would be much appreciated. 

Regards,

Shivani



RE: Upload all files of a dir at one go

2005-12-15 Thread Shivani Sawhney
Hi Dave,

Thanks for the reply.


When I said "upload all the files of a directory at one go", I didn't
really mean that upload the directory as is. May be a smarter reply
would be that yes, we actually can upload all files of a directory at
one go, given that we zip the directory and upload the zipped file on
the server and then unzip it through code and extract the files and use
them.
Thanks to you and the words you chose, it somehow just sparked me to
just get the code ready just immediately. 
And tell me something, probably I am just thinking aloud and am even
wrong, but if I can do it through code then can't we just have a custom
tag that zips the chosen directory at client side, uploads the zipped
file on to the server and provides the programmer with appropriate
methods to use the entries in the zipped file more conveniently.

Really sorry if you find my reply rude at all. I actually respect you
for all the knowledge you have.

But.Imagination is stronger than knowledge.


Sorry, if it was melodramatic. :-)


Regards,

Shivani

This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation 

 


-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: 15 December, 2005 6:02 PM
To: Struts Users Mailing List
Subject: Re: Upload all files of a dir at one go

Shivani Sawhney wrote:

>I want to upload all the files of a directory at one go. Is there a tag
>available that I can use. The  tag would only let me select
a
>file not a directory.
>  
>
Short answer: no. That's just not how browsers work.


There seems to be a general lack of knowledge about how web 
applications, browsers, etc. work. When did this happen? I don't recall 
so many people having so little knowledge until recently, and I'm not 
sure how or why it happened. Things like the differences between 
client-side and server-side, what custom tags are actually doing, etc.

Does anybody have any insights? It's to the point where I want to write 
a couple pages on the complete basics of all this stuff. Just kinda 
freaks me out is all.


Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Upload all files of a dir at one go

2005-12-15 Thread Shivani Sawhney
Hi,

 

I want to upload all the files of a directory at one go. Is there a tag
available that I can use. The  tag would only let me select a
file not a directory.

 

Any help will be much appreciated.

Regards,

Shivani

This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation 

 



RE: Want dynamic menus----struts menu tutorial?

2005-12-14 Thread Shivani Sawhney
Hi,
That was quickthanks so much.

Regards,

Shivani


This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation 

 


-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED] 
Sent: 15 December, 2005 10:17 AM
To: Struts Users Mailing List
Subject: RE: Want dynamic menusstruts menu tutorial?

Is this what you are looking for? 
http://struts-menu.sourceforge.net/userguide.html

Regards,
David

-Original Message-
From: Shivani Sawhney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 14, 2005 11:39 PM
To: Struts Users Mailing List
Subject: RE: Want dynamic menusstruts menu tutorial?

Hi, Sorry, if this question has been answered before. Could you please
give me a link to the struts menu tutorial?

Regards,

Shivani


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Want dynamic menus----struts menu tutorial?

2005-12-14 Thread Shivani Sawhney
Hi,
Sorry, if this question has been answered before. Could you please give me a 
link to the struts menu tutorial?

Regards,

Shivani


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 13 December, 2005 3:20 PM
To: user@struts.apache.org
Subject: RE: Want dynamic menus

Where to find the struts menu tutorial?

Peter

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Danny Lee
Gesendet: Dienstag, 13. Dezember 2005 10:45
An: user@struts.apache.org
Betreff: Re: Want dynamic menus


Struts menu is just fine,
works with latest stuff and can be attached to DB too, there is a nice 
tutorial.

If the stuff works just fine, why do you need updates? :)

Cheers,

Danny

Antony Paul schrieb:
> Hi all,
> I am looking for a component to create menus in Java web applications.
I
> want to have a drop down menu with many levels and a tree menu with
> expand/collapse. It should be configurable to work in client
> side/serverside. It should work with Struts/Spring and should be Apache or
> compatible licence. What are the suggestions ?. On googling I found Struts
> Menu, Struts Layout, Jenkov Prizetags. I found Struts Menu to be good one
> but it seems that it is not actively developed now. The last release was
in
> Sep 2004. The MyFaces
> Tomahawk tree control is excellent but it requires JSF.
> 
> --
> rgds
> Antony Paul
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Preserving the query string while validating a form & using dynamic initialization with DynaAction

2005-12-04 Thread Shivani Sawhney
Hi,
Thanks for the reply. There's absolutely no reason that initializing
field values in setup action won't work for me. But I am building this
use case for reports and was wondering if the initial values for start
and end period for every report could be controlled declaratively. But I
guess I'll just have to use setup action for now. 
Thanks a ton

Regards,

Shivani


 


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: 05 December, 2005 10:18 AM
To: Struts Users Mailing List
Subject: Re: Preserving the query string while validating a form & using
dynamic initialization with DynaAction

On 12/4/05, Shivani Sawhney <[EMAIL PROTECTED]> wrote:

> Thanks so much Martin.but I am not trying to validate a date
> field, I am actually trying to give a dynamic initial value to a text
> box through struts-config.xml.
>
>  initial="rd.admin.DateFormat.getDate()"/>

>From the DTD, the 'initial' attribute of  is:
   "String representation of the initial value for this property."

The typical solution is to pre-populate the form in a "setup" action
(or in a method of a DispatchAction) before forwarding to the JSP.  Is
there some reason that won't work for you?

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Preserving the query string while validating a form & using dynamic initialization with DynaAction

2005-12-04 Thread Shivani Sawhney

Hi,

Thanks so much Martin.but I am not trying to validate a date
field, I am actually trying to give a dynamic initial value to a text
box through struts-config.xml.




Regards,

Shivani

 

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: 03 December, 2005 8:20 PM
To: Struts Users Mailing List
Subject: Re: Preserving the query string while validating a form & using
dynamic initialization with DynaAction

Good Morning Shivani/Raghu

Assuming the date for the QueryString is a valid date
following the tutorial for date-validation with struts validator at
http://www.roseindia.net/strutstutorial/usingstrutsvalidatorframewor.sht
ml

in your "form" capture the date information in a html:text tag e.g.
DATE: 

we have a string which needs to be transformed and validated to
well-formed 
date
we can use field level datePattern validation of "MM/dd/" to
validate 
the form value before attempting a populate e.g.
 


  datePattern
  MM/dd/



Anyone else?
M-

- Original Message - 
From: "Shivani Sawhney" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Saturday, December 03, 2005 4:32 AM
Subject: RE: Preserving the query string while validating a form & using

dynamic initialization with DynaAction



So Sorry, Raghu!
The option (a) for Query 1 actually works Thanks a ton!

In set up action, I was trying to get the values through
"request.getParameter("id0")", changing it to "form.get("id0")" worked.


About the 2nd query, when I write,



..the text box displays "rd.admin.DateFormat.getDate()" literally. Is
there any way that I could get the form value to be evaluated rather
than just outputting it as is?

Regards,

Shivani




-Original Message-
From: Raghu Kanchustambham [mailto:[EMAIL PROTECTED]
Sent: 03 December, 2005 1:35 PM
To: Struts Users Mailing List
Subject: Re: Preserving the query string while validating a form & using
dynamic initialization with DynaAction

> Query 1:

There are two approaches I can think of right now. You will need to
"burn"
this querystring information into (a) the form object   or (b) the
session.

(a) If you are using dynaction form, then just adding another variable
to
hold the id0 in the config.xml definition should be less painful. But
even
if you are using the regular "typed" action form, then also it should
not be
too much of a trouble to add the extra parameter. You can then map this
parameter to a hidden variable in your jsp.

(b) Instead of reading the variable form querystring/request object,
burn it
in to the session and read it from there. You could have a helper
function (
a getId0( ) ) which checks if the variable is in the query string then
it
returns from the request object, else it should look up the session.
Prevalidation, it would find it in the the request object, post
validation
it can pick it up from the session. Be aware that the drawback of this
approach is that the user may have contamination of this variable if she
opens another window from the same browser (like a Ctrl N in internet
explorer) which will share the same cookie and hence the same session.
But
this is true in all cases where you use session scoped variables.

>Query 2:

I doubt if you could do that! The xml config files are fairly static in
my
opinion. But I am just guessing.


HTH,
Raghu

On 12/3/05, Shivani Sawhney <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
>
> Can someone please help solve the following problems?
>
>
>
> Query 1:
>
>
>
> I am trying to access an action through a hyperlink and provide some
> parameters through query string. This action forwards to a JSP, whose
> URL reads something like
> http://servername:port/rd/masters/SetupEditJobProfileAction.do?id0=13.
I
> have added validations on this JSP through DynaValidator Framework.
Now
> if the user feeds some incorrect input, the user is taken to the same
> JSP with the errors listed but the URL doesn't have the query string
> attached anymore, i.e., the URL becomes something like,
> http://servername:port/rd/masters/SetupEditJobProfileAction.do which
is
> causing errors in my code.
>
>
>
> Could someone please suggest how to keep the query string (request
> parameters) intact even when validation errors are caught and
displayed
> on the JSP?
>
>
>
>
>
> Query 2:
>
> Can I use user defined classes while initializing form fields using
Dyna
> Action?
>
> E.g., Can I write something like,
>
>  type="org.apache.struts.validator.DynaValidatorForm">
>
>   initial="rd.admin.DateFormat.getDate()"/>
>
>
>
> Any help will be much appreciated.
>
> Thanks in advance.
>
> Regards,

RE: Preserving the query string while validating a form & using dynamic initialization with DynaAction

2005-12-03 Thread Shivani Sawhney

So Sorry, Raghu!
The option (a) for Query 1 actually works Thanks a ton!

In set up action, I was trying to get the values through
"request.getParameter("id0")", changing it to "form.get("id0")" worked.


About the 2nd query, when I write,



...the text box displays "rd.admin.DateFormat.getDate()" literally. Is
there any way that I could get the form value to be evaluated rather
than just outputting it as is?

Regards,

Shivani

 


-Original Message-
From: Raghu Kanchustambham [mailto:[EMAIL PROTECTED] 
Sent: 03 December, 2005 1:35 PM
To: Struts Users Mailing List
Subject: Re: Preserving the query string while validating a form & using
dynamic initialization with DynaAction

> Query 1:

There are two approaches I can think of right now. You will need to
"burn"
this querystring information into (a) the form object   or (b) the
session.

(a) If you are using dynaction form, then just adding another variable
to
hold the id0 in the config.xml definition should be less painful. But
even
if you are using the regular "typed" action form, then also it should
not be
too much of a trouble to add the extra parameter. You can then map this
parameter to a hidden variable in your jsp.

(b) Instead of reading the variable form querystring/request object,
burn it
in to the session and read it from there. You could have a helper
function (
a getId0( ) ) which checks if the variable is in the query string then
it
returns from the request object, else it should look up the session.
Prevalidation, it would find it in the the request object, post
validation
it can pick it up from the session. Be aware that the drawback of this
approach is that the user may have contamination of this variable if she
opens another window from the same browser (like a Ctrl N in internet
explorer) which will share the same cookie and hence the same session.
But
this is true in all cases where you use session scoped variables.

>Query 2:

I doubt if you could do that! The xml config files are fairly static in
my
opinion. But I am just guessing.


HTH,
Raghu

On 12/3/05, Shivani Sawhney <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
>
> Can someone please help solve the following problems?
>
>
>
> Query 1:
>
>
>
> I am trying to access an action through a hyperlink and provide some
> parameters through query string. This action forwards to a JSP, whose
> URL reads something like
> http://servername:port/rd/masters/SetupEditJobProfileAction.do?id0=13.
I
> have added validations on this JSP through DynaValidator Framework.
Now
> if the user feeds some incorrect input, the user is taken to the same
> JSP with the errors listed but the URL doesn't have the query string
> attached anymore, i.e., the URL becomes something like,
> http://servername:port/rd/masters/SetupEditJobProfileAction.do which
is
> causing errors in my code.
>
>
>
> Could someone please suggest how to keep the query string (request
> parameters) intact even when validation errors are caught and
displayed
> on the JSP?
>
>
>
>
>
> Query 2:
>
> Can I use user defined classes while initializing form fields using
Dyna
> Action?
>
> E.g., Can I write something like,
>
>  type="org.apache.struts.validator.DynaValidatorForm">
>
>   initial="rd.admin.DateFormat.getDate()"/>
>
>
>
> Any help will be much appreciated.
>
> Thanks in advance.
>
> Regards,
>
> Shivani
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Preserving the query string while validating a form & using dynamic initialization with DynaAction

2005-12-03 Thread Shivani Sawhney
Thanks Raghu for such a quick reply.

I too considered the two options that you've suggested. Option (a) does
not work and I was avoiding storing info in session scope.

I'll try & explain the problem with option (a).

The action which forwards to the JSP is a named
SetupEditJobProfileAction. This action takes the value from the query
string and stores the value in a hidden form field. The action that this
JSP submits to is able to get this value from the form. But when there
is a validation error, the set up action is not able to get the same
value through the form. 
My only guess is that when there is an input error the form doesn't
really get submitted. But I am still not sure if that's the case.

Are you aware of any parameter of the action tag which could state if
post validation the form is to be submitted or not?


Regards,

Shivani



-Original Message-
From: Raghu Kanchustambham [mailto:[EMAIL PROTECTED] 
Sent: 03 December, 2005 1:35 PM
To: Struts Users Mailing List
Subject: Re: Preserving the query string while validating a form & using
dynamic initialization with DynaAction

> Query 1:

There are two approaches I can think of right now. You will need to
"burn"
this querystring information into (a) the form object   or (b) the
session.

(a) If you are using dynaction form, then just adding another variable
to
hold the id0 in the config.xml definition should be less painful. But
even
if you are using the regular "typed" action form, then also it should
not be
too much of a trouble to add the extra parameter. You can then map this
parameter to a hidden variable in your jsp.

(b) Instead of reading the variable form querystring/request object,
burn it
in to the session and read it from there. You could have a helper
function (
a getId0( ) ) which checks if the variable is in the query string then
it
returns from the request object, else it should look up the session.
Prevalidation, it would find it in the the request object, post
validation
it can pick it up from the session. Be aware that the drawback of this
approach is that the user may have contamination of this variable if she
opens another window from the same browser (like a Ctrl N in internet
explorer) which will share the same cookie and hence the same session.
But
this is true in all cases where you use session scoped variables.

>Query 2:

I doubt if you could do that! The xml config files are fairly static in
my
opinion. But I am just guessing.


HTH,
Raghu

On 12/3/05, Shivani Sawhney <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
>
> Can someone please help solve the following problems?
>
>
>
> Query 1:
>
>
>
> I am trying to access an action through a hyperlink and provide some
> parameters through query string. This action forwards to a JSP, whose
> URL reads something like
> http://servername:port/rd/masters/SetupEditJobProfileAction.do?id0=13.
I
> have added validations on this JSP through DynaValidator Framework.
Now
> if the user feeds some incorrect input, the user is taken to the same
> JSP with the errors listed but the URL doesn't have the query string
> attached anymore, i.e., the URL becomes something like,
> http://servername:port/rd/masters/SetupEditJobProfileAction.do which
is
> causing errors in my code.
>
>
>
> Could someone please suggest how to keep the query string (request
> parameters) intact even when validation errors are caught and
displayed
> on the JSP?
>
>
>
>
>
> Query 2:
>
> Can I use user defined classes while initializing form fields using
Dyna
> Action?
>
> E.g., Can I write something like,
>
>  type="org.apache.struts.validator.DynaValidatorForm">
>
>   initial="rd.admin.DateFormat.getDate()"/>
>
>
>
> Any help will be much appreciated.
>
> Thanks in advance.
>
> Regards,
>
> Shivani
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Preserving the query string while validating a form & using dynamic initialization with DynaAction

2005-12-02 Thread Shivani Sawhney
Hi,

 

Can someone please help solve the following problems? 

 

Query 1:

 

I am trying to access an action through a hyperlink and provide some
parameters through query string. This action forwards to a JSP, whose
URL reads something like
http://servername:port/rd/masters/SetupEditJobProfileAction.do?id0=13. I
have added validations on this JSP through DynaValidator Framework. Now
if the user feeds some incorrect input, the user is taken to the same
JSP with the errors listed but the URL doesn't have the query string
attached anymore, i.e., the URL becomes something like,
http://servername:port/rd/masters/SetupEditJobProfileAction.do which is
causing errors in my code.

 

Could someone please suggest how to keep the query string (request
parameters) intact even when validation errors are caught and displayed
on the JSP?

 

 

Query 2:

Can I use user defined classes while initializing form fields using Dyna
Action?

E.g., Can I write something like,



  

 

Any help will be much appreciated.

Thanks in advance.

Regards,

Shivani