On 5/3/07, Vikram Reddy [EMAIL PROTECTED] wrote:
Did any one use I18N Tag Library from Apache, I have a question on that.
I have some of the labels hardcoded in the java bean whcih are displayed on
the UI, not sure how I can convert them, Can any one throw some light on
The description of
On 5/3/07, Vikram Reddy [EMAIL PROTECTED] wrote:
Sure, I am making my application I18n complinat, reading all the labels from
the resources, I am using I18n tag libary from jakartha,
I am replacing all of my labels with i18n tag like i18n:message key=
label.name, i18n:message key=label.age etc,
Please provide *adequate relevant information* and a relevant title
for this thread, it will benefit you in terms of getting a proper
response in the shortest amount of time and others on the mailing list
to understand your problem and solve it and will also be meaningful
for future viewers of
Hi Navas,
On 5/2/07, José Navas [EMAIL PROTECTED] wrote:
Philip
It seems that there is no validation on ae.getPos( ), may be it's beyond
ref.length( )
SendTag.java is in the Mailer JAR file, so if the problem is indeed in
SendTag.java and we could fix it here, I think it would be equivalent
Hi Philip,
On 5/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
-
block of code around 265:sendtag.java
-
// check for more than one address
On 5/3/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:
The actual data that is being passed to SendTag.java would give clues here.
But please do not post the actual data , this is just for your information.
I personally avoid posting my e-mail addresses or other e-mail
addresses on forums
Hi Philip,
I haven't worked with the mailer-taglib, but I'm familiar with other
taglibs and some basic concepts of taglibs and also the specific error
you are getting, I'm not sure if I can help but I'll try.
It would be useful for us to see relevant snippets of code that causes
this error, in
Hi reshmi,
That s right. To use the grid am not using JSTL. Am
using EL. For now its ok. But am sure the problem will arise in the
future.
You can create multiple projects with the same instance of Tomcat.
Each project can have it's own web.xml with separate Servlet
Dick,
What Servlet and JSP specification version is JBoss 4.0.5 based on?
The compatibility chart for EL and web.xml I've known from experience is:
-
JSTL 1.2 works with
The standard.jar file I have is for JSTL 1.1.2 , and it contains this class
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager within it.
Dick Weisinger [EMAIL PROTECTED] wrote:
But it continues to have a problem. Spring says that it found the JSP 2.0
ExpressionEvaluator, but
, they need to
be copied separately.
-Regards
Rashmi
On 4/30/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:
The standard.jar file I have is for JSTL 1.1.2 , and it contains this class
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager within it.
Dick Weisinger [EMAIL PROTECTED] wrote
I just wanted to be clear, this is the web.xml located under your project---
/WEB-INF/web.xml
-Rashmi
On 4/29/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:
Since you are using Tomcat 5.5.x please make sure the web-app node
web.xml is exactly as follows:
?xml version=1.0
web-app version=2.4
On 4/29/07, venu madhav [EMAIL PROTECTED] wrote:
Rashmi,
I understood what you are saying. I want to make clear
that there is no wrong in my web.xml .
Hi Venu,
Just to be clear, please elaborate on what you mean by there is no
wrong in my web.xml , it would be helpful if you
Hi Venu,
I was able to solve this error, please see the explanation below.
I too got this error:
org.apache.jasper.JasperException: /p/datagrid/index.jsp(475,0)
According to TLD or attribute directive in tag file, attribute items
does not accept any expressions
when I tried example1.jsp from
On 4/29/07, venu madhav [EMAIL PROTECTED] wrote:
Hi Rashmi,
Thank you very much for providing me the solution.
So , we can conclude that the taglib was written using old spec and it
was not updated isn't it.
Any way thanks once again for solving my problem. Have a nice day.
It appears to me that Datagrid requires JSTL 1.0 and JSP 1.2 from
reading the thread below. This means that unless you can patch
Datagrid yourself or wait for the bug to be patched , you'll have to
downgrade a few things like JSTL jar file, Web Container that supports
JSP 1.2.
I'm sorry for mentioning a conflicting configuration of JSP, JSTL in
my post above.
The latest nightly release of DataGrid was on 20060829, which is much
more recent than the thread I referred to above which was dated on
2004. So, please ignore my replies above.
With very limited information of
Hi there,
Someone else had a similar error:
http://mail-archives.apache.org/mod_mbox/jakarta-taglibs-user/200412.mbox/[EMAIL
PROTECTED]
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.IllegalArgumentException
at
On 4/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Before I go and report a bug, I need to ask you a question. I think you
are about to solve the issue for me.
I stepped through the source for this tag, and it's not evaluating my
items as an Collection obj.
If you could patch the bug, you
It works! The below JSP Scriptlet code could easily be replaced as follows:
jsp:useBean id=accountBean class=test72.bean.AccountBean scope=request/
c:forEach var=invoice items=${accountBean.invoices}
${invoice.id}br/
${invoice.itemName}hr/
/c:forEach
You only need to change the package
Personally I like to build applications independent of an IDE such as
Eclipse, NetBeans, IDEA etc.
If you make it work without an IDE first then, you'll know what
changes to make within the IDE to get it to work.
-Rashmi
On 4/2/07, Rupert Woodman [EMAIL PROTECTED] wrote:
My mistake, this is
The web-app entry in web.xml looks incorrect change it to the following:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
I can't think of anything else that requires correction.
If you upload a small WAR file sample of your project somewhere, give
us the link to the WAR file and we will take a look.
-Rashmi
On 4/1/07, Rupert Woodman [EMAIL PROTECTED] wrote:
Hi Rashmi,
Thanks for the help.
I didn't think the
${username} is an EL expression it does not require any taglib URI
But the web.xml needs to conform with Servlet 2.4 spec as indicated in
the previous post.
-Rashmi
On 4/1/07, Hassan Schroeder [EMAIL PROTECTED] wrote:
On 4/1/07, Rupert Woodman [EMAIL PROTECTED] wrote:
I have a file called
Sent: Monday, March 26, 2007 2:58:34 AM
Subject: Re: Releases and Maven 2 support
2007/3/24, Rashmi Rubdi [EMAIL PROTECTED]:
I don't think xtags is released.
Do you have an option to consider JSTL1.1.x or JSTL 1.2 tags ? The features
are different by the results might
be the same in some cases
Name the loop item different from the name of the ArrayList
So instead of c:forEach var=RecordList items=${RecordList} , rewrite it
something like this:
c:forEach var=recordListItem items=${RecordList}
Then try:
c:out value=${recordListItem.axField} / inside the c:forEach loop.
I hope
I don't think xtags is released.
Do you have an option to consider JSTL1.1.x or JSTL 1.2 tags ? The features are
different by the results might
be the same in some cases depending on what you implement.
I've used XTags only a little, I was trying to use it for accessing XSLT like
capabilities
://java.sun.com/jsp/jstl/xml;; %
If a try the latest, I got a error. (Is it only namespace or some firewall
may be blocking those???)
Once again, thank you
On 1/27/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:
Are you getting any errors in the log?
When you upgrade from JSTL1.0 to JSTL1.1 you need to make
, January 27, 2007 11:06:29 PM
Subject: Re: Problem when a use a x:forEach into another x:forEach
This code work perflectly in JSTL 1.0.
On 1/27/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:
Sébastien,
I tried your original JSP code and was able to reproduce the problem you
indicated in your
Hi Martyn,
I tested your code as follows:
%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
jsp:useBean id=mySet scope=page class=java.util.HashSet /
c:if test=${!empty mySet}
NOT EMPTY
/c:if
c:if
Hi Alexander,
I think you might want to consider using a MVC framework to generate the XML
from the database.
*After* an XML file is generated then, you can easily extract the contents of
the XML file with JSTL XML Tags.
There are many examples of how JSTL XML Tags are used in the JSTL Spec
From: David Schwartz [EMAIL PROTECTED]
To: Apache Jakarta Taglibs help taglibs-user@jakarta.apache.org
Sent: Friday, November 24, 2006 1:05:52 PM
Subject: Re: Are there some examples of proper generating of XML from queries
Which database are you using?
--Original Message--
From: Rashmi
Hi al_shopov,
What problem are you facing, are you getting an error message or do you need
examples of how to use JSTL XML tags?
Please provide details.
-Rashmi
- Original Message
From: Alexander Shopov [EMAIL PROTECTED]
To: taglibs-user@jakarta.apache.org
Sent: Monday, November 20,
jakarta with tomcat and the new
web.xml descriptors
Rashmi Rubdi написа:
Hi al_shopov,
What problem are you facing, are you getting an error message or do
you need examples of how to use JSTL XML tags?
The first problem is that I do not know how to install the
libs - i.e. I
am
I see it. Thank you for correcting.
- Original Message
From: Martin Kindler [EMAIL PROTECTED]
To: Tag Libraries Users List taglibs-user@jakarta.apache.org
Sent: Monday, November 20, 2006 11:11:06 AM
Subject: AW: AW: Usin JSTL from jakarta with tomcat and the new web.xml
descriptors
It
- Original Message
From: Trenton D. Adams [EMAIL PROTECTED]
Just out of curiosity, is JSTL supposed to do encoding by default?
I don't know that.
The W3C specs for a link in both HTML and XHTML mention that the ampersand
should be escaped as in
a
Yup, that totally makes sense to me.
-Rashmi
- Original Message
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tag Libraries Users List taglibs-user@jakarta.apache.org
Sent: Tuesday, November 14, 2006 8:42:14 AM
Subject: Re: JSTL 1.1.2 c:url problem?
On 11/14/06, Rashmi Rubdi [EMAIL
c:url by default doesn't encode the ampersand.
However, there are options available in the current implementation of JSTL1.1
which allows you to obtain an
ampersand escaped URL.
1) In reference to the code you've mentioned, one option is:
c:out var=link escapeXml=true /
So you'd essentially
My environment is JSTL1.1 Tomcat5.5
To simplify things, I tried this:
x:out select=not($xml/books/[EMAIL PROTECTED]'1'])/
The above statement returned *true*, I believe it
should have returned *false* because the book node has
an attribute id with value 1, which evaluates to true,
and
PROTECTED] wrote:
Thanks Rashmi. I also got it working by creating a
String object for the select and then using it
instead.
- Original Message
From: Rashmi Rubdi [EMAIL PROTECTED]
To: Tag Libraries Users List
taglibs-user@jakarta.apache.org
Sent: Thursday, September 28, 2006 5
Have you set up JSTL?
If you use the latest version JSTL1.1 core tags you
can do this:
c:set var=child_id value=someValue/
xtags:forEach context=%=parsed%
select=//[EMAIL PROTECTED]/class
...
/xtags:forEach
Here are some JSTL installation instructions:
There is a way to get the escaped ampersand with
c:url and c:out when you set the escapeXml attribute
of c:out to true, it converts the to amp;
You will have to View Source in your browser to see
the amp;
c:url var=someURL
value=http://www.somesite.com/index.jsp;
c:param
.
Also c:redirect requires an unescaped version of the
ampersand.
-Regards
Rashmi
--- Mikolaj Rydzewski [EMAIL PROTECTED] wrote:
Rashmi Rubdi wrote:
There is a way to get the escaped ampersand with
c:url and c:out when you set the escapeXml
attribute
of c:out to true, it converts
] wrote:
Rashmi Rubdi wrote:
By this I mean, irregardless of whether it's
HTML4.0
which requires the un-escaped version of the
ampersand
uh, well --
http://www.w3.org/TR/html4/charset.html#didx-character_entity_references
Authors should use amp; (ASCII decimal 38)
instead
on
it.
The JSTL spec says that if a locale is not specified
then it defaults to the browser's locale.
That must have caused this error.
--- Rashmi Rubdi [EMAIL PROTECTED] wrote:
I couldn't find any information on this error:
javax.servlet.jsp.JspException:
In parseNumber, a parse locale can
I couldn't find any information on this error:
javax.servlet.jsp.JspException:
In parseNumber, a parse locale can not be
established
I only see this error in the server logs and it does
not prevent the JSP page from executing and displaying
itself.
I think this error was caused by this line
Behind the scenes JSPs are Servlets .
I had the same problem as maya is facing and after following the instructions
here: http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions , and
making sure that there was no version mismatch between the .tld files and the
URIs and getting
Set up a fresh install of the latest Tomcat on the side with the correct
web.xml entry, and put a test jsp page in it with a simple EL expression and
see if it evaluates.
I have apache-tomcat-5.5.12
and a different set of jar files under apache-tomcat-5.5.12\common\lib :
I think %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
is a namespace declaration.
With this declaration the namespace prefix is associated with the namespace
uri so that the tag processor knows how to handle a JSTL tag when it comes
accross it in the JSP page.
I searched for a solution for this but couldn't find an answer.
I'm trying to count the number of book nodes from the xml below:
?xml version=1.0 encoding=UTF-8?
books
book isbn=212112Book Title 1/book
book isbn=212313Book Title 2/book
book isbn=343444Book Title 3/book
book
I did a bit more research on this, and came across XTags tag library.
It might be more suitable for what I'm trying to achieve.
If that's the case, then i'll close this thread.
Rashmi Rubdi [EMAIL PROTECTED] wrote:
I searched for a solution for this but couldn't find
] wrote:
Rashmi Rubdi wrote:
I searched for a solution for this but couldn't find an answer.
I'm trying to count the number of book nodes from the xml below:
Book Title 1
Book Title 2
Book Title 3
Book Title 4
Book Title 5
I tried using XPath's count function, inside the JSP
with dom4j and jaxen beta jar files in order
to use XTags
I'm not sure if XTags has a user mailing list, I wasn't able to find it. I
had some further questions on XTags.
Kris Schneider [EMAIL PROTECTED] wrote:
Rashmi Rubdi wrote:
Thank you for the solution
I never thought of that. I
I wanted to use XPath 2.0's upper-case(BookTitle) function instead of it's
equivalent in XPath 1.0 :
translate(BookTitle,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')
function
When I transformed the xml with xslt like this it didn't work when I used the
function:
capabilities.
-Thanks again for all the help
Rashmi
Kris Schneider [EMAIL PROTECTED] wrote:
Rashmi Rubdi wrote:
Thanks again for your reply.
If I'm reading your reply correctly, you are saying that we can evaluate
XPath expessions with JSTL 1.1 XML Tags
That's correct. Although there may
Thank you, the solution you have provided works perfectly for my case.
I was just wondering that if [attribute_name=attribute_value] does not have
any purpose then, why not just set the value to attribute_value directly when
using x:set
If it does have a purpose then the way x:set
I'm processing an XML file and trying to get the value stored in the ProductURL
attribute of a node.
I'm doing this:
c:set var=valuex:out select=@ProductURL//c:set
When I output the value of @ProductURL , with just x:out, I get this:
This worked! Thank you.
Kris Schneider [EMAIL PROTECTED] wrote:
x:out is doing the escaping by default. Try:
c:set var=valuex:out select=@ProductURL
escapeXml=false//c:set
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
Hello,
I am trying to read a value that is generated inside an XSLT file
(session_test.xsl ) , in to the JSP file (session_test.jsp) that contains the
code to transform the XML (session_test.xml)
I want to store the value of sub-node , and the value of the generated id as
session
Schneider [EMAIL PROTECTED] wrote:
If you store the result of your transform in a var:
Then you can use / with an XPath expression to grab what you need.
Will that help or have I misunderstood what you're trying to do?
Quoting Rashmi Rubdi :
Hello,
I am trying to read a value
Hello,
I searched everywhere for a solution, but couldn't find an answer to this
scenario:
If I output the value of the attribute l_id as follows, the correct output -
attribute's value - is being displayed
x:out select=$transformed/Products/Product[1]/@l_id/
However, If I
PROTECTED] wrote:
Rashmi Rubdi wrote:
... but I still get the error
SAXParseException: Content is not allowed in prolog.
Can you create a simple test case WAR that demonstrates the error?
If so, post it somewhere and we can take a look...
--
Hassan Schroeder - [EMAIL
were added to my
projects\lib folder
If there's a way to specify these jar files in the project's lib folder
instead of in Tomcat's common/lib folder and make this work, it will help,
since I don't have permissions to modify Tomcat's common/lib in the production
server
Rashmi Rubdi [EMAIL
Well, thank you Hassan and everybody for helping out.
I had problems also with ELs, they were not evaluating. This problem got
solved after i moved jstl.jar and standard.jar from the project/WEB-INF/lib to
Tomcat_home/commons/lib.
I will try out the fresh install of Tomcat and also clean up a
files.
-Regards
Rashmi
Eric Haszlakiewicz [EMAIL PROTECTED] wrote:
On Fri, Jul 21, 2006 at 03:04:32AM -0700, Rashmi Rubdi wrote:
Hello,
I have already searched on the Internet and this mailing list for an answer
to this error message:
[Fatal Error] jstl::1:1: Content
; %
%@ taglib prefix=x uri=http://java.sun.com/jsp/jstl/xml; %
Hassan Schroeder [EMAIL PROTECTED] wrote:
Rashmi Rubdi wrote:
There might be something wrong on what I have in my web.xml , compared to
what's in the JSP
http://java.sun.com/jstl/fmt
/WEB-INF/tld/fmt.tld
http://java.sun.com
Hello,
I have already searched on the Internet and this mailing list for an answer
to this error message:
[Fatal Error] jstl::1:1: Content is not allowed in prolog.
Most of the answers so far seemed to indicate that theres a special BOM
character that is invisible to most
ag,if it's there.Kind regards,Joachim Kessel-Original
Message-From: Rashmi Rubdi [mailto:[EMAIL PROTECTED]Sent: Freitag, 21. Juli 2006 12:05To: taglibs-user@jakarta.apache.orgSubject: Content is not allowed in prolog. - text editor for Windows XPthat shows special characters before the prologHel
68 matches
Mail list logo