No posts in last couple of days?

2003-04-01 Thread K.Viswanathan
Test...


Problems with struts release ?

2003-02-24 Thread K.Viswanathan

Hi
I am getting the following error in release1 of struts when I access
anything ending with ".do":

"Cannot initialize RequestProcessor of class
org.apache.struts.action.RequestProcessor: java.lang.NoSuchMethodError -
javax.servlet.UnavailableException: Cannot initialize RequestProcessor of
class org.apache.struts.action.RequestProcessor:
java.lang.NoSuchMethodError.."

It does not seem to recognize ".do". but the web.xml has been configured
properly as I have been using struts beta 1.1 till date.

Any inputs on resolving this would be appreciated

Thanks
Vishy


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



Re: [OT] VOTE to help Naveen.Dhotre Unsubscribe permanently

2003-01-29 Thread K.Viswanathan
+2

- Original Message - 
From: "PILGRIM, Peter, FM" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 4:06 PM
Subject: [OT] VOTE to help Naveen.Dhotre Unsubscribe permanently


> Naveen is just like Aerosmith always on "permanent vacation". 
> Can we not help to alleviate her suffering. Can I get witness on this?
> 
> +1 from me.
> 
> --
> Peter Pilgrim,
> Struts/J2EE Consultant, RBoS FM, Risk IT
> Tel: +44 (0)207-375-4923
> 
> 
> 
>   Visit our Internet site at http://www.rbsmarkets.com
> 
> This e-mail is intended only for the addressee named above.
> As this e-mail may contain confidential or privileged information,
> if you are not the named addressee, you are not authorised to
> retain, read, copy or disseminate this message or any part of it.
> The Royal Bank of Scotland plc is registered in Scotland No 90312
> Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
>  Regulated by the Financial Services Authority
> 
> 
> -
> 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]




Does struts support validation for dynamic form?

2003-01-28 Thread K.Viswanathan


Hi ,

i have a requirement where user has to fill up some kind of questionaire form. 
Questions for a user depends on the "type" of a user.  Questions are basically mutiple 
choice questions and the user can select the correct answer by selecting a radio 
button ( for each question there are five radio buttons each reparesenting a rating 
and the user is supposed to select a rating from 1 to 5 ). So the number of elements 
in the form can change based on the type of user.

Now i want to use struts validation frame work for performing validations. If the user 
leaves any of the answers empty by not selecting the radio button for a question , the 
system should not accept it and report an error displaying the same form with all the 
data entered for the form.

The question is :
How can i use the validation framework to perform validation? Please note that the 
form fields change (based on the user type) so it is not possible for me to associate 
them in "validator.xml"  before hand. Does struts provide any means to validate when 
the form elements are dynamic?

Thanks in advance
Vishy




Re: changing ActionForm to be a Java interface

2003-01-14 Thread K.Viswanathan
In this example, assuming that the employee id is long ( or for that matter
any other attribute of Employee , say age of int type ) , then will it not
be incorrect to have the EmployeeForm implementing  Employee interface?
Doing so the EmployeeForm is basically having a property of long/int type
rather than a String?

Thanks
Vishy


- Original Message -
From: "Hookom, Jacob John" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 10:35 AM
Subject: RE: changing ActionForm to be a Java interface


I should be a little more concise with property definition where as Employee
would have an id that was a long.  What you would like to see with Struts
development is to have all properties of an ActionForm be Strings instead of
integrating primitives.

Again, thanks for all your work

Jacob

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tue 1/14/2003 10:58 PM
To: Struts Users Mailing List
Cc:
Subject: RE: changing ActionForm to be a Java interface





On Tue, 14 Jan 2003, Hookom, Jacob John wrote:

> Date: Tue, 14 Jan 2003 22:24:22 -0600
> From: "Hookom, Jacob John" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: changing ActionForm to be a Java interface
>
> Is the resolution of this discussion that I shouldn't ever do something
like this:
>
> public interface Employee extends Serializable
> public class EmployeeObject implements Employee
> public class EmployeeForm extends ActionForm implements Employee
>
> public ActionForward execute(.) throws ..
> {
>  EmployeeForm empForm = (EmployeeForm) form;
>  Employee employee = new EmployeeObject();
>  BeanUtils.copyProperties(empForm, employee);
>
>  // persist employee object
> }
>

No, you're doing the reverse of what I would not want to see:

  public class EmployeeObject implements Employee, ActionForm

This is where you get into trouble over things like property types, as
well as making any user of EmployeeObject depend on Struts.

Your example correctly recognizes that EmployeeObject and EmployeeForm
are two totally differnt things, with different purposes and different
lifetimes.  And, note that neither Employee nor EmployeeForm have any
dependencies on Struts APIs, so they are reasonable to use in non-web
environments as well.

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:











> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [Graphs]

2002-09-17 Thread K.Viswanathan

Take a look at

http://cewolf.sourceforge.net/

Chreers!
Vishy

- Original Message -
From: "Susmita Pati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 12:44 AM
Subject: [Graphs]


> Hi All
>
> I wanted to have a chart displayed on my jsp page.
> Any ideas which is the best solution, i looked around the net found few
> things like Kava and stuff like that.
> Just wanted to know if anyone else has used. Any suggestions are welcome
>
> Thanks
> susmita
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: i18n

2002-09-05 Thread K.Viswanathan

Thanks Ted. :)
Vishy

- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 3:10 PM
Subject: Re: i18n


> Without getting into implementation issues, the important thing to note
> is that Struts uses the same MessageFormat class and follows the same
> rules for loading a bundle. From a application development standpoint,
> you won't know the difference. Any bundles you can use with
> ResourceBundle you can use with MessageResources (and vice versa).
>
> There are some discussions about a JDBCMessageResource class happening
> on the DEV list. If you are interested in the underlying implementation,
> you might stop in there.
>
> As noted, some parts of Struts predate what is now available. If the
> JSTL had been out two years ago, most of the taglibs would never had
> been written. If filters had been available sooner, the control layer
> would also be different. (And may be, post 1.1)
>
> But as standards become available, you can expect Struts to fall in
> line. As a volunteer project, we don't always have the resources to make
> sweeping internal changes to the codebase, but you can expect the
> top-level APIs to be compatible. As they are between MessageResources
> and ResourceBundle.
>
> -Ted.
>
> K.Viswanathan wrote:
>
> >
> > I am asking about general programming. I'd like to know What are the
> > advantages of MessageResources/PropertyMessages of  struts.util over the
> > ResourceBundle ( and other related classes )of java.
> >
> >
> > Excerpts from Chuck Cavaness's book ( chapter 3) :
> > The Java library includes a set of classes to support reading message
> > resources from either a Java class or a properties file. The core class
in
> > this set is the java.util.ResourceBundle. The Struts framework provides
a
> > similar set of classes, based around the
> > org.apache.struts.util.MessageResources class that provides similar
> > functionality, but provides for a little more flexibility that the
framework
> > requires.
> >
> > The standard Java support for Internationalization has grown with the
past
> > several releases and the Struts framework could probably use what's
included
> > with 1.2 and newer, but since Struts was created before 1.2, they had to
> > build in their own support for several key pieces. .
> >
> > Chuck Cavaness's book  ( chapter  12)states that
> >
> >  "The Struts framework does not use the ResourceBundle provided by the
core
> > language. Instead, it provides similar functionality with the classes
within
> > its framework. The org.apache.struts.util.MessageResources class and its
> > only concrete subclass, org.apache.struts.util.PropertyMessageResources,
are
> > used to perform parallel functionality to that of the ResourceBundle
> > hierarchy. .."
> >
> > Thanks
> > Vishy
> >
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Michael" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, September 04, 2002 6:14 PM
> > Subject: RE: i18n
> >
> >
> >
> >>I'm not sure what you mean.  Are you talking about general programming
> >>or for HTML pages generated with a struts application?  For the latter,
> >>you do not need to use thoses classes, struts does it all for you.
> >>
> >>
> >>>-Original Message-
> >>>From: K.Viswanathan [mailto:[EMAIL PROTECTED]]
> >>>Sent: Wednesday, September 04, 2002 1:56 PM
> >>>To: Struts Users Mailing List
> >>>Subject: Re: i18n
> >>>
> >>>
> >>>
> >>>
> >>>Yes. Tag libraries are useful but what I wanted to know is
> >>>what are the
> >>>advantages of using MessageResources,
> >>>PropertyMessageResources etc .
> >>>We can define simple .properties files for every locale and
> >>>use ResourceBundles to get the data inside the message tag.
> >>>Are there any advantage of using the classes mentioned above?
> >>>
> >>>Thanks
> >>>Vishy
> >>>
> >>>- Original Message -
> >>>From: "Michael" <[EMAIL PROTECTED]>
> >>>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> >>>Sent: Wednesday, September 04, 2002 4:59 PM
> >>>

Re: i18n

2002-09-04 Thread K.Viswanathan



I am asking about general programming. I'd like to know What are the
advantages of MessageResources/PropertyMessages of  struts.util over the
ResourceBundle ( and other related classes )of java.


Excerpts from Chuck Cavaness's book ( chapter 3) :
The Java library includes a set of classes to support reading message
resources from either a Java class or a properties file. The core class in
this set is the java.util.ResourceBundle. The Struts framework provides a
similar set of classes, based around the
org.apache.struts.util.MessageResources class that provides similar
functionality, but provides for a little more flexibility that the framework
requires.

The standard Java support for Internationalization has grown with the past
several releases and the Struts framework could probably use what's included
with 1.2 and newer, but since Struts was created before 1.2, they had to
build in their own support for several key pieces. .

Chuck Cavaness's book  ( chapter  12)states that

 "The Struts framework does not use the ResourceBundle provided by the core
language. Instead, it provides similar functionality with the classes within
its framework. The org.apache.struts.util.MessageResources class and its
only concrete subclass, org.apache.struts.util.PropertyMessageResources, are
used to perform parallel functionality to that of the ResourceBundle
hierarchy. .."

Thanks
Vishy






- Original Message -
From: "Michael" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 6:14 PM
Subject: RE: i18n


> I'm not sure what you mean.  Are you talking about general programming
> or for HTML pages generated with a struts application?  For the latter,
> you do not need to use thoses classes, struts does it all for you.
>
> > -Original Message-
> > From: K.Viswanathan [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 04, 2002 1:56 PM
> > To: Struts Users Mailing List
> > Subject: Re: i18n
> >
> >
> >
> >
> > Yes. Tag libraries are useful but what I wanted to know is
> > what are the
> > advantages of using MessageResources,
> > PropertyMessageResources etc .
> > We can define simple .properties files for every locale and
> > use ResourceBundles to get the data inside the message tag.
> > Are there any advantage of using the classes mentioned above?
> >
> > Thanks
> > Vishy
> >
> > - Original Message -
> > From: "Michael" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, September 04, 2002 4:59 PM
> > Subject: RE: i18n
> >
> >
> > > > I'd be happy if anyone could clarify my basic doubt
> > related to i18n
> > > > . I'd like to know what are the added features related to I18n
> > > > implemented in Struts over the one already supported by
> > java? what
> > > > are the advantages of
> > org.apache.struts.util.MessageResources  ( and
> > > > other related
> > > > classes) over ResourceBundle?
> > >
> > > With struts you can use the
> > >
> > > 
> > >
> > > To get the text out of a resource properties file.  Struts will use
> > > the locale defined in the user's browser preferences.
> > >
> > > Michael
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: i18n

2002-09-04 Thread K.Viswanathan



Yes. Tag libraries are useful but what I wanted to know is what are the
advantages of using MessageResources,PropertyMessageResources etc .
We can define simple .properties files for every locale and use
ResourceBundles to get the data inside the message tag. Are there any
advantage of using the classes mentioned above?

Thanks
Vishy

- Original Message -
From: "Michael" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 4:59 PM
Subject: RE: i18n


> > I'd be happy if anyone could clarify my basic doubt related
> > to i18n . I'd like to know what are the added features
> > related to I18n implemented in Struts over the one already
> > supported by java? what are the advantages of
> > org.apache.struts.util.MessageResources  ( and other related
> > classes) over ResourceBundle?
>
> With struts you can use the
>
> 
>
> To get the text out of a resource properties file.  Struts will use the
> locale defined in the user's browser preferences.
>
> Michael
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




i18n

2002-09-04 Thread K.Viswanathan



Hi!

I'd be happy if anyone could clarify my basic doubt related to i18n . I'd
like to know what are the added features related to I18n implemented in
Struts over the one already supported by java? what are the advantages of
org.apache.struts.util.MessageResources  ( and other related classes) over
ResourceBundle?

Thanks
Vishy




Re: Tree Folder navigation

2002-09-03 Thread K.Viswanathan


Sounds good! When do you expect it to be ready? Is there a provision for
client side scripting too( via say dhtml) ?

Thanks
Vishy

- Original Message -
From: "Parveen Kumar Hooda" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 3:42 PM
Subject: Re: Tree Folder navigation


> Hi Alex
>
> Are you looking for a tree type control? If so,then
> I have almost developed a tree tag(needs some polishing..) .
> This component expects a collection of nodes(the node can have Id ,
> parentId , name etc.)
> This tag can be used  with struts as well as with plain JSP's.
> It is a pure server side component.If  yu want to use it , I can share it.
>
>
> regards
>
> Pary
>
>
>
> - Original Message -
> From: "alex hun" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, September 02, 2002 9:50 PM
> Subject: Tree Folder navigation
>
>
> >
> > Hi all,
> >
> > I would like to implement tree folder navigation for my project.
> However, i
> > am quite clueless as to how this is to be done via struts. Has anyone
> tried that
> > before or anyone know any resources tat i can refer to? thanks.
> >
> > regards
> > alex
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Design issue - Layouts or Tags?

2002-08-30 Thread K.Viswanathan


Hi

I believe we can create tags for components like tabs , trees etc. One can also create 
Layouts for them using Tiles ( There is a predefied layout available for tabs) . Which 
approach is better? 

Any thoughts on this?

Thanks in advance
Vishy





SSL with Stuts

2002-08-30 Thread K.Viswanathan


Hi!

I believe some people( Ssteve, Max and Prakash)  from 
http://home1.gte.net/ditling/struts/  have implemented ssl extension to Struts. Will 
this be integrated with Struts? 

Any inputs on this will be appriciated

Thanks
Vishy



Plug in problem(?)

2002-08-15 Thread K.Viswanathan


Hi

I am getting the following exception when  I run my application


Root cause..

java.lang.AbstractMethodError
at 
org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java:991)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:458)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)


It was working fine with beta 1> After copying all jar files and related stuff of 
beta2 ( of Aug 12th , I am not using nightly build), I get this error. Any clues?

Thanks in advance
Vishy