Re: page directive

2002-09-04 Thread Martin Gainty
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"

Re: page directive

2002-09-04 Thread Bhiogade, Mittal S (SUPP)
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

Re: page directive

2002-09-04 Thread Shawn Bayern
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

page directive

2002-09-04 Thread Lai, Kenny
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-

Re: Difference between html meta tag and jsp page directive

2002-01-11 Thread Joe Cheng
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

Re: Difference between html meta tag and jsp page directive

2002-01-11 Thread Peter Claesson (EUS)
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

Re: Difference between html meta tag and jsp page directive

2002-01-11 Thread Joe Cheng
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

Difference between html meta tag and jsp page directive

2002-01-10 Thread Peter Claesson (EUS)
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

JSP Page directive vs HTML META tag

2001-08-16 Thread Peter Claesson (EUS)
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

no 'implements' in page directive

2001-03-23 Thread suresh babu (Bawa)
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

Re: Page Directive error

2001-03-23 Thread Azania Abebe
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

Re: Page Directive error

2001-03-23 Thread Andi Anderson
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

Page Directive error

2001-03-23 Thread Azania Abebe
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! ==

Re: Page Directive problem. send again

2000-04-23 Thread Hans Bergsten
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

Page Directive problem. send again

2000-04-23 Thread ahfei
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!

Page Directive problem

2000-04-21 Thread ahfei
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!

Re: Page Directive problem

2000-04-21 Thread Hans Bergsten
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

Re: Error Page Directive

2000-03-17 Thread Mike McKechnie
> 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

Error Page Directive

2000-03-16 Thread Farrin, Martin A
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

Spec Question on the Page Directive

2000-01-19 Thread Rus Duderstadt
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.

Spec Question on the Page Directive

2000-01-17 Thread Rus Duderstadt
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.

Re: The contentType attribute to the 'page' directive.

2000-01-16 Thread Preston L. Bannister
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

The contentType attribute to the 'page' directive.

1999-12-30 Thread Preston L. Bannister
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.

Re: The Error Page Directive

1999-11-29 Thread Tom Preston
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

The Error Page Directive

1999-11-29 Thread Masaoud
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

Re: troubles with the import attribute in the page directive

1999-08-20 Thread Craig R. McClanahan
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

Re: troubles with the import attribute in the page directive

1999-08-20 Thread Bret Goldsmith
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

Re: troubles with the import attribute in the page directive

1999-08-20 Thread Craig R. McClanahan
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

Re: troubles with the import attribute in the page directive

1999-08-20 Thread Ethan Henry
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

Re: troubles with the import attribute in the page directive

1999-08-20 Thread Ethan Henry
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

troubles with the import attribute in the page directive

1999-08-20 Thread Philippe
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

Re: Problem with import in page directive

1999-07-25 Thread Hans Bergsten
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

Re: Problem with import in page directive

1999-07-20 Thread Luc Saint-Elie
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

Re: Problem with import in page directive

1999-07-20 Thread Harmeet Bedi
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

Problem with import in page directive

1999-07-20 Thread John Moore
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

[Fwd: page directive bug?]

1999-07-14 Thread Primož Hrvatin
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

Erro Page Directive

1999-04-30 Thread fred muhlenberg
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 ==