Re: JSTL XML and multibyte characters

2004-07-18 Thread Mark R. Diggory
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

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Mark R. Diggory
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

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Mark R. Diggory
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

Re: Adding attributes to an XML element in JSTL

2004-05-07 Thread Mark R. Diggory
. 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

Re: Adding attributes to an XML element in JSTL

2004-05-06 Thread Mark R. Diggory
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,

Re: Adding attributes to an XML element in JSTL

2004-05-06 Thread Mark R. Diggory
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

Re: maven repository

2004-04-21 Thread Mark R. Diggory
, 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

Re: XSLT question

2004-04-07 Thread Mark R. Diggory
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

Re: XSLT question

2004-04-07 Thread Mark R. Diggory
, 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

Re: XSLT question

2004-04-07 Thread Mark R. Diggory
=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

Re: XSLT question

2004-04-07 Thread Mark R. Diggory
://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

Re: File/Directory Manipulation Tag Libraries

2004-03-04 Thread Mark R. Diggory
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

Re: xslt expression

2004-03-03 Thread Mark R. Diggory
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

Re: maven repository

2004-02-28 Thread Mark R. Diggory
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

Re: maven repository

2004-02-27 Thread Mark R. Diggory
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

Re: question regarding xsl

2004-02-23 Thread Mark R. Diggory
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

Re: Multipart/form-data support in Struts

2004-01-09 Thread Mark R. Diggory
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

Re: how to look up java:comp/env

2003-12-04 Thread Mark R. Diggory
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

Re: Multipart/form-data support in Struts

2003-12-03 Thread Mark R. Diggory
/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

Re: Multipart/form-data support in Struts

2003-12-03 Thread Mark R. Diggory
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

Re: JSTL and LDAP

2003-12-03 Thread Mark R. Diggory
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

Re: Multipart/form-data support in Struts

2003-12-02 Thread Mark R. Diggory
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

Re: Multipart/form-data support in Struts

2003-12-02 Thread Mark R. Diggory
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

Re: Multipart/form-data support in Struts

2003-12-02 Thread Mark R. Diggory
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

Re: Multipart/form-data support in Struts

2003-12-02 Thread Mark R. Diggory
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

Possible Bug in transform tag?

2003-11-21 Thread Mark R. Diggory
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

Re: Multiple attributes within an element - Is this a legal thing to do?

2003-10-20 Thread Mark R. Diggory
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

Re: AW: Multiple attributes within an element - Is this a legal thingto do?

2003-10-20 Thread Mark R. Diggory
. 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

Re: is this link correct?

2003-10-20 Thread Mark R. Diggory
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

Question concerning current nightly buildsof the standard taglibrary.

2003-09-05 Thread Mark R. Diggory
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/

Re: x:transform and body content

2003-09-04 Thread Mark R. Diggory
} ? Mark R. Diggory [EMAIL PROTECTED]??: Tag Libraries Users List [EMAIL PROTECTED

x:transform and body content

2003-09-03 Thread Mark R. Diggory
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'}

Re: x:transform and body content

2003-09-03 Thread Mark R. Diggory
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

[input] questions about status

2003-08-26 Thread Mark R. Diggory
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

Re: Tag List

2003-02-18 Thread Mark R. Diggory
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

Re: Tag List

2003-02-17 Thread Mark R. Diggory
[-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

Re: Tag List

2003-02-16 Thread Mark R. Diggory
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

Taglibs and Commons Logging

2002-12-17 Thread Mark R. Diggory
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

Re: Taglibs and Commons Logging

2002-12-17 Thread Mark R. Diggory
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

Re: Taglibs and Commons Logging

2002-12-17 Thread Mark R. Diggory
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

Re: Taglibs and Commons Logging

2002-12-17 Thread Mark R. Diggory
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

Re: Stuck in Mud... Need your help...

2002-12-16 Thread Mark R. Diggory
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

Re: Stuck in Mud... Need your help...

2002-12-16 Thread Mark R. Diggory
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

Stuck in Mud... Need your help...

2002-12-15 Thread Mark R. Diggory
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.

Re: Stuck in Mud... Need your help...

2002-12-15 Thread Mark R. Diggory
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

Custom taglib Exception with Tomcat 4.1

2002-12-11 Thread Mark R. Diggory
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

Re: Tag for uploading

2002-11-07 Thread Mark R. Diggory
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

Re: Tag for uploading

2002-11-07 Thread Mark R. Diggory
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

Re: Tag for uploading

2002-11-07 Thread Mark R. Diggory
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:

Re: AW: Is there tools for Jsp development ?

2002-09-03 Thread Mark R. Diggory
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,

Designing Good Objects for EL

2002-09-03 Thread Mark R. Diggory
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.

Re: Designing Good Objects for EL

2002-09-03 Thread Mark R. Diggory
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

Re: JSP 2.0 and EL

2002-08-31 Thread Mark R. Diggory
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

Again! Location of JSP page the Taglib is executing in (really Stuckon this one, PLEASE HELP).

2002-08-28 Thread Mark R. Diggory
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.

Re: Again! Location of JSP page the Taglib is executing in (reallyStuck on this one, PLEASE HELP).

2002-08-28 Thread Mark R. Diggory
. 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

Re: Again! Location of JSP page the Taglib is executing in (reallyStuck on this one, PLEASE HELP).

2002-08-28 Thread Mark R. Diggory
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

Location of JSP page the Taglib is executing in

2002-08-26 Thread Mark R. Diggory
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

Re: Location of JSP page the Taglib is executing in

2002-08-26 Thread Mark R. Diggory
. 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

Re: What sucks about c:import!

2002-08-21 Thread Mark R. Diggory
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

Re: What sucks about c:import!

2002-08-21 Thread Mark R. Diggory
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

Re: What sucks about c:import!

2002-08-21 Thread Mark R. Diggory
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.

Re: c:set and scriptlets

2002-03-11 Thread Mark R. Diggory
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

Re: c:set and scriptlets

2002-03-11 Thread Mark R. Diggory
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