Hi all
I m using jstl to parse xml in my jsp,
i m facing a strange problem with the uri in %@ taglib
The following code is working fine:
%@ taglib prefix=x uri=http://java.sun.com/jstl/xml; %
c:set var=val value=${requestScope.responseXML} /
The correct URI for JSTL 1.1 is: http://java.sun.com/jsp/jstl/xml
As you've noted, the parse tag would be used like so:
x:parse var=doc doc=${val}/
Make sure you have the proper JAR files for the Standard 1.1 taglib
installed (instead of Standard 1.0).
Make sure that the value of ${val}
i use struts framework in my project,and use the jstl
in the jsp page.now i want to write a page which will
auto forward to a struts action class,but whatever i
use jstl or jsp ,it can't find the url either.
in jstl i use:c:redirect url=SearchAction.do/
and in jsp i use:
jsp:forward
What happens if you go to directly to the page from your browser? Do u
also get a 404? If so, then the problem is with the action mapping and
not the redirect. Perhaps a typo in your struts-config.xml.
Gao Di wrote:
i use struts framework in my project,and use the jstl
in the jsp page.now i
it's ok ah,if i typed page directly,u can write some
sample and try it .
--- Bill Siggelkow [EMAIL PROTECTED]
What happens if you go to directly to the page from
your browser? Do u
also get a 404? If so, then the problem is with the
action mapping and
not the redirect. Perhaps a typo in
Works for me, Gao. I have the following JSP which redirects to an Action
without a hitch.
%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
html
head
titleTest/title
/head
body bgcolor=white
c:redirect url=/ViewStep1.do/
If it isn't obvious yet, try:
c:redirect url=/SearchAction.do/
-Original Message-
From: Gao Di [mailto:[EMAIL PROTECTED]
i use struts framework in my project,and use the jstl
in the jsp page.now i want to write a page which will
auto forward to a struts action class,but
it doesn't work either,i find it's a problem of
struts,but can't find a solution.
--- Karr, David [EMAIL PROTECTED]
If it isn't obvious yet, try:
c:redirect url=/SearchAction.do/
-Original Message-
From: Gao Di [mailto:[EMAIL PROTECTED]
i use struts framework in my
maybe there is something wrong in my config files?
struts-config.xml
action-mappings
action path=/SearchAction
type=com.adt.action.log.SearchAction
name=SearchForm
input=/index.jsp
it comes to your problem.
Bill Siggelkow
[EMAIL PROTECTED]
-Original Message-
From: Gao Di [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 9:25 PM
To: Tag Libraries Users List
Subject: Re: page redirect problem in jstl or jsp?
maybe there is something wrong in my config
List
Subject: Re: page redirect problem in jstl or jsp?
maybe there is something wrong in my config files?
struts-config.xml
action-mappings
action path=/SearchAction
type=com.adt.action.log.SearchAction
name=SearchForm
i use struts framework in my project,and use the jstl
in the jsp page.now i want to write a page which will
auto forward to a struts action class,but whatever i
use jstl or jsp ,it can't find the url either.
in jstl i use:c:redirect url=SearchAction.do/
and in jsp i use:
jsp:forward
I don't know if this is related to your problem but JSTL 1.0.x binary
release came bundled with a xalan and xerces implementation. Different
implementations of the xml classes also exist in JDK 1.4.2 which maybe
causing a conflict. The conflicts however don't typically occur on
standard.jar
Hello
I have a problem with JSTL 1.0 and Weblogic 8.1 SP2. I
have put the libraries (standard.jar and jstl.jar) in
the APP-INF/lib (it is obligatory to put all the libs
here. Norms of the host provider...) of the EAR and in
Windows2000 with JDK 1.4.1 it works but in Solaris 8
with JDK 1.4.2
Hi,
I've used JSTL 1.0 before, and am trying to write a little app in 1.1 now.
I'm using the Tomcat that I got with JWSDP 1.3 (which is v 5). The examples
that come with WSDP work, but when I'm trying to write something on my own,
or even copy the same code to a page of my own, it doesnt work.
Make sure you're using a Servlet 2.4 web.xml. If you're using a Servlet 2.3
web.xml, then the only RT expression that will get evaluated is a JSP
expression (%= ... %). An EL expression will be treated as a literal string,
hence all the ${i} output. Of course, if your app also needs to work with
i've got an utf-8 encoded xml file (test.xml) with several versions of an
umlaut character, like
this:
?xml version=1.0 encoding=UTF-8?
aü #x00FC;/a !-- this should both be equivalent to uuml; --
i want to apply a simple xsl transformation (test.xml) to html, like this:
?xml version=1.0
17 matches
Mail list logo