Directory browser (explorer) taglib?

2003-07-10 Thread Riaan Oberholzer
Does anyone know of a taglib that gives functionality to add a browsing feature in you jsp's? Something similar to windows explorer, where you have a tree of objects and each element can either be another root of a sub-tree, or an element that results in an action, eg displaying a url in another

Re: XML Doc type problem

2003-07-10 Thread Michael Duffy
Sounds like you need an EntityResolver, like the one in the org.xml.sax package. But I don't know know how to register such a thing with the SAX parser inside the JSTL tag library. I'll have to leave that to my betters. - MOD --- Brian Menke [EMAIL PROTECTED] wrote: Hi everyone, I have

RE: How to create a general resource bundle for JSTL?

2003-07-10 Thread Martin van Dijken
Hey eric, Back to the original problem. As said I'm working in the same direction as you are so I've solved the problem for my own needs as well. Setting the bundle can be done using: ResourceBundle bundle = ResourceBundle.getBundle(Test,new Locale(nl,NL)); LocalizationContext ctx = new

RE: How to create a general resource bundle for JSTL?

2003-07-10 Thread Kris Schneider
Since it sounds like Eric's got the JSTL locale part working, I think he just needs to do: Config.set(request, Config.FMT_LOCALIZATION_CONTEXT, ch.xobix.i18n.translations.X2Resources); You can use either a String (bundle basename) or LocalizationContext for the third arg.

How come c:out didn't regonize variable?

2003-07-10 Thread Yansheng Lin
I have a simple c:out statement in my jsp file: html:hidden property=sortField/ c:out value=${sortField} default=nothing/ The output source is: input type=hidden name=sortField value=service_provider nothing

Re: How come c:out didn't regonize variable?

2003-07-10 Thread Chris Winters
Yansheng Lin wrote: I have a simple c:out statement in my jsp file: html:hidden property=sortField/ c:out value=${sortField} default=nothing/ The output source is: input type=hidden name=sortField value=service_provider nothing

Re: How come c:out didn't regonize variable?

2003-07-10 Thread billy . bacon
Yansheng, Two questions for you 1.) Is sortField a property in your form-bean? 2.) If yes to question 1, are you using a DynaActionForm for your form-bean? - Billy - On Thu, 10 Jul 2003 14:01:59 -0400, Chris Winters wrote: Yansheng Lin wrote: I have a simple c:out statement in my jsp

Re: How come c:out didn't regonize variable?

2003-07-10 Thread Peter Smith
The sortField looks like a property of your html:form. Thus it exists in the form bean, not in scope by itself. So to use c:out, you would need to do this: c:out value=${formbeanname.sortField}/ Hope this helps, Peter -- Peter Smith Software Engineer InfoNow Corporation From: Yansheng

Re: How come c:out didn't regonize variable?

2003-07-10 Thread Peter Smith
Or if you are using a DynaActionForm like Billy asked, it would be: c:out value=${formbeanname.map.sortField}/ Peter -- Peter Smith Software Engineer InfoNow Corporation From: Peter Smith [EMAIL PROTECTED] Reply-To: Tag Libraries Users List [EMAIL PROTECTED] Date: Thu, 10 Jul 2003 12:15:04

Re: How come c:out didn't regonize variable?

2003-07-10 Thread Sgarlata Matt
Actually I think you have to do c:out value=${formbeanname.map.sortField}/ Matt - Original Message - From: Peter Smith [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Thursday, July 10, 2003 2:15 PM Subject: Re: How come c:out didn't regonize variable? The

RE: How come c:out didn't regonize variable?

2003-07-10 Thread Yansheng Lin
Thanks! I got it to work by adding the formBeanName in front. I thought if I didn't specify anything in front, all four scopes(page, request, session, and application) would be looked up, and for sure if would find the 'sortField' var, especial the c:out is enclosed in a html:form.

BTW: JSTL is getting quite a boost in Struts Community:).

2003-07-10 Thread Yansheng Lin
FW: On Thu, 10 Jul 2003, David Graham wrote: It's a huge step *forwards* from the Struts tags. The JSTL is far more powerful and easier to use. Plus, it's a standard so every Java web developer is expected to know it. Besides these advantages (which are correct), there's another

Using JSP scriptlets to specify parameter values of custom tags

2003-07-10 Thread Kelly Harward
I have a question over which I have been beating my head against a wall - perhaps you can help... I've written a custom tag library that seems to work wonderfully - except for one significant caviat. The parameters of my tags cannot accept String values obtained by evaluating a JSP scripting

Re: Using JSP scriptlets to specify parameter values of custom tags

2003-07-10 Thread Eric W Hauser
you may want to consider accepting EL as parameters to your tags...this is much cleaner than using scriptlets...i did some googling for you and found a good article on how to do this: http://www.onjava.com/lpt/a/2864 this should get you well on your way... On Thu, 10 Jul 2003, N. Chen wrote: