Re: has struts reached the saturation

2006-03-15 Thread Nick Heudecker
Then again, I'm probably the easiest guy to sell a car too... be straight

> with me from the start, and even if your story (read; price) isn't as good
> as the salesman who isn't as straight, you probably made the sale :)
>
>

I've got a loads of stuff to sell you.  I don't know how well it works, but
it's really expensive.  Where do I send the invoice? :)


Re: [OT] Anyone else mess around with Wicket?

2006-01-21 Thread Nick Heudecker
I figure I'm obligated to respond, since my comments were cited in the
original email. :)

I have to disagree with complaints about Wicket's complexity, but only
because I've been using it to build a product for the last few months.
Without heavy usage, I don't think I'd have the same positive opinion.  Some
things, like displaying conditional content, seemed cumbersome initially,
but now I appreciate having the logic in one place, rather than split
between the Action and the JSP.

Lack of markup in the templates and the concept of a page map have really
simplified my development and made features much easier to add, especially
when compared to Struts.  Not having to update struts-config.xml and
validation.xml is also quite nice.

I won't use JSF.  Tapestry is okay, but still requires some form of
configuration either through XML or annotations.  Additionally, there's
still some logic in the markup.  I don't have to do that with Wicket.

All that said, I'd prefer if you don't use Wicket.  I'd like to keep this
competitive advantage to myself. :)


Re: more on wicket

2006-01-16 Thread Nick Heudecker
The rawInput variable is set in the FormComponent when the validation
starts.  If validation succeeds, rawInput is set to an internal constant and
processing continues.  If validation fails, the rawInput for each
FormComponent is still available and is rendered on the input page.

As far as adding an IntegerValidator to a TextField, it's pretty simple:

TextField age = new TextField("age");
age.add(IntegerValidator.range(0, 130));
add(age);

The last call adds the TextField to the Form object.


Nick, Wicket does look interesting, but I'm curious, how does Wicket
> handle preserving the user's form input when you need to return the user
> back to the form when validation fails? For example, if my eventual POJO
> needs to accept an Integer "age" but the user enters in  34f6 for age on
> the JSP form, how does Wicket handle this?
>


Re: more on wicket

2006-01-16 Thread Nick Heudecker
> ...which are currently configured by what, XML? Doesn't this remove
> some of the zero-conf advantages? And, there's going to have to be a
> way to configure it in 1.2 somehow also. I guess "almost zero
> configuration" isn't as catchy? :-)
>


There is configuration, but it's minor and contained in the Application
class.  Still no XML.  If you really want to use XML to configure the
Application, the recent Spring integration allows you to do that.

Regarding the problem domain issue of Wicket, I've done a lot with it so far
and haven't had any problems solving real issues with it, with much less
hair-pulling than Struts.  I've built a number of Struts applications and
consider myself an expert with it, but it's unlikely I'd build another
application with Struts while Wicket is available.


Re: more on wicket

2006-01-16 Thread Nick Heudecker
You can create aliases in the current version to provide shorthand names for
pages.  Wicket 1.2 will allow you to mount pages at specified URLs, which
should get around this problem.

On 1/16/06, David G. Friedman <[EMAIL PROTECTED]> wrote:
>
> More wicket articles?  I'm getting a message here: I bet you wish Struts
> Action 2.0 was really Struts "Wicket" 2.0. LOL.
> Personally, I had trouble with how it implements zero configuration files
> and how the URLs look freaky in the current
> version.
>
> Regards,
> David Friedman / [EMAIL PROTECTED]
>
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of netsql
> Sent: Monday, January 16, 2006 9:29 AM
> To: user@struts.apache.org
> Subject: ot: more on wicket
>
> http://www.javalobby.org/java/forums/t60786.html
>
> .V
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [OT] If you hate positioning with css raise your hand... actually some help:)

2006-01-03 Thread Nick Heudecker
Have you tried the table, table-row and table-cell display properties?  But
if that works, I'd just go back to tables.


Re: DispatchAction parameter getting dropped by IE

2005-12-01 Thread Nick Heudecker
I found this link
(http://www.crazysquirrel.com/computing/general/form-encoding.jspx)
and, after adding the accept-charset and the hidden field, it fixed
it.


On 12/1/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> I've seen sporadic problems along these lines over the past two years with
> an app I have, and it's an IE-only app.  I've never been able to track it
> down, but it's been fairly rare so I haven't gone nuts trying either :)
>
> Same kind of symptoms though... logs seem to indicate request parameters
> were not present in the Action, but based on how the app works that should
> be an impossibility.
>
> If you figure it out, let me know, I'd be very thankful! :)
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM: fzammetti
> Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
>
> On Thu, December 1, 2005 12:45 pm, Nick Heudecker said:
> > Now I'm thinking this has something to do with the charset not getting
> > set in IE.  Users are copying and pasting content from Word into
> > textareas and getting this error.
> >
> > Is it possible Tomcat can't parse the incoming form data and nothing
> > gets passed to the Action?
> >
> > On 12/1/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> >> Occasionally, one my my users will receive the following error message:
> >>
> >> "javax.servlet.ServletException: Request[/foo] does not contain handler
> >> parameter named 'p'.  This may be caused by whitespace in the label
> >> text."
> >>
> >> There isn't any whitespace in the label text, and this only occurs
> >> with IE.  It's like none of the form properties are submitted.  Has
> >> anyone else experienced this and discovered a solution?
> >>
> >> Thanks.
> >>
> >
> > -
> > 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: DispatchAction parameter getting dropped by IE

2005-12-01 Thread Nick Heudecker
Now I'm thinking this has something to do with the charset not getting
set in IE.  Users are copying and pasting content from Word into
textareas and getting this error.

Is it possible Tomcat can't parse the incoming form data and nothing
gets passed to the Action?

On 12/1/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> Occasionally, one my my users will receive the following error message:
>
> "javax.servlet.ServletException: Request[/foo] does not contain handler
> parameter named 'p'.  This may be caused by whitespace in the label text."
>
> There isn't any whitespace in the label text, and this only occurs
> with IE.  It's like none of the form properties are submitted.  Has
> anyone else experienced this and discovered a solution?
>
> Thanks.
>

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



DispatchAction parameter getting dropped by IE

2005-12-01 Thread Nick Heudecker
Occasionally, one my my users will receive the following error message:

"javax.servlet.ServletException: Request[/foo] does not contain handler
parameter named 'p'.  This may be caused by whitespace in the label text."

There isn't any whitespace in the label text, and this only occurs
with IE.  It's like none of the form properties are submitted.  Has
anyone else experienced this and discovered a solution?

Thanks.

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



Re: STRUTS AND JAVADOC.

2005-11-04 Thread Nick Heudecker
I didn't know people were still using Strutsdoc. I should probably start
maintaining it again.



On 11/4/05, Collin VanDyck <[EMAIL PROTECTED]> wrote:
>
> Hi Soren,
>
> You can javadoc your Struts Java types, although I'm not sure of a way
> to get your Struts configurations in normal JavaDoc.
>
> You can, however, run StrutsDoc:
>
> http://struts.sourceforge.net/strutsdoc/
>
> StrutsDoc will document the information found in your struts
> configuration files, such as your forwards, your action declarations,
> your forms, and the relationships amongst your forms and actions.
>
> I got this running yesterday, actually, and it is functional.
>
> Hope this helps
> Collin
>
>
>
> Søren Blidorf wrote:
> > Hi.
> >
> > I am making a JAVADOC of my STRUTS project.
> >
> > Is there a way I can get the STRUTS forwards ect in the JAVADOC.
> >
> > If I haven't made my self clear, please ask. I NEED HELP, I am new to
> > JAVADOC :)
> >
> > BR
> >
> > Soren, DK
> >
> >
> >
> >
> > -
> > 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: [OT] How fast can you code?

2005-09-30 Thread Nick Heudecker
Too bad I won't be there. I'd win using just cat and sed to write code. ;)

On 9/30/05, James Mitchell <[EMAIL PROTECTED]> wrote:
>
> For those who might have missed it (especially if you live in or near
> Atlanta, GA):
>
> There is a coding competition being held on Wed (next week)...check
> it out!
>
> http://edgetechservices.net/snipsnap/space/Web+Atlanta+Users+Group
>
>
> Bring it on!
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> Consulting / Mentoring / Freelance
> EdgeTech, Inc.
> http://www.edgetechservices.net/
> 678.910.8017
> AIM: jmitchtx
> Yahoo: jmitchtx
> MSN: [EMAIL PROTECTED]
> Skype: callto://jmitchtx
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Hibernate data at startup

2005-09-29 Thread Nick Heudecker
You have a few options. To initialize Spring, you can either use the Struts
plugin or the web app context listener. Once that's done you can either use
a startup servlet or a Struts plugin to load the data and put it into the
servlet context. That way it only needs to be loaded once and is shared
throughout the application.

It's pretty simple, but not very obvious.


On 9/30/05, Martin Ravell <[EMAIL PROTECTED]> wrote:
>
> I have Menu information for my app in the database which I would like to
> be
> able to load somehow when my app server starts up (or app is deployed).
> This
> would be much more efficient than the current method of having each user
> load it when they enter the application.
>
> Can anyone suggest how to best go about doing this? The architecture is
> Struts, Hibernate and Spring.
>
>
> Thanks
> Marty
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Error: java.lang.ClassCastException: org.apache.struts.taglib .htm l.MessagesTei

2005-08-15 Thread Nick Heudecker
This error is caused by a jsp-api.jar in your application.


On 8/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> You said you were using Struts 1.2.7. I'm guessing those 1.1 TLDs are
> declaring the TEI class Tomcat's failing to load in the old location. Try
> using the TLDs (and other configuration files) that correspond to the
> Struts release you're using.
> 
> L.
> 
> Christian Dionne wrote:
> 
> > Hi Laurie,
> >
> > Thanks for your answer.  I did a quick search to find if that
> > was my problem and unfortunately it isn't.  I don't have any other
> > copy of struts.jar in any other directory than in my project directory
> > (WEB-INF/lib)...
> >
> > Here is the struts structure I have:
> > WEB-INF/struts-bean-1.1.tld
> > WEB-INF/struts-bean.tld
> > WEB-INF/struts-html-1.1.tld
> > WEB-INF/struts-html.tld
> > WEB-INF/struts-logic-1.1.tld
> > WEB-INF/struts-logic.tld
> > WEB-INF/struts-nested-1.1.tld
> > WEB-INF/struts-nested.tld
> > WEB-INF/struts-tiles-1.1.tld
> > WEB-INF/struts-tiles.tld
> > WEB-INF/lib/struts.jar
> >
> > I just hope this ok.  Thanks again for helping me.  This is really strange
> > since I have been able to use struts without any problem on older Tomcat
> > version.
> >
> > Thanks,
> > Christian Dionne
> >
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
> > Sent: August 15, 2005 1:30 PM
> > To: user@struts.apache.org
> > Subject: Re: Error: java.lang.ClassCastException:
> > org.apache.struts.taglib.htm l.MessagesTei
> >
> > You probably have multiple copies of the struts jar on you application's
> > class path. Make sure that struts.jar only exists in your WEB-INF/lib
> > directory and not elsewhere in whatever application server or servlet
> > container you're using. Assuming you're using Tomcat, look for copies of
> > struts.jar in common/lib, shared/lib, etc.
> >
> > L.
> >
> > Christian Dionne wrote:
> >
> >>Hi!
> >>
> >>I'm using Tomcat 5.5.9 with Struts 1.2.7.  I am trying to convert my
> >>application that was working
> >>fine with Tomcat 5.0.30.  I mostly fixed everything except that now I am
> >>getting this error.
> >>
> >>This occurs when parsing a .jsp file that includes a struts .tld.
> >>
> >>Any idea how to fix this?  I saw a lot of similar post on the internet
> >
> > about
> >
> >>this problem
> >>but no solution.
> >>
> >>org.apache.jasper.JasperException: Failed to load or instantiate
> >>TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
> >>
> >>
> >
> > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
> >
> >>java:50)
> >>
> >>
> >
> > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407
> >
> >>)
> >>
> >>
> >
> > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:279
> >
> >>)
> >>
> >>
> >
> > org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
> >
> >>pl.java:422)
> >>
> >>
> >
> > org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
> >
> >>va:248)
> >>
> >>
> >
> > org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java
> >
> >>:162)
> >>
> >>org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
> >>  org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
> >>  org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
> >>  org.apache.jasper.compiler.Parser.parse(Parser.java:126)
> >>
> >>
> >
> > org.apache.jasper.compiler.ParserController.doParse(ParserController.java:21
> >
> >>1)
> >>
> >>
> >
> > org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
> >
> >>  org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
> >>  org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
> >>  org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
> >>  org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
> >>
> >>
> >
> > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
> >
> >>56)
> >>
> >>
> >
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> >
> >>93)
> >>
> >>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
> >>  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >>  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>
> >>
> >>root cause
> >>
> >>java.lang.ClassCastException: org.apache.struts.taglib.html.MessagesTei
> >>
> >>
> >
> > org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm
> >
> >>pl.java:420)
> >>
> >>
> >
> > org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja
> >
> >>va:248)
> >>
> >>
> >
> > org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java
> >
> >>:162)
> >>
> >>org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
> >>  org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
> >>  org.apache.j

Re: Struts and Hibernate lazy

2005-08-09 Thread Nick Heudecker
The most common way to solve this problem is to use the Open Session
In View pattern, which leaves the Hibernate session open until the JSP
has finished rendering.  Typically accomplished with a filter, there
is also a Struts plugin to help with this pattern.

Google for "Open Session In View" and you'll find a handful of solutions.

On 8/9/05, Konrad Billewicz <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I am using Hibernate in my Struts project. A have a problem with Hibernate 
> lazy
> option. When I am setting it to true, I get an error in my JSPs:
> 
> org.apache.jasper.JasperException: could not initialize proxy - the owning
> Session was closed
> 
> Of course I know why this error occurs. I am closing the session at the end of
> each action - before JSPs processing. My question is how clever solve this
> problem? lazy="false" is not acceptable because I have a table with so many
> joins that database is going down.
> 
> My only idea is to include a bean and run sessionClose() method at the end of
> each JSP... but it is a very dirty method. :-( As far as I know, there is no
> method to run any code "at the end" of Struts execution.
> 
> If you have any ideas or solutions I would be very gratefull.
> 
> Best regards,
> Konrad Billewicz
> 
> 
> 
> -
> 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: XSL:FO orJasper Reports

2005-08-08 Thread Nick Heudecker
See if this helps:
http://jasperreports.sourceforge.net/tutorial/index.html#parameters

On 8/8/05, Rafael Taboada <[EMAIL PROTECTED]> wrote:
>  Talking about JasperReports and iReports... I'm trying to generate my
> reports using iReports in order to make my .jrxml. I'm trying to make my SQL
> query but this query needs some parameters. For example I want to generate a
> report about a specific costumer... So I have to send costumer id in order
> to get all data about only this costumer...
>   How can I do that?... In my query:
>   SELECT . FROM  WHERE CustomerId=?
>  How can I send a parameter to jasperreports
>  Thanks in advance and forgive if this message is off-topic
> 
> 
> --
> Rafael Taboada
> Software Engineer
> 
> Cell : +511-97753290
> 
> "No creo en el destino pues no me gusta tener la idea de controlar mi vida"
> 
>

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



Re: XSL:FO orJasper Reports

2005-08-08 Thread Nick Heudecker
I would go with JasperReports.  Make sure to also download iReport,
which is a great time-saver.

On 8 Aug 2005 07:58:16 -, d d <[EMAIL PROTECTED]> wrote:
>  
> I am generating reports from Oracle DB in my struts application, I am 
> confused whether to use XSL:FO or Jasper Reports to generate reports..Can 
> anybody plz guide me on this issue??
> 
> 
>

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



Re: [STRUTS 2X]: Ideas

2005-07-31 Thread Nick Heudecker
> I think there are a lot of people out there who feel as you do, but
> backwards-compatibility has always been a major theme for those

While backwards compatibility is nice, I would rather see a better
framework for the 2.x release.  My personal opinion is that version
compatibility should be required between point releases, but all bets
are off for major revisions.

Since we're offering suggestions, I would like to see a simplified
configuration, or none at all, like Wicket.

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



Re: Good Java host

2005-07-31 Thread Nick Heudecker
I use eapps.com and have been very happy with them.

On 7/31/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
> James-
> 
> Steer clear of RCN
> I hosted with them and found out later they are a TV Cable company that got
> into Internet hosting as a 'side business'
> Plus RCN tech support is pretty much non-existent..I sent them a request on
> friday pm I expect to hear back next month
> 
> Personally I had a much easier go of it setting up my own web and mail
> server and then signing up with DNSMadeEasy to point to my own CNAME, A, PTR
> and MX records
> http://www.dnsmadeeasy.com
> 
> HTH,
> Martin-
> - Original Message -
> From: "klute" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Sunday, July 31, 2005 9:47 AM
> Subject: OT: Good Java host
> 
> 
> > Hey all,
> >
> > Can anyone recommend a good Java hosting company? My
> > current one is good when it comes to the features it
> > provides but the "support" is almost insulting.
> >
> > Thanks,
> > James
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > -
> > 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]



ClassCastException

2005-07-25 Thread Nick Heudecker
I'm using Tomcat 5.5, JDK 1.5, Struts 1.2.7 and Tiles.  I'm getting
the following exception when I navigate to a Tiles page, I'm getting
the following:

java.lang.ClassCastException: org.apache.struts.taglib.tiles.UseAttributeTei
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420)
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:162)
at 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)

Anybody got an idea about what's causing this and a potential
fix/workaround?  Thanks.

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



Re: [OT] UML class diagrams

2005-07-11 Thread Nick Heudecker
ArgoUML will do it.  

On 7/11/05, David Whipple <[EMAIL PROTECTED]> wrote:
> Anyone have any suggestions for an opensource/freeware tool for reverse
> engineering java code to class diagrams?
> 
> Thanks,
> 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]



Re: Printing Bills

2005-07-06 Thread Nick Heudecker
I would either use JasperReports to create a simple report definition,
or use IText to create the PDF.  When we tried to use FOP, we had to
embed the fonts which resulted in HUGE PDFs.

On 7/6/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Rafael
> 
> Now I understand..
> You can use Crystal Reports to pretty print using cascading style
> stylesheets for formatting but if you want hardcopy used by most of the
> agencies of the US I would output to PDF
> Saludos Cordiales!
> 
> Martin-
> 
> - Original Message -
> From: "Rafael Taboada" <[EMAIL PROTECTED]>
> To: "Struts List" 
> Sent: Wednesday, July 06, 2005 2:13 PM
> Subject: Re: Printing Bills
> 
> 
> So aren't there any other way that PDF?
> 
> 
> --
> Rafael Taboada
> Software Engineer
> 
> Cell : +511-97753290
> 
> "No creo en el destino pues no me gusta tener la idea de controlar mi vida"
> 
> -
> 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: Sending dynamic parameters to a forward

2005-06-14 Thread Nick Heudecker
Here's something I'm using to accomplish this:
http://www.systemmobile.com/wp/?p=114
It's pretty simple, but can be refit to be fairly complex.


On 6/14/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Sorry, my bad... it's not setURL, it's setPath.  It's actually a method
> of ForwardConfig, which ActionForward extends.  Look in the third table
> down in the link you sent, the section labeled "Methods inherited from
> class org.apache.struts.config.ForwardConfig".
> 
> That's what I get for going from memory ;)
> 
> Frank
> 
> Zarar Siddiqi wrote:
> > Where do you see the af.setURL(String) method in the ActionForward class?
> > http://struts.apache.org/api/org/apache/struts/action/ActionForward.html
> >
> > I had a similar problem where dynamic values needed to be passed in via
> > an ActionForward but I wasn't able to find something as simple as you
> > suggest. I had to store the values in session scope (because the
> > ActionForward had redirect=true) and then clean up the session in my
> > receiving code.
> >
> > So you store the values that you are passing in session scope for a
> > quick millisecond while you forward and then clean up once you're in the
> > called method.
> >
> > Zarar
> >
> >
> > - Original Message - From: "Frank W. Zammetti"
> > <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" 
> > Cc: "Struts Users Mailing List" 
> > Sent: Tuesday, June 14, 2005 9:27 AM
> > Subject: Re: Sending dynamic parameters to a forward
> >
> >
> >> You can, IIRC, append a query string to the URL returned by your
> >> forward... off the top of my head, it would look something like
> >> this... in
> >> Action 1:
> >>
> >> String param1Val = "someValue1";
> >> String param2Val = "someValue2";
> >> String queryString = "?param1=" + param1Val + "¶m2 = " + param2Val;
> >> ActionForward af = new
> >> ActionForward(mapping.findForward("ForwardToAction2"));
> >> af.setURL(af.getURL() + queryString);
> >> return af;
> >>
> >> You'll probably want to encode the parameter values, I'd suggest Commons
> >> Codec for that.
> >>
> >> --
> >> Frank W. Zammetti
> >> Founder and Chief Software Architect
> >> Omnytex Technologies
> >> http://www.omnytex.com
> >>
> >> On Tue, June 14, 2005 7:52 am, tarek.nabil said:
> >>
> >>> Hi Everyone,
> >>>
> >>> I have an action (Action1) which when completed successfully, forwards
> >>> to another action (Action2). I need to be able to send dyanamic
> >>> parameters to Action2. I thought about putting the parameters as request
> >>> attributes, but the problem here is that Action2 can be called directly
> >>> using a link from some pages and this case, the parameters will be send
> >>> as request parameters rather than attributes.
> >>>
> >>> I can write code to look in the request attributes and if not found, it
> >>> can check the request parameters, but I was hoping there's another way
> >>> to do it. I thought about setting the redirect attribute to true on this
> >>> forward but I still wouldn't know how to append parameters with dynamic
> >>> values to the forward while forwarding to it from Action1.
> >>>
> >>> Any ideas?
> >>>
> >>> -
> >>> 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]
> >
> >
> >
> >
> >
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> 
> -
> 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: Cannot find bean error in any scope

2005-05-10 Thread Nick Heudecker
> or as you say change the message resources default - or even make it always
> null=false?

I prefer this suggestion. Speaking only for myself, null=false is the
most sensible default.

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



Re: PDF Streamed To Client

2005-04-26 Thread Nick Heudecker
Here are the other support methods.  You can choose the one that works
best for you.

private void setHeaders(HttpServletResponse res, File f, String mimeType) {
res.setContentType(mimeType);
res.addHeader("Content-Disposition", "attachment; filename="
+ f.getName());
res.setContentLength((int)f.length());
res.addHeader("Cache-Control", "max-age=25");
}

private void setHeaders(HttpServletResponse res, byte[] data, String name,
String mimeType) {

res.setContentType(mimeType);
res.addHeader("Content-Disposition", "attachment; filename="
+ name);
res.setContentLength((int)data.length);
res.addHeader("Cache-Control", "max-age=25");
}

On 4/26/05, Brian McGovern <[EMAIL PROTECTED]> wrote:
> Follow Up:  This works but im having a little trouble outputting the content 
> type appropriately.
> 
> -B
> 
> -Original Message-
> From: Nick Heudecker [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 26, 2005 1:47 PM
> To: Struts Users Mailing List
> Subject: Re: PDF Streamed To Client
> 
> Brian:
> 
> This is pretty simple.  Just get the output stream from the response
> object and stream the file down.  Return null from the Action's
> execute method:
> 
> private void returnFile(File f, OutputStream out) throws IOException {
> FileInputStream fis = null;
> try {
> fis = new FileInputStream(f);
> byte[] buf = new byte[8 * 1024];
> int bytesRead;
> while ((bytesRead = fis.read(buf)) != -1) {
> out.write(buf, 0, bytesRead);
> }
> } catch (IOException ioe) {
> log.error(ioe, ioe);
> } finally {
> if (fis != null)
> fis.close();
> }
> }
> 
> On 4/26/05, Brian McGovern <[EMAIL PROTECTED]> wrote:
> > I'm wondering if anyone has any tips on how to render a pdf with struts.  I 
> > want to mask the name of the pdf and just stream it to client.
> >
> > Thanks
> 
> -
> 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: Dispatch Action "Whitespace In Label Text" and Missing Parameters

2005-04-26 Thread Nick Heudecker
After some additional research, IE is failing to submit HTTP
parameters.  This error doesn't occur with Firefox.  Guess I'll have
to keep digging.

On 4/19/05, Michael J. <[EMAIL PROTECTED]> wrote:
> 1) You checked that button value does not contain whitespaces? By the
> way, cannot action strip whitespaces itself? It even generates error
> message about this! Stupido. A method cannot contain spaces anyway.
> 
> 2) Get HTTP sniffer or use Firefox and Live HTTP Header plugin. Oh,
> you say it is IE-specific. All I know, that IE often tries to be
> "nice". For example, if you stick value into edit box, IE strips out
> spaces and newlines. Maybe it related somehow. Maybe your value
> actually DOES contain spaces, and IE sometime strips them out, but
> sometimes don't (hm, why?).
> 
> Michael.
> 
> On 4/19/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> > I've run into a strange problem with DispatchAction occasionally
> > failing to find the parameter used to lookup the method to process the
> > request.  I get the following familiar error:
> >
> > "Request[myAction] does not contain handler parameter named 'method'.
> > This may be caused by whitespace in the label text."
> >
> > This error may occur one time out of five for the exact same workflow
> > and values, so the action doesn't fail every time.  Here's more
> > information about the error:
> >
> > -) Seems to be IE-specific.  Testing with Firefox doesn't cause the error.
> > -) There is no Javascript submitting the form.
> > -) There is only one form on the page.
> > -) The user clicks the submit button to submit the form, instead of
> > pressing enter.
> > -) All of the HTTP parameters are gone, which explains why the
> > 'method' parameter is missing.
> > -) There are a handful of filters in the web application.  Since the
> > error doesn't occur each time, I don't think the filters cause the
> > error.
> >
> > I've exhausted my other resources to find the cause of this problem.
> > I'm stumped.  Does anybody have suggestions?
>

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



Re: PDF Streamed To Client

2005-04-26 Thread Nick Heudecker
Brian:

This is pretty simple.  Just get the output stream from the response
object and stream the file down.  Return null from the Action's
execute method:

private void returnFile(File f, OutputStream out) throws IOException {
FileInputStream fis = null;
try {
fis = new FileInputStream(f);
byte[] buf = new byte[8 * 1024];
int bytesRead;
while ((bytesRead = fis.read(buf)) != -1) {
out.write(buf, 0, bytesRead);
}
} catch (IOException ioe) {
log.error(ioe, ioe);
} finally {
if (fis != null)
fis.close();
}
}

On 4/26/05, Brian McGovern <[EMAIL PROTECTED]> wrote:
> I'm wondering if anyone has any tips on how to render a pdf with struts.  I 
> want to mask the name of the pdf and just stream it to client.
> 
> Thanks

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



Re: [OT] xdoclet actionforms

2005-04-21 Thread Nick Heudecker
The validator tags must be on the setter methods, not the getters.

On 4/21/05, Nils Liebelt <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am using the webdoclet module to generate my struts-config.xml. It works
> very nice for my action classes. But for some reason I doesn't parse the
> tags in my Form classes. I can't see the form bean definitions in the struts
> config after building.  I ran Ant in debug and I saw that finds the
> appropriate classes so it's not a filter issue. I am thinking that I may
> miss a library? Here's an example of a form-class:
> 
> /**
>  * @author nils
>  * @struts.form
>  */
> public class AccountForm extends ValidatorActionForm {
> 
> /**
>  * Comment for serialVersionUID
>  */
> private static final long serialVersionUID = 3761972678709425976L;
> 
> private String name;
> 
> private String phone;
> private String email;
> private String website;
> private String comment;
> private String owner;
> 
> /**
>  * @struts.validator type="required"
>  * @return Returns the comment.
>  */
> public final String getComment() {
> return comment;
> }
> /**
>  * @param comment The comment to set.
>  */
> public final void setComment(String comment) {
> this.comment = comment;
> }
> 
> Regards,
> 
> Nils
> 
> -
> 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]



Dispatch Action "Whitespace In Label Text" and Missing Parameters

2005-04-19 Thread Nick Heudecker
I've run into a strange problem with DispatchAction occasionally
failing to find the parameter used to lookup the method to process the
request.  I get the following familiar error:

"Request[myAction] does not contain handler parameter named 'method'. 
This may be caused by whitespace in the label text."

This error may occur one time out of five for the exact same workflow
and values, so the action doesn't fail every time.  Here's more
information about the error:

-) Seems to be IE-specific.  Testing with Firefox doesn't cause the error.
-) There is no Javascript submitting the form.  
-) There is only one form on the page.
-) The user clicks the submit button to submit the form, instead of
pressing enter.
-) All of the HTTP parameters are gone, which explains why the
'method' parameter is missing.
-) There are a handful of filters in the web application.  Since the
error doesn't occur each time, I don't think the filters cause the
error.

I've exhausted my other resources to find the cause of this problem.
I'm stumped.  Does anybody have suggestions?

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



Re: [OT]question about open source data base selection

2005-04-11 Thread Nick Heudecker
Refer to the "End users" section in the following document:
http://dev.mysql.com/tech-resources/articles/mysql-network-and-you.html



On Apr 11, 2005 1:55 PM, Fogleson, Allen <[EMAIL PROTECTED]> wrote:
> Dave,
> 
> I'm confused here. What do you mean by "link to it?"
> 
> If I simply use the connector-J drivers in my appserver, or directly
> using the DriverManager in a program it is not a violation of the GPL.
> Mostly the GPL protects Connector-J itself, and any derived works. In
> fact the GPL provides for not having to GPL an entire set of your own
> software:
> 
> "These requirements apply to the modified work as a whole. If
> identifiable sections of that work are not derived from the Program, and
> can be reasonably considered independent and separate works in
> themselves, then this License, and its terms, do not apply to those
> sections when you distribute them as separate works."
> 
> So if you distribute a program that uses Connector-J you may be required
> to provide the source code, etc to Connector-J but you do not have to
> GPL your own code, as that can be distributed totally separate from
> connector-J.
> 
> Al
> 
> -Original Message-
> From: Dave Newton [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 11, 2005 12:46 PM
> To: Struts Users Mailing List
> Subject: Re: [OT]question about open source data base selection
> 
> Ashish Kulkarni wrote:
> 
> >mysql, postgre sql, Ingres by CA, Derby from apache ,
> >
> >
> Note that the JDBC Connector/J for MySQL is GPL--if you link to it in
> your code your code must also be GPL'ed.
> 
> 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]
> 
>

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



Re: PDFs with IE - a fix

2005-02-28 Thread Nick Heudecker
Damn.  That's had me stumped for months.  I forced the client to
upgrade to Firefox.  :)



On Mon, 28 Feb 2005 10:21:28 -0700, Larry Meadors
<[EMAIL PROTECTED]> wrote:
> Sorry for the cross-post, but if anyone is having issues serving up
> pdfs to IE users over ssl, here is a fix for the browser:
> 
> ===
> [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]
> 
> "BypassSSLNoCacheCheck"=dword:0001
> ===
> 
> It took us a few days to find this, so hopefully this will help
> someone else get it taken care of sooner. :-)
> 
> Larry
> 
> -
> 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: ActionForm vs. DynaActionForm

2005-02-21 Thread Nick Heudecker
XDoclet works great with DynaForms.  Here's a link to a doc I wrote about it:

http://www.systemmobile.com/articles/XDocletDynaForms.html


On Mon, 21 Feb 2005 12:09:14 -0500, Benedict, Paul C
<[EMAIL PROTECTED]> wrote:
> Any other takers? If any Struts committers have opinions, please share them.
> 
> Also, how well does Xdoclet work with dyna forms?
> 
> -Original Message-
> From: Erik Weber [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 21, 2005 11:49 AM
> To: Struts Users Mailing List
> Subject: Re: ActionForm vs. DynaActionForm
> 
> I didn't mean "better than either one". I meant "better than building
> your own ActionForm by hand", and thus better than using Dyna form.
> 
> Erik
> 
> Erik Weber wrote:
> 
> > Wouldn't a parser handler that could build an ActionForm skeleton
> > during a parse of a form JSP be better than either one?
> >
> > Erik
> >
> >
> > Hubert Rabago wrote:
> >
> >> I really would not give too much weight to the blog you linked to. If
> >> you've read the comments of the readers, you'd see that some of his
> >> arguments aren't really that strong, and some are even totally
> >> incorrect.
> >>
> >> Personally, I use DynaActionForm for each form that it can support.
> >> Once I have a form with needs that a DynaActionForm can't fulfill,
> >> that's when I decide to use ActionForms. I've had apps where I had
> >> more ActionForm subclasses than DynaActionForm, and this was due to
> >> requirements that DynaActionForms simply couldn't handle. Still, my
> >> first choice would be a DynaActionForm when possible. Pre 1.1, I've
> >> had an app where it was form bean after form bean after form bean. I
> >> got tired of it that for some forms, I just used plain HTML without
> >> Struts tags/form beans. I don't want to go back to that again.
> >>
> >> Maybe I shouldn't say anything since I haven't done any JSF yet, but
> >> solely from my impressions of what I've read so far: I think the
> >> concept of JSF's backing beans are different from Struts' ActionForms.
> >> I think JSF's overall approach is different from Struts, that the
> >> differences are greater than the similarities. Whether ActionForms or
> >> DynaActionForms is more similar to JSF's backing beans shouldn't
> >> affect your decision, since you're using Struts, not JSF. Applying
> >> the models of one framework to another when their approaches and
> >> principles, as well as their underlying support, are different, just
> >> sounds dangerous.
> >>
> >> As for compile time type information, well, Strings are Strings
> >> whether you use one or the other.
> >>
> >> http://marc.theaimsgroup.com/?l=struts-user&m=109767197521860&w=2
> >>
> >> On Mon, 21 Feb 2005 11:03:41 -0500, Benedict, Paul C
> >> <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>> What are the advantages and disadvantages of choosing ActionForm vs.
> >>> DynaActionForm?
> >>>
> >>> I ask this because I always found DynaActionForm to be more valuable
> >>> ...
> >>> until a co-worker picked my brain. He did not like the lack of type
> >>> information at compile time. I agreed. Also, I don't know how well
> >>> DynaActionForms work with AOP ala Xdoclet. Furthermore, JSF uses
> >>> "backing
> >>> beans" which are real beans, and they more resemble ActionForm
> >>> objects than
> >>> the latter.
> >>>
> >>> I have read this article too:
> >>>
> http://weblogs.java.net/blog/srikanth/archive/2004/01/actionform_or_d.html
> >>>
> >>>
> 
> 
> >>>
> >>>
> >>> Does anyone have any professional opinions and experience on this
> >>> matter?
> >>>
> >>> Thank you,
> >>> Paul
> >>>
> 
> --
> Notice:  This e-mail message, together with any attachments, contains 
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
> Jersey, USA 08889), and/or its affiliates (which may be known outside the 
> United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
> Banyu) that may be confidential, proprietary copyrighted and/or legally 
> privileged. It is intended solely for the use of the individual or entity 
> named on this message.  If you are not the intended recipient, and have 
> received this message in error, please notify us immediately by reply e-mail 
> and then delete it from your system.
> --
> 
> -
> 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: Struts In Action - Still up to date?

2005-02-18 Thread Nick Heudecker
Yes, the index will be expanded and updated as well, including all of
the newly added reference material.



On Fri, 18 Feb 2005 10:00:58 -0800, Shey Rab Pawo
<[EMAIL PROTECTED]> wrote:
> I don't know how others feel, but if you could talk the editors into a
> more expanded index, that would be really helpful to me.  I don't
> think that a 10-15 page index would be too much for this book.
> 
> 
> On Fri, 18 Feb 2005 08:31:11 -0800, Don Brown <[EMAIL PROTECTED]> wrote:
> > I know exactly how you feel.  I'm not sure how much I can talk about
> > Struts in Action 2nd Edition, but I will say we are aiming at
> > replacing well over 50% of the book because of this very issue.
> > Expect new chapters on topics that haven't been covered in depth or at
> > all by any other Struts book to date.
> >
> > Don
> >
> 
> --
> The radiance of all the stars does not equal a sixteenth part of the
> moon's radiance, likewise, good deeds giving us merit, all these do
> not equal a sixteenth part of the merit of loving-kindness..
> 
> -
> 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: Off Topic Post Air Time vs. Struts Answers

2004-09-14 Thread Nick Heudecker
Terry:

I agree with you that struts-user is mostly noise, although you
phrased it much better than I did.  I know it's frustrating to have
your question go unanswered, but I really don't think it's
intentional.  There is so much cruft on this list, with the same
questions asked repeatedly, that your question probably just fell
through the cracks.

The vast majority of the questions here should be posted on the JDC
forums.  If people would do that, and make even the most basic attempt
to check the archives and/or Google, the number of off-topic posts
would fall.

I guess I'll wait to see how many angry responses I get. :)


On Tue, 14 Sep 2004 11:28:51 -0600, Terry Roe <[EMAIL PROTECTED]> wrote:
> Greetings,
> 
> I find it interesting that most of the recent activity on this mailing
> list has to do with items such as .NET, AOP, Flash, Crystal Reports, and
> even Notepad!  I don't mind the off topic posts, as they are usually at
> least tangentially related to the topic of this list and are interesting
> in themselves.  However, I have posted a couple of Struts questions
> dealing with production code I am trying to develop and are directly
> related to Struts usage.  I received a confirmation that one item wasn't
> currently supported in Struts (indexed property validation with
> JavaScript), but no suggestions on how I might work around it, and
> another on which I received no help, described below.
> 
> I'd think there'd be at least one or two gurus watching this list that
> could at least say "you can't do that" or" here's what you might try."
> I've seen the big guns respond to "easier" issues, but no one addresses
> "tough" ones like the one below.  Maybe it's too much effort, or maybe
> I've breached protocol somehow in the way I've asked for help.  It would
> be nice to at least get a response to an issue that is directly related
> to the topic of this mailing list.
> 
> I don't mean to be rude, and I hope I'm not coming across that way.  But
> I've searched and searched for information on the issue below and have
> come up empty.  I came to the one place that I thought would be of some
> help and have received no response.  Could someone please tell me where
> to go (and, yes, you may say GTH if that is the correct answer) to find
> answers to questions on Struts functionality and usage?
> 
> Thanks,
> 
> TR
> 
> Terry Roe wrote:
> Re: Validation for Two Levels of Indexed Properties
> 
> > Can Struts validate more than one level of indexed properties?  First
> > level works great.  Love it.  I've tried the following (phaseList and
> > procedureList are two indexed properties) to get more than one level to
> > work without success:
> >
> >  > indexedListProperty="plan.phaseList.procedureList"
> > depends="required,intRange">
> >
> >  > indexedListProperty="plan.phaseList[].procedureList"
> > depends="required,intRange">
> >
> >  > indexedListProperty="plan.phaseList" depends="required,intRange">
> >
> >  > indexedListProperty="plan.phaseList" depends="required,intRange">
> >
> > Is multi-level, indexed property validation supported?  If so, can
> > someone relate the syntax to use?  If not, can someone confirm than only
> > one level of indexed property validation is supported?
> >
> > TR
> >
> >
> > -
> > 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: site "shutdown" best practice?

2004-09-07 Thread Nick Heudecker
You could set a property in the context scope that flags the
'maintenance page' or something.  To detect the flag, you could use a
filter to redirect the user to the maintenance page, or have your base
Action class look for the flag and react accordingly.

Ideally, you'd do this from some form of admin page.


On Tue, 07 Sep 2004 13:26:10 -0400, Dean A. Hoover
<[EMAIL PROTECTED]> wrote:
> I have a website I'm working on that is
> fairly typical (I think): there areoperations that
> anyone can do and operations that require
> a user to be logged in. Authorization and
> authentication are done using a database.
>  From time to time, the site needs to be
> shutdown for general maintenance, upgrades,
> etc.
> 
> I want to give the users fair warning that the
> site will be shut down at such and such a
> time. I also want to prevent the users from
> performing operations during this "shutdown".
> I think it would be good if there were still
> a home page up, with indications that the
> system is offline and should be back by a certain
> time. At first I thought I would create some
> table in my database to control some of this
> but I think this is not such a great idea, as the
> reason for taking the site down may be to do
> something radical to the database.
> 
> Is there some "best practice" for accomplishing
> this?
> 
> Thanks.
> Dean Hoover
> 
> -
> 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: html:cancel usage

2004-09-07 Thread Nick Heudecker
I believe the validation still happens because the validation step
occurs before the appropriate method in the action class in
determined.  I got around this by turning off automatic validation.


On Tue, 07 Sep 2004 16:59:48 +, andy wix <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> When using the following tag, my form still gets validated when I click the
> cancel button.
> 
>  key="button.cancel"/>
> 
> The cancel method gets called correctly in my LookupDispatchAction class.
> The tag is within an html:form tag as I believe it should be.
> 
> Does anyone have a working example of this tag or know of a different
> approach?
> 
> Thanks,
> Andy
> 
> _
> Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo
> 
> -
> 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]



[ANNOUNCE] XDoclet Struts DynaForm 1.2.2 SNAPSHOT

2004-08-17 Thread Nick Heudecker
This release adds validation support to the DynaForms generated by XDoclet. 
Using the "@struts.validator" tags, you can create the validation.xml for 
dynamic action forms in the same manner used by the struts.form XDoclet feature.

Please note that this is a SNAPSHOT release, created from a fairly recent 
XDoclet CVS snapshot.  (I'm not an XDoclet committer, and sf.net has been having 
problems with anonymous CVS lately.)  I would like additional people to test 
this version.  It works fine for me, but YMMV.  If I can get a few people to 
confirm that it works for them, I'll submit it as a patch to the forthcoming 
XDoclet 1.2.2 release.

In addition to the validation support, this patch also supports Struts 1.2.1 and 
1.1.3 version of the validator.

If I got anything wrong or missed anything, please let me know.
Downloads
-
http://www.systemmobile.com/code/xdoclet-apache-module-1.2.2-SNAPSHOT.jar
The full text of the README may be found here at:
http://www.systemmobile.com/code/xdoclet-dynaform-README.txt
An example may be found at:
http://www.systemmobile.com/code/Person.java
--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Réf. : Re: ActionForm vs Hibernate POJO

2004-08-03 Thread Nick Heudecker
If you're using XDoclet, I wrote an extension to allow you to define 
DynaValidatorActionForms using XDoclet tags.  You can download it from here:

http://www.systemmobile.com/code/xdoclet-apache-module-sm-1_2.zip
Using this extension, you may define your Hibernate mappings and 
dynaform definition in your POJO.

[EMAIL PROTECTED] wrote:
Thanks a lot
Hubert Rabago <[EMAIL PROTECTED]>
03/08/2004 13:32
Veuillez répondre à "Struts Users Mailing List"
Take a look at FormDef (http://www.rabago.net/struts/formdef).  It can define
your form beans for you using your POJOs.  I know at least one developer
who's combined FormDef and Hibernate and was pleased with the results.
Hubert
--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: release of struts-faces library

2004-07-29 Thread Nick Heudecker
I want to use the struts-faces library, but the existing articles and 
documentation state that Tiles is unsupported.  Is that still the case? 
 I haven't yet had time to dig through the source to answer this for 
myself.

Craig McClanahan wrote:
I consider the struts-faces library to be functionally complete for a
1.0 release, and all it needs is some bug reports so we can shake out
any remaining problems.  The lack of bug reports makes me think not
enough people are experimenting with it (although I'd *like* to
believe that it meant the code was bug free :-); if there is
sufficient feedback that lots of people are in fact using the nightly
builds with no problems, I'll go ahead and initiate a 1.0 release of
struts-faces.
Craig
--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[ANNOUNCE] StrutsDoc 0.5 Released

2004-07-28 Thread Nick Heudecker
StrutsDoc 0.5 has been released.  This is primarily a bugfix release. 
It may be downloaded from: 
http://sourceforge.net/project/showfiles.php?group_id=49385

What is StrutsDoc?
StrutsDoc is an Ant task that generates JavaDoc-like documentation from 
a Struts configuration file.  You may see an example here: 
http://www.systemmobile.com/strutsdoc/example/

Feedback, especially on problems and feature requests, is always welcome.
--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Cvs windows

2004-07-27 Thread Nick Heudecker
Mark:
By plain CVS server, do you mean pserver?  I won't go into the security 
implications of running pserver, but I think your best bet would be to 
install TortoiseCVS or WinCVS.  Either are simple to install and use.

Mark Lowe wrote:
Hello sorry about this being a tad off the beaten track but I'm trying 
to get someone up and running, connecting to our cvs server using a 
windows work station.

Does anyone here work with a plain cvs server, with a client on a 
windows work station? Its not cvsnt or anything, just plain old cvs 
running on a *nix box. Any pointers could save be some time and i'd 
greatly appreciate the benefit of anyone's experience who works like this.

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

--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] RTF & PDF export options

2004-07-19 Thread Nick Heudecker
Brian:
I'm guessing that you can do this with iText.  It has RTF and PDF 
writers, and I think you can use the RTF as the source doc for the 
output PDF.

FYI, if you're running iText on a headless server, you'll need to set 
java.awt.headless=true.  This works for JDK 1.4.x.


Barnett, Brian W. wrote:
Any suggestions for converting html to RTF and PDF inside an action class
and then sending the RTF or PDF back to the client?
 

Open source tools, code snippets, tips & tricks, etc. ??
 

Thanks a bunch.
 

Brian Barnett


--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Phone: 312.420.8217
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: MessageResources Question

2004-07-14 Thread Nick Heudecker
Hi Ken:
A JDBCMessageResources class already exists.  I believe that James 
Mitchell wrote it.  After a quick search, I couldn't find any additional 
links to it, however.

Ken Pullin wrote:
I've been looking into extending the MessageResources class and providing my own 
MessageResourcesFactory.  The end goal is to house the ApplicationResource files in a 
database table.  The issue I'm noticing is that the MessageResources class maintains a 
HashMap of key/values called 'formats'.  So any class that extends MessageResources 
only get's called when the particular value is not in the cache(hashmap) in the 
MessageResource class.  This is the method that gets called in the MessageResources 
class:
String formatKey = messageKey(locale, key);
 synchronized (formats) {
 format = (MessageFormat) formats.get(formatKey);
 if (format == null) {
  String formatString = getMessage(locale, key);
  if (formatString == null) {
  if (returnNull)
   return (null);
  else
   return ("???" + formatKey + "???");
  }
  format = new MessageFormat(escape(formatString));
  formats.put(formatKey, format);
 }
 }
Notice how the 1st step is to check to see if the formats hashmap contains the key.  
If it doesn't it then calls the getMessage(locale,key) which is provided by my 
implemenation class.  At that point, it gets back a value and then puts it on the 
HashMap.
The problem I'm having is when I want to update a value.  How do you tell the 
MessageResources class to refresh it's cache.  This becomes even more complicated if 
the application resides in a clustered environment.  You could use OJB or even Entity 
Bean to retrieve the data from the database in the Custom Implemenation, but you still 
have the problem with the MessageResources class maintaining a seperate cache.  The 
EJB or OJB classes would contain the correct values, but the cache at the parent level 
would not.  I basically need a way when a value gets updated to tell the 
MessageResources class to either 1) clear it's cache all together or 2) take the value 
off of the HashMap so the next call to it would go to my custom implementation.
I hope this wasn't 2 confusing
Thanks

-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Simplifying struts-config.xml

2004-07-08 Thread Nick Heudecker
Look into the wildcard plugin.
http://www.twdata.org/struts-wildcard/
Michael McGrady wrote:
Is there a way to do the following using less real-estate in 
struts-config.xml?  If not, there should be:













-
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: help message resources

2004-06-18 Thread Nick Heudecker
From a document I wrote some time ago:
"Setting the null attribute to 'false' will display missing resource 
values as ???key??? instead of displaying null. This string is easily 
found during automated testing of your JSPs, making in-container unit 
testing more complete."

Here's what you set to false in the struts-config.xml:


You can find the complete document here:
http://www.systemmobile.com/articles/strutsMessageResources.html
[EMAIL PROTECTED] wrote:
Hi,
i 'm tring to change the message visualization (i don't want to show the user a
message like '???foo???') when the key of the message is not present in my
ApplicationResources files. how can i do ? 
The only solution i found is to modify the method message(pageContext, bundle,
locale, key, args[]) of the RequestUtils class adding at the end the following
lines:

if(result.startWith("???") && result.endWith("???")){
  result= (resources.getMessage(userLocale,"keynotFound.message");
}
Is there cleaner way to do this???
Thanks.
Ale

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

--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unit Testing with MockStrutsTestCase -- non-string request parameters

2004-06-18 Thread Nick Heudecker
George,
I believe that you'll need to use Cactus.  There were a number of 
threads on the sf.net forum about this and most were unanswered.  You 
may want to email the STC developer about this.  He's pretty responsive.

George Steimer wrote:
Nick,
Thanks for the reply.  I would like to try to implement this, but my client
wants to keep everything in mock objects rather than use an in-container
approach.  Is there a way to test import using MockStrutsTestCase, or do you
need to use Cactus?
Thanks,
George
--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unit Testing with MockStrutsTestCase -- non-string request parameters

2004-06-18 Thread Nick Heudecker
Hi George:
Maybe this will help:
http://sourceforge.net/forum/message.php?msg_id=1812671
George Steimer wrote:
Hi,
Does anyone know if there is a way to put non-string objects into the
request for a unit test using MockStrutsTestCase?  My problem is that my
dyna form uses a form file for an upload, and the addRequestParameter
methods on MockStrutsTestCase only accept String and String[] for values.
And help would be greatly appreciated.
Thanks,
George
George Steimer
Technology Services Group
[EMAIL PROTECTED]
(312)372-
This message is for the designated recipient only and may contain privileged
or confidential information.  If you have received it in error, please
notify the sender immediately and delete the original.  Any other use of the
email by you is prohibited.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enumerating sessions

2004-06-15 Thread Nick Heudecker
Wouldn't this do it?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/servletapi/javax/servlet/http/HttpSessionListener.html
Frank Zammetti wrote:
Hello all... is there any good way to enumerate all sessions under a 
given webapp?  I know there used to be the SessionContext, but that has 
since been deprecated as of servlet spec 2.1 I believe... Is there 
anything in Struts that might help?

Basically I'm just looking for an accurate way to display all currently 
logged on users, and also have the ability to add a session attribute to 
all of them (think broadcast messages and forced graceful logoffs).  I 
keep hearing the term "Session Listenter", but my research is turning up 
server-specific (or third party-specific references), and I need this to 
be server-nuetral.

I could I guess create a wrapper class that is called to create or kill 
a session, as well as to add of remove attributes, but I'd prefer 
something that won't require me to change a lot of code, or any really!

Thanks in advance for any ideas!
Frank
_
MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months 
FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/

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

--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] A first look at Spring vs Struts

2004-06-14 Thread Nick Heudecker
Rick:
I've seen 'rogue' developers do remarkably stupid things with Struts and 
Spring, as well as numerous other frameworks.  The best framework in the 
world can't save your project from an apathetic developer. :)

Rick Reumann wrote:
Martin Gainty wrote:
funky things in Action execute methods ?
please describe..

Well you can do almost anything in there since you're in a servlet, so 
you can totally break Struts concepts. You can do redirects (when you 
shouldn't) you could not use a Form bean to capture properties, you can 
do business logic in there when you shouldn't. You can make new 
instances of ActionForms and put them in Session scope - point is you 
can do anything you want, so if you have some developers on your team 
that aren't following best practices, they could potentially make parts 
of the application in some renegade fashion. Sometimes you do need to do 
some custom things in Struts, and this is where I think Struts falls a 
little short compared to frameworks like Spring since it is less flexible.


--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to display error msgs in a pop up window

2004-06-02 Thread Nick Heudecker
Another way would be to use some JavaScript on the input page that opens 
a new window, the popup, and writes the error messages directly to that 
using the document.write(...) function.  Pretty easy really.

Frank Zammetti wrote:
One way to do this (the only way I can actually think of) is this... 
write your logon page as you would normally in Struts, i.e., pretend 
your going to display your error message there.  That means 
re-displaying the user's entries, all that.  But, instead of displaying 
the messages, open a new window via JavaScript as a result of the pages' 
onLoad event, and load into that the error messages (either via 
scripting or calling an Action, which means you would have had to 
persisted the messages somehow on the server and referenced them, i.e., 
maybe set them in session during the failed logon Action call and 
retrieve them for display).

As far as I know, there is no way to send a redirect to the browser 
telling it to open the target in a new window from the server, so any 
response the server sends has to technically go to the same window that 
started the request (unless of course you targeted a new window to begin 
with, but it doesn't sound like you can do that).  So, your left with 
"faking it", that is, you will in fact re-draw the page, but it will 
look like a new window is opening with the error messages.  If the 
appearance is all you want, this should do, but if there's some reason 
you can't overwrite your logon page (like maybe some stored data in 
script elements that can't be overwritten?) then I think your out of luck.

Frank

From: praveen kulkarni <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: How to display error msgs in a pop up window
Date: Wed, 2 Jun 2004 16:51:21 +0100 (BST)
Hi all,
Sub: How can i get error messages in a pop up window by using STRUTS
I am using Struts and i want to handle all validation error messages 
in a new popup window.

Consider Login form with loginID and password as form fields. I want 
to check mandatory status at the server side, for this i will put 
validate method in the FormBean. FormBean will create Error Object 
sends back to Login Page. I've to handle this error object in a new 
popup window instead of displaying in the Login page.

bye
PAK
Yahoo! India Matrimony: Find your partner online.

_
Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: generate struts ActionForm & strut's jsp from hibernate's map ping

2004-04-22 Thread Nick Heudecker
Some people use the @struts.form XDoclet tags to create their form classes,
although I wasn't able to get it to work with non-EJB classes.  I've written
an XDoclet extension to create dynamic form bean definitions to get around
this.

Your problem is that you're going from HBM > Java Bean > Form Bean, while
XDoclet is Java Bean > (HBM, DynaForm Bean Definition).  You could hit the
HBM files with some XSL to create your form beans, however.  Shouldn't be too
hard and others may find it useful.



On 2004-Apr-23 13:04, Dionisius Purba wrote:
> David, It works perfectly fine.
> You see, based on, for instance, Person.hbm.xml,
> hbm2java will generate Person.java
> but since I use struts, I still need to generate PersonForm.java
> and Person.jsp 
> 
> PersonForm would be very similar to Person.java, with the difference is that
> in PersonForm, all fields's type (firstName, lastName, age) 
> become String. 
> 
> Then in the AddPerson.jsp I will have something repeated like this:
> 
> 
> 
> 
> Is there anyone outthere who makes tool for such thing?
> It should not be very difficult to make one, but I just want to avoid
> reinvent the wheel.
> 
> regards,
> Dion
> 
> -Original Message-
> From: David Friedman [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 23, 2004 1:30 PM
> To: Struts Users Mailing List
> Subject: RE: generate struts ActionForm & strut's jsp from hibernate's
> mapping
> 
> 
> What's wrong with the hibernate extension tools
> and the Code Generator that creates .java files from
> the hbm.xml files you give it?
> 
> See:
> http://prdownloads.sourceforge.net/hibernate/?sort_by=date&sort=desc
> Item: hibernate-extensions-2.1.zip (or the 2.0.2 zip file for 2.0.X
> versions)
> 
> I've only used the extension's hbm2java program, not the other way around.
> Now that I'm using Xdoclet, I have no further need for those extension
> tools.
> 
> Regards,
> David
> 
> -Original Message-
> From: Dionisius Purba [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 23, 2004 1:21 AM
> To: 'Struts Users Mailing List'
> Subject: generate struts ActionForm & strut's jsp from hibernate's
> mapping
> 
> 
> Altough my question is related to hibernate, I hope it's still relevant.
> Is anyone aware of tools, open source is better, that can generate
> ActionForm and the JSP's (containing struts's HTML Input tag)
> based on a hibernate's mapping (i.e. *.hmb.xml)?
> 
> cheers,
> dion
> 
> -
> 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]

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

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



Re: Using XDoclet for DynaForms

2004-04-14 Thread Nick Heudecker
Kunil:

I've written an XDoclet extension to create DynaForm configs from POJOs.
It works quite well, and you can find it at:

http://www.systemmobile.com/code/xdoclet-apache-module-sm-1_2.zip

I'm still recovering from a disk failure, which explains the paucity of
content.  


On 2004-Apr-15 09:04, Kunal H. Parikh wrote:
> Hi All!
> 
> Is there a recommended way of generating DynaActionForms using XDoclet ?
> 
> If not, I guess I would end up writing my own ActionForms and inserting
> XDoclet tags in there.
> 
> However, is there any performance benefit of using DynaActionForms instead
> of plain ActionForms ?
> 
> TIA,
> 
> Kunal
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Phone: 734.604.9192
Web: http://www.systemmobile.com

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



Re: Struts and Hibernate

2004-04-07 Thread Nick Heudecker
You addressed it to the wrong guy.  No worries though.

On 2004-Apr-08 00:04, David Friedman wrote:
> Nick,
> 
> Your problem is the "type" set in your  tag.  From (RTFM) the page:
> http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-
> s1-4--generator
> 
> See the "identity" description, which reads:
> 
> > identity - supports identity columns in DB2, MySQL,
> > MS SQL Server, Sybase and HypersonicSQL. The returned
> > identifier is of type long, short or int.
> 
> The issue is your attempted use of class "java.lang.Long" instead of of
> "long", "short", or "int".  I had a similar problem months ago when I
> started using Hibernate, until I re-read that primer.
> 
> Also, you may wish to set your generator from "identity" to "native".  That
> way, if you switch database products, it will automatically figure out if it
> can use identity, sequence, or hilo. (see the same document section just a
> few lines lower under the "native" explanation)
> 
> Regards,
> David
> 
> > 
> >
> >
> >
> >
> >
> > > type="java.lang.String" />
> >
> > 
> >
> 
> -Original Message-
> From: Nick Heudecker [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 07, 2004 11:42 PM
> To: Struts Users Mailing List
> Subject: Re: Struts and Hibernate
> 
> 
> The next thing I'll suggest is changing your mapping to:
> 
> 
> 
> If that still doesn't work, your best bet is to hit the
> Hibernate forums: http://forum.hibernate.org/
> 
> 
> >
> > 
> >
> >
> >
> >    
> >
> > > type="java.lang.String" />
> >
> > 
> >
> > Tried both native and identity without succes.
> >
> >
> > --
> > _
> > Mario St-Gelais
> > www.gestionti.com
> > "Good judgment comes from
> > experience- usually experience
> > which was the result of poor judgment"
> > Bill Putnam
> 
> --
> Nick Heudecker
> System Mobile, Inc.
> Email: [EMAIL PROTECTED]
> Web: http://www.systemmobile.com
> 
> -
> 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]

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

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



Re: Struts and Hibernate

2004-04-07 Thread Nick Heudecker
The next thing I'll suggest is changing your mapping to:



If that still doesn't work, your best bet is to hit the
Hibernate forums: http://forum.hibernate.org/


> 
> 
>
>
>
>
>
> type="java.lang.String" />
>
> 
> 
> Tried both native and identity without succes. 
> 
> 
> -- 
> _
> Mario St-Gelais
> www.gestionti.com
> "Good judgment comes from
> experience- usually experience
> which was the result of poor judgment"
> Bill Putnam

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

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



Re: Struts and Hibernate

2004-04-07 Thread Nick Heudecker
It sounds like you didn't configure the primary key generation
correctly.  I believe that MySQL supports identity keys, not
sequences.  Your  tag should look like:



OR



Go here for more:
http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-s1-4--generator

On 2004-Apr-07 22:04, Mario St-Gelais wrote:
> David Friedman wrote:
> 
> >What is the contents of your hibernate.properties file (or 
> >hibernate.cfg.xml
> >file) and in what directory did yout place it?  Also, how did you
> >create/instantiate the SessionFactory?
> >
> >Regards,
> >David
> >
> > 
> >
> I used the hibernate.properties file as per the exemple :
> =
> hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
> hibernate.connection.driver_class org.gjt.mm.mysql.Driver
> hibernate.connection.url jdbc:mysql:///test_hibernate
> hibernate.connection.username admin
> hibernate.connection.password
> 
> Place the file under WEB-INF/classes
> 
> And used file ConnectionFactory.java:
> ==
> package com.edhand.hibernate1;
> 
> import net.sf.hibernate.HibernateException;
> import net.sf.hibernate.MappingException;
> import net.sf.hibernate.Session;
> import net.sf.hibernate.SessionFactory;
> import net.sf.hibernate.cfg.Configuration;
> 
> public class ConnectionFactory
> {
> 
>private static ConnectionFactory instance = null;
>private SessionFactory sessionFactory = null;
> 
>private ConnectionFactory()
>{
>try
>{
>Configuration cfg = new Configuration().addClass(Item.class);
> 
>sessionFactory = cfg.buildSessionFactory();
>}
>catch (MappingException e)
>{
>System.err.println("Mapping Exception" + e.getMessage());
>throw new RuntimeException(e);
>}
>catch (HibernateException e)
>{
>System.err.println("Hibernate Exception" + e.getMessage());
>throw new RuntimeException(e);
>}
> 
>}
> 
>public static synchronized ConnectionFactory getInstance()
>{
>if (instance == null)
>{
>instance = new ConnectionFactory();
>}
>return instance;
>}
> 
>public Session getSession()
>{
>try
>{
>Session s = sessionFactory.openSession();
>return s;
>}
>catch (HibernateException e)
>{
>System.err.println("Hibernate Exception" + e.getMessage());
>throw new RuntimeException(e);
>}
>}
> }
> 
> 
> -- 
> _
> Mario St-Gelais
> www.gestionti.com
> "Good judgment comes from
> experience- usually experience
> which was the result of poor judgment"
> Bill Putnam
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

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