DynaActionForms just don't suit my taste, nor do they have built-in validation - you still have to specify (and in this case manually, no XDoclet to help you out here) the validations in validation.xml.

Wouldn't it be cleaner to write one form bean, and have its form bean definition and validation generated automatically for you? And in our case, I wrote two custom XDoclet templates to generate the ApplicationResources.properties for field labels and a starter JSP with all fields on the form bean listed in a table. Quite spiffy, in fact.

Erik


Jordan Thomas wrote:
Thanks Eric,

That's a great idea. I just saw that earlier on today. I have actually
also been looking at the dynaforms with the inbuilt validation (plus
some enhancements) which I have decided to use. If they don't work out,
then I will be looking at writing up my form classes. Lets hope that it
goes well.
Cheers

Jordan

-----Original Message-----
From: Erik Hatcher [mailto:lists@;ehatchersolutions.com] Sent: Thursday, 14 November 2002 9:49 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] xdoclet in JSP's


Even better than doing validation tagging in JSP's, and something that works well for me (in fact I created it!) is the <strutsvalidationxml> subtask of <webdoclet>. Mark up your Struts form beans (the setters for

the fields) with tags like @struts.validator type="required" and voila, validation.xml will be generated appropriately for you.

Sound better than fiddling around with JSP's? Its a huge time/bug saver

for our team.

Erik


Jordan Thomas wrote:

Thanks guys,

Essentially it is for a form validation thing with struts. As I am using the same form classes for different forms to ensure a course granularity, the JSP's seem like the only way. I am just learning about this struts stuff and this seems like a possible way that may make things easier. Still experimenting.....



-----Original Message-----
From: Erik Hatcher [mailto:lists@;ehatchersolutions.com]
Sent: Wednesday, 13 November 2002 2:13 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] xdoclet in JSP's


First of all, what would be the purpose?

The answer is no, as XDoclet currently only processes .java files. I'm
not sure if there would be a way to tag a JSP such that using Jasper (<jspc> in Ant) would generate .java files with the right @tags, but maybe that is a possibility?

I'm curious what you're getting at by wanting to tag JSP's though.

Erik


Jordan Thomas wrote:


Hi All,

Simple Question. Can I place xdoclet tags into JSP's? (i.e. my own
made
up tags with a custom template) I tried this and it didn't seem to
work.


Before I get into this to far I probably should ask.... >:O)

thanks

Jordan



-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about
your web server security? Click here for a FREE Thawte Apache SSL Guide and answer your Apache SSL security needs: http://www.gothawte.com/rd523.html
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user




-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to