Greetings again,
I've noticed a problem with redirect if I have a good chunk of code,
where it won't redirect and I get this log error:
- Root Cause -
java.lang.IllegalStateException
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFacade.java:338
The better pattern is don't use a JSP to issue a redirect (or a forward for
that matter). This is much better suited to a Filter or a Servlet or a
controller component of an MVC framework (like Struts).
Quoting Nic Werner [EMAIL PROTECTED]:
Greetings again,
I've noticed a problem
Nic Werner wrote:
Greetings again,
I've noticed a problem with redirect if I have a good chunk of code,
where it won't redirect and I get this log error:
- Root Cause -
java.lang.IllegalStateException
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect
Increasing the buffer size may only mask the problem. You have to be
careful to understand what is happening: once any content in the buffer
has been commited to the response, a redirect may not be valid.
You definitely need to decide on the view (which redirect you want)
before you get to your
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
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 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
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
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 want to write a page which
will
auto forward to a struts
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
;
//--
/script
...
/head
...
/html
Quoting John MccLain [EMAIL PROTECTED]:
Is there any way to specify that a redirect go into another frame???
We have an outer frame holding a menu, then an inner frame that loads our
pages and each page has a security header.
If the session times out, we
Is there any way to specify that a redirect go into another frame???
We have an outer frame holding a menu, then an inner frame that loads our
pages and each page has a security header.
If the session times out, we get redirected (via our security header) to our
logon page - BUT, our menu still
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
I've added three small files.
Open set.html for a demo.
Good luck!
Martin
-Oorspronkelijk bericht-
Van: John MccLain [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 1 april 2004 0:54
Aan: taglibs user list
Onderwerp: redirect to a frame???
Is it possible to target a frame in a jstl call
, not in the view pages.
-Original Message-
From: Dima Gutzeit [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 4:30 AM
To: [EMAIL PROTECTED]
Subject: Redirect from imported file
Dear list members,
I am expiriencing the following behaviour :
c:redirect/ Tag does not work from
/servlet is not allowed to modify headers or response code.
This means you can't redirect from within an include.
--
Serge Knystautas
President
Lokitech software . strategy . design http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED
Thanx Martin,
I did that just now .
--Ravi Krishna
-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, January 02, 2004 11:13 PM
To: Tag Libraries Users List; [EMAIL PROTECTED]
Subject: Re: using struts for http to https redirect problem in IE6
In general
Hi all,
I'm trying to redirect from http page to https page by configuring the
struts-config.xml. I could do that successfully in a Netscape7.1 browser but
failing to do so in IE6.0.
Please tell me whether there are any browser based settings to be done.If so
where I have to take care
wrote:
Hi all,
I'm trying to redirect from http page to https page by configuring the
struts-config.xml. I could do that successfully in a Netscape7.1 browser but
failing to do so in IE6.0.
Please tell me whether there are any browser based settings to be done.If so
where I have to take
Hi,
Is the c:redirect url=/ equivalent in scriptlets response.sendRedirect() ?
Thanks,
Stef
24 matches
Mail list logo