RE: redirect to a frame???

2004-03-31 Thread Martin van Dijken
Hey John, No, but it's a hard no because you've got several things mixed up. What you're saying is you want to submit a form inside a frame. However, once this form is submit, the client is asking the server for a page in frame1. Then whatever the server can come up with is put in frame1. This is

RE: formatDate -> changes Japanese to ???

2004-03-31 Thread Martin van Dijken
Hey Roy, I think you might want to read up on how the JSTL handles different languages etc. What I'm seeing is that you use formatDate with a pattern while you're saying that you've got Japanese and English mixed. Check out how to use Locales in JSTL. If you set a Locale using a servlet, fmt:setLo

Re: Novice question about using "Constants" in "when" tags

2004-03-31 Thread Bill Siggelkow
Good question, Jeff. Unfortunately, there is not a direct way of doing this. There are generally two approaches: 1) Store the values of the constants as application context variables with the context being initialized through a startup servlet (or via a Plugin if you were using Struts) In the

fmt:formatDate -> changes Japanese to ???

2004-03-31 Thread Roy Benjamin
Perviously I wrote about using date fmt. I started using this construct to format results comming back from Oracle. I have Japanese in parts of this page. It displays fine if I do not use JSTL Otherwise it prints only as . Looking at the page source, it looks like the is outputing ?

Novice question about using "Constants" in "when" tags

2004-03-31 Thread Jeff Brewer
I'm new to Java and JSP and Tag Libraries and ran into what is probably more of a style question than a technical question. I'm using something like this in my JSP page: message one message two message three ... but I wasn't content because a week from now when I come back a

book on taglibs

2004-03-31 Thread Arora, Avinash
Hi, Is there a good book available to study the usage of various taglibs or the best way is the documentation that is available. Thanks. Avinash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

RE: mailer taglib

2004-03-31 Thread Arora, Avinash
Thanks Martin for your suggestion. The tag that you have mentioned below works fine. But it has a limitation, it can be used only with "to", "cc" fields. We cannot use it to set the "from" or "server" fields. I have seen the examples given in the mailer1.1 documentation. It uses the "request" tagl

redirect to a frame???

2004-03-31 Thread John MccLain
Is it possible to target a frame in a jstl call. For example, frame 1 has a button that submits a servlet request. The servlet redirects to another jsp page but you want the jsp page it redirects to to be in frame 2. Can this be done without re-rendering the entire page, and only re-render frame 2?

Re: More SQL Date problems

2004-03-31 Thread Keith
I just got that "prohibited content" email myself. All I'm sending is plaintext email. Is that something from the mailing list doing it? Snipped Hans' original message out and am resending... Thanks a lot, Hans! Yeah, I had seen a workaround like that would work. I groaned when I realized th

Re: jsp:useBean (probably a stupid question)

2004-03-31 Thread Roy Benjamin
Thanks this helped a lot. I'd already grimbled over several books on these subjects. Re: fmt tags... It must have been my error... but I must have been trying to do the format in one step. After posting my earlier message I tried again... having just looked over all I was trying to do this som

Re: More SQL Date problems

2004-03-31 Thread Keith
Thanks a lot, Hans! Yeah, I had seen a workaround like that would work. I groaned when I realized that, though. Some other forms I'm working on have a lot more date fields (two have 15 each), so it would get pretty ugly. The other problem comes in when/if the date column data needs to be delet

Re: More SQL Date problems

2004-03-31 Thread Hans Bergsten
Wolfgang Röckelein wrote: Hi, at JDBC level there are two different possibilities to set a parameter value to null: with setNull and setting to null. Depending on the driver sometimes only on of these methods work, and when it does not work, you see the "java.sql.SQLException: Invalid column ty

Re: jsp:useBean (probably a stupid question)

2004-03-31 Thread Kris Schneider
If you want to use a scoped variable created by JSTL as a scripting variable in a JSP expression, try this: Notice the use of the "type" attribute instead of the "class" attribute. However, you still can't use twice with the same id and if you update the scoped var it *won't* be reflected in t

jsp:useBean (probably a stupid question)

2004-03-31 Thread Roy Benjamin
I have a function to format a date; takes and returns a String. There are two possible places where this may be used, one for on-line display, the other when downloading the data. construct. This works for the on-line option: but only if I use a different bean for the off-line option..

Re: More SQL Date problems

2004-03-31 Thread Wolfgang Röckelein
Hi, at JDBC level there are two different possibilities to set a parameter value to null: with setNull and setting to null. Depending on the driver sometimes only on of these methods work, and when it does not work, you see the "java.sql.SQLException: Invalid column type" error you see. I thin

Re: Having trouble getting started

2004-03-31 Thread Rick Roberts
Chris, YOU DA MAN! Thanks :) Johnson, Chris wrote: Robert, Try putting the jar files in webapps/jstl/WEB-INF/lib Chris -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 10:23 AM To: Taglibs Users List Subject: Having trouble getting star

RE: Having trouble getting started (Doh!!!)

2004-03-31 Thread Johnson, Chris
Sorry, Rick I just realized I flubbed on your name! Please accept my sincere apologies. Rick, I got some funky email about prohibited content, so just in case this didn't get sent the first time, I'm re-sending this without your original content. Try putting the jar files in webapps/jstl/

RE: Having trouble getting started

2004-03-31 Thread Johnson, Chris
Robert, I got some funky email about prohibited content, so just in case this didn't get sent the first time, I'm re-sending this without your original content. Try putting the jar files in webapps/jstl/WEB-INF/lib Chris -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] S

RE: Having trouble getting started

2004-03-31 Thread Johnson, Chris
Robert, Try putting the jar files in webapps/jstl/WEB-INF/lib Chris -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 10:23 AM To: Taglibs Users List Subject: Having trouble getting started I am using jakarta-tomcat-4.1.24 I downloaded ja

Having trouble getting started

2004-03-31 Thread Rick Roberts
I am using jakarta-tomcat-4.1.24 I downloaded jakarta-taglibs-standard-1.0.5 I have a tomcat context in webapps/jstl/ that works for simple JSP files. I placed c.tld and fmt.tld in webapps/jstl/WEB-INF/tld/ I placed jstl.jar and standard.jar into webapps/jstl/WEB-INF/classes/lib/ Here is a cop

RE: Formatted date not returning

2004-03-31 Thread Keith
Yeah, I guess I could use the fmt:formatDate tag. I'll give it a try. To me, it's a lot easier to format the date output in the SQL query than it is via JSTL. Just seems a bit buggy to me that it works with the Indexed output, but not with the SortedMap. Thanks! Keith -- Original Mess

Re: Newbie Question Regarding Iterate tag

2004-03-31 Thread Bill Siggelkow
Mark, The object referred to by "row" will be a Vo. Assuming your Vo has a "getFoo()" method you can do something like: Alternatively, you could use the JSTL forEach tag: Mark Glass wrote: I am building a Struts application which places an ArryList of Vo objects into the request. (

jstl read raw data

2004-03-31 Thread Lorenzo Sicilia
hi list, I need read some xml data in post. I have found some example in jsp that show raw data post: http://www.sci.usq.edu.au/courses/csc8409/src/ShowPost.jsp Do I can with jstl read raw data? I send xml object from flash with XML.sendAndLoad(mypage.jsp, "POST"); Thanks in advance for any idea

Newbie Question Regarding Iterate tag

2004-03-31 Thread Mark Glass
I am building a Struts application which places an ArryList of Vo objects into the request. (request.setAttribute("plans", listOfVo);). In the JSP file I want to iterate through the list, get each Vo to populate a row of a table. How do I do this with the Struts iterate tag? My code looks like

RE: More SQL Date problems

2004-03-31 Thread Keith
This is what I have in the web.xml file: javax.servlet.jsp.jstl.sql.dataSource jdbc:oracle:thin:@hostname:1521:sid,oracle.jdbc.driver.OracleDriver,username,passw ord So, yes, I am using the Thin client. The full stack trace i