() or
getHeaders() methods because the developer is setting
them. The HttpServletResponse interface has
addHeader() and addXXXHeader() methods to add headers
to the response. There is also the containsHeader()
method which returns a boolean.
-Richard
--- "Zhang, Larry (L.)" <[EMAIL PROTECTE
Folks, this may be an off topic question, but I am curious to understand why.
We know that Http protocol has features such as Headers. Both response and request
have HTTP headers. It is easy to get the headers in J2EE from a HttpServletRequest
objects using getHeader() and/or getHeaders() method
If you want to find out which will be next page to go, you can create an ActionForward
object and customize the parameter.
-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 3:35 PM
To: [EMAIL PROTECTED]
Subject: Re: declaring action mappin
uts exception handler could
> grab it.
>
> -----Original Message-
> From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 30, 2003 3:13 PM
> To: Struts Users Mailing List
> Subject: configure default error page in web.xml
>
>
> HI,
>
> I have a req
HI,
I have a request to catch a Java Exception in the servlet and display an error page.
The functionality requires that we display different error message for different
exception.
A way to do this is to put try and catch logic in servlet, and if an Exception is
caught, I do request.setAttribu
pty or not. Test for
titleField.length() > 0 rather than != null.
Mark
-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 12:37 PM
I am using struts 1.1b3. When the validation fails, the error can be shown
on the page using . Now I have a
I am using struts 1.1b3. When the validation fails, the error can be shown on the page
using . Now I have an action form page(say book.jsp, on this page there
is a required field-- book title), I want an error.jsp, when the validation (example,
title field is null) fails, the error page is inv
7 matches
Mail list logo