Re: switching to struts-el

2004-04-01 Thread P. Hill
Dean A. Hoover wrote: I have seen "JSTL in Action" on the bookshelves. Is that a good book on the subject? I found JSTL In Action to be a nice gentle introduction and includes some very good applications of JSTL, but the book is written for content providers and NOT for Java developers. So if you

Re: switching to struts-el

2004-03-31 Thread Bill Siggelkow
Wendy Smoak wrote: Another question for Bill, also on page 33: Why are you using the 'value' attribute of the tag? Struts should pre-populate the HTML form element based on the Form bean property, which would have been filled in when the form was submitted (or be blank if not). I haven't read t

Re: switching to struts-el

2004-03-31 Thread Bill Siggelkow
Thanks for the mention, Ted. As far as the Struts-EL calculator, the calculation is actually done by the CalcAction (Calc.do) -- not a helper bean. The calculation could have been done inline (using EL in the ) as with the JSTL calculator; however, in this case, I have the action to which the

RE: switching to struts-el

2004-03-31 Thread Wendy Smoak
> From: Ted Husted [mailto:[EMAIL PROTECTED] > Bill, > Your presentation, mentioned in another thread, is also very helpful. > http://www.jadecove.com/articles/jstl-and-struts.pdf Another question for Bill, also on page 33: Why are you using the 'value' attribute of the tag? Struts should p

Re: switching to struts-el

2004-03-31 Thread Ted Husted
Bill, Your presentation, mentioned in another thread, is also very helpful. http://www.jadecove.com/articles/jstl-and-struts.pdf Towards the end, you show a simple calculator implemented as JSP, Struts, Struts-EL, and JSTL. On page 33, the Struts-EL uses a "helper bean" to do the arithmetic. Th

Re: switching to struts-el

2004-03-30 Thread Bill Siggelkow
I feel your pain, Dean :) With the relatively rapid changes in Java/Web technology it is difficult for print material to keep up. I really liked JSTL in Action -- however, you may want to read the JSTL 1.1 spec to pick up the new features. I put out a JSTL Quick Reference that you might find

Re: switching to struts-el

2004-03-30 Thread Dean A. Hoover
Thanks Bill. That fixed the errors thing *and* allowed me to stop using the struts-el tags. I have "Struts in Action" and "JSP Tag Libraries" (from Manning) in my library and it looks like I will go ahead and get "JSTL in Action". In general, I like the Manning books. The one complaint I have abou

Re: switching to struts-el

2004-03-30 Thread Bill Siggelkow
Dean A. Hoover wrote: I'm not sure I understand what "the EL is already available" means. Tomcat 5 supports JSP 2.0 -- JSP 2.0 supports the use of Expression Language (EL) within template text. IIRC, Tomcat 5 will ignore EL on a JSP page if the web app referencs the Servlet 2.3 DTD -- however,

Re: switching to struts-el

2004-03-30 Thread Dean A. Hoover
Karr, David wrote: I'm assuming you're not using Tomcat 5. If you are, you don't need to use Struts-EL, as the EL is already available. I'm not sure I understand what "the EL is already available" means. You should read the JSTL specification. It doesn't go into as much detail as the book refer

RE: switching to struts-el

2004-03-30 Thread Karr, David
I'm assuming you're not using Tomcat 5. If you are, you don't need to use Struts-EL, as the EL is already available. You should read the JSTL specification. It doesn't go into as much detail as the book referred to, but it is the best place to start. > -Original Message- > From: Dean A.

Re: switching to struts-el

2004-03-30 Thread Mark Lowe
I believe so . I haven't been brave enough yet to move to tc5 but the el support is a good reason for me to do so. I think (haven't tried it) as you're using tc 5 you wont need the el struts tags as the expressions are evaluated before the tags, working much the same way as <%= foo.getBar() %>

Re: switching to struts-el

2004-03-30 Thread Dean A. Hoover
Thanks Mark. I am using Tomcat 5. So is the ${error} notation part of the latest JSP spec? Dean Mark Lowe wrote: I've got by using the appendix to struts in action. its a bit annoying but there seem no elegant way of drilling action errors but if error is scoped to the request or page then i

Re: switching to struts-el

2004-03-30 Thread Mark Lowe
I've got by using the appendix to struts in action. its a bit annoying but there seem no elegant way of drilling action errors but if error is scoped to the request or page then if you're using tomcat 5 then just ${error} as jsp2 doesn't require the c:out wrappers. On 30 Mar 2004, at 15:10,