--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-loops are 'multibox' not 'checkbox'. But I
don't use indexed properties, so YMMV.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
the ability to use
expressions within the Struts tags, as well as the JSTL-awareness so that
indexed properties will work within an enclosing c:forEach loop.
http://struts.apache.org/faqs/struts-el.html
--
Wendy Smoak
-
To unsubscribe
does
not
accept any expressions and currency
It works fine for me, and prints: $125,000.00
I think you might be using the wrong tld... I'm using:
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
--
Wendy Smoak
is legal to put
in a 'pattern'?
(And further, how expensive is it? I can do the String manipulation when I
populate the bean if that makes more sense.)
Thanks,
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED
with Struts-EL instead of the 'classic' Struts tags.
bean:write is replaced by JSTL's c:out
And you can use c:forEach instead of logic:iterate (unless you need its
support for indexed properties.)
--
Wendy Smoak
-
To unsubscribe, e
error was encountered while trying to use an
ErrorDocument to handle the request.
Apache/2.0.40 Server at mirrors.combose.com Port 80
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
.)
I have no idea why it works one place and not the other, but I've
experienced something similar with code working fine on my Windows
development PC and refusing to cooperate on my HP-UX web server.
--
Wendy Smoak
=Choose One/
/html-el:select
Then if 'some_option' is an attribute sitting in some scope, it will be
substituted when the tag is evaluated.
If you explain more about the problem you're trying to solve, someone
will probably have another suggestion.
--
Wendy Smoak
.
Try this:
c:forEach items=${firstArray} var=myItem varStatus=status
c:out value=${myItem}/
c:out value=${secondArray[status.index]}/
c:out value=${thirdArray[status.index]}/
/c:forEach
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
'. Or not, play around
with it and see what works!
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to problems.
Once you fix the directory name, Tomcat should be able to find the tld
inside the .jar file. You do not need to put the tld's in your webapp
or list them in web.xml with Tomcat 4.1. If you don't provide a web.xml
file, Tomcat will use the one in $TOMCAT_HOME/conf.
--
Wendy Smoak
}: An exception occured trying to convert String 0.00 to type
java.lang.Long
Maybe that's the wrong way to go about it. All I really want is to
either display
td class=text or td class=redtext
depending on the amount. Is there a better way to do that?
Thanks,
--
Wendy Smoak
Application
/lib and running with a single copy in your
webapp's directory. Some libraries cannot be shared, I don't know
whether this is one of them. Having two copies can confuse the
classloader and sometimes shows up as 'not found' errors.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information
AccountView object? Is there
a way to 'cast' them into doubles in JSTL? Otherwise my next
inclination is to add a getMarketValueAsDouble method.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
From: Wendy Smoak
It turns out that I really need this:
c:when test=${accountView.marketValue
accountView.historicGiftValue}
They're both Strings. No wonder it thinks that 76201.31 101000.94!
Never mind... I tricked it, with help from Kris and A.3.5.1 which says
that if there is a String
on the page fails validation, and the user has
changed this value, it's going to revert back to the value in
'ventureObject.startDate' when the form is re-displayed.
You might want to set the form property to your default value in the
Action, prior to forwarding to the JSP.
--
Wendy Smoak
Application
about a Double instead of a Long.
I tried flipping the order so it's 'accounts2002' but I got the same
error. I bet this is very simple and I'm just not awake yet...
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
it should look for the object.
Thanks!
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Another approach would be to maintain a map of maps (keyed by
year) instead of multiple free standing maps. Something like:
Clever! Job security in a single line:
c:forEach items=${accountMap[accountForm.map['year']]} var=account
--
Wendy
/jstl/core; prefix=c %
At the top of the page?
--
Wendy Smoak
Applications Systems Analyst, Sr.
Public Affairs, Information Resources Management
Arizona State University, Tempe AZ
is by their unique
uri's:
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
%@ taglib prefix=sql uri=http://java.sun.com/jsp/jstl/sql; %
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
so in the web.xml's taglib's uri is
http://java/jsp/jstl/...?
and in the jsp files also like that?
I have *no* taglibs defined in web.xml.
The JSP's have:
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
And JSTL works fine. HTH...
--
Wendy Smoak
me now if I'm doing something that's going to cause problems
later!
Thanks,
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
your help even though it isn't strictly on topic.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
a specific position of
it??) The setting of the cookie is done in a Struts Action, so I've got
Struts (and Struts-EL) tags available if one of those would be easier to
use.
Bear with me, it's my first cookie. :) If you have a suggestion for a
different way to do this, I'm all ears.
--
Wendy Smoak
what I came here to ask, really. I don't think reading the cookie
with JSTL is the best solution necesarily, I just wondered if it was
possible.
Thanks!
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
anything of the sort before, either 0010001000 or
YYYNNNYYNYNY came to mind. (And an evil coworker suggested turning the
first into a decimal number before setting the cookie.)
--
Wendy Smoak
Can you nest c:forEach tags? I can't find an example of it, and it's not
working for me.
c:forEach items=${itemList} var=item
hr
c:out value=${item.id}/. c:out value=${item.text}/br
c:forEach items=${item.options} var=option /
c:out value=${option.text}/
Shawn wrote:
It looks right to me. Are you sure you're using our Standard Taglib
implementation? This could be a bug with other partial implementations.
I think I am... I have the standard.jar, jstl.jar, and c.tld from
jakarta-taglibs - standard-1.0.2 directory in the appropriate places
When I use that code I posted... I actually get the second/c:forEach tag
in the html output. Strange!
Never mind... I still can't see it, but there must have been a typo. I
deleted the nested c:forEach tag and re-typed it... and it works fine.
Thank you for the quick answer, and on a
(), and the String return
value of that is what I need to be the value of my radio button tag.
HELP! I've just today moved to Tomcat 4.1.12, only recently gotten a
tentative handle on Struts, and now am trying to throw JSTL into the mix.
It's not going well.
--
Wendy Smoak
http://sourceforge.net
Joshua Bloch's
_Effective_Java_) I tend to just rent them from O'Reilly online.
I'm sure yours is a timeless classic, of course, but I still like to preview
the whole thing online before I fill up my bookshelf. :)
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA
to fix it.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
up!
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
35 matches
Mail list logo