Hi everybody,
I am new to jsp. Can anyone please tell me how i can create my own
session objects and using cookies, make them visible for the entire scope of a
project. Also can anyone tell me how i can do the same using URL-rewriting.
Thankyou very much in advance for your feedback.
C
Can anyone please tell me how to create a session object in JSP. Thankyou.
Cheers,
Amar..
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/pro
Use PC - Anywhere to connect to the remote m/c and restart JRun...
Cheers,
Amar..
Magn
ús Þór Torfason <[EMAIL PROTECTED]> on 09/28/99 01:53:16 PM
Please respond to Magnús Þór Torfason <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: Amarnath Nanduri/IT/VANCPOWER)
Subject:
Hi everybody,
I am using a LoginBean as a Session Object in my JSP pages. The LoginBean
takes user info and connects to a Database (where it validates the username and
password). I am using a ConnectionPool to maintain a pool of connections to a
Database. I am creating the ConnectionPool
For your second problem, use a Session Object. Create a Sessoin Object in your
Login Screen.
In your second screen, look whether this Session Object exists. If this does not
exist, then redirect the user to the Login Page.
Cheers,
Amar..
Vaibhav Bhanot <[EMAIL PROTECTED]> on 09/29/99 10:53
Check to see whether you have named the extension as .jsp. If so, brother you
gotta change that to a .html extension.
Cheers,
Amar..
"Borkey, Lin" <[EMAIL PROTECTED]> on 10/04/99 05:53:19 PM
Please respond to "Borkey, Lin" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: Amarnath N
Hi Guys,
I recently had WebLogic training and this Instructor said that instead of
using the
doGet() (or) the doPost() method, over-write the service() method. He says that
if you use either a
doGet() (or) doPost() method, the WebServer has to do a POLYMORPHIC lookup on
these methods in the
Forgive my comments here, but this mail sure did lighten up my morning.
:)
Cheers,
Amar..
Carsten Heyl <[EMAIL PROTECTED]> on 10/14/99 05:05:55 AM
Please respond to Carsten Heyl <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: Amarnath Nanduri/IT/VANCPOWER)
Subject: Re: Whattt
Hi Guys,
Can anyone enlighten me as to how i can implement a Single Threaded Model
Interface.
Should i implement this interface in a Servlet and call the Servlet from a jsp
file (or) is there any tag
in the jsp 1.0 spec which tells me as to how to implement a Single Threaded
Model Interface.
Guys/Girls ,
I am calling a servlet from a jsp. The servlet implements the
SingleThreadModel.
The servlet has a doPost() method that writes data to a table in the database.
The primary key
for each row of this Table is got by counting the ( number of rows in the Table
+ 1 ). This is done in
l
-Original Message-----
From: Nanduri Amarnath <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, October 28, 1999 12:56 PM
Subject: Question that is puzzling me
>Guys/Girls ,
> I am calling a servlet from a jsp. The servlet implements the
>
our "number of
current records", which is then updated every time a user submits a query.
Hope this helps!
-Original Message-
From: Nanduri Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 29, 1999 5:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Question that is puzzling me
Can we check for WindowClosing Event ( using Javascript ) and (submit) signal
the Server that a user has destroyed the Browser window. ( Just a suggestion )
Cheers,
Amar..
Geert Van Damme <[EMAIL PROTECTED]> on 10/29/99 03:21:07 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTE
I agree with Phil. Last week i got a virus from an attachment ( from this group
) and got my network security people all riled up.
Please don't send attachments to the whole mailing group as they may contain
virus(s). If you want to send attachments send them individually to the people
concerne
Hi ,
My apologies for getting Jrun into the discussion. Can anybody point me to
how to run jsp that follow the 1.0 spec on Jrun 2.3.2 ? I was unable to run jsp
1.0 spec but can run the .92 spec.
Please guide me as to where to put the jsp (1.0 spec) files and what property
should i set in the
MY BEST GUESS
---
Before you start the STARTSERVER.BAT in the Dos window, click on the upper left
corner of your dos window, go into properties , and then into Options. Increase
the buffer size to 120. Then you should be able to run STARTSERVER.BAT without
any problem.
Hi Genies ,
Share some of your magic with me...
I have a jsp page "A.jsp" which displays 2 jsp pages in separate frames. Let's
call the frames "B.jsp" and "C.jsp".
'B' displays options to the user. 'C' talks to a database and displays data to
the user. 'C' checks for a session that has be
I just want to thank everybody who has provided me with the solution(s) to this
problem. Most of the solutions were identical. I can't single out every single
Genie and thank them individually, as there are tons of you out there. Keep
rubbing your magic on us fellas. Have fun.
Cheers,
Amar
=
Hi everybody,
I am trying out a solution where the business logic takes place inside the
Servlet and the output from the servlet goes to a JSP page (where i have all my
HTML and form fields).
1) Is there anyway i can set some values inside the Servlet and out put the
values into theJSP pag
Hi fellas,
I have some data in the database that will not change ( example..a list of
all Departments ). I will be using
this data throughout my application( in a number of screens ). I plan to use a
bean that stores all this data in a Vector.
If in my JSP page(s) i use something like this..
I second this notion. Please include examples that deal with real-world problems
and solutions to deal with them.
For example if you have some data in the database that will not change, how
will you show that data over multiple pages and multiple users without
hitting the database multip
Hi ,
I was wondering..if a bean has "application" scope, does it mean that only
one instance of the bean is created and all the users / pages will be able to
access that one instance ? Thank you.
Cheers,
Amar..
===
To u
:) :) :) :) . I guess the people at SUN do not take kindly to people
proclaiming themselves as Java Experts:)
Still it was entertaining though..:) Lightens up the afternoon work mood.
Cheers,
Amar..
"L-Soft list server at Sun Microsystems (1.8d)" <[EMAIL PROTECTED]> on
11/18/99 12:12:
Hi ,
Somebody here posted a question about a jsp page calling frames which call
other jsp's.
I have successfully implemented that and if that person wants info..on this
please mail me.
Cheers,
Amar..
===
To unsubscribe:
Hi ,
Did anybody get this error before? Thank you.
Cheers,
Amar..
Thu Nov 18 15:51:47 EST 1999: JRun Properties Dir:
E:\JRun\jsm-default\services\jse\properties
Thu Nov 18 15:54:54 EST 1999: Running servlet
{ (Running servlet) java.lang.VerifyError: (class: jsp/telecom/SelectWork,
method:
Hi Mark,
Nice question. You can try something like..when the user has posted data,
call the same JSP page with some hidden value (setting a flag). The JSP page
when it sees the flag, calls the request.getParameterValues("name"), then set
your bean
method (passing it this array). You can manip
Hi,
I received many mails asking me for examples of using JSP's in frames.
Since i can't reply individually to each of them i am posting some example code
which works for me. Feel free to look at them and if any mistakes are made (by
me) correct me. Thank you.
Cheers,
Amar..
MAIN.JSP
-
I am getting the below error. Can some one explain this error? Thank you.
Fri Nov 19 14:11:33 EST 1999: Running servlet
{ (Running servlet) java.lang.IllegalStateException: Cannot forward to same URI
'/telecom/ErrorJSP.jsp'.
at
com.livesoftware.jrun.JRunServletContext$JRunRequestDispatcher.f
Pass a parameter along with your hyperlink. In your doGet() method check for
that parameter, and if it exists, call the doPost() method..
http://host/servlet/whateverservlet?PARAM=POST_THIS
whateverServlet
public void doGet( req, resp)
{
if(req.getParameter("PARAM").e
Do not use a servlet chaining mechanism. Instead use response.sendRedirect() to
send the user to an other servlet page, if the user has logged in successfully,
else redirect him to the login page. hope this helps.
Cheers,
Amar..
Gary Moore <[EMAIL PROTECTED]> on 11/24/99 09:48:58 AM
Please
Hi Guys,
I am faced with a unique problem. Basically i have a jsp page, which calls
other jsp pages in Frame Tags. The problem i am facing is : my ADDRESS BAR IN
IE5 ($#@%^&*) still shows the same initial jsp page (no matter how many jsp
pages i traverse from the initial jsp page). Did any of
"Craig R. McClanahan" <[EMAIL PROTECTED]> on 11/26/99 12:08:32 PM
To: Amarnath Nanduri/IT/VANCPOWER@VANCPOWER
cc: [EMAIL PROTECTED]
Subject: Re: changing the URL tags in the Address Bar of IE5
Nanduri Amarnath wrote:
On the other hand, I cannot for the life of me figur
Hi ,
I am running JRun 2.3.3 on IIS4.0. I am facing a unique problem
I create a session object in a Servlet LoginServlet ( after the user has
successfully logged in ). This servlet redirects the user
to a "MainJSP.jsp" page. This page contains links to various JSP pages. When a
user enters
Hi ,
Is SSL by itself enough to guarantee 100% security for Internet Banking
Transactions (or) is there any better approach which guarantees maximum
security? I am using JSP pages on the backend. Thank you.
Cheers,
Amar..
Hi ,
I am using JRUN 2.3.3 on IIS 4.0 . For JSP .92 spec, i am able to execute
perfectly a tag inside a JSP page, but for the JSP 1.0 spec, i am
unable to execute the servlet inside the tag. Have any one of you
encountered this problem? Thank you.
Cheers,
Amar..
One way is to use a session object to store the parameters before using the
sendRedirect method. This is a secure way.
Cheers,
Amar..
"Alvarez Contera, Jos
é Alberto" <[EMAIL PROTECTED]> on 12/20/99 06:58:39 AM
Please respond to "Alvarez Contera, José Alberto" <[EMAIL PROTECTED]>
To
Did you check to make sure that your package is in the CLASSPATH ?
Reg Sherwood <[EMAIL PROTECTED]> on 12/22/99 12:33:27 PM
Please respond to Reg Sherwood <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: Amarnath Nanduri/IT/VANCPOWER)
Subject: Re: Servlets and JSPs
Craig,
Check this previous mail...
Nanduri Amarnath wrote:
> Hi ,
> I am running JRun 2.3.3 on IIS4.0. I am facing a unique problem
>
> I create a session object in a Servlet LoginServlet ( after the user has
> successfully logged in ). This servlet redirects the user
> to a
Instead of the tag you can use the In
your .shtml file call the servlet..
cheers,
Amar..
Geert Van Damme <[EMAIL PROTECTED]> on 12/24/99 04:28:17 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: Amarnath Nanduri/IT/VANCPOWER)
Subject: Re: A basic doubt
Hi,
A jsp page submits data to a Servlet. The servlet uses beans to process
requests and talk to databases. If any error occurs deep in the heirarchy, i am
throwing it to the top most level, and finally gets caught by the Servlet. I am
using a RequestDispatcher to forward to an error page. Ho
Hi gang,
I am trying to convert the ASP file to a JSP file. I am getting an empty
parameter name somewhere deep inside my Java classes and it is throwing an
exception. Can you please take a look at both files and tell me whether both of
them are doing the same thing (or) am i missing some fun
Yeah. First time the user presses a refresh button, set a flag in the Session
Object. Next time he/she presses the refresh button, search for this flag and
if exists ignore the freaking request...
cheers,
Amar..
Ashwani Kalra <[EMAIL PROTECTED]> on 02/02/2000 10:53:22 PM
Please respond to
Hi,
I am looking for a ready-to-use Calendar Servlet or JSP source code. I
would appreciate you sharing any information that you might be having. Thankyou.
cheers,
Amar..
===
To unsubscribe: mailto [EMAIL PROTECTED] wit
43 matches
Mail list logo