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
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,
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
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
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
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
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
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:
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
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
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
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
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
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
I've only seen that when struts can't find the resource file or the key...
Savan Thongvanh
Berkley Technology Services
515.278.7725
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
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
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:
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
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
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:
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
ignore me. I think I tainted this conversation...
Savan Thongvanh
Kris Schneider
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
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
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
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
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.
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
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:
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
31 matches
Mail list logo