This is a weekly informative posting to the jsp-interest list.
Before asking questions of a general nature, please check out the
resources available online to see if your question already has an
answer. The best place to start
Hi all,
How can I put all my web files in a folder other than public_html so that
web server picks them up from custom folder.
If any one can help me in resolving it.
thanx.
jitendra maan
===
To unsubscribe: mailto
if you are using
javawebserver -
change the document root using the admin interface
or
u can change the following property from doc.properties
doc.root=public_html
set doc.root to specific directory
Iplanet -
just change the following property in obj.conf
NameTrans fn="document-root"
Hi Nivedita,
thanks a lot. I have changed the properties. Its fine.
jitendra maan
-Original Message-
From: Nivedita [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 2:04 PM
To: [EMAIL PROTECTED]
Subject: Re: javawebserver
if you are using
javawebserver -
change the
Hi.
I want to ask questions about the session object.
1) Can we prevent the creation of session objects in jsp
or are they automatically created, i.e, session creation can
not be handled by the programmer.
2) If I want to use the session object ,the server sends the
Hi all,
I want to send some parameter from a servlet to a JSP, I can call jsp from
servlet with this code that I write In doget of servlet but how can I set
"Req" for this JSP?
RequestDispatcher rd =
getServletContext().getRequestDispatcher("//CalledJSP.jsp");
rd.forward(req, resp);
Hi,
I have a problem, perhaps a trivial problem. I have a jsp page with a form
wich only contains hidden fields. I need to submit such form automatically,
without any user interaction.
There is some special value in the tag to do this action ?
input type="submit" value ...
There is a
NO limit at all. You can have as many lines of code as you want.
try this simple one an tell us if it crashes.
% out.println("hello world"); %
or % =("hello world") %
If there is still problem maybe you have not configured JRun properly.
I am using JRun myself and everything is fine.
Hai,
I think this can be done using session variable. What all parameters u
want to pass can be added to this session using either putValue or
setAttribute methods and then call the jsp. In jsp u can access this session
object
and get those parameters.
regards,
Srikanth Jagrothu
Software Engineer
Hi.
I want to ask questions about the session object.
1) Can we prevent the creation of session objects in jsp
or are they automatically created, i.e, session creation can
not be handled by the programmer.
You can put this: %@page session="false"%, and the session object
will
Jitendra,
Which server you are using?
If it is web logic then I can answer your question.
You can customize your web server according to properties file.
You can set environment.
and according to environment you can change or customize you folders.
Jaisinh
-Original Message-
From:
Hi,
This is something which has to be done in javascript. The role of jsp is
over
once the page is sent to the browser. You can only control what is printed
in
the page, for example you can print some javascript based on the user's
request.
In javascript you can give something like
You could use javascript
something like (not tested)
SCRIPT
document.forms[0].submit()
/SCRIPT
at the end of the document.
Geert Van Damme
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Paolo
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: Directive %@ include
After validations you can submit your form using JS(Java script
form.submit());
Regards
jaisinh
-Original Message-
From: Paolo Sommaruga [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 2:43 AM
To: [EMAIL PROTECTED]
Subject: How to submit a form without user interaction
Hi,
if u r asking about refreshing,use meta tag in html
META HTTP-EQUIV="REFRESH" CONTENT=10
here 10 is time in seconds
or
Use client side scripting
document.urformname.submit()
if it is not working
place one submit button with 0px width and height
and use
Thank you Srikanth Jagrothu
- Original Message -
From: "srikanth_jagrothu" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 21, 2000 1:27 PM
Subject: Re: Sending parameter to JSP from Servlets.
Hai,
I think this can be done using session variable. What all parameters
Hi all
I am searching for mod_jserv for AIX 4.3.3, But i am not able to
find any mod_jserv files at tomcat. Where have they moved it to.
Please help.
Regards
John Thomas
===
To unsubscribe: mailto [EMAIL PROTECTED]
Hello there. I have written a Bean that checks on a form validation and
then writes appropriate error messages in a hashtable. I have declared the
hashtable as :
private Hashtable errorMessages = new HashTable().
I call the proper setter and getter methods:
if (something)
{
No
these are same.
-Original Message-
From: Ravi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 20, 2000 9:16 AM
To: [EMAIL PROTECTED]
Subject: Difference between request.getSession() and the default session
object in a JSP page
Is there any difference between a HttpSession
If you just want to forward to another page and pass some parameters you
could use
jsp:forward page="another.jsp"
jsp:param name="hiddenparam1" value="1"/
jsp:param name="hiddenparam2" value="2"/
/jsp:forward
and then extract the values of the parameters from the request object as
Hi Everyone.
I had been searching for good JSP Engine to configure with IIS. I tested
tomcat, ServletExec, JSWDK but they were unable to run Properly. Now I have
installed and configue Resin 1.2.1 with IIS 5.0 as plug-in, Its working
perfectly and it fast as well. I suggest you to try this
Hi,
for reading the values of the input fields in a form I'm using the
jsp:setProperty action.
This action is normally executed after a "submit" by the user (this is
working).
But my problem is that the setProperty action is not executed if the
form leads to a JSP-page, which is performing a
Has anyone benchmarked the Collection classes sort? On small datasets, is
the performance really that bad? If this is being transmitted over the web,
will network latency swamp any delay due to sorting? How much volume
(hits/hour) would you need to get before it began to affect server
Read up the installation guide that comes when you download it.
Try http://jakarta.apache.org for more details.
Its easy :)
-Original Message-
From: Sergio Díaz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 20, 2000 4:21 PM
To: [EMAIL PROTECTED]
Subject: Help with Apache and
I'll check into that. It sounds like maybe overkill to use EJB to do this
simple dynamic page so I don't know if that will fly. I've been looking for
an excuse to use/learn EJB though :) I was thinking more in terms of some
simple JNDI code in a servlet to iterate though any subdirectories under
Thanks , My first question is okay
Looking inside the servlet class created from jsp , if u put
%@page session="true"% , it creates code as
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
Hi people,
I have to import in my jsp page the packages
java.util.* and java.sql.*
I try with a code like this:
---
%@ page import="java.sql.*" %
%@ page import="java.util.*" %
The current date is %= new Date()%
the problem is that the Date class is defined in both sql package and
util package, so the program doesn't know which Date class to call,
either the one from sql package or the util package.
peter choe
Federico Delpino wrote:
Hi people,
I have to import in my jsp page the
It is, you can import as many packets as you think are neccessary.
To avoid the following error type :
% java.util.Date() date = new java.util.Date(); %
the current date is $ =date %
From: Federico Delpino [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification
You may see this for example:
http://coldjava.hypermart.net/servlets.htm
http://coldjava.hypermart.net/servlets/reqtag.htm
ServletShop: java server side programming
http://coldjava.hypermart.net
Get your own FREE, personal
if u want to use Date of util then u give java.util.Date ... while using
it.
Actually ... the compiler gets confused where to pick up from when there are
2 same classes imported
it is definitely legal to import more then one package at a time
Maulik
-Original Message-
From: Federico
I'd break the code between % and %
instead of keeping the entire code in one pair of tag , I broke the tags
%
code
%
%
code
%
And now its working fine
So according to me ..the conclusion is that there is a limit in code between
tags OR there might be some configuration proble m ...
Federico,
You can import multiply packages.. The problem you are having is
java.sql.* and java.util.* both have Date() classes. So you must specify
the fully qualified name. like %= new java.util.Date() % or %= new
java.sql.Date() %
I hope this helps you out.
Omar Thomas
-Original
Thanks Chandralal,
it's works with document.urformname.submit()
Paolo
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Date: Thu, 21 Dec 2000 02:45:57 -0800
From: Chandralal A V [EMAIL PROTECTED]
Subject: Re: How to submit a form without user interaction
To: [EMAIL
Hi,
I am com.oreilly.servlet package for upload a document. When I unzip it
unziping into local drive with classes directory..
I am setting the classpath to c:\classes\com\oreilly\servlet but it is not
working .. I am trying in different ways.. but there is no luck..
I put the jar file
Hi,
I am com.oreilly.servlet package for upload a document. When I unzip it
unziping into local drive with classes directory..
I am setting the classpath to c:\classes\com\oreilly\servlet but it is not
working .. I am trying in different ways.. but there is no luck..
I put the jar file
You have to tell us what JSP engine you are using. Each JSP engine has
different directories for the class files. If you are using Tomcat put them
in the "webapps" directory. If you are using JRun put them in the "servers"
directory.
Hope this helps
From: fau k [EMAIL PROTECTED]
Reply-To: A
Ok lets get things done. So all your class files are in the
c:\classes\com\oreilly\servlet. Is that true? If it is then set the class
path to c:\classes. (without the . at the end) You do not have to enter the
whole class path. If you set the class path to
c:\classes\com\oreilly\servlet then
fau k,
when you want a package to be read into the Java CLASSPATH variable
..you must add the root of the
files to the CLASSPATH. for example if you put the class files at
c:\classes\com\oreilly\servlet; in the classpath you must add 'c:\classes'
.. if you are putting the classfiles at
Hi,
Thank your very much. I am trying to solve this problem this morning
onwards.. Ok I got it..
Thanks alot..
Thanks Regards,
Malla Reddy
From: "Thomas, Omar" [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL
You can try
%@ page import="java.sql.*,java.util.*" %
-Original Message-
From: Panos Konstantinidis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 9:11 AM
To: [EMAIL PROTECTED]
Subject: Re: Hpw to import different packages
It is, you can import as many packets as you
This is probably because Resin allows the use of .jar files (Java
Application aRchive), whereas Tomcat adheres more strictly to the formal
servlet specifications which disallow the use of .jar files.
Instead or .jar files, you will need to use .war files (Web Application
aRchive). Check out the
My whole app is a war file. When the engine starts, it explodes it. Are
you saying I should put my singletons and servlets in a war file under
../WEB-INF/lib?
-CM
-Original Message-
From: Brad Wilson - BTWeb Enterprises [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 2:30
Hi,
Anyone know why 10.20 - 10.00 = 0.13 in Java? Why the
answer is not 0.20??
But, if I try this in JSP page, then its correct. Any solution for this
problem? I need to get the actual figure.
I try in java version 1.1.8, 1.2 and 1.3, they all give me wrong value.
Hi: all
when i run jsp program in jswdk1.0.1, the method response.sendRedirect() throw
java.io.IOException: Socket Closed. The excpetion was thrown when i use jdk1.3, but
when i use jdk1.2.2 the method response.sendRedirect() doesn't throw this exception. I
don't know how to resolve this
hi
im trying to delete a cookie using this :
%
String name1 = request.getParameter("cookieno");
Cookie delCookie = new Cookie(name1,null);
delCookie.setMaxAge(0);
response.addCookie(delCookie);
%
where name1 is the name of the cookie, this piece of code runs fine on
javawebserver, but
hai,
me to experienced the same problem, so its better to
use
jsp:forward instead of response.sendRedirect();
%
if(true){
%
jsp:forward page="url"/jsp:forward
%
}
%
--- jsp_forum [EMAIL PROTECTED] wrote:
Hi: all
when i run jsp program in jswdk1.0.1, the method
response.sendRedirect()
Hello,Can you tell me where to get jrun3.0 and configure it with IIS?
suying
- Original Message -
From: "amar singhal" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 19, 2000 5:44 PM
Subject: Re: JSP Server with IIS
Hi
Jrun 3.0 can be configured with the iis 5.0 as
JRun 3.0 doesn't require IIS any longer. ITs its own application server.
-Original Message-
From: suying [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 10:35 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP Server with IIS
Hello,Can you tell me where to get jrun3.0 and
HAII,
set the classpath to that package
I beleive it will work perefctly.
Jawahar
--- fau k [EMAIL PROTECTED] wrote:
Hi,
Thank your very much. I am trying to solve this
problem this morning
onwards.. Ok I got it..
Thanks alot..
Thanks Regards,
Malla Reddy
From: "Thomas, Omar"
hi,
both java.sql and java.util contains Date class that why u got
"ambiguous class error" so
The current date is %= new Date()% instead this use specifically
The current date is %= new java.sql.Date()% or
The current date is %= new java.util.Date()%
bye
amar
- Original Message -
I am working with JSP 0.92 and I can't update it for compatibility
with other aplication.
Can I use directive %@ include file=" " or something like that.
Is it possible? Which directive do I have to use?
Can I include .jsp files?
Thanks
class Test
{
public static void main(String args[])
{
int j=0,i=0;
i=i;
i=i++;
System.out.println("I : "+i);
}
}
can any one expalin y out put is =0
thankx and reagdrs
"The beauty of life does not depend
54 matches
Mail list logo