Hello,
Does anyone know good workaround?
Environments
==
Redhat 7.2 Japanese
j2sdk-131_02
jakarta-tomcat-3.2.4
Brief description
==
I use test.jsp which call include file (include.jsp) as include file.
And charset is defined as euc-jp in that include
, 2002 4:02 PM
Subject: include file outside the web server
> Hello.
>
> I want store the user and the password, for access a database, in a
> file. And for security reasons I want to put outside the web directories.
>
> Its posible to do this with JSP ?.
> (I try with include
Hello.
I want store the user and the password, for access a database, in a
file. And for security reasons I want to put outside the web directories.
Its posible to do this with JSP ?.
(I try with include, but is relative to the page, and it seems is not
possible to do this).
Maybe there is a be
Hello Garann!
Two opening braces, one closing.
Wish every trouble in life was that easy!
MGR> <%@ page session="true" import="java.util.*" %>
MGR> <%
MGR> Vector allLines = (Vector) session.getValue("book.story");
MGR> if (allLines != null && (allLines.size() > 0)) {
ce
> [mailto:[EMAIL PROTECTED]]On Behalf Of Means, Garann R.
> Sent: Friday, January 25, 2002 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: Try/catch errors from include file
>
>
> Hi again,
>
> I have a simple application, one jsp as an include in the
> other, with a form
&
'finally'.
C:\Tomcat\jakarta-tomcat-4.0\work\localhost\StoryWeb\All$jsp.java:106: '}'
expected.
3 errors
I went and looked at the compiled jsp, and it's fine - one 'try', one
'catch', and one 'finally'. The files ends at line 105. The 'try&
I don't know for sure. But can you try out.flush() right before you perform
the include? Perhaps that will help.
-jmc
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAI
Hi all,
i have a jsp page like the follwoing
<%@ include file="file" %>
but problem is that the directory and the file name will be known to me during runtime
only.
i cannot use tag because i am using jsp1.1 in VAJ3.5.3
the jsp1.1 compiler understands as a tag libr
Status Distribution July 13, 2001 18:43:26
The message regarding "change html form elements within a <%@ include file
fileex.html>" sent on July 13, 2001 18:43:26 was sent by
Status Recipient
TypeTo
Native Name
Please ignore the majority of my previous reply, did not read the message
close enough. sorry.
The best method would be to use the javascript, unless you want to change
the html into a jsp and do a
instead of doing the include file directive.
Joseph Karau
Kingland Systems
[EMAIL PROTECTED
TED]
Subject: change html form elements within a <%@ include file
fileex.html>
this is my code:
<% response.setHeader("Pragma","no-cache");%>
<%@ page import="java.io.*" %>
<%@ page import="javax.servlet.*"%>
<%@ page impo
IL PROTECTED]]
Sent: Friday, July 13, 2001 12:56 PM
To: [EMAIL PROTECTED]
Subject: change html form elements within a <%@ include file
fileex.html>
this is my code:
<% response.setHeader("Pragma","no-cache");%>
<%@ page import="java.io.*" %>
<%@ p
tp.HttpSession"%>
<%@ page import="java.io.IOException"%>
<%@ page import="java.io.*"%>
<%@ page import="java.net.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.Properties"%>
<%@ page import="java.
tp.HttpSession"%>
<%@ page import="java.io.IOException"%>
<%@ page import="java.io.*"%>
<%@ page import="java.net.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.Properties"%>
<%@ page import="java.
hi,
[EMAIL PROTECTED]
Do Take Very Good Care Of Your Health
- Original Message -
From: "manoj nahar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 3:50 PM
Subject: <%@ include file or hi there,
>
> can someone please suggest when
Hi
<%@ include file="pagename.jsp" %> is an include directive. The specified
file gets inserted into the generated servlet. If you change the content of
the included file it may not get updated because this is not part of the JSP
spec. You may have to update the main jsp pa
hi there,
can someone please suggest when to use
<%@ include file="pagename.jsp" %>
and when to use
,
thanks in advance
manoj nahar
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signo
do?
The solution is simple. In JSP 1, replace this,
<%! String msg ="Hello"; %>
with this,
<% request.setAtrribute("msg","Hello"); %>
In second.jsp, replace this,
<%= msg %>
with this,
<%= request.getAtrribute("msg") %>
Rob
- Origin
Hi All,
I guess we had this discussion a while ago. For passing parameter to include
files somebody suggested this way :
---JSP 1
<%! String msg ="Hello"; %>
--- second.jsp
<%= msg %>
-
It still complaining that variable "msg" does not exist. Am I doing anything
wr
We use it..it works fine.
<%@ include file="/path/file.jsp" %>
Using it now on IIS4.0 and JRUn 2.3.3 build 157 (and even build 152). It is
part of JSP 1.0 spec.
-Original Message-
From: Sachin S. Khanna
To: [EMAIL PROTECTED]
Sent: 12/20/2000 10:13 PM
Subject: Re: Direc
gt;
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 20, 2000 5:55 PM
Subject: Directive <%@ include file=" " %> in JRun 2.3.3
> Has someone used <%@ include file %> directive with JRun 2.3.3
> server (JSP 1.0) ?
>
>
Has someone used <%@ include file %> directive with JRun 2.3.3
server (JSP 1.0) ?
It doesn't work. Does it?
Than you
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JS
Hello,
I have one jsp page say index.jsp. I use Apache 1.3.12 and Tomcat 3.1
version on win98.
code for index.jsp is below.
Include Problem
some html + jsp code
<%@ include file="include/myinclude.jsp" %>
some html + jsp code
<%@ include file="include/myinc
name a.html to a.jsp
-Original Message-
From: Kishor K [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 5:30 AM
To: [EMAIL PROTECTED]
Subject: Help on <%@ include file=...%>
> hi,
>
> i need help on <%@ include file=...%>
>
> 1) i have a fi
yes
-Original Message-
From: Ehab Taleb [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 5:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Help on <%@ include file=...%>
name a.html to a.jsp
-Original Message-
From: Kishor K [mailto:[EMAIL PROTECTED]]
Sent: Th
> hi,
>
> i need help on <%@ include file=...%>
>
> 1) i have a file a.html in root directory.
>how can include this file in a jsp file in a subdirectory of root?
>
> 2) i have a file b.jsp in root/design directory.
>how can include this file i
;[EMAIL PROTECTED]>
Sent: Thursday, December 07, 2000 2:28 PM
Subject: wht is the difference btw include file and include page?
> hey guys
>
> wht is the difference btw include file and include page?
> thx for ur support
> manish joshi
>
=
In clearer words
> <%@ include file = "filename" %>
does compile time inclusion i.e. when the jsp is called for the first time
and is being converted into a servlet
where as
>
results into runtime inclusion i.e whenever the jsp is run.
Have a nice day.
With reg
then?
MJ
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://
nope
> -Original Message-
> From: Manish Joshi [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, December 07, 2000 12:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: wht is the difference btw include file and include page?
>
> thx Parinitha
> hey r u frm B
in an include file you can include only static content.
<%@ include file = "filename" %>
in an include page you can include either static or dynamic content
> -Original Message-
> From: Manish Joshi [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, December 07, 200
thx Parinitha
hey r u frm Bombay(just curious)
MJ
- Original Message -
From: Parinitha Rao <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 07, 2000 12:16 PM
Subject: Re: wht is the difference btw include file and include page?
> in an include file
hey guys
wht is the difference btw include file and include page?
thx for ur support
manish joshi
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTE
Use this
<%@ include file="../includefile.jsp" %>...
> -Original Message-
> From: Hee Meng, Poh [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, December 06, 2000 3:17 PM
> To: [EMAIL PROTECTED]
> Subject: [JSP-INTEREST] Help on <%@ include file=
Hi,
Need help on the following :
How can I include a file using <%@ include... that's not in the same or
child directory. Can't seem to use
<%@ include file="../../includefile.jsp" %>...
Hi
try
Regards
Sanjay
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of David Reck
Sent: 30 August 2000 05:09
To: [EMAIL PROTECTED]
Subject: Using the include file tag
Does anyone know how to use the
From: Vinod [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 5:31 AM
To: [EMAIL PROTECTED]
Subject: Re: Using the include file tag
Importance: High
Try <%@ include file="<%= variable name %>.jsp" %>
Vinod
-Original Message-
From: David Reck [mailto:[EMAIL PR
lf Of David Reck
Sent: Wednesday, August 30, 2000 12:09 AM
To: [EMAIL PROTECTED]
Subject: Using the include file tag
Does anyone know how to use the <%@ include file="" %> tag with a variable
as
the file name. I need to be able to select the file to include at runtime
and I
thought
< tag with a variable as
the file name. I need to be able to select the file to include at runtime and I
thought assigning a variable to the file name would be the easiest way.
Thanks,
Dave>>
Hi Dave,
I don't believe you can use a variable with the <%@ include file="
Try <%@ include file="<%= variable name %>.jsp" %>
Vinod
-Original Message-
From: David Reck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 9:39 AM
To: [EMAIL PROTECTED]
Subject: Using the include file tag
Does anyone know how to use the <%@ incl
Does anyone know how to use the <%@ include file="" %> tag with a variable as
the file name. I need to be able to select the file to include at runtime and I
thought assigning a variable to the file name would be the easiest way.
Thanks,
Dave
***Internet Email
Behalf Of Hensley, Zachary
Sent: Thursday, July 13, 2000 3:08 PM
To: [EMAIL PROTECTED]
Subject: Re: include file problem
Well I guess anything we ever need to know is in a book somewhere, so why
the hell do we need this distribution list...
-Original Message-
From: Jim Preston [mai
Well I guess anything we ever need to know is in a book somewhere, so why
the hell do we need this distribution list...
-Original Message-
From: Jim Preston [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 29, 2000 5:11 PM
To: [EMAIL PROTECTED]
Subject: Re: include file problem
le" variable can be obtained from
anywhere.
--Jim Preston
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of ray
Sent: Thursday, June 29, 2000 12:23 AM
To: [EMAIL PROTECTED]
Subject: include file problem
i
i would like to include a htm file in my jsp
i store the url in session, and retreive it to the include file parameter.
but it will generate error
e.g <%@ include file=myFileName%>
in this case, i need to save the included file path as a variable,
how can i do this?
thank
I'm stuck wiith this too. Pls. help.
helen ge
<[EMAIL PROTECTED]To: [EMAIL PROTECTED]
M> cc:
Sent by: A Subject: trouble with<%@ include
file=
served.
when the child returns, the parent do shows the correct system file date
but when you click the footer other two links I got the error message "
response already commited"
Method 2: using <%@ include >
partent code:
<% String filename=request.getPath
hi .
i guess your tag is after the <%@ include...>directive
first instantiate the bean then include the page i hope the bean with the same name
would be visible
regds
piyu
Liza J Alenchery wrote:
> Hi
>
> I have a jsp file(file1.jsp) which has a <%@ include file ="file2
Use:
jsp:include is processed at the request time.
ServletShop: java server side programming
http://coldjava.hypermart.net
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
===
files in jsp, not using<%@
include file="filename"%>?
"Manty, George" wrote:
> It appears to me as though there is no way to do this. I think this
> functionality should be added to the JSP Spec.
>
It is, sorta ... see below.
>
> Right now, the only wa
ow,
> do u have anyway to choose a file at runtime?
>
> TIA,
>
> Arnab
>
> > -Original Message-
> > From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, April 20, 2000 2:28 AM
> > To: [EMAIL PROTECTED]
> > Subject
o choose a file at runtime?
TIA,
Arnab
> -Original Message-
> From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, April 20, 2000 2:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to dynamicaly include files in jsp, not using<%@
> include f
ine code and you can only do this if you are using an open source JSP
> engine.
>
> Anyone, have any other possible solutions?
>
The <%@ include file="..."%> directive is processed at the time your JSP page is
compiled, not when it is executed. Therefore, there is no opp
o: [EMAIL PROTECTED]
> Subject: How to dynamicaly include files in jsp, not using <%@ include
> file="filename"%>?
>
> How to dynamicaly include files in jsp, not using <%@ include
> file="filename"%>?
>
> I can not use it because I get the file
iles in jsp, not using <%@ include
file="filename"%>?
How to dynamicaly include files in jsp, not using <%@ include
file="filename"%>?
I can not use it because the filename i get it dynamicaly.
Thaks
=
leName is a variable defined somewhere in the JSP file.
I appreciate the input,
George
-Original Message-
From: Shawn Alexander [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 19, 2000 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: How to dynamicaly include files in jsp, not using <%@
inc
and is
populated as a variable in the include file. Since the bean is
evaluated first, the include command should not occur until the variable
has been created. When a user reposts or reloads the page, the bean can
contain a different variable for the include file...remember, a servlets
requestDisp
other possible solutions?
Thanks,
George
-Original Message-
From: Patricio Otamendi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 19, 2000 10:20 AM
To: [EMAIL PROTECTED]
Subject: How to dynamicaly include files in jsp, not using <%@ include
file="filename"%>?
How to dy
Hmm..your right. I can't get it to work too. I do know you can include ANY
file name you want. It inlines the file directly into the compiled .class
file. I name all my includes with .inc. There is a reason for this as well.
If you name them .jsp, when the include goes to "inline" it, because its
jsp file.
Paul
Kevin Duffey writes:
> You could do:
>
> <%@ include file="<%= someStr %>"%>
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTE
You could do:
<%@ include file="<%= someStr %>"%>
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
- Original Message -
From: Patricio Otamendi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 19, 2000 4:42 PM
Subject: How to dynamicaly include files in jsp, not using <%@
include file="filename"%>?
> How to dynamicaly include file
How to dynamicaly include files in jsp, not using <%@ include
file="filename"%>?
I can not use it because I get the filename dynamicaly.
Thaks
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "
How to dynamicaly include files in jsp, not using <%@ include
file="filename"%>?
I can not use it because the filename i get it dynamicaly.
Thaks
===
To unsubscribe: mailto [EMAIL PROTECTED] with bo
ril 12, 2000 11:57 PM
Subject: <%@ include file ="filename" %> problem
> Hi
>
> I have a jsp file(file1.jsp) which has a <%@ include file ="file2.jsp" %>
> in it. I am getting compilation errors saying that the beans that I
> included in file1 can
Liza,
Check if you are referring to the bean with the same id in file2. Or problem
could be with your classpath. Check if you've set it properly for the bean.
Also check if you are refering file2 in file1 with proper URL. I can't think
of any other reason. There is no need to put in file2.
Vis.
Just provide an example of how you are calling your Bean from you jsp file.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun
Hi
I have a jsp file(file1.jsp) which has a <%@ include file ="file2.jsp" %>
in it. I am getting compilation errors saying that the beans that I
included in file1 cannot be seen in file2. So I put in file 2.
Then I get the error 'Cannot forward as OutputStream or Wr
[EMAIL PROTECTED]
Subject: RE: include file with multiple functions ?
You can define methods that you can use inside JSPs. You to use
declearations and not scriptlets to it:
<%!
public String foo() {
return "Hello World";
}
%>
However... I do
include them in another JSP.
-Original Message-
From: Maggs Andy [mailto:[EMAIL PROTECTED]]
Sent: 28 March 2000 11:44
To: [EMAIL PROTECTED]
Subject: Re: include file with multiple functions ?
As far as I know, you cannot define Java functions in JSP. It would be
better to put the func
IL PROTECTED]]On Behalf Of Decancq, Michiel
Sent: 28 March 2000 10:38
To: [EMAIL PROTECTED]
Subject: include file with multiple functions ?
Hello,
I would be very glad to receive an answer to the following question :
How can I remove all the coding in a JSP-page to a JSP page that I can
include ?
Hello,
I would be very glad to receive an answer to the following question :
How can I remove all the coding in a JSP-page to a JSP page that I can
include ? For example, say that I have the following JSP-page:
<%=foo1();>
<%=foo2();>
<%=foo3();>
Within the body-tags, I want to show
Hi everybody...
Does anyone know how can I go down into a certain directory on a UNIX box
with JWS to go search a certain JSP page.
I have been using this sentence and it works well but only under Windows NT
with JWS,
<%@ include file="../includes/query.inc" %>
This is
s not supported by this URL
If i use <%@ include file= everything is OK.
I dont get it!
Can anyone pleas help?
THank you!
Telmo
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST&
> In JSP file, if you include a dynamic jsp file in your jsp like this:
>
>
>
>
>
>
>
>
>
>
> In the file NTSCframeTop.jsp how can you access or process the parameters?
>
> Regards, Ilana.
>
==
Hello all,
Is it possible (if so...how) to set a variable in a JSP page (i.e.. String
headingText = "Login") and then access that variable in an include file (<%=
headingText %>)?
Thanks for the help,
Blaze.
Steve Blazevich
Phone: 303-967-0402
Fa
KT3 4LH E-Mail: [EMAIL PROTECTED]
England
---
Original Message
Hi All,
I am trying to include a file using
<%@ include file="/si/meera/errorpage.jsp" %> but it do
meera nayak wrote:
> Hi All,
> I am trying to include a file using
>
> <%@ include file="/si/meera/errorpage.jsp" %> but it doesn't seem to be
> working .Even doesn't work.There are no
> errors thrown by the browser.but the inclusion do
Well i guess the include file directive accepts only relative url's & not
absolute ones.
Try giving a relative url.
Hope this helps.
Have a nice day.
With regards,
Sachin S. Khanna.
- Original Message -
From: meera nayak <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
S
Hi All,
I am trying to include a file using
<%@ include file="/si/meera/errorpage.jsp" %> but it doesn't seem to be
working .Even doesn't work.There are no
errors thrown by the browser.but the inclusion doesn't
{
params.put("CAPTION", "Operating System");
params.put("CONTROL_ID", "MySelection");
params.put("NONE_TEXT", "None");
%>
<%@ include file="Details.jsp" %>
<% } %>
-- Details.jsp
<%
E
I am having problems getting the include directive to work
using Redhad 6.0 Apache 1.3.6 & JRun 2.3.3. There was some discussion
here some time ago about problems with the include. Does anyone know if
the problem exists under this
configuration
Pekowsky Larne wrote:
> > I try to include different pages with the same prefixe and suffixe but with
> > a variable between:
> >
> > for (int i=1; i<10; i++)
> > <%@include file= "something" + i + ".html" %>
>
> There'
> I try to include different pages with the same prefixe and suffixe but with
> a variable between:
>
> for (int i=1; i<10; i++)
> <%@include file= "something" + i + ".html" %>
There's no way to do this at translation time, but you could
UJsp and JRun, they're called response, and request.
Does anyone know if this is specified in the JSP spec?
Eoin Curran.
> -Original Message-
> From: Arnaud Vandyck [mailto:[EMAIL PROTECTED]]
> Sent: 27 August 1999 15:22
> To: [EMAIL PROTECTED]
> Subject: howTo <%@ incl
riate places.
Hope this helps explain why what you want to do isn't working. More
information about what you are trying to accomplish might help. For the
for loop example in the body of your message, you could simply do the
includes inline, like
<%@include file= "som
I try to include different pages with the same prefixe and suffixe but with
a variable between:
for (int i=1; i<10; i++)
<%@include file= "something" + i + ".html" %>
HOW CAN I DO THAT?
=
87 matches
Mail list logo