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
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
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)
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
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
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
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:
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
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
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
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]
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
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
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
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 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
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
[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
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
--
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
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 :/
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
--
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
--
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
Lorenzo Sicilia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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]
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
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
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
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
-
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
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]
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
-
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
--
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
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]
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,
vance
Best Regard
Lorenzo Sicilia
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
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
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
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>
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
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: <
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
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>
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
:
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>
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
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>
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@
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
52 matches
Mail list logo