Zhang, Larry (L.) wrote:
This might be an old topic, but should we completely rule out using
struts tag and move to jstl tag?
JSTL is preferred over Struts1's tags where there is overlap (mostly for
the logic: taglib). For Struts 1 and 2, though, there is lots of
functinoality in the taglibs
eclise Editor still gives a warning as Unknown tag
c:out also at runtime the expression is not getting
evaluated.
I got jstl.jar and standard.jar in the WEB-INF/lib and
got the following in the top part of the jsp
<%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core"; %>
<%@ taglib pref
you also need standard.jar:
http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi
musachy
On 5/22/07, tom tom <[EMAIL PROTECTED]> wrote:
Hi,
I just wanted to integrate some JSTL features to my
existing S2 application,
I followed the following steps
1)copied jstl-1.1.2.jar
It's not a case of 'which is better'; they aren't directly equivalent.
Some of the functionality in the Struts 1 tag libs overlaps some of the
functionality in the JSTL tag libs. Both sets of tags have capabilities
that are not available in the other.
In general, it's recommended to use the JS
--- Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]>
wrote:
> When I search information about the best practice
> for programing in Struts. I find: You should to use
> JSTL before the struts tags. Why?
For S1, because JSTL is "more standard" and duplicates
functionality found in the "less standard" Str
In comparison of the two; namely, JSTL and Struts2
tags, which one is better?
In between JSTL and Struts1 tags, I prefer JSTL. When
using JSTL, I feel that I am programming. I would
like to gather some opinions. Thank you.
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Heidy Gutiérrez Guzmán
2007/4/18, Ray Clough <[EMAIL PROTECTED]>:
This page perfectly illustrates my point on the difficulty of the JSTL tags
working nicely with S2. The page works perfectly if the object is
explicitly placed into the HttpRequest. If the 'getExporter()' is the way
in which the Exporter is exposed, th
--- Ray Clough <[EMAIL PROTECTED]> wrote:
> I'm using the S2 tags for the "NameValuePairs", and
> it works fine. I'm trying to use JSTL for the
> "DataMatrices", and it doesn't work.
I'll examine this further when I get home.
> Of course, I REALLY don't want to implement
> ServletRequestAware, b
The Exporter class is designed to make the data in my "Model" class available
for use in jsp. It has a method "getDataMatrices()" and another
"getNameValuePairs()". I'm using the S2 tags for the "NameValuePairs", and
it works fine. I'm trying to use JSTL for the "DataMatrices", and it
doesn't w
--- Ray Clough <[EMAIL PROTECTED]> wrote:
> My Action has a method "public Exporter
> getExporter()". If I use the struts2
> tags I can access the "exporter" with
> ,
> and it works fine. If I use the jstl syntax
> var="matrix" >, nothing is found. How do
> I get the jstl tag to work here?
My Action has a method "public Exporter getExporter()". If I use the struts2
tags I can access the "exporter" with , and it works fine. If I use the jstl
syntax , nothing
is found. How do I get the jstl tag to work here? Thanks a million.
- Ray Clough
Musachy Barroso wrote:
>
> http://cwi
--- Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]>
wrote:
> Where do I find information about the diffrence
> between JSTL and struts tags?
I'm not sure what kind(s) of differences you're
looking for, but assuming you already know JSTL tags
I'd start by looking at the documentation for the S2
tags, st
In ${expression}, "expression" will be evaluated against the Value Stack.
An Dave is right, the "variable publishing" name is probably not the best
description for it :)
musachy
On 4/17/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
The do publish a variable, if they have to, as Dave mentione
The do publish a variable, if they have to, as Dave mentioned, in the case
of the iterator, even if you don't specify and id, the current value will be
on top of the stack which you access using %{#top}. Other tags publish
values, like the url tag, etc.
musachy
On 4/17/07, Dave Newton <[EMAIL PR
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> ...but I'm telling you they do [expose variables to
> JSTL], or at least does.
Let me re-phrase that... it's not so much that they
"expose" variables, but that the StrutsRequestWrappers
will pass variable requests (not sure what to call
this, somebody
--- Ray Clough <[EMAIL PROTECTED]> wrote:
> The "why" is because I just really don't like the
> Struts-2 tags. I especially don't like the fact
that
> they don't expose a variable on the page - for
> example the s:iterator tag does not explicitly
expose
> a variable which I can work with, or form
The "why" is because I just really don't like the Struts-2 tags. I
especially don't like the fact that they don't expose a variable on the
page - for example the s:iterator tag does not explicitly expose a
variable which I can work with, or format using jstl. They "don't play
nicely with the
--- Ray Clough <[EMAIL PROTECTED]> wrote:
> Is it possible to use JSTL to access the value
stack?
The StrutsRequestWrapper (?) will forward...
"unfulfilled" attribute requests to the OGNL stack. I
wouldn't be sure of the exact syntax; it may depend on
what, exactly, you're trying to access (and
http://cwiki.apache.org/confluence/display/WW/Can+we+use+JSTL+with+the+framework
I shouldn't be linking to the wiki but the main doc has an error (fixed on
wiki already).
regards
musachy
On 4/17/07, Ray Clough <[EMAIL PROTECTED]> wrote:
Is it possible to use JSTL to access the value stack?
I believe the simple answer in struts 2.0.6 is
The property is null
which is same in struts 1.x as
The property is null
Pls let me know if any other alternative or a better
approach
Thanks
--- tom tom <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What is the struts 2.0.6 equiva
24 januari 2007 11:36
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase
Make sure you are using web.xml version 2.4.
Taras.
On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> All of a sudden, my iteration doesn't work anymore.
> I want to iterate through an Ar
[EMAIL PROTECTED] wrote:
So I have to change it to this:
http://java.sun.com/dtd/web-app_2_4.dtd"; >
Try
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/
--Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED]
Sent: woensdag 24 januari 2007 11:36
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase
Make sure you are using web.xml version 2.4.
Taras.
On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> All of a s
rEach items="${list}" var="person"
But when I run my webapp, now I can only see ${person.firstName}, ... instead
of the actual values.
-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED]
Sent: woensdag 24 januari 2007 11:10
To: Struts Users Mailing Lis
ame}, ... instead
of the actual values.
-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED]
Sent: woensdag 24 januari 2007 11:10
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase
Ensure you have
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix
taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.
JSTL is version 1.1 btw.
-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED]
Sent: woensdag 24 januari 2007 10:52
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase
Hi,
you should separa
ot;${fn:toUpperCase(person.lastName)}":
org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are
not supported.
JSTL is version 1.1 btw.
-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED]
Sent: woensdag 24 januari 2007 10:52
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase
Hi,
you should separate the namespace from the function name with a colon
rather than with a dot:
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
Taras.
On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Seems straight-through, but apparently it isn't.
I have
On Thu, 2006-01-26 at 10:43 -0500, fea jabi wrote:
>
>
>
>
>
> I am not sure what the value="${}" would be.
You can add an id="row" to the display:table tag, and use
${row.balance}.
--
Torgeir Veimo <[EMAIL PROTECTED]>
-
What you want is the following:
On 1/26/06, fea jabi <[EMAIL PROTECTED]> wrote:
> Have an object Account which has couple of attributes in it.
>
> using displaytag to show all the accounts.
>
>
>
>
>
>
>
> ...
>
Here's a few links:
http://today.java.net/pub/a/today/2003/10/07/jstl1.html
http://www-128.ibm.com/developerworks/java/library/j-jstl0211.html
http://java.sun.com/developer/technicalArticles/javaserverpages/faster/
http://www.onjava.com/pub/a/onjava/2002/08/14/jstl1.html - old, but useful.
http://
On 1/23/06, Deep Chand <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm developing a struts based application and would like to use jstl
> tags instead of custom tags specified with struts tag lib. Is there a
> good JSTL tutorial/reference available which gives good example usage
> also of how to use the j
Well, I said this was the gereral solution ;-) But yes, I forgot about
that, which makes things that bit simpler for this case.
L.
Rahul Akolkar wrote:
On 11/22/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
For the record, here's the general solution as well, for situations
where you can't us
On 11/22/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> For the record, here's the general solution as well, for situations
> where you can't use the element body like that. First, defining a
> scripting variable:
>
>
http://marc.theaimsgroup.com/?l=struts-user&m=113269509808314&w=2
-Rahul
For the record, here's the general solution as well, for situations
where you can't use the element body like that. First, defining a
scripting variable:
Or, to avoid the scripting variable, you can use jsp:attribute:
This comes up on the list so often, I think I
t;
I wouldn't recommend that. I suspect the only thing we might end up
confusing is ourselves ;-)
-Rahul
> Shawn
>
> -Original Message-
> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 22, 2005 2:43 PM
> To: Struts Users Mailing Lis
On 11/22/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 11/22/05, Rahul Akolkar <[EMAIL PROTECTED]> wrote:
> > On 11/22/05, Nick Sophinos <[EMAIL PROTECTED]> wrote:
>
> > This is definitely not how JSTL recommends loading bundles (see
> > fmt:bundle and fmt:setBundle). Ofcourse, its your decision.
might be able to better
determine your meaning.
Shawn
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 2:43 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: JSTL messages problem
Ok, today is apparently the
: Tuesday, November 22, 2005 2:43 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: JSTL messages problem
Ok, today is apparently the day I get to ask a bunch of stupid questions...
Why doesn't this work?
" />
I get...
org.apache.jasper.JasperException: /in
On 11/22/05, Rahul Akolkar <[EMAIL PROTECTED]> wrote:
> On 11/22/05, Nick Sophinos <[EMAIL PROTECTED]> wrote:
> This is definitely not how JSTL recommends loading bundles (see
> fmt:bundle and fmt:setBundle). Ofcourse, its your decision.
Can you explain more about this? I'm also using the contex
I admit I always forget the and elements, among others,
support body text. Had I remembered that I would have come up with this
on my own :) But thanks Ed (and Wendy after the fact ;) ), that worked
perfectly.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http
Yes, I saw those tags as I was researching, wasn't sure how to use them
though... is there a good reason to use them over the context param (or
vice-versa)? I would personally think the context param would be better
as it would be more global and would cut down on some tags on the page...
also, wi
On 11/22/05, Ed Griebel <[EMAIL PROTECTED]> wrote:
> I use this idiom all the time to get a message label on a button:
>
>
>
>
> You should be able to substitute above.
What he said. :) I had to go look around the source code of an old
project to refresh my mem
On 11/22/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 11/22/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> > Ok, today is apparently the day I get to ask a bunch of stupid questions...
> >
> > Why doesn't this work?
> >
> > " />
>
> You can't use a JSP tag as attribute of another JSP tag.
>
On 11/22/05, Nick Sophinos <[EMAIL PROTECTED]> wrote:
> Place this in your web.xml file:
>
>
> javax.servlet.jsp.jstl.fmt.localizationContext
> com.omnytext.blah.blah.properties.ApplicationResources
>
>
>
> Where ApplicationResources.properties is the name of the message bundle in
> question.
>
I use this idiom all the time to get a message label on a button:
You should be able to substitute above.
-ed
On 11/22/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 11/22/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> > Ok, today is apparently the day I
On 11/22/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Ok, today is apparently the day I get to ask a bunch of stupid questions...
>
> Why doesn't this work?
>
> " />
You can't use a JSP tag as attribute of another JSP tag.
Maybe try with the fmt in the body, then use an expression for
the
Ok, today is apparently the day I get to ask a bunch of stupid questions...
Why doesn't this work?
" />
I get...
org.apache.jasper.JasperException: /index.jsp(36,83) equal symbol expected
...when I try it. doesn't work either... it's obviously a
problem with embedding one taq in another, so
Yep, just figured that out myself :)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
On Tue, November 22, 2005 3:27 pm, Wendy Smoak said:
> On 11/22/05, Frank W. Zammetti <[EMAIL PROTECTE
Ah, I got it! The parameter should have been app_resources WITHOUT the
.properties. Now it works. Thanks Nick, I appreciate your time!
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
O
On 11/22/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> I added this but it still didn't work... One thing that didn't make sense
> to me is that I have app_resources_en.properties in WEB-INF/classes, so I
> wasn't sure how to qualify that in a package structure, so I just put
> app_resources.
Hi Nick,
I added this but it still didn't work... One thing that didn't make sense
to me is that I have app_resources_en.properties in WEB-INF/classes, so I
wasn't sure how to qualify that in a package structure, so I just put
app_resources.properties... is that right or am
I misunderstanding some
Place this in your web.xml file:
javax.servlet.jsp.jstl.fmt.localizationContext
com.omnytext.blah.blah.properties.ApplicationResources
Where ApplicationResources.properties is the name of the message bundle in
question.
- Nick
On 11/22/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
> Hel
Yahzz Yan wrote the following on 9/28/2005 2:17 PM:
Route Disp Err :
value="${coercionError}"/>
Not sure what the above has to do with the below, but
I get the following error from the JSP
javax.servlet.jsp.JspException: An error occurred while evaluating custom
action attribute "value
What are the scope the variables used in that object?
Vijaya S <[EMAIL PROTECTED]> wrote:Hello,
I am struggling with the JSTL error for the past two days. Can someone help
me in this?
In my JSP, I have the following code to populate bean array properties.
Route Disp Err :
value="${co
--- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> There is a Reference Implementation available from Sun at the bottom
> of
> http://jcp.org/aboutJava/communityprocess/final/jsr052/ (linked to
> from the
> URL you posted above).
actually i visited that page before but only found docs for download.
From: "Woodchuck" <[EMAIL PROTECTED]>
the way JSTL exists right now does not help alleviate the confusion
imho. please correct me if i'm wrong but for example, if you go to
Sun's official page about JSTL (http://java.sun.com/products/jsp/jstl),
you can find tutorials that dive right into JSTL,
i see. i'm using Tomcat 5.5.9 with servlet spec 2.4 right now. i will
update to the JSTL found in the Jakarta Standard 1.1 Taglib
distribution.
thanks, Wendy! :)
the way JSTL exists right now does not help alleviate the confusion
imho. please correct me if i'm wrong but for example, if you go
Just to add to what Wendy said - whats distributed with struts-el are the
Jakarta Standard 1.0 taglib implementation and the differences between that
and the Jakarta Standard 1.1 taglib (dtd and URIs) are down to changes in
the JSTL specification.
http://jakarta.apache.org/taglibs/doc/standard-doc
From: "Woodchuck" <[EMAIL PROTECTED]>
which is the 'official' version we should be using?
It depends on what version of the Servlet spec you're using.
Struts-EL goes with JSTL 1.0 on Servlet 2.3. That's what you see in the
Struts 1.2.7 distribution in the 'contrib' directory.
When you mov
Well, no answers so I solved it myself ;-)
I had to add the line:
That solved the problem!
Regards Line
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 6. september 2005 12:25
To: user@struts.apache.org
Subject: JSTL and taglibs
Hi!
In our application w
tld directory)
Any hints?
Martin
---
cityExperience.net
Dipl. Inf. Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland
eMail [EMAIL PROTECTED]
-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 22. Juni
t;Struts Users Mailing List"
Sent: Tuesday, June 21, 2005 7:39 PM
Subject: Re: JSTL tag libs
Thanks for the replies.
-Original Message-
From: [EMAIL PROTECTED]
Sent: Jun 20, 2005 5:16 PM
To: Struts Users Mailing List ,
[EMAIL PROTECTED]
Subject: Re: JSTL tag libs
I'm not p
Thanks for the replies.
-Original Message-
From: [EMAIL PROTECTED]
Sent: Jun 20, 2005 5:16 PM
To: Struts Users Mailing List ,
[EMAIL PROTECTED]
Subject: Re: JSTL tag libs
I'm not positive on this, but I think that the c-rt tags would take expressions
in scriptlet f
Erik is correct:
http://java.sun.com/j2ee/1.3/docs/tutorial/doc/JSTL4.html#wp67593
Niall
- Original Message -
From: <[EMAIL PROTECTED]>
Sent: Monday, June 20, 2005 10:16 PM
> I'm not positive on this, but I think that the c-rt tags would take
expressions in scriptlet format (<%=) wher
I'm not positive on this, but I think that the c-rt tags would take expressions
in scriptlet format (<%=) whereas the c tags take expressions in the expression
language format (${).
Erik
-Original Message-
From: [EMAIL PROTECTED]
Sent: Jun 20, 2005 4:34 PM
To: user@struts.apache.org
Su
Martin Gainty wrote:
> BobThis tutorial from Nick Heudecker may helpAssuming you
> place
> ApplicationResources.properties,FrenchApplicationResources.properties
> in WEB-INF/classes key="EnglishResources" parameter="ApplicationResources"/>
> parameter="FrenchApplicationResources"/>The most common
?
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 25, 2005 4:29 PM
To: Struts Users Mailing List
Subject: Re: JSTL fmt:message with modules
Bob-
assuming you set userLocale to english north america
so in the jsp if variable
Anyone else?Martin-- Original Message -
From: "Bob Arnott" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" ; "'Martin
Gainty'" <[EMAIL PROTECTED]>
Sent: Thursday, May 26, 2005 6:14 AM
Subject: RE: JSTL fmt:message with m
Martin Gainty wrote:
> Bob-
> assuming you set userLocale to english north america
> border="0" width="100%">
>
>
>
>
>basename="com.abcbank.example.ApplicationResources">
>
>
>
>
>
>
>
> so in the jsp if variable userLocale is set as Locale
> userLocale = new Locale("fr", "CA");
Bob-
assuming you set userLocale to english north america
width="100%">
so in the jsp if variable userLocale is set as Locale userLocale = new
Locale("fr", "CA");
header.title key is located in ApplicationResources_fr_CA.properties located
on the com/abcbank/example folder
and i
is helps,
> Martin-
>
> - Original Message -
> From: "Brian McGovern" <[EMAIL PROTECTED]>
> To: "Martin Gainty" <[EMAIL PROTECTED]>
> Cc: "Struts Users Mailing List"
> Sent: Tuesday, May 24, 2005 3:45 PM
> Subject: RE: JSTL Rss Readi
overn" <[EMAIL PROTECTED]>
To: "Martin Gainty" <[EMAIL PROTECTED]>
Cc: "Struts Users Mailing List"
Sent: Tuesday, May 24, 2005 3:45 PM
Subject: RE: JSTL Rss Reading
I'd like to avoid js if possible. Client can turn that off.
-Any other ideas?
-Or
I'd like to avoid js if possible. Client can turn that off.
-Any other ideas?
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 3:38 PM
To: Brian McGovern
Cc: Struts Users Mailing List
Subject: Re: JSTL Rss Reading
Brian
did you lo
Brian
did you look at frank zammetti's xhrstruts (Browser independent RSS feed
implementation using JavaScript) ?
http://www.omnytex.com/articles/xhrstruts/
Martin-
- Original Message -
From: "Brian McGovern" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, May 24,
Thank You.
found EL jar and tld in contrib folder.
Original message
>Date: Fri, 20 May 2005 06:23:18 -0700
>From: "Karr, David" <[EMAIL PROTECTED]>
>Subject: RE: JSTL and Struts together
>To: "Struts Users Mailing List"
>
>If yo
If you look in the "contrib" folder of the Struts distribution, you'll
find the "struts-el" distribution. This provides a taglib that just
wraps the Struts tag library so that all tag attributes are passed
through the JSTL EL engine, so you could do the following:
<%@ taglib uri="http://java.sun.
Suresh, I would recommend you still use "html" as prefix instead of
"html-el". This way, when you switch to a web container that supports
EL and decide to drop the struts-el.jar, you can just modify your <%@
taglib %> declaration to reconfigure (or, depending on how configure
tags, just your web.x
you can use the control to
accomplish just that I'm doing that in a bunch of places.
On 5/20/05, Shey Rab Pawo <[EMAIL PROTECTED]> wrote:
>
> etc.
>
> On 5/19/05, Suresh Khatri <[EMAIL PROTECTED]> wrote:
> > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/>
> > <%@ taglib uri="/ta
etc.
On 5/19/05, Suresh Khatri <[EMAIL PROTECTED]> wrote:
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/>
> <%@ taglib uri="/tags/struts-html" prefix="html"/>
>
>
> property="name"
> value=""/>
>
>
> would display the whole thing. Is there a way of making
Grzegorz-
Yes - Unless otherwise specified you are correct in stating the default
scope for the bean is 'page'
Martin-
- Original Message -
From: "Laurie Harper" <[EMAIL PROTECTED]>
To:
Sent: Thursday, May 19, 2005 11:22 PM
Subject: Re: jstl - define bean
Grzegorz Stasica wrote:
I thought defines a new bean in page scope. If this is true
No, c:set sets a property on a bean that is already defined.
I do not understand why attached code keeps throwing exception that no
getB() is not defined.
This is equivalent to <% d.setB("kicha"); %>
Login
You'
This may work :
But you have to know the scope where is stored the ActionMessages bean.
Struts-logic-el has some value-added over JSTL, as it can be used for
struts-related logic (like errors/messages), so why not using them ?
Logic tags having an equivalent JSTL tag are not declared in struts-e
The error is suggesting that it can't find an entry for "status" in the
page scope of your page. Do you still have the in there?
If you have the scope attribute, make sure it's set to page. Otherwise
you'll have to replace pageContext with request, or session depending on
your choice of sc
Umh... I am now getting this error: Attribute addTableRow( has now value.
I have downloaded the Struts 1.2.4 and noticed that there is a lib
directory and then there is a contrib/lib.
What is necessary to use the Struts-EL tags?
I think that with RT the attribute is all expression or no express
I think that with RT the attribute is all expression or no expression.
so try :
">
I'm not sure if i parsed your intention correctly, but the idea is that
the attribute should be all expression. a simpler example:
wrong ->
right -> ">
dave
On Thu, 2005-04-14 at 12:42, [EMAIL PROTECTED] wrote
Okay...
I tried the following:
')">
and I get this error:
Error 500: /WEB-INF/personal/timeAndAttendance/cWWHistory.jsp(215,129)
Attribute status has no value
I'd really like to get this working, I will then spend some time looking
into upgrading to a later version of Struts ti use the E
[EMAIL PROTECTED] wrote the following on 4/14/2005 12:03 PM:
Okay... I am not using the Struts EL taglibs.
Should I be using them?
I think you should. Makes the code a lot cleaner. Remember if you are
using a JSP2.0 container (ie Tomcat 5), just use the regular html tags
(not the el ones). (Then
I think Dave's got it. Use the struts-el tags if you want to have EL
expressions instead of RT expressions (<%= ... %>)
If you want/have to stick with RT, then you'd need this instead of
${status.index}
<%= ((javax.servlet.jsp.jstl.core.LoopTagStatus)
pageContext.getAttribute("status")).getIn
Okay... I am not using the Struts EL taglibs.
Should I be using them?
You choose to use the struts EL tags by a) using the struts EL tld (like
struts-html-el.tld) and b) by having the struts-el tag JAR file. I don't
know if they come by default with the latest release or not; you'd have
to che
[EMAIL PROTECTED] wrote:
How can I tell which version of the struts tags?
You choose to use the struts EL tags by a) using the struts EL tld (like
struts-html-el.tld) and b) by having the struts-el tag JAR file. I don't
know if they come by default with the latest release or not; you'd have
t
How can I tell which version of the struts tags?
Dave Newton <[EMAIL PROTECTED]>
14/04/2005 10:53 AM
Please respond to "Struts Users Mailing List"
To: Struts Users Mailing List
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:
[EMAIL PROTECTED] wrote:
Niether solution works...
The expression is never evaluated. The output is:
Are you using the EL version of the struts tags?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
cc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:RE: JSTL simply love it however ...
Classification:
I think ${status.index} in place of s_SOMETHING_HERE would work fine.
Otherwise, try setting onChange="${addTableRow}" with addTableRow prior
defined as:
addTableRow('
I think ${status.index} in place of s_SOMETHING_HERE would work fine.
Otherwise, try setting onChange="${addTableRow}" with addTableRow prior defined
as:
addTableRow('historyTable','')
-Abdullah
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 1
/1/2005 6:40 PM
To: Struts Users Mailing List
Subject: RE: JSTL vs Logic
> -Original Message-
> From: Brian McGovern [mailto:[EMAIL PROTECTED]
>
> I am switching from using struts-logic tags to jstl and have
> a really basic question.
>
> An object stored in Applicati
> -Original Message-
> From: Brian McGovern [mailto:[EMAIL PROTECTED]
>
> I am switching from using struts-logic tags to jstl and have
> a really basic question.
>
> An object stored in Application Scope has a method called
> getKeyValues() that returns an array list of beans, each
>
David,
In order to specify the scope, you preceed your variable with the scope
type. Therefore for a request-scope variable, the variable would be :
"requestScope.variable". There are several scope types:
pageScope
requestScope
sessionScope
applicationScope
Additionally, when you have
<%= Constants.MY_CONSTANT %>
-- Jeff
CRANFORD, CHRIS wrote:
I have defined a test class with constants as follows:
public class Constants
{
public final static String MY_CONSTANT = "OK";
}
What I want to do is in my html:option tag, I want to set the value
associated with that tag to the constan
> So you're not able to reference static public final
> properties in the same fashion as scriplets?
> <%=Constants.MY_CONSTANT%>
Tags are fundamentally different from scriptlets. Scriptlets are simply Java
code, and you can address a member variable of a class from a scriptlet just
as you could
1 - 100 of 212 matches
Mail list logo