Referencing taglib from different context
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 use tag libraries of taglibs context with in Myapp context. What are the right steps I should do? Should I need to place any entry in Myapp's WEB-INF/web.xml , to call the tag libraries of taglibs context.? Can anybody clarify my doubt? Thanks a lot in advance. Shaik Disclaimer: The information in this email and in any files transmitted with it, is intended only for the addressee and may contain confidential and/or privileged material. Access to this email by anyone else is unauthorized. If you receive this in error, please contact the sender immediately and delete the material from any computer. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is strictly prohibited. Statement and opinions expressed in this e-mail are those of the sender, and do not necessarily reflect those of STC.
embedding sql:query
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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: embedding sql:query
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 Peter Choe [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] ing.com cc: Subject: embedding sql:query 11/10/2003 09:25 AM Please respond to Tag Libraries Users List 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: embedding sql:query
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 Peter Choe [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] ing.com cc: Subject: embedding sql:query 11/10/2003 09:25 AM Please respond to Tag Libraries Users List 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: embedding sql:query
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 send the data bean (or List of beans) back to the *.jsp for display. That's pretty high-level, but I hope it gives you the idea. :o) -Original Message- From: Peter Choe [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:29 AM To: Tag Libraries Users List Subject: Re: embedding sql:query 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 Peter Choe [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] ing.com cc: Subject: embedding sql:query 11/10/2003 09:25 AM Please respond to Tag Libraries Users List 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: embedding sql:query
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 sql:query 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 send the data bean (or List of beans) back to the *.jsp for display. That's pretty high-level, but I hope it gives you the idea. :o) -Original Message- From: Peter Choe [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 9:29 AM To: Tag Libraries Users List Subject: Re: embedding sql:query 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 Peter Choe [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] ing.com cc: Subject: embedding sql:query 11/10/2003 09:25 AM Please respond to Tag Libraries Users List 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange
Re: embedding sql:query
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 Peter Choe [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] ing.com cc: Subject: Re: embedding sql:query 11/10/2003 09:29 AM Please respond to Tag Libraries Users List 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 Peter Choe [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] ing.com cc: Subject: embedding sql:query 11/10/2003 09:25 AM Please respond to Tag Libraries Users List 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: embedding sql:query
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: 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: embedding sql:query
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 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: 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach
Re: embedding sql:query
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 exactly which part of the page is causing the problem. Quoting Peter Choe [EMAIL PROTECTED]: 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 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: 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: embedding sql:query
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 [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] ing.com cc: Subject: Re: embedding sql:query 11/10/2003 09:40 AM Please respond to Tag Libraries Users List 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 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: 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please delete the email and any files transmitted with it entirely from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: embedding sql:query
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 Morrow, Steve D. To: 'Tag Libraries Users List' [EMAIL PROTECTED] [EMAIL PROTECTED]cc: om Subject: RE: embedding sql:query 11/10/2003 10:05 AM Please respond to Tag Libraries Users List 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 [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] ing.com cc: Subject: Re: embedding sql:query 11/10/2003 09:40 AM Please respond to Tag Libraries Users List 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 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: 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted.
RE: embedding sql:query
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 Morrow, Steve D. To: 'Tag Libraries Users List' [EMAIL PROTECTED] [EMAIL PROTECTED]cc: om Subject: RE: embedding sql:query 11/10/2003 10:05 AM Please respond to Tag Libraries Users List 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 [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] ing.com cc: Subject: Re: embedding sql:query 11/10/2003 09:40 AM Please respond to Tag Libraries Users List 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 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: 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, time_slots WHERE time_slots.time_id=wait_list_course.time_id AND school_id=? ORDER BY discipline, course_num, time_slot, is_available sql:param value=${sessionScope.school} / /sql:query c:forEach var=listRec items=${waitList.rows} trtdc:out value=${listRec.discipline} / c:out value=${listRec.course_num} //tdtdc:out value=${listRec.days_of_week} //tdtdc:out value=${listRec.time_slot} //tdtdc:out value=${listRec.is_available} //tdtdc:out value=${listRec.semester} //td sql:query var=count sql=SELECT count(*) FROM student_status WHERE add IS NOT NULL AND crs_id=? sql:param value=${listRec.crs_id} / /sql:query tdc:forEach var=act_count items=${count.rowsByIndex}c:out value=${act_count[0]} //c:forEach/td tdinput type=button name=close value=Close onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'No')input type=button name=open value=Open onClick=doAction('c:out value=${listRec.crs_id} /', 'close', 'Yes')input type=button name=recycle value=Recycle onClick=doAction('c:out value=${listRec.crs_id} /', 'recycle')/tr /c:forEach 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted.
Jstl i18n not working
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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jstl i18n not working
I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED] gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00 AM Please respond to Tag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jstl i18n not working
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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources/param-value /context-param Quoting [EMAIL PROTECTED]: I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED] gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00 AM Please respond to Tag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jstl i18n not working
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 right now. I tried all kinds of combination... With path, absolute path, without path, still no vail.. Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:07 AM To: Tag Libraries Users List Cc: 'Tag Libraries Users List' Subject: Re: Jstl i18n not working I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED]gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00AM Please respond toTag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jstl i18n not working
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: Monday, November 10, 2003 11:18 AM To: 'Tag Libraries Users List' Subject: RE: Jstl i18n not working 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 right now. I tried all kinds of combination... With path, absolute path, without path, still no vail.. Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:07 AM To: Tag Libraries Users List Cc: 'Tag Libraries Users List' Subject: Re: Jstl i18n not working I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED]gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00AM Please respond toTag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/pa ram-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please delete the email and any files transmitted with it entirely from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jstl i18n not working
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 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: Monday, November 10, 2003 11:18 AM To: 'Tag Libraries Users List' Subject: RE: Jstl i18n not working 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 right now. I tried all kinds of combination... With path, absolute path, without path, still no vail.. Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:07 AM To: Tag Libraries Users List Cc: 'Tag Libraries Users List' Subject: Re: Jstl i18n not working I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED]gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00AM Please respond toTag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/pa ram-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please delete the email and any files transmitted with it entirely from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please delete the email and any files transmitted with it entirely from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jstl i18n not working
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 must correct the following error(s) before proceeding: errors.ioException=I/O exception rendering error messages: {0} error.database.missing=liUser database is missing, cannot validate logon credentials/li errors.required={0} is required. errors.minlength={0} can not be less than {1} characters. errors.maxlength={0} can not be greater than {1} characters. errors.invalid={0} is invalid. errors.byte={0} must be an byte. errors.short={0} must be an short. errors.integer={0} must be an integer. errors.long={0} must be an long. errors.float={0} must be an float. errors.double={0} must be an double. errors.date={0} is not a date. errors.range={0} is not in the range {1} through {2}. errors.creditcard={0} is not a valid credit card number. errors.email={0} is an invalid e-mail address. # Global button.cancel=Cancel button.confirm=Confirm button.reset=Reset button.save=Save # Main Page j2emain.title=Translator Main j2emain.intro=blah,blah,... j2emain.translate.word.label=Section One j2emain.hira.lable=Hiragana j2emain.kata.lable=Katagana j2emain.roman.lable=Romanji j2emain.translate.button=translate! j2emain.translate.sentence.label=Section Two j2emain.disatisfied.label=Disatisfied with the result? -Original Message- From: Morrow, Steve D. [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:22 AM To: 'Tag Libraries Users List' Subject: RE: Jstl i18n not working 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: Monday, November 10, 2003 11:18 AM To: 'Tag Libraries Users List' Subject: RE: Jstl i18n not working 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 right now. I tried all kinds of combination... With path, absolute path, without path, still no vail.. Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:07 AM To: Tag Libraries Users List Cc: 'Tag Libraries Users List' Subject: Re: Jstl i18n not working I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED]gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00AM Please respond toTag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/pa ram-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and any files transmitted with it are confidential and are intended solely for the use of the
Re: Jstl i18n not working
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: WEB-INF/classes/org/j2e_translate/ApplicationResources.properties Quoting Kris Schneider [EMAIL PROTECTED]: 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources/param-value /context-param Quoting [EMAIL PROTECTED]: I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED] gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00 AM Please respond to Tag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jstl i18n not working
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 parameter=org.j2e_translate.ApplicationResources /message-resources Will that cause any conflict? I have no clue right now. I tried all kinds of combination... With path, absolute path, without path, still no vail.. Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:07 AM To: Tag Libraries Users List Cc: 'Tag Libraries Users List' Subject: Re: Jstl i18n not working I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED]gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00AM Please respond toTag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jstl i18n not working
ignore me. I think I tainted this conversation... Savan Thongvanh Kris Schneider [EMAIL PROTECTED]To: Tag Libraries Users List [EMAIL PROTECTED] cc: 11/10/2003 11:29 Subject: RE: Jstl i18n not working AM Please respond to Tag Libraries Users List 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 parameter=org.j2e_translate.ApplicationResources /message-resources Will that cause any conflict? I have no clue right now. I tried all kinds of combination... With path, absolute path, without path, still no vail.. Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:07 AM To: Tag Libraries Users List Cc: 'Tag Libraries Users List' Subject: Re: Jstl i18n not working I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED]gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00AM Please respond toTag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jstl i18n not working
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 me. Thanks a lot! - HEAD title fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle /title META NAME=Author CONTENT=Yansheng META NAME=Keywords CONTENT=translator META NAME=Description CONTENT= style type=css/text src=./styles/global_style.css style type=css/text src=./styles/elements.css style type=css/text src=./styles/navigation.css /HEAD -- And I am getting: title ???j2emain.title??? /title -- Oh, wait, why do I need basename? Ah, I don't understand this very well -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:28 AM To: Tag Libraries Users List Subject: Re: Jstl i18n not working 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: WEB-INF/classes/org/j2e_translate/ApplicationResources.properties Quoting Kris Schneider [EMAIL PROTECTED]: 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources/param-value /context-param Quoting [EMAIL PROTECTED]: I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED] gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00 AM Please respond to Tag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output: ???j2emain.title??? Help appreciated! -Yan -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
RE: Jstl i18n not working
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 PROTECTED] Sent: Monday, November 10, 2003 11:35 AM To: 'Tag Libraries Users List' Subject: RE: Jstl i18n not working 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 me. Thanks a lot! - HEAD title fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle /title META NAME=Author CONTENT=Yansheng META NAME=Keywords CONTENT=translator META NAME=Description CONTENT= style type=css/text src=./styles/global_style.css style type=css/text src=./styles/elements.css style type=css/text src=./styles/navigation.css /HEAD -- And I am getting: title ???j2emain.title??? /title -- Oh, wait, why do I need basename? Ah, I don't understand this very well -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:28 AM To: Tag Libraries Users List Subject: Re: Jstl i18n not working So, based on your updated info, this should be: context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext/pa ram-name param-valueorg.j2e_translate.ApplicationResources/param-value /context-param And you should have your property file located at: WEB-INF/classes/org/j2e_translate/ApplicationResources.properties Quoting Kris Schneider [EMAIL PROTECTED]: 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/pa ram-name param-valueApplicationResources/param-value /context-param Quoting [EMAIL PROTECTED]: I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED] gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00 AM Please respond to Tag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources
RE: Jstl i18n not working
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 *really* located? Quoting Yansheng Lin [EMAIL PROTECTED]: 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 me. Thanks a lot! - HEAD title fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle /title META NAME=Author CONTENT=Yansheng META NAME=Keywords CONTENT=translator META NAME=Description CONTENT= style type=css/text src=./styles/global_style.css style type=css/text src=./styles/elements.css style type=css/text src=./styles/navigation.css /HEAD -- And I am getting: title ???j2emain.title??? /title -- Oh, wait, why do I need basename? Ah, I don't understand this very well -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:28 AM To: Tag Libraries Users List Subject: Re: Jstl i18n not working 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: WEB-INF/classes/org/j2e_translate/ApplicationResources.properties Quoting Kris Schneider [EMAIL PROTECTED]: 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources/param-value /context-param Quoting [EMAIL PROTECTED]: I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED] gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00 AM Please respond to Tag Libraries Users List 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources.properties/param-value /context-param Then in my jsp: fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle But I am getting the following output:
RE: Jstl i18n not working
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 anything in web.xml. Way better than changing anything in struts.xml. Stupid ActionMapping:). Thanks for your help! -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:41 AM To: Tag Libraries Users List Subject: RE: Jstl i18n not working 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 *really* located? Quoting Yansheng Lin [EMAIL PROTECTED]: 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 me. Thanks a lot! - HEAD title fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle /title META NAME=Author CONTENT=Yansheng META NAME=Keywords CONTENT=translator META NAME=Description CONTENT= style type=css/text src=./styles/global_style.css style type=css/text src=./styles/elements.css style type=css/text src=./styles/navigation.css /HEAD -- And I am getting: title ???j2emain.title??? /title -- Oh, wait, why do I need basename? Ah, I don't understand this very well -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:28 AM To: Tag Libraries Users List Subject: Re: Jstl i18n not working 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: WEB-INF/classes/org/j2e_translate/ApplicationResources.properties Quoting Kris Schneider [EMAIL PROTECTED]: 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources/param-value /context-param Quoting [EMAIL PROTECTED]: I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED] gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00 AM Please respond to Tag Libraries Users List Hi, in my web.xml: !--
RE: Jstl i18n not working
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. If your receipt of this transmission has occurred as the result of an error, please immediately notify us so we can arrange for the return of the documents. In such circumstances, you are advised that you may not disclose, copy, distribute or take any other action in reliance on the information transmitted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jstl i18n not working
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 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 anything in web.xml. Way better than changing anything in struts.xml. Stupid ActionMapping:). Thanks for your help! -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:41 AM To: Tag Libraries Users List Subject: RE: Jstl i18n not working 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 *really* located? Quoting Yansheng Lin [EMAIL PROTECTED]: 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 me. Thanks a lot! - HEAD title fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle /title META NAME=Author CONTENT=Yansheng META NAME=Keywords CONTENT=translator META NAME=Description CONTENT= style type=css/text src=./styles/global_style.css style type=css/text src=./styles/elements.css style type=css/text src=./styles/navigation.css /HEAD -- And I am getting: title ???j2emain.title??? /title -- Oh, wait, why do I need basename? Ah, I don't understand this very well -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:28 AM To: Tag Libraries Users List Subject: Re: Jstl i18n not working 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: WEB-INF/classes/org/j2e_translate/ApplicationResources.properties Quoting Kris Schneider [EMAIL PROTECTED]: 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources/param-value /context-param Quoting [EMAIL PROTECTED]: I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED] gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00 AM Please respond to Tag Libraries Users List
RE: Jstl i18n not working
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: Tag Libraries Users List Subject: RE: Jstl i18n not working 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 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 anything in web.xml. Way better than changing anything in struts.xml. Stupid ActionMapping:). Thanks for your help! -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:41 AM To: Tag Libraries Users List Subject: RE: Jstl i18n not working 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 *really* located? Quoting Yansheng Lin [EMAIL PROTECTED]: 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 me. Thanks a lot! - HEAD title fmt:bundle basename=ApplicationResources fmt:message key=j2emain.title / /fmt:bundle /title META NAME=Author CONTENT=Yansheng META NAME=Keywords CONTENT=translator META NAME=Description CONTENT= style type=css/text src=./styles/global_style.css style type=css/text src=./styles/elements.css style type=css/text src=./styles/navigation.css /HEAD -- And I am getting: title ???j2emain.title??? /title -- Oh, wait, why do I need basename? Ah, I don't understand this very well -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: November 10, 2003 10:28 AM To: Tag Libraries Users List Subject: Re: Jstl i18n not working So, based on your updated info, this should be: context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext/pa ram-name param-valueorg.j2e_translate.ApplicationResources/param-value /context-param And you should have your property file located at: WEB-INF/classes/org/j2e_translate/ApplicationResources.properties Quoting Kris Schneider [EMAIL PROTECTED]: 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 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueApplicationResources/param-value /context-param Quoting [EMAIL PROTECTED]: I've only seen that when struts can't find the resource file or the key... Savan Thongvanh Berkley Technology Services 515.278.7725 Yansheng Lin [EMAIL PROTECTED]To: 'Tag Libraries Users List' [EMAIL PROTECTED] gis.com cc: Subject: Jstl i18n not working 11/10/2003 11:00 AM
Re: Unstandard Library Source / Developing custom EL taglibs
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 source for unstandard doesn't seem to be there. Does anyone know where I can d/l this from? The Unstandard taglib is in jakarta-taglibs-sandbox, not jakarta-taglibs. -- Martin Cooper Or does anyone have a good reference site for developing custom taglibs with EL? Thanks Mark C ** IMPORTANT MESSAGE ** This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]