::SammyRulez:: [EMAIL PROTECTED] wrote on 08/25/2005 06:11:54 PM:
Hi all
I would like to store in an application scope variable a message
bundle via listener when the application stat up... something like:
public void contextInitialized(ServletContextEvent event) {
Dylan MacDonald [EMAIL PROTECTED] wrote on 08/25/2005 06:42:03 PM:
Hi -
I was wondering whether it was possible to set the var in the c:set tag
dynamically? For example, within my forEach tags I want to build a
list of page variables dynamically based on the index (or the varStatus
count)
Murray Steele [EMAIL PROTECTED] wrote on 08/10/2005 04:15:26 AM:
Hi,
The _rt bit means that the taglibs understand runtime expressions as
the values of their attributes.
snip/
On 9 Aug 2005, at 08:41, Karianne Berg wrote:
Hi,
I'm quite new to JSTL, and crawling through tutorials
Givler, Eric [EMAIL PROTECTED] wrote on 08/10/2005 08:16:25 AM:
Our development tool at the office includes an older version of
Struts (v1.16). The tool mentions some incompatibilities with newer
versions of struts, so we have not changed this. Anyway, there is a
Validator in struts that
The Apache Jakarta Taglibs team is pleased to announce the release of
version 1.0.0 of the Reusable Dialog Components (RDC) tag library.
JSP 2.0 based Reusable Dialog Components (RDC) is a framework for creating
JSP taglibs that aid in rapid development of voice and multimodal
applications.
Marco Mistroni [EMAIL PROTECTED] wrote on 07/27/2005 05:30:17 PM:
hello all,
i am trying to replace struts logic:iterate with JSTL c:forEach...
however, i need what in logic:iterate is the index in the loop
is it possible to get it from anywhere?
c:forEach ... varStatus=status ...
Luca Passani [EMAIL PROTECTED] wrote on 07/23/2005 02:28:14 PM:
ooops, I felt this was a general taglib question, more than a Struts
question. It only takes struts as an example,
but the question is is there a reason why it makes sense to always
subclass BodyTagSupport in a tag-library?
Henri Yandell [EMAIL PROTECTED] wrote on 07/15/2005 01:29:09 PM:
On 7/15/05, Robert Taylor [EMAIL PROTECTED] wrote:
Thanks Martin, but at the risk of sounding ignorant.
The last source link is labeled archives... (not very intuitive)
I clicked on it and then downloaded the file:
Henri Yandell [EMAIL PROTECTED] wrote on 07/15/2005 01:53:07 PM:
snip/
While I'm on a slightly different topic:
* we really don't release source when we release code?
AFAICT. Which is why I had to prepend my earlier post with In the mean
time, ...
Do we have tags for all past releases? I
Dylan MacDonald [EMAIL PROTECTED] wrote on 07/13/2005 05:41:46 PM:
Can someone explain the context attribute in the c:import tag?
snip/
It is used in cross-context imports and is the name of the context you're
importing from. Most containers need to be configured to enable
cross-context
Woodchuck [EMAIL PROTECTED] wrote on 06/17/2005 11:18:17 AM:
The lists have been slow. Please do not send multiple copies :-)
i also noticed there seems to be multiple copies of my original post.
i do not know why, i only sent once.
OK, sorry about the banter ;-) It seems we had quite a
Dino Klein [EMAIL PROTECTED] wrote on 06/06/2005 09:16:07 AM:
I have two jspx files (pasted below), where one includes the other.
When I remove the xmlns:c declaration/importation - it works; similarly,
when I do not include the other file, it also works fine.
snip/
(1) main.jspx
Dino Klein [EMAIL PROTECTED] wrote on 06/06/2005 03:44:38 PM:
snip/
I did some primitive debugging, and all I could find out is that if I
use
xmlns:fn=http://java.sun.com/jsp/jstl/functions;, then I have no
problems; I checked the TLDs, and I noticed that it does not include a
validator
Nic -
I recommend downloading the JSTL 1.1 Spec Maintenance Release from here [
http://java.sun.com/products/jsp/jstl/ ] and reading Appendix A
(Compatibility Migration), specifically A.2 deals which JSTL 1.0 - 1.1
migration. Should have everything you need to know.
-Rahul
See Question 1 on Taglibs Wiki FAQ [
http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions ]
-Rahul
Andy [EMAIL PROTECTED] wrote on 05/31/2005 09:29:37 AM:
I have another problem ! (what is going on today?) Why can't I print out
the
value of a variable using c:out ? The below
A jsp:useBean declaration, that changes things ;-)
On 5/31/05, Andy [EMAIL PROTECTED] wrote:
snip/
I can see lots of horrible conditional glue logic in my future.
No, really, atleast not because of whats discussed in this thread.
I would:
1) Set the session attribute in the Struts layer only
Lookup the varStatus attribute of x:forEach, it will allow you to query
for boundary cases (first/last) amongst other things and you can use that
to decide when the trailing delimiter is not needed (for the last
iteration of the forEach).
-Rahul
On 5/26/05, Kralidis,Tom [Burlington] [EMAIL
varStatus is good here too, it can give you the count of the current
iteration. With that, for example, you can do a modulo 2 operation for
alternating bgcolors or style classes.
-Rahul
Scott Purcell [EMAIL PROTECTED] wrote on 05/26/2005 12:58:20 PM:
Hello,
I have this scenario come up
Jakarta Taglibs has a JSTL implementation here:
http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
Please look at the EL functions library, specifically the substring
function.
-Rahul
On 5/10/05, Darryl Pierce [EMAIL PROTECTED] wrote:
How can one get the substring from a string
I, for one, did not understand the question (or what the nesting you show
has to do with JSTL recursion). Can you please try again?
Thanks,
-Rahul
On 5/2/05, Gros, Martin [EMAIL PROTECTED] wrote:
JSTL and recursion, is this possible?
e.g. walk an xml tree with same element names on
A clarification is due, the recent changes do not constitute a release of
the RDC sandbox taglib, please view Martin's note here for details:
http://marc.theaimsgroup.com/?l=taglibs-devm=111440395623056w=2
-Rahul
On 4/24/05, Rahul P Akolkar [EMAIL PROTECTED] wrote:
The RDC sandbox taglib
The RDC sandbox taglib [
http://jakarta.apache.org/taglibs/sandbox/doc/rdc-doc/intro.html ] has a
new features beta 1.0 release.
Major Changes:
1) Defining Custom Event tuples - It is possible to leverage VoiceXML
support for user defined event (name, grammar, handler) tuples. These
tuples
c:when test=${nc.Response=='Exchange Failure' !empty nc.readyDate}
On 4/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi There,
i have a strange problem when i am using a when clause with multiple
conditions, ie
c:choose
c:when test=${nc.Response=='Exchange Failure'} ${!empty
I have a taglib that I am packaging up as a jar
and I'm trying to figure out how I can package it
with images and style sheets that could be
referenced in a relative path like img
src=/mytaglibimages/car.gif in the taglib code.
Not sure if you can get relative paths to work with no
It also means you have to deal with cache
headers, so that you're not serving up the
same images to the same browser again and again.
Very true, cache, response-type, in short, you have to behave like a good
web server ;-) However, its definitely manageable, and by pulling some of
the
I thought a JSP would share the same session within
the servlet if a session already exists in the
container. JSP is eventually translated into servlet
code, doesn't it?
I insert the log message code in the servlet before
getting to the JSP and find that a session already
exists at the
c:forEach var=directory
items=CONTEXT_STRUCTURE.directories
EL expression for items? String argument will be treated as a CSV.
-Rahul
Rick wrote:
Thanks Rahul for the info. I'm wondering which would have
less overhead behind the scenes... using the replace like
you have it above or storingwhat I want to replace in
a temp var? The reason I ask is this operation will have
to actually be repeated several times within an
trying to convert String field. to type java.lang.Doublesnip
I even tried using the fn:trim tag which is supposed to return a String
In short, the spec says so :-)
Remember, + is not string concatenation in JSPs, it is an arthmetic
operator. The rogue argument here is not the index (so
If I put the hex values
of the colors in the context-param area of the web.xml file, how do you
call them?
pageContext.
getServletContext().getInitParameter(insert-context-param-name-here);
-Rahul
The RDC sandbox taglib [
http://jakarta.apache.org/taglibs/sandbox/doc/rdc-doc/intro.html ] has a
new features pre beta release. There have been a multitude of code
enhancements.
Major Changes:
1) Rule based directed dialog strategy for rule based dialog management
across child RDCs using
The the tag lib will receive two parameters: the list off skills and
the number of columns.
snip
Can I pass a collection, a list, to a tag lib? how?
The c:forEach tag [JSTL core] will allow you to iterate over items in a
collection, you may add the tr and td elements appropriately before
well, how else would I know if that's just a string I need
to send verbatim to the client, or if I need to retieve the actual
URL another way? of course, the resul will be an href attribute
sent to the client anyway.
You're tempting me to reply, so let me blame you for this email ;-) We
c:url var=encodedUrl
value=Blah.do?sortId=${sortId}...title=${titleText}.../
onclick=javascript:window.open('${encodedUrl}', ...)
Because I couldn't find a nice JSTL solution, I tried it with a mixture
of JSTL and the scriptlet:
...title=' + '%= URLEncoder.encode(c:out
:
was Rahul P Akolkar/Watson/IBM
received
Don't escape XML in the JavaScript bit.
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
c:set var=foobar value=Foo's Moos /
html
headscript language=JavaScriptalert(c:out value='${foobar}'
escapeXml='false' /);/script/head
body bgcolor=white
c:out value=${foobar} /
/body
/html
Is this a non-impacting bug?
This will be helpful (W3C HTML and XHTML FAQ):
http://www.w3.org/MarkUp/2004/xhtml-faq
-Rahul
c:import var=nieuwsXML url=nieuws.xml
x:parse doc=${nieuwsXML} var=nieuwsDOC /
/c:import
-Rahul
This thread has gotten too long to ignore :-)
trimSpaces probably won't do it for you.
As my bit, I tried this trivial JSP:
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %%--
--%tag attr=foo('jsp:include page=test.jsp /')%--
--%anotherTag /
where test.jsp is another trivial JSP as
Looks like you are all set. The submit URI defaults to the JSP page
hosting the RDC tag.
Sidebar:
Think of each RDC as a conversation with the user, with potentially
multiple round trips. As an example,
rdc:date id=myDate minDate=01012004 maxDate=01012005
confirm=true echo=true /
I don't understand what you mean by generate RDC with return element.
A RDC can be used in any VoiceXML form, and whether that form is
referenced as a subdialog elsewhere does not change the RDC behavior (and
hence, you shouldn't have to create a RDC that can be used in
subdialog).
The
41 matches
Mail list logo