You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sergey Smirnov <si...@exadel.com> on 2003/06/17 04:48:29 UTC

Is modern Java IDE enough to work with Struts Project? Was: [OT] IDE with easy tomcat upgrade?

Max Cooper wrote:
> I'm not sure how much this helps, but IDEA can validate any XML file that
> has a DTD. If you write Java code to do validations, you can set
breakpoints
> in it and debug it.
> -Max
>

validation xml file against DTD is a good feature. However, lets light the
problem in more details. For example, we have a very simple jsp form and
want to use standard server-side validator 'required' for one form field.
Actually, it might vary, but to do so you have:

1) Resource (.properties) file with keys/values for standard validators (at
least errors.required)
2) struts-config file should contain the reference to this resource file for
message-resources node
3) struts-config plug-in node should contain
className="org.apache.struts.validator.ValidatorPlugIn"
4) this plugin should have set-property with name pathnames that corresponds
to validator files (such as /WEB-INF/validator-rules.xml and
/WEB-INF/validation.xml)
5) validation.xml should contain form with name corresponds to form-bean
name
6) the form should have a field with property that corresponds to field name
we want to validate
7) this field should have a 'depends' attribute that corresponds to
validator name mentioned in /WEB-INF/validator-rules.xml (in our case - with
name 'required')
8) this field should have an arg0 node which attribute key corresponds to
existing key in resource file
9) form bean should inherit org.apache.struts.validator.ValidatorForm class
10) form bean validate should call validate method of super class
11) 'input' attribute of action should reference to jsp page with validated
form
12) jsp page should contains <html:errors /> (or its substitute)

You can see a lot a references here. They are mostly string references. Just
any typo and validation does not work properly. I wonder, how modern Java
IDE (IDEA, JBuilder, Eclipse, NetBeans and so on) tries to help Struts
developers to find and fix those kind of problems.
James, how does Struts Console try to solve this interdependence problem?


> ----- Original Message ----- 
> From: "Sergey Smirnov" <si...@exadel.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Monday, June 16, 2003 5:29 PM
> Subject: Re: [OT] IDE with easy tomcat upgrade?
>
>
> > How does your favorite Java IDE help you find problem with Validation
> > Framework, for example?
> >
> > ----- Original Message ----- 
> > From: "Jeff Kyser" <kt...@comcast.net>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > Sent: Monday, June 16, 2003 1:41 PM
> > Subject: Re: [OT] IDE with easy tomcat upgrade?
> >
> >
> > > works for me...
> > >
> > > On Monday, June 16, 2003, at 03:40  PM, Sergey Smirnov wrote:
> > >
> > > > IntelliJ IDEA is an outstanding JAVA IDE. However, is JAVA IDE
enough
> > > > to
> > > > work with Struts Project?
> > > >
> > > > ----- Original Message -----
> > > > From: "Max Cooper" <ma...@maxcooper.com>
> > > > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > > > Sent: Monday, June 16, 2003 1:04 PM
> > > > Subject: Re: [OT] IDE with easy tomcat upgrade?
> > > >
> > > >
> > > >> In case no one mentioned it yet, IntelliJ IDEA is an outstanding
IDE
> > > >> with
> > > >> support for running and debugging code running on app servers,
> > > >> including
> > > >> Tomcat. IDEA has an excellent feature list, but what really sets it
> > > >> apart
> > > > is
> > > >> how easy it is to use. Perhaps "easy to use" is not really the most
> > > > complete
> > > >> way to describe it, even though it is easy to use. IDEA is both
> > > >> powerful
> > > > and
> > > >> intuitive -- like a really fast car with excellent (and forgiving)
> > > > handling
> > > >> characteristics. Their "Develop with Pleasure" tag line is really
> > > >> true;
> > > > IDEA
> > > >> is a joy to work with. I have used many IDEs over the years, and
IDEA
> > > >> is
> > > > my
> > > >> favorite.
> > > >>
> > > >> It is not open source, but it is good enough that I think I would
buy
> > > > myself
> > > >> a copy if I had to. A time-limited license is available for
> > > >> evaluation.
> > > >> http://www.intellij.com/idea/
> > > >>
> > > >> -Max
> > > >>
> > > >> ----- Original Message -----
> > > >> From: "isaac" <is...@jpmktg.com>
> > > >> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > > >> Sent: Monday, June 16, 2003 8:58 AM
> > > >> Subject: Re: [OT] IDE with easy tomcat upgrade?
> > > >>
> > > >>
> > > >>> On 6/14/03 8:16 AM, "Aaron Longwell" <li...@newmedialogic.com>
> > > > wrote:
> > > >>>
> > > >>>> Isaac,
> > > >>>>
> > > >>>> I too am in the market for an IDE. Can you give me some details
> > > >>>> about
> > > >>>> what features you like about NetBeans? Are you using any plugins?
> > > >>>> Any
> > > >>>> specific features that make J2EE development quicker?
> > > >>>>
> > > >>>> Thanks,
> > > >>>> Aaron
> > > >>>
> > > >>> I have never used Eclipse's, so, I can't say whether or not it is
a
> > > > better
> > > >>> IDE. What I like about NetBeans, however, is that is has great
jsp,
> > > >> servlet,
> > > >>> xml, css, and html support. It features things like auto
completion
> > > >>> for
> > > >>> taglibs in a jsp page, and auto creation of DTD's from an xml
file.
> > > >>> The
> > > >> new
> > > >>> 3.5 release has address many of the performance issues of previous
> > > >> versions.
> > > >>> I will admit, getting an external installation for Tomcat can be
> > > >>> tricky
> > > > at
> > > >>> times, but, it's not impossible. ;)
> > > >>>
> > > >>> Thanks,
> > > >>> Isaac
> > > >>>
> > > >>>
> > >
> >>> ---------------------------------------------------------------------
> > > >>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > >>> For additional commands, e-mail:
struts-user-help@jakarta.apache.org
> > > >>>
> > > >>>
> > > >>
> > > >>
> > > >>
> > >
>> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > >> For additional commands, e-mail:
struts-user-help@jakarta.apache.org
> > > >>
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Is modern Java IDE enough to work with Struts Project? Was: [OT] IDE with easy tomcat upgrade?

Posted by Ted Husted <hu...@apache.org>.
Sergey Smirnov wrote:
> You can see a lot a references here. They are mostly string references. Just
> any typo and validation does not work properly. I wonder, how modern Java
> IDE (IDEA, JBuilder, Eclipse, NetBeans and so on) tries to help Struts
> developers to find and fix those kind of problems.

Does Struts Studio address these types of issues, Sergey?

I think we'd all agree that it would be excellent if an IDE, or a plugin 
for IDEs, understood the Struts-Config as well as, say, IDEA understands 
Java.

It would be cool if you entered a class name into the config and then 
were prompted if it weren't on the class path (like like in Java code). 
   Or, if you were able to get a popup of all Action subclasses in the 
project. And so on.

To an extent, you might be able to specify many of these things as a DTD 
extension. I imagine there are many common patterns in configuration 
files, whether they are Struts configs, or the web.xml, or the Validator 
or Tiles configurations, or configurations used by other frameworks, 
like Maverick and WebWorks. The challenge is coming up with a notation 
to express the relationships, so that vendors (like James) could then 
build on top of that.

Of course, if you hardwire the Struts DTD into a package, some things 
become much easier. I'm sure we'll see plenty of these being tacked onto 
Java IDEs in the near future. But it would be neat to see a configurable 
XML/DTD plugin that could be used with a wide expanse of XML 
configuration files, even those that haven't been invented yet.

-Ted.




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Open Source Forum software

Posted by Dimitar Georgievski <di...@websyn.com>.
I'm looking for java based open source forum software. Something like eForum
but that integrates with Struts. Is there anything like that available?

thanks,

dimitar


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Is modern Java IDE enough to work with Struts Project?

Posted by James Holmes <ja...@jamesholmes.com>.
Not to worry, no offense taken.  The beauty of Struts Console is that it
is just that: a simple editor for the myriad XML files used in
developing Struts applications.  Certainly it could be much more, but I
think it would lose its broad appeal then.

Of course there is still continual evolvement.  I'm about to release
Struts Console 4.0 which will have some nice new features.  Stay tuned.

-James
Struts Console
http://www.jamesholmes.com/struts/


-----Original Message-----
From: Sergey Smirnov [mailto:sim@exadel.com] 
Sent: Tuesday, June 17, 2003 5:37 PM
To: Struts Users Mailing List
Subject: Re: Is modern Java IDE enough to work with Struts Project?

Are you sure James need some defense? Struts Console is most popular GUI
tool for Struts - 55,000+ downloads.
I just wonder why it still evolves as a set of losely coupled
specialized
XML editors.

----- Original Message ----- 
From: "Aaron Longwell" <li...@newmedialogic.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, June 17, 2003 3:03 PM
Subject: Re: Is modern Java IDE enough to work with Struts Project?


> In James' defense, the Struts Console is a GUI Interface to edit the
> struts-config file. Yes, you can use any text editor to edit the file,
> yes many IDEs contain shortcuts to make the process of editing
> DTD-specified XML files easier.
> I think, however, that the Struts Console is the quickest and least
> error-prone method to edit the struts-config.xml file. It's a great
> product. Good work James!
>
> Sergey Smirnov wrote:
>
> >Does it mean that Struts Concole is just a set of specialized XML
editors
> >available as plug-ins for most pupular Java IDEs?
> >
> >----- Original Message ----- 
> >From: "James Holmes" <ja...@jamesholmes.com>
> >To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> >Sent: Tuesday, June 17, 2003 5:54 AM
> >Subject: RE: Is modern Java IDE enough to work with Struts Project?
> >
> >
> >
> >
> >>Struts Console does not claim or try to solve these
"interdependence"
> >>issues you mention.  It's just a nice, simple tool for editing all
of
> >>the Struts config files.
> >>
> >>-James
> >>Struts Console
> >>http://www.jamesholmes.com/struts/
> >>
> >>
> >>-----Original Message-----
> >>From: Sergey Smirnov [mailto:sim@exadel.com]
> >>Sent: Monday, June 16, 2003 9:48 PM
> >>To: Struts Users Mailing List
> >>Subject: Is modern Java IDE enough to work with Struts Project? Was:
> >>[OT] IDE with easy tomcat upgrade?
> >>
> >>Max Cooper wrote:
> >>
> >>
> >>>I'm not sure how much this helps, but IDEA can validate any XML
file
> >>>
> >>>
> >>that
> >>
> >>
> >>>has a DTD. If you write Java code to do validations, you can set
> >>>
> >>>
> >>breakpoints
> >>
> >>
> >>>in it and debug it.
> >>>-Max
> >>>
> >>>
> >>>
> >>validation xml file against DTD is a good feature. However, lets
light
> >>the
> >>problem in more details. For example, we have a very simple jsp form
and
> >>want to use standard server-side validator 'required' for one form
> >>field.
> >>Actually, it might vary, but to do so you have:
> >>
> >>1) Resource (.properties) file with keys/values for standard
validators
> >>(at
> >>least errors.required)
> >>2) struts-config file should contain the reference to this resource
file
> >>for
> >>message-resources node
> >>3) struts-config plug-in node should contain
> >>className="org.apache.struts.validator.ValidatorPlugIn"
> >>4) this plugin should have set-property with name pathnames that
> >>corresponds
> >>to validator files (such as /WEB-INF/validator-rules.xml and
> >>/WEB-INF/validation.xml)
> >>5) validation.xml should contain form with name corresponds to
form-bean
> >>name
> >>6) the form should have a field with property that corresponds to
field
> >>name
> >>we want to validate
> >>7) this field should have a 'depends' attribute that corresponds to
> >>validator name mentioned in /WEB-INF/validator-rules.xml (in our
case -
> >>with
> >>name 'required')
> >>8) this field should have an arg0 node which attribute key
corresponds
> >>to
> >>existing key in resource file
> >>9) form bean should inherit
org.apache.struts.validator.ValidatorForm
> >>class
> >>10) form bean validate should call validate method of super class
> >>11) 'input' attribute of action should reference to jsp page with
> >>validated
> >>form
> >>12) jsp page should contains <html:errors /> (or its substitute)
> >>
> >>You can see a lot a references here. They are mostly string
references.
> >>Just
> >>any typo and validation does not work properly. I wonder, how modern
> >>Java
> >>IDE (IDEA, JBuilder, Eclipse, NetBeans and so on) tries to help
Struts
> >>developers to find and fix those kind of problems.
> >>James, how does Struts Console try to solve this interdependence
> >>problem?
> >>
> >>
> >>
> >>
> >>>----- Original Message ----- 
> >>>From: "Sergey Smirnov" <si...@exadel.com>
> >>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> >>>Sent: Monday, June 16, 2003 5:29 PM
> >>>Subject: Re: [OT] IDE with easy tomcat upgrade?
> >>>
> >>>
> >>>
> >>>
> >>>>How does your favorite Java IDE help you find problem with
> >>>>
> >>>>
> >>Validation
> >>
> >>
> >>>>Framework, for example?
> >>>>
> >>>>----- Original Message ----- 
> >>>>From: "Jeff Kyser" <kt...@comcast.net>
> >>>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> >>>>Sent: Monday, June 16, 2003 1:41 PM
> >>>>Subject: Re: [OT] IDE with easy tomcat upgrade?
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>works for me...
> >>>>>
> >>>>>On Monday, June 16, 2003, at 03:40  PM, Sergey Smirnov wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>IntelliJ IDEA is an outstanding JAVA IDE. However, is JAVA IDE
> >>>>>>
> >>>>>>
> >>enough
> >>
> >>
> >>>>>>to
> >>>>>>work with Struts Project?
> >>>>>>
> >>>>>>
> >>>>>>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Is modern Java IDE enough to work with Struts Project?

Posted by Sergey Smirnov <si...@exadel.com>.
Are you sure James need some defense? Struts Console is most popular GUI
tool for Struts - 55,000+ downloads.
I just wonder why it still evolves as a set of losely coupled specialized
XML editors.

----- Original Message ----- 
From: "Aaron Longwell" <li...@newmedialogic.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, June 17, 2003 3:03 PM
Subject: Re: Is modern Java IDE enough to work with Struts Project?


> In James' defense, the Struts Console is a GUI Interface to edit the
> struts-config file. Yes, you can use any text editor to edit the file,
> yes many IDEs contain shortcuts to make the process of editing
> DTD-specified XML files easier.
> I think, however, that the Struts Console is the quickest and least
> error-prone method to edit the struts-config.xml file. It's a great
> product. Good work James!
>
> Sergey Smirnov wrote:
>
> >Does it mean that Struts Concole is just a set of specialized XML editors
> >available as plug-ins for most pupular Java IDEs?
> >
> >----- Original Message ----- 
> >From: "James Holmes" <ja...@jamesholmes.com>
> >To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> >Sent: Tuesday, June 17, 2003 5:54 AM
> >Subject: RE: Is modern Java IDE enough to work with Struts Project?
> >
> >
> >
> >
> >>Struts Console does not claim or try to solve these "interdependence"
> >>issues you mention.  It's just a nice, simple tool for editing all of
> >>the Struts config files.
> >>
> >>-James
> >>Struts Console
> >>http://www.jamesholmes.com/struts/
> >>
> >>
> >>-----Original Message-----
> >>From: Sergey Smirnov [mailto:sim@exadel.com]
> >>Sent: Monday, June 16, 2003 9:48 PM
> >>To: Struts Users Mailing List
> >>Subject: Is modern Java IDE enough to work with Struts Project? Was:
> >>[OT] IDE with easy tomcat upgrade?
> >>
> >>Max Cooper wrote:
> >>
> >>
> >>>I'm not sure how much this helps, but IDEA can validate any XML file
> >>>
> >>>
> >>that
> >>
> >>
> >>>has a DTD. If you write Java code to do validations, you can set
> >>>
> >>>
> >>breakpoints
> >>
> >>
> >>>in it and debug it.
> >>>-Max
> >>>
> >>>
> >>>
> >>validation xml file against DTD is a good feature. However, lets light
> >>the
> >>problem in more details. For example, we have a very simple jsp form and
> >>want to use standard server-side validator 'required' for one form
> >>field.
> >>Actually, it might vary, but to do so you have:
> >>
> >>1) Resource (.properties) file with keys/values for standard validators
> >>(at
> >>least errors.required)
> >>2) struts-config file should contain the reference to this resource file
> >>for
> >>message-resources node
> >>3) struts-config plug-in node should contain
> >>className="org.apache.struts.validator.ValidatorPlugIn"
> >>4) this plugin should have set-property with name pathnames that
> >>corresponds
> >>to validator files (such as /WEB-INF/validator-rules.xml and
> >>/WEB-INF/validation.xml)
> >>5) validation.xml should contain form with name corresponds to form-bean
> >>name
> >>6) the form should have a field with property that corresponds to field
> >>name
> >>we want to validate
> >>7) this field should have a 'depends' attribute that corresponds to
> >>validator name mentioned in /WEB-INF/validator-rules.xml (in our case -
> >>with
> >>name 'required')
> >>8) this field should have an arg0 node which attribute key corresponds
> >>to
> >>existing key in resource file
> >>9) form bean should inherit org.apache.struts.validator.ValidatorForm
> >>class
> >>10) form bean validate should call validate method of super class
> >>11) 'input' attribute of action should reference to jsp page with
> >>validated
> >>form
> >>12) jsp page should contains <html:errors /> (or its substitute)
> >>
> >>You can see a lot a references here. They are mostly string references.
> >>Just
> >>any typo and validation does not work properly. I wonder, how modern
> >>Java
> >>IDE (IDEA, JBuilder, Eclipse, NetBeans and so on) tries to help Struts
> >>developers to find and fix those kind of problems.
> >>James, how does Struts Console try to solve this interdependence
> >>problem?
> >>
> >>
> >>
> >>
> >>>----- Original Message ----- 
> >>>From: "Sergey Smirnov" <si...@exadel.com>
> >>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> >>>Sent: Monday, June 16, 2003 5:29 PM
> >>>Subject: Re: [OT] IDE with easy tomcat upgrade?
> >>>
> >>>
> >>>
> >>>
> >>>>How does your favorite Java IDE help you find problem with
> >>>>
> >>>>
> >>Validation
> >>
> >>
> >>>>Framework, for example?
> >>>>
> >>>>----- Original Message ----- 
> >>>>From: "Jeff Kyser" <kt...@comcast.net>
> >>>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> >>>>Sent: Monday, June 16, 2003 1:41 PM
> >>>>Subject: Re: [OT] IDE with easy tomcat upgrade?
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>works for me...
> >>>>>
> >>>>>On Monday, June 16, 2003, at 03:40  PM, Sergey Smirnov wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>IntelliJ IDEA is an outstanding JAVA IDE. However, is JAVA IDE
> >>>>>>
> >>>>>>
> >>enough
> >>
> >>
> >>>>>>to
> >>>>>>work with Struts Project?
> >>>>>>
> >>>>>>
> >>>>>>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Is modern Java IDE enough to work with Struts Project?

Posted by Aaron Longwell <li...@newmedialogic.com>.
In James' defense, the Struts Console is a GUI Interface to edit the 
struts-config file. Yes, you can use any text editor to edit the file, 
yes many IDEs contain shortcuts to make the process of editing 
DTD-specified XML files easier.
I think, however, that the Struts Console is the quickest and least 
error-prone method to edit the struts-config.xml file. It's a great 
product. Good work James!

Sergey Smirnov wrote:

>Does it mean that Struts Concole is just a set of specialized XML editors
>available as plug-ins for most pupular Java IDEs?
>
>----- Original Message ----- 
>From: "James Holmes" <ja...@jamesholmes.com>
>To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
>Sent: Tuesday, June 17, 2003 5:54 AM
>Subject: RE: Is modern Java IDE enough to work with Struts Project?
>
>
>  
>
>>Struts Console does not claim or try to solve these "interdependence"
>>issues you mention.  It's just a nice, simple tool for editing all of
>>the Struts config files.
>>
>>-James
>>Struts Console
>>http://www.jamesholmes.com/struts/
>>
>>
>>-----Original Message-----
>>From: Sergey Smirnov [mailto:sim@exadel.com]
>>Sent: Monday, June 16, 2003 9:48 PM
>>To: Struts Users Mailing List
>>Subject: Is modern Java IDE enough to work with Struts Project? Was:
>>[OT] IDE with easy tomcat upgrade?
>>
>>Max Cooper wrote:
>>    
>>
>>>I'm not sure how much this helps, but IDEA can validate any XML file
>>>      
>>>
>>that
>>    
>>
>>>has a DTD. If you write Java code to do validations, you can set
>>>      
>>>
>>breakpoints
>>    
>>
>>>in it and debug it.
>>>-Max
>>>
>>>      
>>>
>>validation xml file against DTD is a good feature. However, lets light
>>the
>>problem in more details. For example, we have a very simple jsp form and
>>want to use standard server-side validator 'required' for one form
>>field.
>>Actually, it might vary, but to do so you have:
>>
>>1) Resource (.properties) file with keys/values for standard validators
>>(at
>>least errors.required)
>>2) struts-config file should contain the reference to this resource file
>>for
>>message-resources node
>>3) struts-config plug-in node should contain
>>className="org.apache.struts.validator.ValidatorPlugIn"
>>4) this plugin should have set-property with name pathnames that
>>corresponds
>>to validator files (such as /WEB-INF/validator-rules.xml and
>>/WEB-INF/validation.xml)
>>5) validation.xml should contain form with name corresponds to form-bean
>>name
>>6) the form should have a field with property that corresponds to field
>>name
>>we want to validate
>>7) this field should have a 'depends' attribute that corresponds to
>>validator name mentioned in /WEB-INF/validator-rules.xml (in our case -
>>with
>>name 'required')
>>8) this field should have an arg0 node which attribute key corresponds
>>to
>>existing key in resource file
>>9) form bean should inherit org.apache.struts.validator.ValidatorForm
>>class
>>10) form bean validate should call validate method of super class
>>11) 'input' attribute of action should reference to jsp page with
>>validated
>>form
>>12) jsp page should contains <html:errors /> (or its substitute)
>>
>>You can see a lot a references here. They are mostly string references.
>>Just
>>any typo and validation does not work properly. I wonder, how modern
>>Java
>>IDE (IDEA, JBuilder, Eclipse, NetBeans and so on) tries to help Struts
>>developers to find and fix those kind of problems.
>>James, how does Struts Console try to solve this interdependence
>>problem?
>>
>>
>>    
>>
>>>----- Original Message ----- 
>>>From: "Sergey Smirnov" <si...@exadel.com>
>>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>Sent: Monday, June 16, 2003 5:29 PM
>>>Subject: Re: [OT] IDE with easy tomcat upgrade?
>>>
>>>
>>>      
>>>
>>>>How does your favorite Java IDE help you find problem with
>>>>        
>>>>
>>Validation
>>    
>>
>>>>Framework, for example?
>>>>
>>>>----- Original Message ----- 
>>>>From: "Jeff Kyser" <kt...@comcast.net>
>>>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>>Sent: Monday, June 16, 2003 1:41 PM
>>>>Subject: Re: [OT] IDE with easy tomcat upgrade?
>>>>
>>>>
>>>>        
>>>>
>>>>>works for me...
>>>>>
>>>>>On Monday, June 16, 2003, at 03:40  PM, Sergey Smirnov wrote:
>>>>>
>>>>>          
>>>>>
>>>>>>IntelliJ IDEA is an outstanding JAVA IDE. However, is JAVA IDE
>>>>>>            
>>>>>>
>>enough
>>    
>>
>>>>>>to
>>>>>>work with Struts Project?
>>>>>>
>>>>>>            
>>>>>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
>  
>

Re: Is modern Java IDE enough to work with Struts Project?

Posted by Sergey Smirnov <si...@exadel.com>.
Does it mean that Struts Concole is just a set of specialized XML editors
available as plug-ins for most pupular Java IDEs?

----- Original Message ----- 
From: "James Holmes" <ja...@jamesholmes.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Tuesday, June 17, 2003 5:54 AM
Subject: RE: Is modern Java IDE enough to work with Struts Project?


> Struts Console does not claim or try to solve these "interdependence"
> issues you mention.  It's just a nice, simple tool for editing all of
> the Struts config files.
>
> -James
> Struts Console
> http://www.jamesholmes.com/struts/
>
>
> -----Original Message-----
> From: Sergey Smirnov [mailto:sim@exadel.com]
> Sent: Monday, June 16, 2003 9:48 PM
> To: Struts Users Mailing List
> Subject: Is modern Java IDE enough to work with Struts Project? Was:
> [OT] IDE with easy tomcat upgrade?
>
> Max Cooper wrote:
> > I'm not sure how much this helps, but IDEA can validate any XML file
> that
> > has a DTD. If you write Java code to do validations, you can set
> breakpoints
> > in it and debug it.
> > -Max
> >
>
> validation xml file against DTD is a good feature. However, lets light
> the
> problem in more details. For example, we have a very simple jsp form and
> want to use standard server-side validator 'required' for one form
> field.
> Actually, it might vary, but to do so you have:
>
> 1) Resource (.properties) file with keys/values for standard validators
> (at
> least errors.required)
> 2) struts-config file should contain the reference to this resource file
> for
> message-resources node
> 3) struts-config plug-in node should contain
> className="org.apache.struts.validator.ValidatorPlugIn"
> 4) this plugin should have set-property with name pathnames that
> corresponds
> to validator files (such as /WEB-INF/validator-rules.xml and
> /WEB-INF/validation.xml)
> 5) validation.xml should contain form with name corresponds to form-bean
> name
> 6) the form should have a field with property that corresponds to field
> name
> we want to validate
> 7) this field should have a 'depends' attribute that corresponds to
> validator name mentioned in /WEB-INF/validator-rules.xml (in our case -
> with
> name 'required')
> 8) this field should have an arg0 node which attribute key corresponds
> to
> existing key in resource file
> 9) form bean should inherit org.apache.struts.validator.ValidatorForm
> class
> 10) form bean validate should call validate method of super class
> 11) 'input' attribute of action should reference to jsp page with
> validated
> form
> 12) jsp page should contains <html:errors /> (or its substitute)
>
> You can see a lot a references here. They are mostly string references.
> Just
> any typo and validation does not work properly. I wonder, how modern
> Java
> IDE (IDEA, JBuilder, Eclipse, NetBeans and so on) tries to help Struts
> developers to find and fix those kind of problems.
> James, how does Struts Console try to solve this interdependence
> problem?
>
>
> > ----- Original Message ----- 
> > From: "Sergey Smirnov" <si...@exadel.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > Sent: Monday, June 16, 2003 5:29 PM
> > Subject: Re: [OT] IDE with easy tomcat upgrade?
> >
> >
> > > How does your favorite Java IDE help you find problem with
> Validation
> > > Framework, for example?
> > >
> > > ----- Original Message ----- 
> > > From: "Jeff Kyser" <kt...@comcast.net>
> > > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > > Sent: Monday, June 16, 2003 1:41 PM
> > > Subject: Re: [OT] IDE with easy tomcat upgrade?
> > >
> > >
> > > > works for me...
> > > >
> > > > On Monday, June 16, 2003, at 03:40  PM, Sergey Smirnov wrote:
> > > >
> > > > > IntelliJ IDEA is an outstanding JAVA IDE. However, is JAVA IDE
> enough
> > > > > to
> > > > > work with Struts Project?
> > > > >


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Is modern Java IDE enough to work with Struts Project?

Posted by James Holmes <ja...@jamesholmes.com>.
Struts Console does not claim or try to solve these "interdependence"
issues you mention.  It's just a nice, simple tool for editing all of
the Struts config files.

-James
Struts Console
http://www.jamesholmes.com/struts/
 

-----Original Message-----
From: Sergey Smirnov [mailto:sim@exadel.com] 
Sent: Monday, June 16, 2003 9:48 PM
To: Struts Users Mailing List
Subject: Is modern Java IDE enough to work with Struts Project? Was:
[OT] IDE with easy tomcat upgrade?

Max Cooper wrote:
> I'm not sure how much this helps, but IDEA can validate any XML file
that
> has a DTD. If you write Java code to do validations, you can set
breakpoints
> in it and debug it.
> -Max
>

validation xml file against DTD is a good feature. However, lets light
the
problem in more details. For example, we have a very simple jsp form and
want to use standard server-side validator 'required' for one form
field.
Actually, it might vary, but to do so you have:

1) Resource (.properties) file with keys/values for standard validators
(at
least errors.required)
2) struts-config file should contain the reference to this resource file
for
message-resources node
3) struts-config plug-in node should contain
className="org.apache.struts.validator.ValidatorPlugIn"
4) this plugin should have set-property with name pathnames that
corresponds
to validator files (such as /WEB-INF/validator-rules.xml and
/WEB-INF/validation.xml)
5) validation.xml should contain form with name corresponds to form-bean
name
6) the form should have a field with property that corresponds to field
name
we want to validate
7) this field should have a 'depends' attribute that corresponds to
validator name mentioned in /WEB-INF/validator-rules.xml (in our case -
with
name 'required')
8) this field should have an arg0 node which attribute key corresponds
to
existing key in resource file
9) form bean should inherit org.apache.struts.validator.ValidatorForm
class
10) form bean validate should call validate method of super class
11) 'input' attribute of action should reference to jsp page with
validated
form
12) jsp page should contains <html:errors /> (or its substitute)

You can see a lot a references here. They are mostly string references.
Just
any typo and validation does not work properly. I wonder, how modern
Java
IDE (IDEA, JBuilder, Eclipse, NetBeans and so on) tries to help Struts
developers to find and fix those kind of problems.
James, how does Struts Console try to solve this interdependence
problem?


> ----- Original Message ----- 
> From: "Sergey Smirnov" <si...@exadel.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Monday, June 16, 2003 5:29 PM
> Subject: Re: [OT] IDE with easy tomcat upgrade?
>
>
> > How does your favorite Java IDE help you find problem with
Validation
> > Framework, for example?
> >
> > ----- Original Message ----- 
> > From: "Jeff Kyser" <kt...@comcast.net>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > Sent: Monday, June 16, 2003 1:41 PM
> > Subject: Re: [OT] IDE with easy tomcat upgrade?
> >
> >
> > > works for me...
> > >
> > > On Monday, June 16, 2003, at 03:40  PM, Sergey Smirnov wrote:
> > >
> > > > IntelliJ IDEA is an outstanding JAVA IDE. However, is JAVA IDE
enough
> > > > to
> > > > work with Struts Project?
> > > >
> > > > ----- Original Message -----
> > > > From: "Max Cooper" <ma...@maxcooper.com>
> > > > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > > > Sent: Monday, June 16, 2003 1:04 PM
> > > > Subject: Re: [OT] IDE with easy tomcat upgrade?
> > > >
> > > >
> > > >> In case no one mentioned it yet, IntelliJ IDEA is an
outstanding
IDE
> > > >> with
> > > >> support for running and debugging code running on app servers,
> > > >> including
> > > >> Tomcat. IDEA has an excellent feature list, but what really
sets it
> > > >> apart
> > > > is
> > > >> how easy it is to use. Perhaps "easy to use" is not really the
most
> > > > complete
> > > >> way to describe it, even though it is easy to use. IDEA is both
> > > >> powerful
> > > > and
> > > >> intuitive -- like a really fast car with excellent (and
forgiving)
> > > > handling
> > > >> characteristics. Their "Develop with Pleasure" tag line is
really
> > > >> true;
> > > > IDEA
> > > >> is a joy to work with. I have used many IDEs over the years,
and
IDEA
> > > >> is
> > > > my
> > > >> favorite.
> > > >>
> > > >> It is not open source, but it is good enough that I think I
would
buy
> > > > myself
> > > >> a copy if I had to. A time-limited license is available for
> > > >> evaluation.
> > > >> http://www.intellij.com/idea/
> > > >>
> > > >> -Max
> > > >>
> > > >> ----- Original Message -----
> > > >> From: "isaac" <is...@jpmktg.com>
> > > >> To: "Struts Users Mailing List"
<st...@jakarta.apache.org>
> > > >> Sent: Monday, June 16, 2003 8:58 AM
> > > >> Subject: Re: [OT] IDE with easy tomcat upgrade?
> > > >>
> > > >>
> > > >>> On 6/14/03 8:16 AM, "Aaron Longwell"
<li...@newmedialogic.com>
> > > > wrote:
> > > >>>
> > > >>>> Isaac,
> > > >>>>
> > > >>>> I too am in the market for an IDE. Can you give me some
details
> > > >>>> about
> > > >>>> what features you like about NetBeans? Are you using any
plugins?
> > > >>>> Any
> > > >>>> specific features that make J2EE development quicker?
> > > >>>>
> > > >>>> Thanks,
> > > >>>> Aaron
> > > >>>
> > > >>> I have never used Eclipse's, so, I can't say whether or not it
is
a
> > > > better
> > > >>> IDE. What I like about NetBeans, however, is that is has great
jsp,
> > > >> servlet,
> > > >>> xml, css, and html support. It features things like auto
completion
> > > >>> for
> > > >>> taglibs in a jsp page, and auto creation of DTD's from an xml
file.
> > > >>> The
> > > >> new
> > > >>> 3.5 release has address many of the performance issues of
previous
> > > >> versions.
> > > >>> I will admit, getting an external installation for Tomcat can
be
> > > >>> tricky
> > > > at
> > > >>> times, but, it's not impossible. ;)
> > > >>>
> > > >>> Thanks,
> > > >>> Isaac
> > > >>>
> > > >>>
> > >
> >>>
---------------------------------------------------------------------
> > > >>> To unsubscribe, e-mail:
struts-user-unsubscribe@jakarta.apache.org
> > > >>> For additional commands, e-mail:
struts-user-help@jakarta.apache.org
> > > >>>
> > > >>>
> > > >>
> > > >>
> > > >>
> > >
>> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail:
struts-user-unsubscribe@jakarta.apache.org
> > > >> For additional commands, e-mail:
struts-user-help@jakarta.apache.org
> > > >>
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
struts-user-help@jakarta.apache.org
> > > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
struts-user-help@jakarta.apache.org
> > >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org