MSN Photos is the easiest way to share and print your photos: Click Here
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST"
ber 04, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: page directive
hey does anyone know the pure java equivilent of
<%@ include file="/somefile.html" %>?
===
To unsubscribe: mailto [EMAIL PROTECTED] with body
On Wed, 4 Sep 2002, Lai, Kenny wrote:
> hey does anyone know the pure java equivilent of
>
> <%@ include file="/somefile.html" %>?
There isn't a pure-Java equivalent. This is a translation-time directive
that instructs the JSP translator to read and include, in place, another
file; this file is
hey does anyone know the pure java equivilent of
<%@ include file="/somefile.html" %>?
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-
Title: RE: Difference between html meta tag and jsp page directive
Hmm, good
question. Seems worth a shot.
Be sure to
try it with different browsers, and if you run into problems try making the bean
call happen before any data gets pushed to the browser--including
whitespace.
Also, you
may
Title: RE: Difference between html meta tag and jsp page directive
Great. I wasn't aware of the setContentType method. If I take this approach, would it cause
problems if I remove all characterset info,using the page directive, from my jsp
pages and instead insert a bean, which sole fun
It's probably safer to do the page directive rather than meta tag. If you
look at the generated .java file, you'll see that the content type header
gets set before your JSP code even starts executing. In my installation of
Tomcat 3.2.4 it's this line:
response.setContent
Title: Difference between html meta tag and jsp page directive
What is the difference of specifying a characterset in the page directive compared
to the html meta tag. The reason is that I want to define the character set at run-time
using a configuration file.
<%@page contentType=&q
Title: JSP Page directive vs HTML META tag
Is the JSP Page directive, more specifically, <%@page contentType="text/html; charset=tis-620"%>
be equivalent and substitutable with HTML tag
The reason for asking is that I need to use Thai characters for all platforms, Window
Y there is no 'implements' attribute in <%@page > directive? we've extends but we
cant use it direcly, I guess b'coz there's no mutiple inheritance in JAVA. can anybody
throw some light Y these two things are
Why is that?
-Original Message-
From: Andi Anderson [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 1:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Page Directive error
I believe that you have to use the ISO--# not UTF-8 I think what you
are
looking for is ISO-8859-1
I believe that you have to use the ISO--# not UTF-8 I think what you are
looking for is ISO-8859-1
-Original Message-
From: Azania Abebe [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 4:39 PM
To: [EMAIL PROTECTED]
Subject: Page Directive error
I've the following code
I've the following code in my jsp page & when I try to compile the jsp
pages I'm getting an error but if I take out the ";" the page compiles.
Any idea why I'm getting this error?
<%@ page contentType="text/plain; charset=UTF-8 " %>
Thanks!
==
ahfei wrote:
>
> dear all:
>
> i wrote a jsp program , inside using a java bean to access database.i want to
> redirect to another html page when a Exception in my bean,so i use below code ,but
> seems have no helpful.
> <%@ page import="java.sql.*" errorPage="/index.html" %>
> can somebody help
dear all:
i wrote a jsp program , inside using a java bean to access database.i want to redirect
to another html page when a Exception in my bean,so i use below code ,but seems have
no helpful.
<%@ page import="java.sql.*" errorPage="/index.html" %>
can somebody help me?
thanks in advance!
dear all:
i wrote a jsp program , inside use a java bean to access database.i want to redirect
to another html page when a Exception in my bean,so i use below code ,but seems have
no helpful.
<%@ page import="java.sql.*" errorPage="/index.html" %>
can somebody help me?
thanks in advance!
ahfei wrote:
>
> dear all:
>
> i wrote a jsp program , inside use a java bean to access database.i want to redirect
>to another html page when a Exception in my bean,so i use below code ,but seems have
>no helpful.
> <%@ page import="java.sql.*" errorPage="/index.html" %>
> can somebody help m
> Just a quickie - I have placed most of my JSP code into try and catch
blocks,
> but I have also included the errorPage directive.
>
> The problem is the exception is caught and the error page is not called. I
> have even tried a jsp:forward in the catch block.
>
> Should I remove the try and cat
Hi all,
Just a quickie - I have placed most of my JSP code into try and catch blocks,
but I have also included the errorPage directive.
The problem is the exception is caught and the error page is not called. I
have even tried a jsp:forward in the catch block.
Should I remove the try and catch
Consider the following from section 2.7.1 in the JSP 1.1 Specification:
"A translation unit (JSP source file and any files included via the
include directive) can contain more than one instance of the page
directive, all the attributes will apply to the complete translation
unit (i.e.
Consider the following from section 2.7.1 in the JSP 1.1 Specification:
"A translation unit (JSP source file and any files included via the
include directive) can contain more than one instance of the page
directive, all the attributes will apply to the complete translation
unit (i.e.
deliver
content in a given character encoding will be written in that
character encoding. In particular, the contentType attribute of the
page directive describes both the character encoding of the JSP page
and the character encoding of the resulting stream.
[snip]
The contentType attribute must
In looking at the character set handling for the Jakarta JSP compiler
it seems to me there are really three character sets that need be known
to the JSP compiler:
1. The character set of the *.jsp file. Usually this is ISO-8859-1
(ASCII) but might reasonably be EBCDIC on EBCDIC systems.
Your jsp/servlet server probably has some form of -keepgenerated option on it.
Find this, turn it on, and you will be able to see the Servlets (.java file) that
is generated
for you when you compile a .jsp.
When you review the .java file you will see that a try catch block is put in your
_service
Hi,
I was just wondering, as to what the <%@ page errorPage="somePage.jsp"
%> actually do ?
When does this "somePage.jsp" get invoked ? Is it done automatically ?
If I have cases wherein there may be multiple errors for which I wish
to standerdaize the error display, can I use a single "errorpag
Ethan Henry wrote:
> Hi,
>
> Michael Rumpf wrote:
> >
> > Read the FAQ !
> >
> > It is an error in the JSWDK implementation, it must be spelled "imports"
> > instead of "import".
>
> FAQ or no FAQ, it's a bug. They should change the specification or the
> implementation then because they don't ma
Use
<%@ page imports="java.util.*" %>
instead of
<%@ page langage="java" import="java.util.*" %>
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general
Philippe wrote:
>
> <%@ page langage="java" import="java.util.*" %>
>
If you are using the JSWDK-1.0-EA version that was released in June, it had a bug and
recognized the word
"imports" instead of "import". I presume this has been fixed in the JSWDK 1.0 release
that was posted on
JavaSoft's w
Hi,
Michael Rumpf wrote:
>
> Read the FAQ !
>
> It is an error in the JSWDK implementation, it must be spelled "imports"
> instead of "import".
FAQ or no FAQ, it's a bug. They should change the specification or the
implementation then because they don't match. Thanks for the pointer though.
Eth
Philippe wrote:
>
> I have installed the last version of jsp 1.0 reference implementation
> from sun (jswdk-1.0-ea) and I'm experimenting some problems with the
> import attribute in the page directive (I'm using jdk1.2.2) . It seems
> the import attribute is n
I have installed the last version of jsp 1.0 reference implementation
from sun (jswdk-1.0-ea) and I'm experimenting some problems with the
import attribute in the page directive (I'm using jdk1.2.2) . It seems
the import attribute is not interpreted during the compilation of the
jsp
John Moore wrote:
>
> I am in the process of converting from JSP .92 to 1.0 and have run into
> a problem.
> [...]
It's a know bug in JSWDK EA (I believ it's in the FAQ. Use
<%@ page imports="java.util.Date" %>
^
(i.e. plural) until it's fixed.
--
Hans Bergsten [EMA
ath problem, but if I
>change the line to read: <% java.util.Date tempDate = new java.util.Date
>%>, the page compiles.
>
>Has anyone run into any problems using the import option on the page
>directive?
++
| Luc Saint-Elie
May I ask what JSP engine are you using.
Harmeet
> -Original Message-
> From: John Moore [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 20, 1999 11:27 AM
> To: [EMAIL PROTECTED]
> Subject: Problem with import in page directive
>
>
> I am in the process of co
at Date is not a
valid class. At first I thought this was a classpath problem, but if I
change the line to read: <% java.util.Date tempDate = new java.util.Date
%>, the page compiles.
Has anyone run into any problems using the import
the
report will reach the correct party.
We sincerely apologize if this email has caused you any inconveniences.
Best regards,
Novi Forum, d.o.o.
Ljubljana, Slovenia
-The report
In order to display Central European characters, the JSP page directive fails
to recognize them when parsing
When using the ERRORPAGE directive, should only the HTML from the error
page appear in the final generated page?
The beta server I am using doubles up on the tags, pulling the
title from the previous JSP page, then it appends all of the error page HTML.
-Fred
==
37 matches
Mail list logo