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
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'
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:
>
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
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
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
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
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.
> >
> >
>
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
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
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
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
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
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.
>
>
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
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
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
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
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
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
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
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
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
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
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
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
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'
>
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
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
&
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:
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
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
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
33 matches
Mail list logo