You might explore the issue with JAXP/SAX/Xerces initially to see if it
is a parser level issue, JSTL XML simply is a wrapper around JAXP.
-Mark
Dylan MacDonald wrote:
Hi -
I would like to store some multibyte content in an xml file and then
retrieve and display that content using the JSTL XML
Murray,
JSTL has support for common, structural tasks such as iteration and
conditionals, tags for manipulating XML documents, internationalization
tags, and SQL tags.
manipulating!
Clearly that was a general statement not to be taken in a Legal
sense... it is poorly stated
If you want
Hey, if its all in the name of presentation, then who am I to argue.
But there is a conceptual dfiference your overlooking here. There is a
big difference between taking a DOM and doing an xslt transform to
produce new output vs. physically altering the original DOM object, The
former is a
. Of
course, if you're gonna drop down to Java, there are lots of other options for
programmatically modifying DOM through XPath...
Quoting Mark R. Diggory [EMAIL PROTECTED]:
You can use JXPath to manipulate the content of the DOM directly (ie
without having to instantiate a whole new copied DOM
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,
something besides:
%
Foo fooCtx = (Foo)JXPathContext.newContext(myFoo);
%
Quoting Mark R. Diggory [EMAIL PROTECTED]:
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
, as the repository right now have the
1.0.2 artifacts, which are pretty old).
Felipe
PS: I think this discussion should be kept only in the devs list
On Sat, 2004-02-28 at 12:12, Mark R. Diggory wrote:
As taglibs currently doesn't take advantage of Maven for building, I
expect we will use
Try setting the systemId for the stylesheet, this may help configure the
proper resolution.
c:import var=xslt scope=request url='${url}'/
x:transform xml=${xml} xslt=${xslt} xsltSystemId=${url}
-Mark
Kris Schneider wrote:
As an alternative, perhaps you can use an XSLT
, thats just straight xslt spec/JAXP behavior. I'm using it in
jstl 1.1 because of this very issue.
What version of JSTL/standard.jar are you working with, which version of
Tomcat?
-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 12:04 PM
=stylesheet/
x:transform doc=${xml} xslt=${stylesheet}/
Inside this transform, I want to access something like:
http://host.name.com:port/context/servlet?param=value
I'm running tomcat 5.0.19 and JSTL 1.1
-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07
://raptor.mtc.ti.com:9081/rtdui/WebUI?action=getStationStatus
-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 12:52 PM
To: Tag Libraries Users List
Subject: Re: XSLT question
Try just:
c:import url=uiConfig.xml var=config/
x:parse var=xml doc
One strategy we've discussed in the past is to use the JNDI taglibrary
plus the default java:env/Resources jndi context in the webapplication
as a mechanism to list the contents of the directories (this allows
listing of both webapplications that are expanded into the filesystem
and
I suspect you need to determine if your using the EL verison or the RT
version. The RT verison does not support ${} expression syntax, maybe
try %=page.getAttribute(xslt)% instead and see if it still doesn't work.
Thomas McDonald wrote:
Nope, didn't work. thanks though.
I have a funny
As taglibs currently doesn't take advantage of Maven for building, I
expect we will use a manual solution for publsihing which would look
something like:
1.) create a project directory for taglibs that looks like
Taglibrary developers: This is an excellent example of how to take
advantage of the new Apache Maven Repository. Taglibs Developers, how
about publishing your taglibrary jars into the Maven Repository under
/dist/java-repository. They'll get updated onto ibiblio.org/maven within
4 hours for
use JSTL parsing and transform taglibraries.
MARU, SOHIL (SBCSI) wrote:
Hello All,
I am new to using taglibs and hence the following question. I am using
struts but want to use XSL as my view instead of JSP.For this I was planning
on using the XSL tag library release but I saw a message that
to
deploying servlets so I could do with some help.
Thanks in advance.
Rudi
-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]
Sent: 02 December, 2003 7:02 PM
To: Tag Libraries Users List
Subject: Re: Multipart/form-data support in Struts
I've been using the COS library, its
This is an excellent question. To extend upon it: What are the jndi
contexts (if any) available to a webapplications? This is probibly very
specific to implementation and configuration and answers may vary across
vendors. In tomcat is there a specific mechanism for exposing contexts
in the
/UploadForm.java?rev=1.9content-type=text/vnd.viewcvs-markup
Mark R. Diggory wrote:
You can also see this via the web:
examples of the upload JSP's K.C. is refering to
http://cvs.apache.org/viewcvs/jakarta-struts/web/upload/upload.jsp?rev=1.6content-type=text/vnd.viewcvs-markup
struts-config
http
Martin, sorry, I just noticed the depricated FileUpload code in the
struts does some of this.
http://cvs.apache.org/viewcvs/jakarta-struts/src/share/org/apache/struts/upload/
-Mark
Mark R. Diggory wrote:
Martin,
This could probably be more appropriate for Commons Developer, but:
Any
You can use the Realm of the Tomcat server to authenticate users and
match them to roles (basically Groups stored in the ldap server). If you
do this then you don't really need to use taglibs to manage the login.
You just have to configure your web.xml with a login-config and the
server.xml
I've been using the COS library, its a bit lower level but currently
meets my streaming needs for things like DOM'ing and XSL transforming
straight off the request input stream.
http://www.servlets.com/cos/index.html
-Mark
K.C. Baltz wrote:
One of the example webapps included with Struts 1.1
Forgot to mention, COS has licensing restrictions that limit its use in
commercial products.
-M.
Mark R. Diggory wrote:
I've been using the COS library, its a bit lower level but currently
meets my streaming needs for things like DOM'ing and XSL transforming
straight off the request input
capabilities on
them and not have to manipulate the content that I'll never actually
maintain.
-Mark
Martin Cooper wrote:
On Tue, 2 Dec 2003, Mark R. Diggory wrote:
I've been using the COS library, its a bit lower level but currently
meets my streaming needs for things like DOM'ing and XSL
name) lots of cool custom
processing, SAX, XSLT etc.)
-- InputStream
-- File
-Mark
Martin Cooper wrote:
On Tue, 2 Dec 2003, Mark R. Diggory wrote:
I've been using the COS library, its a bit lower level but currently
meets my streaming needs for things like DOM'ing
I've been working with the transform tag and may have possibly
encountered a bug, shouldn't it be possible to do the following?
x:transform xml=${xml} xslt=${xslt}
c:forEach var=current items=${param}
x:param name=${current.key} value=${current.value}/
/c:forEach
/x:transform
-Mark
Sorry, from all my understanding, thats just not allowed in XML.
Attributes always have to be unique keys. When trying to build sets on
a key I would recommend separate nested tags
x:DEFINESET
x:ELEMENT val=x/
x:ELEMENT val=y/
x:ELEMENT val=z/
/x:DEFINESET
You can make a public
. I don't
think the strategy your seeking to employ is one that was intended by
the designers of JSP.
just my thoughts on the subject,
Mark
-Ursprüngliche Nachricht-
Von: Mark R. Diggory [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 20. Oktober 2003 15:48
An: Tag Libraries Users List
Are you adding the taglib mapping to your web.xml?
for example
taglib
taglib-urihttp://java.sun.com/jstl/core/taglib-uri
taglib-location/WEB-INF/tld/c.tld/taglib-location
/taglib
David Liles wrote:
I am trying to use jstl and when I include the following line in my JSP I get an
I'm trying to figure out which of these nightly builds to use with
Tomcat 4.1.x, I'm specifically looking for JSTL 1.0 but both these
directories seem to contain archives that state they are 1.1?
http://cvs.apache.org/builds/jakarta-taglibs/nightly/projects/standard-1.0/
}
?
Mark R. Diggory
[EMAIL PROTECTED]??: Tag Libraries Users List [EMAIL PROTECTED
I'm trying to dynamically set the parameters on an x:transform based on
the params in the http request like below:
c:import var=default url=/Study/DataSubsettingView.xsl/
x:transform xml=${dom} xslt=${xslt}
c:forEach var=entry items=${param}
c:if test=${entry.key ne 'var'}
Oh, to clarify my environment: Tomcat 4.1.24, JSTL 1.0.
Mark R. Diggory wrote:
I'm trying to dynamically set the parameters on an x:transform based on
the params in the http request like below:
c:import var=default url=/Study/DataSubsettingView.xsl/
x:transform xml=${dom} xslt=${xslt
Hi folks,
I'm curious about the status of the input taglibrary, mainly because I
have my own lib that is called validation which acts a wrapper tags
around form fields to provide user validation for form content (plus
retention of form field values submitted by user, and conditional logic
Just to be clear, I was responding to a user with an interest in
convering the demo example in the Webservices tutorial into JSLT. A very
specific and small application. We're on the Taglibs listserv. I saw
several people tell him to use heavier frameworks external to this
project. I just
[-1:-1] End of content reached while more parsing required:
tag nesting error?
Errors compiling ProductList.
Scott
- Original Message -
From: Mark R. Diggory [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Sunday, February 16, 2003 9:34 PM
Subject: Re: Tag List
Scott,
Is this kinda what you mean? Are you trying to add the
search/edit/remove/add functionality to the jsp page? This could easily
be captured with forms which submit back to the jsp plus a choose block
to designate which operation is being performed. I bet this'll really
irk those
I'm trying to find the best way to integrate commons-logging into my
taglibs. Do any of the jakarta taglibraries use the Commons API for
logging? If so, how do you configure the environment so that the
appropriate logging facility is picked up and used? I'm struggling to
get the default be the
R. Diggory [mailto:[EMAIL PROTECTED]]
I'm trying to find the best way to integrate commons-logging into my
taglibs. Do any of the jakarta taglibraries use the Commons API for
logging? If so, how do you configure the environment so that the
appropriate logging facility is picked up and used? I'm
Hold on, I made a stupid mistake, my files were named
commons-logging.properties.properties for some weird reason. It works now.
thanks,
Mark
Mark R. Diggory wrote:
I've been attempting this strategy, but it seems that in the web
application, somehow the properties files in the classes
Karr, David wrote
Well, I would guess there's a good reason for that. The SimpleLog class
just emits to stderr. Are you not able to see your server console?
I just tail catalina.out usually to track stuff I'm working on. Or I
build my own log for a particular webapp if there's too much
Thanks, yes that appeared to be it. I'm always running into this silly
issue of TagSupport vs. BodyTagSupport and the difference in the constants.
TagSupport -- EVAL_BODY_INCLUDE or SKIP_BODY
BodyTagSupport -- EVAL_BODY_BUFFERED or SKIP_BODY
Seems that the JSP Taglib spec has alot of this use
some code to show if bar is thrown
/cond:catch
cond:catch name=foo2 class=bar2
some code to show if bar2 is thrown
/cond:catch
/cond:exception
Cheers,
-Mark
-Original Message-
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]]
Sent
This is an issue that is not specific to Jakarta Taglibraries, but I
cannot find a relevant location to deal with issues that seem to arise
with different versions of Tomcat and the Implementation of Custom
Taglibraries. (If anyone can recommend a better list to discuss this on
please tell me.
Also here is the descriptor:
tag
nametest/name
tag-classedu.harvard.hmdc.taglib.conditional.TestTag/tag-class
body-contentJSP/body-content
display-nametest/display-name
descriptiontest/description
example/example
/tag
Mark R. Diggory wrote
I have some old custom taglibs I've written that worked with tomcat
4.0.* and I'm trying to migrate them to tomcat 4.1.*. I've encountered
the following exception in tomcat and I'm a little stumped as towhat it
means, does anyone have an tips as to what this exception is about?
-thanks,
Mark
Sorry, I just got to get in on this!
Stefan wrote:
Well I know one thing for sure, uploading files is standard 'out of the box'
with ASP.net. That is one thing that makes me scratch my head about the Java
platform, there are many common things that are used constantly in web
programming that
Please Note, This is all in good taste! ;-) Just fueling the fires of
debate.
-Mark
Mark R. Diggory wrote:
Sorry, I just got to get in on this!
Stefan wrote:
Well I know one thing for sure, uploading files is standard 'out of
the box'
with ASP.net. That is one thing that makes me scratch
Stefan wrote:
My 2 cents.
Please no flames, I'm just a poor little geek! :)
Stefan
I'm certainly not against speaking ones mind! ;-) I'm sure .NET is here
to stay as well. It certainly doesn't hurt to have alot of tools in your
tool box.
--
To unsubscribe, e-mail:
Sun ONE Studio
http://wwws.sun.com/software/sundev/jde/index.html
for all my Webapplication / JSP needs. You can role your own taglibs in
One and even test your webapplications on an internal installation of
Tomcat 4.0.
-Mark
marba wrote:
I use dreamweaver mx which support jsp taglibs,
Ugh,
I've been plagued with issues that have to do with EL and accessing
Attributes/Properties in Objects. It turns out that the following is a
very big issue:
1.) Objects that extend or implment java.util.Collection api will always
revert to that api when you try to access them using EL.
Karr, David wrote:
You'll just have to wait like the rest of us :) .
Yes, quite true.
Others can provide more detailed information here, but basically it's not
there yet. I think it's clear that we'll eventually get access to
Collection API methods, or more general access to object
Very cool, this was a long time needed in JSP. I'm looking forward to this.
Cheers,
Mark
Shawn Bayern wrote:
On Sat, 31 Aug 2002, Mark R. Diggory wrote:
So, I'm wondering, if EL is going to be available in the JSP 2.0 Core.
Does this mean the following?
1.) Most taglibs for JSP 2.0
I really can't get to the bottom of this one.
Is there any way to get to the TRUE filesystem location of the JSP
page I am within? Even if the URI is Mapped through ServletMapping like
below? I've tried getRealPath(...) and this is not accurate on the
Tomcat 4.0.3 version I'm currently using.
.
Shawn
On Wed, 28 Aug 2002, Mark R. Diggory wrote:
I really can't get to the bottom of this one.
Is there any way to get to the TRUE filesystem location of the JSP
page I am within? Even if the URI is Mapped through ServletMapping like
below? I've tried getRealPath
This gives me an interesting URL in return, I assume this is out of
Tomcats JNDI Context.
%java.net.URL theUrl = pageContext.getServletContext().getResource(/);%
%=theUrl.toString()%BR
returns
jndi:/localhost/Taglib/
Not quite there, Is there a way to get
Tim Kettering wrote:
Um, this code
Hi,
I'm trying to write a Tag that knows the absolute file path of the JSP
Page it is executing in (Not the request.getServletPath(), which could
actually just be a servlet mapping) does anyone have any tips on how to
get this in Tomcat? I was actually looking throught the actuall Catalina
.
On Mon, 2002-08-26 at 16:17, Mark R. Diggory wrote:
Hi,
I'm trying to write a Tag that knows the absolute file path of the JSP
Page it is executing in (Not the request.getServletPath(), which could
actually just be a servlet mapping) does anyone have any tips on how to
get this in Tomcat
httpurlconnection classes.
shawn will know more about the current implementation and where it might
go in the future.
peter
Mark R. Diggory wrote:
Now that I have your attention. We are continually working with managing
headers in our URL object requests to get resources from different
it might
go in the future.
peter
Mark R. Diggory wrote:
Now that I have your attention. We are continually working with managing
headers in our URL object requests to get resources from different
locations. Is there really any way I can set the request Header info on
the URL object being
Shawn Bayern wrote:
On Wed, 21 Aug 2002, peter lin wrote:
in the interest of discussion. I find it useful to have cookie,
user-agent and other advanced capabilities in a web services context.
As web services becomes more common place, supporting those features
might become very important.
See my last message about multipart stuff. You can capture this
functionality in TEI (TagExtraInfo) Support class to your tag. Then in
your tag you can set the value of the variable via a special method
which you have to define.
!-- Straight off the javadoc
public abstract class
I'm sorry, that was on the development list, not the user list
Mark R. Diggory wrote:
See my last message about multipart stuff. You can capture this
functionality in TEI (TagExtraInfo) Support class to your tag. Then in
your tag you can set the value of the variable via a special method
63 matches
Mail list logo