Session Objects

1999-09-27 Thread Nanduri Amarnath
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

Creating a session object

1999-09-28 Thread Nanduri Amarnath
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

Re: Remote Re-Start JRUN

1999-09-28 Thread Nanduri Amarnath
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:

Database Connections

1999-09-29 Thread Nanduri Amarnath
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

Re: sessions !!!

1999-09-30 Thread Nanduri Amarnath
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

Re: JavaScript in JSP

1999-10-04 Thread Nanduri Amarnath
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

Re: doPost versus doGet - DESIGN DECISION???

1999-10-12 Thread Nanduri Amarnath
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

Re: Whattt ??

1999-10-14 Thread Nanduri Amarnath
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

Single Threaded Model

1999-10-27 Thread Nanduri Amarnath
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.

Question that is puzzling me

1999-10-28 Thread Nanduri Amarnath
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

Re: Question that is puzzling me

1999-10-28 Thread Nanduri Amarnath
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 >

Re: Question that is puzzling me

1999-10-29 Thread Nanduri Amarnath
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

Re: Disconnect from a db when client browser closes

1999-10-29 Thread Nanduri Amarnath
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

Re: Attachments...

1999-11-03 Thread Nanduri Amarnath
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

JSP1.0 on Jrun

1999-01-02 Thread Nanduri Amarnath
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

Re: Newbie question

1999-01-02 Thread Nanduri Amarnath
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.

Question for u genie(s)

1999-11-09 Thread Nanduri Amarnath
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

Re: Question for u genie(s)

1999-11-10 Thread Nanduri Amarnath
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 =

Communication from Servlet to JSP

1999-11-12 Thread Nanduri Amarnath
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

question

1999-11-16 Thread Nanduri Amarnath
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..

Re: JSP Books

1999-11-16 Thread Nanduri Amarnath
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

question 2

1999-11-16 Thread Nanduri Amarnath
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

Re: Fw: Re: Another newbie question

1999-01-16 Thread Nanduri Amarnath
:) :) :) :) . 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:

calling jsp's in frames

1999-01-16 Thread Nanduri Amarnath
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:

Unusual error using JSP on JRUN2.3.3

1999-01-16 Thread Nanduri Amarnath
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:

Re: NewBie Question

1999-01-16 Thread Nanduri Amarnath
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

Example code...calling jsp's inside frames

1999-01-17 Thread Nanduri Amarnath
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 -

IllegalStateException problem

1999-01-17 Thread Nanduri Amarnath
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

Re: Calling servlet from hyper text link

1999-11-20 Thread Nanduri Amarnath
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

Re: Breaking out of Servlet Chain

1999-11-24 Thread Nanduri Amarnath
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

changing the URL tags in the Address Bar of IE5

1999-11-26 Thread Nanduri Amarnath
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

Re: changing the URL tags in the Address Bar of IE5

1999-11-26 Thread Nanduri Amarnath
"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

session object is being dropped

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

Security issues on the client side

1999-12-14 Thread Nanduri Amarnath
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..

Unable to execute a servlet tag inside a jsp on Jrun

1999-12-17 Thread Nanduri Amarnath
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..

Re: Redirect in JSP

1999-12-20 Thread Nanduri Amarnath
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

Re: Servlets and JSPs

1999-12-22 Thread Nanduri Amarnath
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,

Re: extends attribute in jsp

1999-12-24 Thread Nanduri Amarnath
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

Re: A basic doubt

1999-12-24 Thread Nanduri Amarnath
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

Forwarding an exception from a Servlet onto a Jsp page

2000-01-06 Thread Nanduri Amarnath
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

JSP giving error when trying to convert from ASP

2000-01-20 Thread Nanduri Amarnath
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

No Subject

2000-02-04 Thread Nanduri Amarnath
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

Calendar Servlet or JSP

2000-03-03 Thread Nanduri Amarnath
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