Actually, what the Sun JSTL web page says is:
"JSTL has support for common, structural tasks such as iteration and
conditionals, tags for manipulating XML documents, internationalization
tags, and SQL tags."
"manipulating"!
Anyway, I take your point that it is outside the scope of the JSTL XML
I thought of that, but it seems a messy way to do something very basic.
I might resort to it though.
At 08:12 PM 6/05/2004, you wrote:
It sounds like you'd be better off using XSLT and the tag...
Quoting Murray Lang <[EMAIL PROTECTED]>:
> Hi
> I've been using the XML tags in JSTL and found them
You can use JXPath to manipulate the content of the DOM directly (ie
without having to instantiate a whole new copied DOM object to establish
your changes (as you whould have to do with XSLT).
Say you instantiate some DOM Document object, you can use JXPath as such:
Document doc = ;
JXPathC
Kris Schneider dotech.com> writes:
>
> If you're using at least a JSP 1.2 container, JSTL's XML/XSLT tags are
> worth a look.
>
> Andrea wrote:
>
> > I have a requirement for a project where XTags seems to be a perfect fit
from
> > the research I have done. Basically using custom JSP tags
Make sure you're using a Servlet 2.4 web.xml. If you're using a Servlet 2.3
web.xml, then the only RT expression that will get evaluated is a JSP
expression (<%= ... %>). An EL expression will be treated as a literal string,
hence all the "${i}" output. Of course, if your app also needs to work wit
Hi,
I've used JSTL 1.0 before, and am trying to write a little app in 1.1 now.
I'm using the Tomcat that I got with JWSDP 1.3 (which is v 5). The examples
that come with WSDP work, but when I'm trying to write something on my own,
or even copy the same code to a page of my own, it doesnt work.
I'm not too familiar with JXPath, and I'm sure it's useful in other contexts,
but I don't see how it's applicable to Murray's problem. Can it be used to add
an attribute to an existing element? I'm also not sure I get the point about
"JXPath can be scripted into a JSP". Do you mean something beside
I do not believe you need to decode the string. The question is: did you encode the
string? If you did not, then you do not need to decode it.
Try this instead:
<%-- The query comes in here, and we format it appropriately --%>
<%= request.getParameter("query")%>
Good luck.
Java Doug
-Origi
I've setup two pages where I can basically type a query in, and the
second page does the sql work. However, I'm trying to use the URLDecoder
statement to format my query, and it throws an error whenever I have a
query with the '%' sign:
URLDecoder: Illegal hex characters in escape (%) pattern -
This is outside the scope of the taglibrary, JSTL xml taglibrary is for
presentation of xml content, not for its manipulation. I recommend
looking into a package such as JXPath to accomplish manipulation of the
content of a DOM object. the nice thing is that JXPath can be scripted
into a JSP, S
It sounds like you'd be better off using XSLT and the tag...
Quoting Murray Lang <[EMAIL PROTECTED]>:
> Hi
> I've been using the XML tags in JSTL and found them very useful, however
> now I need to add an attribute to an XML element and have hit a brick wall.
>
> I've tried using and EL, trea
11 matches
Mail list logo