Referencing taglib from different context

2003-11-10 Thread Shaik D.Idrees
All, I have created two context in my tomcat standalone, namely taglibs - where I have stored most of the tag libraries. Myapp - where I have stored my application. I have successfully tested tag libraries with in taglibs context using a test jsp file. It is working fine. I would like to

embedding sql:query

2003-11-10 Thread Peter Choe
is it possible to embed a sql:query tag inside a sql:query? i am trying to use the result of one sql to look up data with another sql: sql:query var=waitList sql=SELECT discipline, course_num, days_of_week, time_slot, crs_id, is_available, wait_list_course.semester FROM wait_list_course,

Re: embedding sql:query

2003-11-10 Thread SThongvanh
Did you know you could get much better performance out of putting that sql stuff in the Action? Savan Thongvanh Berkley Technology Services 515.278.7725

Re: embedding sql:query

2003-11-10 Thread Peter Choe
i am relatively new to using the jstl. what do you mean putting it in Action? [EMAIL PROTECTED] wrote: Did you know you could get much better performance out of putting that sql stuff in the Action? Savan Thongvanh Berkley Technology Services 515.278.7725

RE: embedding sql:query

2003-11-10 Thread Morrow, Steve D.
SQL tags are great for doing quick-n-dirty test stuff, but data access in a production environment is probably best left out of the View layer (i.e., the *.jsp) of a Model-View-Controller setup. Send the request to a servlet, have the servlet call a data access method to populate a data bean, and

RE: embedding sql:query

2003-11-10 Thread Morrow, Steve D.
P.S. Actions are helper classes in the Struts framework, generally used to extend controller (servlet) functionality. -Original Message- From: Morrow, Steve D. [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:33 AM To: 'Tag Libraries Users List' Subject: RE: embedding

Re: embedding sql:query

2003-11-10 Thread SThongvanh
Sorry, I guess I assumed you were using Struts. Never-the-less that work is better done in a servlet. Then all the page has to do is iterate your resultset. Savan Thongvanh Berkley Technology Services 515.278.7725

Re: embedding sql:query

2003-11-10 Thread Kris Schneider
You're not really embedding one sql:query within another, but it should work. What type of error(s) are you getting? Quoting Peter Choe [EMAIL PROTECTED]: is it possible to embed a sql:query tag inside a sql:query? i am trying to use the result of one sql to look up data with another sql:

Re: embedding sql:query

2003-11-10 Thread Peter Choe
no error is being reported but the jsp doesn't finish rendering. but i guess i should redo the design. i was just trying to be lazy and avoid coding. thanks all. Kris Schneider wrote: You're not really embedding one sql:query within another, but it should work. What type of error(s) are you

Re: embedding sql:query

2003-11-10 Thread Kris Schneider
I won't argue against redoing the design ;-), but prototyping with JSP can be easier and quicker than servlets/MVC/Java classes. If you still want to pursue the JSP/JSTL route, I'd first try to simplify the page so you're sure the SQL piece is working. Then, gradually add stuff in so you can tell

RE: embedding sql:query

2003-11-10 Thread Morrow, Steve D.
It looks like there's no closing /td tag after your input tags. That may be causing some of the HTML rendering problems... At what point does the HTML *stop*? Peter Choe

RE: embedding sql:query

2003-11-10 Thread SThongvanh
depends on the browser. some will try to redender whever you've got and some will actually evaluate the markup and if you're not closed properly it won't reach the /body tag. Savan Thongvanh Berkley Technology Services 515.278.7725

RE: embedding sql:query

2003-11-10 Thread SThongvanh
kindof like the stylesheet thing. if IE see's your link rel =stylesheet/ resource is not really there it ignores it but if NS see's it you get a 404. Savan Thongvanh Berkley Technology Services 515.278.7725

Jstl i18n not working

2003-11-10 Thread Yansheng Lin
Hi, in my web.xml: !-- JSTL i18n support === -- context-param param-namejavax.servlet.jsp.jstl.fmt.fall-backLocale/param-name param-valueen/param-value /context-param context-param

Re: Jstl i18n not working

2003-11-10 Thread SThongvanh
I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725

Re: Jstl i18n not working

2003-11-10 Thread Kris Schneider
Nothing to do with Struts. From the JSTL spec for fmt:message: If the i18n localization context that this action determines does not have any resource bundle, an error message of the form ???key??? is produced. Try this: context-param

RE: Jstl i18n not working

2003-11-10 Thread Yansheng Lin
Ah, I wonder... In my struts.xml file, I define the resource file too: !-- == Message Resources Definitions === -- message-resources parameter=org.j2e_translate.ApplicationResources /message-resources Will that cause any conflict? I have no clue

RE: Jstl i18n not working

2003-11-10 Thread Morrow, Steve D.
Assuming then, that the ApplicationResources.properties file is not in a *.jar, you may try making sure that the file is in the /WEB-INF/classes/org.j2e_translate directory with the settings you currently have... -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent:

RE: Jstl i18n not working

2003-11-10 Thread Morrow, Steve D.
Typo: directory = /WEB-INF/classes/org/j2e_translate -Original Message- From: Morrow, Steve D. [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 11:22 AM To: 'Tag Libraries Users List' Subject: RE: Jstl i18n not working Assuming then, that the

RE: Jstl i18n not working

2003-11-10 Thread Yansheng Lin
Yes. And I checked the key too, here is my 'en' version of resource bundle, (which is under C:\Web\development\eclipse\workspace\j2e-translator\web\WEB-INF\classes\org\j2e_ translate), I don't see anything wrong: # Errors errors.footer= errors.header=h3font color=redValidation Error/font/h3You

Re: Jstl i18n not working

2003-11-10 Thread Kris Schneider
So, based on your updated info, this should be: context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueorg.j2e_translate.ApplicationResources/param-value /context-param And you should have your property file located at:

RE: Jstl i18n not working

2003-11-10 Thread Kris Schneider
JSTL doesn't know or care about your Struts setup. Quoting Yansheng Lin [EMAIL PROTECTED]: Ah, I wonder... In my struts.xml file, I define the resource file too: !-- == Message Resources Definitions === -- message-resources

RE: Jstl i18n not working

2003-11-10 Thread SThongvanh
ignore me. I think I tainted this conversation... Savan Thongvanh Kris Schneider

RE: Jstl i18n not working

2003-11-10 Thread Yansheng Lin
Oh, I see. I can find the resource bundle now for my other fmt:message. But it still doesn't solve my first problem. That's why I got so confused. I guess it has something to do with putting the fmt:message tag in the head. Wonder if someone can provide a good point for a JSTL beginner like

RE: Jstl i18n not working

2003-11-10 Thread Morrow, Steve D.
Try the full classpath for the ApplicationResources.properties file at the top of your JSP... fmt:bundle basename=org.j2e_translate.ApplicationResources / Then, you can use fmt:message key=j2emain.title /... Good luck! :o) -Original Message- From: Yansheng Lin [mailto:[EMAIL

RE: Jstl i18n not working

2003-11-10 Thread Kris Schneider
Okay, you've got a file called ApplicationResources.properties, right? If it's in WEB-INF/classes, you can just use ApplicationResources as a basename. If it's in WEB-INF/classes/org/j2e_translate, you have to use org.j2e_translate.ApplicationResources as a basename. So where is the property file

RE: Jstl i18n not working

2003-11-10 Thread Yansheng Lin
Ok, got it working. I simply got rid of the fmt:bundle basename=ApplicationResources declaration. But I tried with fmt:bundle basename=org.j2e_translate.ApplicationResources too, and it worked as well. And one cool feature I found through this is I don't have to restart Tomcat if I changed

RE: Jstl i18n not working

2003-11-10 Thread SThongvanh
are other keys working? Savan Thongvanh Berkley Technology Services 515.278.7725 CONFIDENTIALITY NOTICE: This e-mail and the transmitted documents contain private, privileged and confidential information belonging to the sender. The information therein is solely for the use of the addressee.

RE: Jstl i18n not working

2003-11-10 Thread Kris Schneider
You shouldn't have to restart TC just because you've made a Struts config change. You may have to *redeploy* the app, but that's different from restarting TC. Quoting Yansheng Lin [EMAIL PROTECTED]: Ok, got it working. I simply got rid of the fmt:bundle basename=ApplicationResources

RE: Jstl i18n not working

2003-11-10 Thread Morrow, Steve D.
Quite different - in a test environment with integrated TC (IDEA, for example), it's often quicker *and* easier just to restart. At least, that's been my experience... :o) -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 11:56 AM To:

Re: Unstandard Library Source / Developing custom EL taglibs

2003-11-10 Thread Martin Cooper
On Mon, 10 Nov 2003, Chaimungkalanot, Mark wrote: Hi there, I'm looking for examples of Taglibs that uses EL and so I thought that a relatively simple library like the Unstandard taglibs in sandbox would be the most appropriate. I've downloaded the src dist. for Jakarta taglibs but the