jsp 1.2 and jstl core tag work only with core_rt tld

2006-06-04 Thread Lorenzo Sicilia
hi to all, I woud like to switch a small backend to jsp 1.2 sql tags works fine but core tag (c:if, c:forEach, etc) I gen this error: attribute items does not accept any expressions If I use xmlns:c="urn:jsptld:http://java.sun.com/jstl/core doesn't works. Otherwise when I user "_rt" version all w

Re: mailer javax/mail/Authenticator

2005-06-23 Thread Lorenzo Sicilia
TroyGeek wrote: Do you also need mail.jar (in addition to activation.jar) in your classpath? it works nice,now :) I believed that Javamail API it was standard in tomcat. Anyway, many thanks. regards Lorenzo - To unsubscr

mailer javax/mail/Authenticator

2005-06-21 Thread Lorenzo Sicilia
Hi to all, I use tag mailer with jrun4 and all works fine. Now, I want switch from jrun to tomcat 5. I have fix some bugs but the tag mailer return an exception: javax.servlet.ServletException: javax/mail/Authenticator org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)

Re: sql Connection.close() has already been called

2004-11-16 Thread Lorenzo Sicilia
Glenn Nielsen wrote: MySQL will by default close a db connection after it has been idle for 8 hours. You need to add the following to your jdbc connect url "?autoReconnect=true" to tell the MySQL JDBC driver to automatically reconnect to the db. Your url would be: jdbc:mysql://localhost:3306/mkterr

Re: sql Connection.close() has already been called

2004-11-15 Thread Lorenzo Sicilia
Kris Schneider wrote: Do you have a context init param in web.xml for "javax.servlet.jsp.jstl.sql.dataSource"? If so, are you using a JNDI relative path or a JDBC parameters string? Yes, I have. In my web.xml javax.servlet.jsp.jstl.sql.dataSource mkterritoriale in my jrun-resource.xm

Re: sql Connection.close() has already been called

2004-11-15 Thread Lorenzo Sicilia
Don Albertson wrote: Random as in it happens sometimes the first time or random as in it happens sometimes after sitting inactive long enough for some timeout value to close the connection? Random as in it happens sometimes. When it happens I need restart the application server (jrun4). The page i

sql Connection.close() has already been called

2004-11-15 Thread Lorenzo Sicilia
Hi to all, I have a stange error in some index.jsp in two web site where I use sql tag. error: java.sql.SQLException: Connection.close() has already been called. Invalid operation in this state It's strange because I use only one tag sql in the page and the problem it's random. my snippets:

forEach and hibernate

2004-10-21 Thread Lorenzo Sicilia
Hi to all, I have an action in struts framerwork that it use hibernate. .., snippets begin ... List l = (List) sf.find("from UserSession where nick_name = ?",loginForm.getUserName(), Hibernate.STRING); us = (UserSession)l.get(0); session.setAttibute(user,us); ... snippets end ... in jstl I want sh

fmt and charset

2004-09-06 Thread Lorenzo Sicilia
Hi to all, I use jstl 1.0.0.6 and jvm sun 1.4.2 on my linux box. I have this small snippet: <%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %> <%@ taglib prefix="fmt" uri="/WEB-INF/tld/fmt.tld" %> <%@ taglib prefix="sql" uri="/WEB-INF/tld/sql.tld" %> http://www.w3.org/1999/xhtml";> bug fmt

Re: jstl & BINARY field with mysql

2004-08-16 Thread Lorenzo Sicilia
Kris Schneider wrote: The major difference between what JSTL does to populate the rows of the "myQuery" variable and your scriptlet code is that JSTL uses ResultSet.getObject while your scriptlet code uses ResultSet.getString. Thanks Kris for the answer. I understand better. I change my query,now

jstl & BINARY field with mysql

2004-08-16 Thread Lorenzo Sicilia
e(); m_stmt.close(); conn.close(); }catch (Exception ex){ response.getWriter().println(ex.toString()); ex.printStackTrace(); } %> I use jrun4, jstl 1.0.5, mysql 4.0.x and sdk SunJava2-1.4.2 Can you confirm that? regards Lorenzo Sicilia -- KEMEN srl http://www.kemen.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: fmt:setLocale test it

2004-08-16 Thread Lorenzo Sicilia
Lorenzo Sicilia wrote: It work fine only if i put: response.setContentType("text/html; charset=ISO-8859-1"); otherwise I get "?" from all special chars :) regards Lorenzo - To unsubscribe, e-mail: [EMAIL PROTE

fmt:setLocale test it

2004-08-16 Thread Lorenzo Sicilia
uot;;> fmt:setLocale bug ContentType:<%=request.getContentType()%> -- It work fine only if i put: response.setContentType("text/html; charset=ISO-8859-1"); I can't use from

Re: mail and fmt:message (charset problem)

2004-08-15 Thread Lorenzo Sicilia
Kris Schneider wrote: Do you have an entry like the following in web.xml: javax.servlet.jsp.jstl.fmt.localizationContext Messages This sets up a default resource bundle (WEB-INF/classes/Messages.properties) for JSTL's fmt tags. I have put in web.xml fmt setting but the

Re: mail and fmt:message

2004-08-13 Thread Lorenzo Sicilia
Kris Schneider wrote: Do you have an entry like the following in web.xml: javax.servlet.jsp.jstl.fmt.localizationContext Messages This sets up a default resource bundle (WEB-INF/classes/Messages.properties) for JSTL's fmt tags. Many thanks Kris. It was a stupid error.

mail and fmt:message

2004-08-13 Thread Lorenzo Sicilia
mail output is: ???mail.text.header??? ???user.full_name???full_name ???user.nick_name???arnor3 ???user.pswd???123456789 TODO: altri dati a piacere [EMAIL PROTECTED] ???welcome??? ???mail.text.footer??? I use http://jakarta.apache.org/taglibs/mailer-1.1 Any idea? regards Lorenzo Sicilia -- KEM

jstl, jsf , struts or ...

2004-07-28 Thread Lorenzo Sicilia
hi to all, I use jstl 1.0 e 1.1 and I love it. Now, I want evaluate a j2ee framework. I understand that jstl is integrated with jsf and struts but what do you think it is the best solution? Other good framework? thanks in adavace for any opinion regards Lorenzo Sicilia

Re: Howto traverse through an unknown depth with Xtags?

2004-04-21 Thread Lorenzo Sicilia
[EMAIL PROTECTED] wrote: Now, how can I use the xtags (XPath) to read such an XML? I guess I can use but thats only for the multiple siblings and not for parent-child. Please help! Also, please send the reply directly to my email address as I just have subscribed to the alias. yes, You can use xt

Re: jstl output

2004-04-10 Thread Lorenzo Sicilia
Martin Cooper wrote: Depending on your usage, you might be able to put a whitespace-stripping filter in front of your JSP pages, to collapse all this down. I think this it's the best solution. I search some thing like that. tks Martin your help it is very appreciate :) regards Lorenzo --

jstl output

2004-04-09 Thread Lorenzo Sicilia
Hi to the list, I have a jsp with jstl. The goal is generate a 100% xml ouput. In Macromedia flash I get this output from jstl: \r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\t\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\r\t\t \r\r\t\t\t\t \r\r\t\t\t\r\r\r\r\r\r\r\r\r\r\r\r\r\r\t\r\r

Re: and

2004-04-03 Thread Lorenzo Sicilia
Bill Siggelkow wrote: I believe that you are getting the []'s because the actual object created by the is a Node -- try using instead of hi Bill, I have try this: --- cout - --- xout - -> OK -> nothing I think x:out tag doesn't print xml node. it print just the values :/

and

2004-04-02 Thread Lorenzo Sicilia
hi to the list, I have this snippets (many tks to Martin Cooper): and a small xmlDoc from a flash form like this: The output in html page is quite good: [] Why there are the brachets? I can remove there but I don't understand why there are this brachets. any idea? regards Lorenzo --

Re: jstl read raw data

2004-04-02 Thread Lorenzo Sicilia
Martin Cooper wrote: Since what you want to read is XML, you can do this as long as you actually want to parse the XML as well. Try this: Great! It work fine! many thanks :) I love Jstl. Usefull, Powerfull and easy. Regards Lorenzo --

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

jstl and blob

2004-03-30 Thread Lorenzo Sicilia
Lorenzo Sicilia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JSP development environments

2004-03-25 Thread Lorenzo Sicilia
will be two IDE: - eclipse - .Net studio Than I think is better choose the right IDE, today ;) Regards Lorenzo Sicilia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

jstl and binary field in mysql

2004-03-04 Thread Lorenzo Sicilia
ute) or -- > nick_name = myLogin (no attributes) I need mantain BINARY attribute. Does it exist a solution? Regard Lorenzo Sicilia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: jstl editor

2004-02-24 Thread Lorenzo Sicilia
Martin van Dijken wrote: In Myeclipse version 2.7 there is code completion support for taglibs in general. If you include the JSTL taglibrary in your project and use a <%@ taglib referring to it, all tags that follow it are syntax colored according to the tld. Also, when you use the key to start co

Re: jstl editor

2004-02-24 Thread Lorenzo Sicilia
Martin van Dijken wrote: Hey Lorenzo, Check out Lomboz or MyEclipse for JSP Eclipse plugins. Lomboz is open source and therefore free, but I've found it to be slightly buggy. MyEclipse (www.myeclipseide.org) costs $30 and is far more stable. There are other options, check them at www.eclipse-plug

jstl editor

2004-02-24 Thread Lorenzo Sicilia
Hi to the list, Does exist a jstl editor? In dw mx there is a small support, just code hint. An ecplipse plug-in it would be a good point :) Regard Lorenzo Sicilia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: where is jstl download link

2004-02-24 Thread Lorenzo Sicilia
Martin van Dijken wrote: >In this directory you should find a directory named standard ( which is JSTL 1.1 ) and standard-1.0 ( which is JSTL 1.0 ). I had not understood that stadard == jstl 1.1 :) anyway thanks. Regard Lorenzo -

Re: jrun4 and jstl 1.1 problem

2004-02-23 Thread Lorenzo Sicilia
Ryan Lubke wrote: Actually JRun 4.0 is J2EE 1.3 certified which implies JSP 1.2, not 2.0. Not good news :( Anyway thanks very much! Regard Lorenzo Sicilia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

jrun4 and jstl 1.1 problem

2004-02-23 Thread Lorenzo Sicilia
certified. The problem is jrun, nightly jstl or I am the problem? :) Any help would be appreciated. thanks Lorenzo Sicilia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

where is jstl download link

2004-02-23 Thread Lorenzo Sicilia
I search a "stable" versione of jstl 1.1 In jakarta website I had found nightly version. I don't understan if jstl 1.1 is stable or under construction. I can use it in a production project? Regard Lorenzo Sicilia -

Re: Announcing standard-1.1.0 and standard-1.0.5

2004-02-04 Thread Lorenzo Sicilia
Felipe Leme wrote: Fredrik, I "temporarily" fixed some of these files (as the "official" notes are automatically generated by the nightly build). Anyway, thanks for warning us about the issue. About 1.0.5 release In javadoc there is not xml tag. Is it an error? regards Lorenzo --

Re: xml filter parser

2003-10-01 Thread Lorenzo Sicilia
Kris Schneider wrote: Isn't something like this the JSTL equivalent of your code example: it is perfect! 1k tks. Best Regards Lorenzo Sicilia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

xml filter parser

2003-10-01 Thread Lorenzo Sicilia
am"); List rows = filterPath.selectNodes(this.xmlDoc); Can I do in jstl? Best Regards Lorenzo Sicilia p.s. Sorry for my poor english :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

jstl & dataSource

2003-03-03 Thread Lorenzo Sicilia
jvm 1.4.1 JRUN4 ang Apache 2.40 LInux (production) jvm 1.4.1 my script: 1) SELECT * FROM users 2) SELECT * FROM users Both don't work :o( Some one can help me? thanks in advance Lorenzo Sicilia - To unsubscribe,

send data with post

2003-01-14 Thread Lorenzo Sicilia
vance Best Regard Lorenzo Sicilia -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: sql, choose and scope

2002-11-02 Thread Lorenzo Sicilia
flare wrote: perhaps you should use "and" instead of "or" :) Actualy is just a test! After I make a true autentification system. Anyway thanks. Best Regards Lorenzo Sicilia -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For a

Re: sql, choose and scope

2002-11-02 Thread Lorenzo Sicilia
derstand choose tag. True Script: SELECT ID_news,data, titolo_it as titolo, abstract_it as abstract, testo_it as testo FROM tb_news sqlRequest was correct but the first WHEN was always True. Now I have understand is quite equal to Switch ;o) Best Regards Lorenzo

sql, choose and scope

2002-11-01 Thread Lorenzo Sicilia
the tags Choose and When all work fine. Some one can explain me why? I need just the path to get flashRecordSet thanks Lorenzo Sicilia -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Re: jstl & jsp: working progress

2002-10-31 Thread Lorenzo Sicilia
cordSet Data for (int row = 0; row < max; row++ ){ for (int column = 0; column < columnNames.length; column++){ rsString += rs.getRows()[row].get(columnNames[column])+ tColum; //--> Error: "No field name" } rsString += tRow; } rsString += "&"; out.pri

jstl & jsp: working progress

2002-10-31 Thread Lorenzo Sicilia
m: // out.print(rs.getRowsByIndex()[fRow][0]); // Error: "JRun Servlet Error500 77 // *** } %> // Why the fRow var is not read by the SortedMap objcet? Cast? thanks Lorenzo Sicilia -- To unsubscribe, e-mail: <

Re: jrun & jstl

2002-10-30 Thread Lorenzo Sicilia
Lorenzo Sicilia wrote: it don't work. The problem is the cast. the error is: 411. ResultSet pippo = (ResultSet) pageContext.findAttribute("elenco"); ^---^ *** Error: Type ResultSet was not found. I understand: <%=((javax.servlet.jsp.jstl.sql.Result)pageCon

jstl and jsp

2002-10-30 Thread Lorenzo Sicilia
question but are my first step in Java world. Thanks Lorenzo Sicilia -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Re: jrun & jstl

2002-10-30 Thread Lorenzo Sicilia
Shawn Bayern wrote: On Wed, 30 Oct 2002, Lorenzo Sicilia wrote: I have tried this: pageContext.findAttribute("elenco").getRowsByIndex() the error is: *** Error: No method named "getRows" was found in type "java/lang/Object". I need read the fields and colums wit

Re: jrun & jstl

2002-10-30 Thread Lorenzo Sicilia
: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "No suitable driver" Thanks :o) Lorenzo Sicilia -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Re: jrun & jstl

2002-10-30 Thread Lorenzo Sicilia
er the sense of your SQL statement and end up hijacking it to produce unintended results. Ok, but I think the true problem is about INSERT or DELETE. Select is not very dangerous. or no? Thanks very much. Lorenzo Sicilia -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jak

Re: jrun & jstl

2002-10-30 Thread Lorenzo Sicilia
quot; was found in type "java/lang/Object". I need read the fields and colums with a for. some idea? tks Lorenzo Sicilia -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Re: jrun & jstl

2002-10-30 Thread Lorenzo Sicilia
h scriptlets. The problem is after close tag. Now I goot it. Anyway, to answer your specific question, you'd write <%= pageContext.findAttribute("elenco") %> Thanks very much Best Regards Lorenzo Sicilia -- To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@

jrun & jstl

2002-10-30 Thread Lorenzo Sicilia
JSP script because the JSTL tag put "\n" each time I close a tag. I need an output without "\n" but I like JSTL recorset. 2 SELECT ID_news,data, titolo_ as titolo, abstract_ as abstract, testo_ as testo, data FROM tb_news <% out.print(elenco); %> Any Hel