Re: Newbie Help: Struts 2 + Spring + Hibernate

2008-09-24 Thread David C. Hicks
Ryan, I just went through a similar learning process. I found that by following the model of the online tutorial, I had a lot more luck getting started than trying to start from scratch. Load up the WTP plugins for Eclipse, grab the "quickstart" zip file mentioned in the online tutorial, an

Newbie Help: Struts 2 + Spring + Hibernate

2008-09-24 Thread Ryan Detert
I just read the Manning book on Struts 2 and understand the theory behind Struts but am a little bit confused as to how to actually implement my first app in practice. The locations of the config files, etc are a little confusing. For my development environment I'm using Maven 2 + Ecplise IDE. I'

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-15 Thread Mark S Petrovic
Wow. Right on. Using the with additional attributes as shown in the wiki entry below indeed solved the problem. Thank you, and thanks to everyone else who patiently read my posts and offered help. Mark On 15Nov, Rahul Akolkar wrote: > On 11/15/05, Mark S Petrovic <[EMAIL PROTECTED]> wrote: >

RE: Newbie help with Struts idiom: functional if/else tags

2005-11-15 Thread Leahy, Kevin
Sent: 15 November 2005 16:34 To: Struts Users Mailing List Subject: Re: Newbie help with Struts idiom: functional if/else tags I know I'll look back on this learning curve with a head-slapping recollection, but until then, for posterity: 1. If I remove the taglib directive in the JSP, the va

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-15 Thread Rahul Akolkar
On 11/15/05, Mark S Petrovic <[EMAIL PROTECTED]> wrote: > I know I'll look back on this learning curve with a head-slapping > recollection, but until then, for posterity: > > 1. If I remove the taglib directive in the JSP, the various tags > are copied directly into the html output, with the brow

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-15 Thread Dave Newton
Mark S Petrovic wrote: Whatever is misconfigured in my app is not a completely fatal situation: I just can't get at the scripting variables to do meaningful operations on them. Can you set a String into scope: request.setAttribute("foo", "bar"); then in a JSP do: ? Dave

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-15 Thread Mark S Petrovic
I know I'll look back on this learning curve with a head-slapping recollection, but until then, for posterity: 1. If I remove the taglib directive in the JSP, the various tags are copied directly into the html output, with the browser doing its best to just ignore them. The plaintext tag body c

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-15 Thread Mark S Petrovic
On 15Nov, Dave Newton wrote: > Mark S Petrovic wrote: > > >which isn't even iterating over the list items. E.g, I get one line of > >html output for the tag, containing > >the string literal '${feature.premium}' in quotes - as if expansion of > >${feature.premium} is not taking place. > > > > >

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-15 Thread Dave Newton
Mark S Petrovic wrote: which isn't even iterating over the list items. E.g, I get one line of html output for the tag, containing the string literal '${feature.premium}' in quotes - as if expansion of ${feature.premium} is not taking place. You're using the JSP taglib directive? You have al

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-15 Thread Mark S Petrovic
On 15Nov, Mark Petrovic wrote: > > > > > > > Should just be Sorry. I failed to mention in my reply that I tried this, too, and it made no difference in the html output. - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-15 Thread Mark S Petrovic
Thank you for the reply. 1. I want to say yes, Feature is a proper JavaBean, with essentials public class Feature { private boolean premium; public void setPremium(boolean b) { premium = b; } public boolean isPremium(){ return premium; } } and no overloaded methods. "features" is

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-14 Thread Wendy Smoak
On 11/14/05, Mark S Petrovic <[EMAIL PROTECTED]> wrote: > Should just be Is 'feature' a proper JavaBean? The types for get(is)/set methods match, no overloaded set methods, etc? -- Wendy - To unsubscribe, e-mail: [EMAIL

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-14 Thread Mark S Petrovic
I'm still stumbling on some details. For fwiw, "features" is put in the request scope using request.setAttribute("features", features); in the Action t

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-14 Thread Larry Meadors
I like this: true Larry On 11/14/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Use either Struts or JSTL or bare scriptlet. In > your particular case you can make the decision in the bean itself. Do > not print HTML tags from Java, this produces unmaintable and > unportable code. > >

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-14 Thread Mark S Petrovic
Thank you for the reply. Using, for example, seems to solve only half the problem. Using , I can see my way clear to True True which gives a crude if/else effect, but this is almost surely ill advised. I think the same would apply to , as I know of no "else" construct that goes with e

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-14 Thread Craig McClanahan
On 11/14/05, Mark S Petrovic <[EMAIL PROTECTED]> wrote: > > Good day. I am new to Struts, and while I am coming up to speed, I'm > still struggling with what are surely common idioms. > > In a JSP, I want to output, say, a element body conditionally based > on a given bean property. > > In pseudoc

Re: Newbie help with Struts idiom: functional if/else tags

2005-11-14 Thread Michael Jouravlev
Use either Struts or JSTL or bare scriptlet. In your particular case you can make the decision in the bean itself. Do not print HTML tags from Java, this produces unmaintable and unportable code. Michael. On 11/14/05, Mark S Petrovic <[EMAIL PROTECTED]> wrote: > Good day. I am new to Struts, a

Newbie help with Struts idiom: functional if/else tags

2005-11-14 Thread Mark S Petrovic
Good day. I am new to Struts, and while I am coming up to speed, I'm still struggling with what are surely common idioms. In a JSP, I want to output, say, a element body conditionally based on a given bean property. In pseudocode, I want if bean.property == true print X else print Y

Re: [offlist] Re: Newbie Help

2005-07-07 Thread Rahul Akolkar
On 7/6/05, Frasso, Anthony <[EMAIL PROTECTED]> wrote: > Thanks for your help, Rahul. My current web.xml file looks like this: > > > > "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > >... > > According to the w

Re: [offlist] Re: Newbie Help

2005-07-06 Thread Frasso, Anthony
Thanks for your help, Rahul. My current web.xml file looks like this: http://java.sun.com/dtd/web-app_2_3.dtd";> ... According to the wiki, it seems that I should be changing it to this: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/20

Re: [offlist] Re: Newbie Help

2005-07-06 Thread Rahul Akolkar
On 7/6/05, Frasso, Anthony <[EMAIL PROTECTED]> wrote: > Instead of doing what I would expect, it prints out the the text of > "$(project.projectId}" instead of its value. > > Note that I also tried using your JSP 2.0 recommendation, replacing the > tag with just "${project.projectId}". Same r

RE: [offlist] Re: Newbie Help

2005-07-06 Thread Frasso, Anthony
mmendation, replacing the tag with just "${project.projectId}". Same result. Thanks again for your help, Wendy, and to everyone who responded to my earlier post. I've forwarded this response to the list as well in case Wendy is not available again to respond. Regards, Antho

Re: Newbie Help

2005-07-06 Thread Laurie Harper
Frasso, Anthony wrote the following on 7/5/2005 5:34 PM: <% ProjectsBean projectsBean = new ProjectsBean(); projectsBean.populate(); pageContext.setAttribute("pojectsBean", projectsBean); %> Any scope should work. Also make sure the Project object includes the appropriate (JavaBe

Re: Newbie Help

2005-07-05 Thread Andrew Thorell
Anthony, I'm still a newbie to struts myself, so take this email with a gain of salt (or 2). I put in a suggestion down below that may make your life easier if you have a lot of reports to deliver (or similiar items on what you are displaying). > -- Start JSP Code > > <% > ProjectsBean proje

Re: Newbie Help

2005-07-05 Thread Rick Reumann
Frasso, Anthony wrote the following on 7/5/2005 5:34 PM: Hello, and thanks in advance for your help. I am a newbie with respect to struts, and for that matter web development in general. I am attempting to design a simple jsp page (using the struts framework) to print a table of values that a

Newbie Help

2005-07-05 Thread Frasso, Anthony
Hello, and thanks in advance for your help. I am a newbie with respect to struts, and for that matter web development in general. I am attempting to design a simple jsp page (using the struts framework) to print a table of values that are read from a bean. For now, I'll stick to trying to gen

RE: Newbie Help html:text conditional arguments

2005-03-25 Thread George Sexton
OK, I found it and that works. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: George Sexton [mailto:[EMAIL PROTECTED] > Sent: Friday, March 25, 2005 10:45 AM > To: 'Struts Users Mailing List' >

RE: Newbie Help html:text conditional arguments

2005-03-25 Thread George Sexton
List'; 'Hubert Rabago' > Subject: RE: Newbie Help html:text conditional arguments > > How would I do this? I upgraded all of the jars to 1.2.4 > version of struts, > and copied the TLDs and DTDs, but the READONLY attribute is > still not set. > > George Sexton

RE: Newbie Help html:text conditional arguments

2005-03-25 Thread George Sexton
mailto:[EMAIL PROTECTED] > Sent: Friday, March 25, 2005 9:45 AM > To: Struts Users Mailing List > Subject: Re: Newbie Help html:text conditional arguments > > It's possible you just need to update your taglib declarations to use > the EL version of the tags. > > Hubert &

RE: Newbie Help html:text conditional arguments

2005-03-25 Thread George Sexton
The readonly attribute is not output. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Friday, March 25, 2005 9:42 AM > To: Struts Users Mailing List > Subject:

Re: Newbie Help html:text conditional arguments

2005-03-25 Thread Hubert Rabago
It's possible you just need to update your taglib declarations to use the EL version of the tags. Hubert On Fri, 25 Mar 2005 11:41:41 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > What is it doing wrong? Getting errors? What does the resulting html src > code look like? > > George Sexton wro

Re: Newbie Help html:text conditional arguments

2005-03-25 Thread Rick Reumann
What is it doing wrong? Getting errors? What does the resulting html src code look like? George Sexton wrote the following on 3/24/2005 10:45 PM: I'm running into a problem with Struts, and I admit I'm a newbie to it. I have a line in a JSP file: What I'd like to do is conditionally have readonl

Newbie Help html:text conditional arguments

2005-03-24 Thread George Sexton
I'm running into a problem with Struts, and I admit I'm a newbie to it. I have a line in a JSP file: What I'd like to do is conditionally have readonly set: <% request.setAttribute("my_attr","true"); %> But it doesn't seem to work. I'm doing something similar with JSTL FMT:MESSAGE. What is