Hi,
First of all why u want to write return. As when ur page converts to
Servlets(Aplication auto do this), the code comes in service method. And
when u use explicitly return it will (Servlet)not properly do its work so
stop execution.
If u will not use return it will ultimately stops here
For things like this, I would suggest you check the book Instant Java Server
Pages from Osborne
(http://www.osborne.com/program/instant_javaserver.htm). The book has a good
collection of ready to use codes.
Mio Nino P. Marquez
- Original Message -
From: "prasanjeet" [EMAIL PROTECTED]
Hi,
I'm not sure that your zip file is being cached somewhere, but try to take a
look to ensure that you have worked with the same file.Maybe you have edited
a file with same name but in different path.
Regards.
-Original Message-
From: Arun Prakash [mailto:[EMAIL PROTECTED]]
Sent:
Hi ,all
Now I have a problem -- I want to make a JavaBean to send netnews mail
.the netnews mail not only include Texts but also include pictures just
like an html file. how can I do now? somebody can help me ? I want to get
some source codes about sending such mail.
Grands
Johnson
Hi,
We need to install our JSP project into a server wich only supports
Servlets. I supose that is possible to call the Servlets generated from
the JSP pages and Java Beans directly like a Servlet, placing them in
the directory "servlets". Does anybody know how?
Thanks!
Pau García
Hamid :
Firstly thanks for your kindness to reply.
I want to use "return " in my program because there are some complicated
calculation in
the service method. The situation is just like this :
if ( A ) {
html
...
/html
return;
}
do other
I am not sure, but I think that you hgave to return a value (for example
return 1, or return true - if your method is of type boolean).
Now if you just want to exit the method (or a block of code) you can use
the break statement.
Hope this helps.
Panos
From: Mengyuan Yuan [EMAIL
Hi!
Which JSP Server is the best for JSP pages and to administer on Windows
2000.
Zahid Khan.
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Hi all,
We bascially will have to set some configurations in the
properties of the JSP's in the webserver and when the Jsp is executed from
the browser with webserver started ,it picks up the path specified in the
property files and places the relavent servlet in specified path of
Pes ta re Kostadinidi ;-)
Manos
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Panos Konstantinidis
Sent: Tuesday, December 05, 2000 11:51 AM
To: [EMAIL PROTECTED]
Subject: Re: How to use key words
Hi,
ßWe need to install our JSP project into a server wich only supports
Servlets. I supose that is possible to call the Servlets generated from
the JSP pages and Java Beans directly like a Servlet, placing them in
the directory "servlets". Does anybody know how?
ßThanks!
Pau García.
Thanks I'll give it a go !
Richard
-Original Message-
From: Yogeeta_Raghunathan [SMTP:[EMAIL PROTECTED]]
Sent: Sunday, December 03, 2000 9:34 PM
To: [EMAIL PROTECTED]
Subject: Re: IllegalStateException
You could prevent the user from clicking the link many times thru
Hi, all :
I write too jsp file to test forward:
File 1 : test10.jsp10
jsp:forward page="/doc/test9.jsp10"
jsp:param name ="today" value="Tuesday " /
/jsp:forward
File 2 : test9.jsp10
html
head
%
String str =
Hi,
I am Rajan, I joined the listing in recent times. I am
finding this listing very helpful. I am using a bean
with session scope, in my JSP page. At the end of the
interraction, I want to close the session. When I find
that it is the last thing to be displayed I am closing
the session using:
hi
how can i retrieve a value from the url , im using
String id = request.getQueryString();
Suppose
http://localhost/index.jsp?code=12345
if i write the above code,then the value of id is code=12345 which i do
not want, i only want the value ie 12345, how do i achieve this?
Thanx
Varun
Pau,
basically you need to specify mappings for the generated servlets, so they
can be accessed by the same uri as JSPs would be. Then you also need the JSP
runtime in your classpath.
An exact way how to do this may be very dependent on your server. If your
server supports the servlet 2.2
Hi,
When creating a VariableInfo object to define custom implicit objects for a
tag handler, the constructor needs a boolean value which triggers the new
definition of the scripting variable in the resulting .java file.
By setting this parameter to 'true', the scripting variable is ALWAYS
I happened to the problems in my application,would you please give me
some idea?
one feature for my application is:cut the branch from the tree in the
upper frame and show the cutted branch in the bottom frame.So the upper
frame will be upper.jsp,the bottom frame will be bottom.jsp.
When the
use request.getParameter("code") this will return you the value you required...
Jaspreet Singh
Programmer/Analyst
IIS.
Varun wrote:
hi
how can i retrieve a value from the url , im using
String id = request.getQueryString();
Suppose
http://localhost/index.jsp?code=12345
if i write the
hi guys
i am confused !
whats the difference between stateless session bean
and state bean?
whats the features of statless session bean?
thanks in advance
===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
All the configuration (for server name, port number etc.,) in apache is done
in httpd.conf file. Now, if you want your apache server to respond to
requests made to http://www.somename.com instead of your actual machine
name (which I am assuming is) http://psc71, then, that needs to be handled
by
I met this once before. I guess when JSP is coverted to Servlet, the 'Return'
statement can't
work anyhow. I changed the way of coding and removed the 'Return' statement. Why not
try
coding without 'Return'?
If your code is like this:
if ( A ) {
html
...
/html
Hi
I need to have a Servlet which reads and sends data in XML through http. Can
anyone tell me any sample code on the web or a book to approach to this
problem.
Thanx
_
Get more from the Web. FREE MSN
Hi!
I am new to JSP technology. I am using IIS 5.0 with Win2000. I want to build
an application in JSP (website). Which JSP Server is the best in this
situation and is there any add-on available for IIS to support JSP?
Thanks in advance.
Zahid Khan.
Hm. Are you using Sun's JDBC-ODBC brigde by any chance?
-Original Message-
From: prasad bhosale [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 01, 2000 2:06 PM
To: [EMAIL PROTECTED]
Subject: Dr.Watson,Help Please!!!
Hi all,
I am running a JSP file on tomcat with apache-tomcat
hi guys.
a question for the concept of entity bean .
i want to know the meaning of ejbPostCreate method.
whats that for?
and i am confused if ejbFindByPrimaryKey method will be called
by container automatically. if so. when?
thanks in advance
hi
go to http://www.xml.com there are lots of resources
or to http://www.alphaworks.ibm.com
br
marco
-Original Message-
From: EXT Mohammed Sharif [mailto:[EMAIL PROTECTED]]
Sent: 05. December 2000 17:40
To: [EMAIL PROTECTED]
Subject: Send and Receive XML Data
Hi
I
how to apply connection pooling on JSP?
**
Alex A. Almero
Analysts Programmer
Information Technology Solutions Int'l Inc.
16/F IBM Plaza Bldg Eastwood City CyberPark Eastwood Ave
188 E. Rodriguez Jr. Ave, Libis, Quezon City, Philippines
Tel. Nos.
Just download and installed Apache 1.3.14 and Tomcat 4.0, startup seems
fine, but failed when run examples under Servlet and JSP:
when run any Servlet example:
HTTP 404 - File not found
when run JSP example:
A Servlet Exception Has Occurred
...
Root Cause:
java.lang.NoClassDefFoundError:
http://java.sun.com/products/jsp/tomcat/
http://java.sun.com/products/jsp/index.html
http://jakarta.apache.org/
-Original Message-
From: Zahid Khan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 03, 2000 11:50 PM
To: [EMAIL PROTECTED]
Subject: Help Required
Hi!
I am new to JSP
I have a couple of pages that allow a user to register on a site. After the
user has gone through the registration process I present them with a page
that will allow them to verify what they have entered before final
submittal. (I am using a Java Bean session to hold the data until final
Yes
From: "Mr. chen" [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: downloading files over HTTPS
Date: Thu, 30 Nov 2000 13:25:44 +0800
Hi ,every one:
how can I download files over HTTP?
You must have your files under your classes subdirectory in WEB-INF. For
example if you have a directory (lets say myDirectory) where you have all
your .jsp .html etc files then all the class files must be inside the
myDirectory/WEB-INF/classes. In your case it must be something like:
The java.sun website would be having the links
or search at webmonkey.com
-Original Message-
From: Mohammed Sharif [mailto:[EMAIL PROTECTED]]
Sent: 05 December 2000 15:40
To: [EMAIL PROTECTED]
Subject: Send and Receive XML Data
Hi
I need to have a Servlet which reads and sends data in
Hi
It means I cannot set server name in apache, it always maps to my machine, rite ?
If I need a DNS, any free software I can use ?
Thanks a lot.
Kenneth
Shuja Nawaz wrote:
Hi.
You can configure your port to 80 if you don't wanna type the port number in
the browser.
For Apache you can
Hi,
I am having a problem with forcing pages to expiry automatically and not to
be cached.
At the begining of each JSP I include the following code
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "Sat, 01 Jan 2000
Does anyone here knows how to implement connection pooling in JSP?
Please advise.
Oscar S. Garcia
Analyst/Programmer
ITS International Inc.
Tel: 913-0707 to 10
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
===
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:
There are many examples on the web. and if you search this archive
you will find some references to them.
Also You can look at Poolman for an example and Java code to perform
database pooling.
Also You can also Look at our open source JSP kit at www.jspinsider.com.
In the kit I have generic
Hi All,
I have a image in a frame, I want to save the file by dynamically assigning
it a name.Any ideas? or help is appreciated.
Bye
Srikanth
-Original Message-
From: Joakim Olsson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 30, 2000 2:39 AM
To: [EMAIL PROTECTED]
Subject: Re:
The following is my problem:
From a JSP , I am trying to call a servlet which is inside a package.I have
kept this package in classes dir.
But when I try to call this servlet from the JSP. it gives an error " page
not found ".
Pl. help.
Sunny
Hi All.,
I'm dynamically including a jsp file as
shown in the following code :
%
out.println("Hello there ");
String f = "freeword1";
String str = "/tmp/" + f + ".html";
try {
%
jsp:include page = "%=str%" flush = "true"/
%
}
catch(Exception e)
{
%
%=f%
%
}
out.println("This is
Hi,
I am using Visual Age 3 JSP Execution monitor for JSP. I am running the JSP
in Websphere Test Environment Server which is inbuilt in Visual Age. It runs
simple JSP, but gives problem when I try to import a class or use bean. I am
storing classes in default package for Webshpere Test
Hi All,
I am facing problem in refreshing JSP page. I am displaying todays birthday
based on system date, but jsp page doesnt display todays birthday unless i
make some changes in JSP page.
this is what i hv in jSP page
META HTTP-EQUIV="expires" CONTENT="0"
META HTTP-EQUIV="pragma"
Hi there,
Well the difference lies in the application of the bean and its life cycle.
If the bean has to be deployed only once and destroyed then its a stateless
bean but if the same bean is deployed and used again and again then it is
known as a stateful bean..
Hope that helps
Dear Sir/Madam,
I am running HTML PAGE in one frame(frame1) and JSP in another
frame(frame2), My jsp is running continuesly, and then keep calling
javascript which is on HTML page ( frame1), which in turns keep updating
data on frame1 via ID reference on frame1 which is inside DIV element.
My
hi
cant i use request.Form on Tomcat, do i have to use request.getParameter, if
request.getParameter can retrieve the values from the querystring as well as
the form then whats the use of request.QueryString and request.form??
Thanx in advance
Varun
Hi all,
I would like to know
1. which pages does the Spider search to get the metatags.
2. Is there any difference if i put the metatags in JSP page itself instead
of HTML/SHTML page .
3. If i put the metatags on my JSP page will it be recognized by the search
engine.
Can anyone helpme
Thanks
thanx alot
regards
Varun
- Original Message -
From: "jaspreet" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 7:07 PM
Subject: Re: how to retrieve the value from the url ?
use request.getParameter("code") this will return you the value you
required...
Please try:
int i = -1;
cookie.setMaxAge(i)
it should work
Good luck!
ÔÚ 12/6/00 10:39:00 AM ÄúдµÀ£º
hi
how can i delete a cookie immediately,i used
cookie.setMaxAge(0);
where cookie is the name of the cookie, the cookie is not deleted until i
close the browser, any help?
Hi,
I'm happy to announce that finally, after a long time of writing and
then waiting for the production to turn the text into a production ready
book, my JavaServer Pages (O'Reilly) book is released and has started
to show up in both the virtual and real bookstores.
You can find out all about
One possible solution is to first create a File object by passing in the
requisite filename as a string to the File Constructor.
Then check if the file exists with a call to the exists() method of the File
Object.
If it does then include the file or else don't.
Have a nice day.
With regards,
hi
how can i delete a cookie immediately,i used
cookie.setMaxAge(0);
where cookie is the name of the cookie, the cookie is not deleted until i
close the browser, any help?
thanx in advance
Varun
===
To unsubscribe: mailto
u plz check for session is null or not as this
if(session != null)
{
session.invalidate();
}
- Original Message -
From: rajan tirumala [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 6:30 PM
Subject: session closing
Hi,
I am Rajan, I joined the listing in
hi
try killcookie()
ch..
subu
_
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
===
To unsubscribe: mailto
hey,
i dont see any method caed killCookie() in jsp?
plz explain
MJ
- Original Message -
From: subramanian Athimoolam [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 06, 2000 10:46 AM
Subject: Re: how to delete a cookie immediately?
hi
try killcookie()
ch..
subu
session is a implicit oject available in jsp's. Therefore there is no need
to call HttpSession ses = request.getSession();
instead you could just do
session.invalidate();
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com
- Original Message -
From: rajan tirumala
the solution u gave only works when the browser is closed then the cookie
gets deleted and not when the browser is still open which is what i want,
to delete the cookie while the browser is still open, that is the default
nature of the cookie , at least that is what i read
thanx anyway
Varun
58 matches
Mail list logo