Back Button

2001-03-02 Thread Merrill George
Hi all, I have developed a jsp page which on submit calls itself recursively. That is the jsp is test.jsp and its form action="test.jsp". My problem is , when it calls itself depending on certain conditions i show an alert on the onLoad trigger because for different conditions i've got diffe

jsp---tomcat problem

2001-03-02 Thread Jinjin Tang
subscribe jsp-interest Jinjin Tang Hi, I have problem with my Tomcat config. I setup Tomcat and runs fine and I make another directory for my working directory. and change the sever.xml file such as: D:\tomcat\ D:\working\jsp\*.jsp D:\working\bean\servlet bean file D:\working\bean\other b

Re: OT:rs.first()

2001-03-02 Thread Nishit Trivedi
ok...i got the mistake..i don't have proper driver.. this function needs jdbc2.0 driver that i don't have it.. Nishit > -Original Message- > From: Nishit Trivedi > Sent: Friday, March 02, 2001 4:50 PM > To: [EMAIL PROTECTED] > Subject: OT:rs.first() > > sorry for OT... >

Re: test page doesn't function as it should

2001-03-02 Thread Sumita Pokharel
Thanks for the suggestion! We sorted this out. It was a setup issue on the client machine. It works now. SP -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Murugan Patham Sent: Thursday, March 01, 2001

Re: test page doesn't function as it should

2001-03-02 Thread Sumita Pokharel
Thanks for your suggestion! We sorted this out. It seems it a setup issue at the client machine. Works fine now. SP -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Murugan Patham Sent: Thursday, March 01

FW: OT:rs.first()

2001-03-02 Thread Nishit Trivedi
and one more thing... when I display rs.TYPE_FORWARD_ONLY, it returns me "1003" Can somebody tell me what does that mean??..i couldn't find that in jdk1.2.2 api... thanx Nishit > -Original Message- > From: Nishit Trivedi > Sent: Friday, March 02, 2001 4:50 PM > To: [EMAIL PROTE

OT:rs.first()

2001-03-02 Thread Nishit Trivedi
sorry for OT... i have this: ResultSet rs = prStmt.executeQuery(); int rowCount = 0; while(rs.next()){ rowCount++; } out.println("the rs type is :"+rs.getType()); out.println("the rs behavior is :"+rs.T

Re: PDF, MS WORD from JSP ??

2001-03-02 Thread M. Simms
I tried it and it works right within my IE browser because I had the Acrobat Plugin installed. If the mime-type requested in the header is support by the browser, then I believe the href link causes the browser to hand the file over to the plug-in; otherwise, an alternate tag is invoked which usua

Re: OFF : Any Cobol To SQL Data Converter ? Urgent

2001-03-02 Thread M. Simms
Dude - the Cobol program probably has EMBEDDED SQL statements in it.. just pull them out and wrap any business logic around them with Java within a Bean or even JSP taglib member. Otherwise, the program may be doing an Remote Procedure Call to a 3rd party middleware..which may be using st

Re: simple question

2001-03-02 Thread M. Simms
You want to take a look at Chapter 13 of Java Server Programming - J2EE edition. There lies an answer (albeit complex) in the form of complex set of taglib members that "attempt" to provide a swing-like interface via HTML. Advanced stuffno question about it. So forget the "simple" for now. >

[pro_jsp] basic problem .. vector HELPppppppppppppppp

2001-03-02 Thread Preeti
Hi guys Actually I'm stucked with a vector problem actually I have a vector in I have stored some id's now I want to take those id's 1 by 1out and wanna store them into a variable how will I do that .. Like right now I hae a fuction for adding a id to vector but I do not have a function to r

Java Debugging and Jive

2001-03-02 Thread Shailendra S Dhanoa
=== Java debugging This free tutorial walks you thru the many aspects of Java Debugging. Coverage includes server-side, client-side, and multithread debugging. Also there is a case study using Jikes to debug. http://www-105.ibm.com/deve

Re: ResultSet and next()

2001-03-02 Thread Girish Sahu
use rs.first() before you start again and make sure that the statement is set to scrollable for the Result Set obtained -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Palombi Sent: Friday, March 02,

Re: How to restrict the multiple login's ?

2001-03-02 Thread Kyle Tippetts
don't know how dangerous this is, but you could do something like this: * use SessionBindingListener to trigger the storage in the hashtable of the user id and whatever else you need. You'd put the code to populate the hashtable in the valueBound() method. * if the user tries to log in again, you

Initialization

2001-03-02 Thread Jay P
Hi, I know that when you have the following public class foo { String foo_string; foo() { } } foo_string gets initialized to null. However what if you have the following: public class foo { String foo_string = null; foo() { } } Here does the jvm initialize foo_string to nul

ResultSet and next()

2001-03-02 Thread Peter Palombi
Hi all, i have made a jsp programm to access to a db. i use .. ResultSet rs = select.executeQuery("SELECT * FROM table"); and than i use while ( rs.next()) { .. } to extract all date of the query. i'm at the end of the query now. than i would now go at the head of the date(query(the query is

Re: Search Code

2001-03-02 Thread Richard Yee
This code can be refactored to: StringBuffer queryBuffer = new StringBuffer("SELECT from WHERE "); Enumeration enum = request.getParameterNames(); while(enum.hasMoreElements()){ String element = (String)enum.nextElement(); // this code is assuming that there are additional parameters beside

Re: a jsp -javascript problem

2001-03-02 Thread Marie Josephe Plainecassagne
What would you think of a solution where you would have : - a class representing your set of items - a bean that would contain a vector of objects of this new class On the first page, you initialize your bean. Then page after a page, you add an element to your vector. In this case, all the data

cache removal

2001-03-02 Thread Nishit Trivedi
hi, I am using Tomcat 3.2.1 Is there any way that I don't let tomcat to use cached files (for successive pages) that is stored in \work\ or to be more specific \work\localhost_8080%2Fexamples thanx.. Nishit Trivedi Software Engineer Planet Access Networks - An InSage Company 973-691-4704 X157

Re: Search Code

2001-03-02 Thread Murugan Patham
It should be like this: strSelect = "SELECT ISBN, V_Title, V_Type, V_Actor, V_Time FROM Video_Catalog where 1 = 1"; if Type is not null or Type != "ALL" strSelect = strSelect + "And VideoType = '" + Type + "'" end if if Title is not null strSe

Re: Search Code

2001-03-02 Thread Nishit Trivedi
here is what i think...as i am going to implement the same thing... when you get the parameter from the first page, first check all parameters which are passed to current page by request.getParameterNames(). This method will return u an Enumaration... Now have a String called query... then take o

Using Custom JSP tags

2001-03-02 Thread Kapil Khanna
Hi All, 1. Could you inform me about the pros and cons of using Custom JSP tags? 2. Is it difficult to design and develop, especially for a not-very experienced team ? Would be of tremendous help. Thanks in advance. Regards, Kapil ==

Model 3 architecture + custom tags

2001-03-02 Thread Kapil Khanna
Can you tell me more about the Model 3 Architecture, its benefits ?? Where can I get more information ? Thanks. Kapil === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL

Re: How to restrict the multiple login's ?

2001-03-02 Thread G.Nagarajan
Hi, By implementing the HttpSessionBindingListener interface you can keep track of session expiry. Another method would be to store the last access time, login time and the userid in a table. Then you can have a thread that checks periodically the difference between the current time and the last

nested taglibs

2001-03-02 Thread Anoop Thyagarajan
is it possible to access the inner tags properties from the outer tag. If possibe please tell me how to do it. Any help will be appreciated. thanks. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTERES

Re: How to restrict the multiple login's ?

2001-03-02 Thread Geert Van Damme
Yes, you can monitor the session timeout with a SessionBindingListener. But that won't solve the problem since the session will only timeout after several minutes. Geert Van Damme > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[E

How to restrict the multiple login's ?

2001-03-02 Thread Rathna
Hi all, In my application i want to restrict the user from login when there is already a login with the same id. How to achive this? I have the implementation something as follows; When ever the user logs into the system,the user id will be put into to the hastable which is the singleton objec

Re: a jsp -javascript problem

2001-03-02 Thread G.Nagarajan
hi, Have a hidden field and put the contents of the text field into it. You can store the information in this format name@abcd~~dept@prdn etc. Then use string tokenizer in the servlet to split the hidden fields. Another option would be to put the variables in xml like "abcddsfsd" etc, but this wo

Re: a jsp -javascript problem

2001-03-02 Thread christopher brown
create an array in javascript that stores each new value as you press more. when you click the "send" button, handle the event before sending the form (if it's a submit button, use the form's "onsubmit" event, or otherwise use the button's "onclick" event). when handling the event, create a stri

Re: simple question (Swing, AWT with JSP)

2001-03-02 Thread christopher brown
If you use Swing or AWT within a Java program, then these objects are displayed on the machine that's running the Java program (if you choose to display them...). You *can* access Swing and AWT from a servlet or JSP, but if you use Swing or AWT to show a window (for example), then that window wou

Help: JSP Custom Tags

2001-03-02 Thread Kapil Khanna
I intend to have very clean MVC separation in our web application. 1. Would it be wise to use Custom JSP tags ? 2. Could you inform me about the pros and cons of using Custom JSP tags? Would be of tremendous help. Thanks in advance. Regards, Kapil =

a jsp -javascript problem

2001-03-02 Thread Ashutosh Bhardwaj
hi, i have a jsp with one text field and two buttons one "submit" and one "more". after entering the value when i press more button the field gets cleared and the value in the field should be stored somewhere say a java or javascript using javascript. on pressing submit i have to pass the contents

Re: PDF, MS WORD from JSP ??

2001-03-02 Thread Mayuresh Kadu
U might like to take a look at http://www.jspsmart.com/ and click on the link tutorials. There's a tutorial on File Management. U should be able to find how to do what u r looking for both normally using links as well as programmatically :) Hope this helps !! Mayuresh -Original Message

OFF : Any Cobol To SQL Data Converter ? Urgent

2001-03-02 Thread Muddaser Azeem
I'm working on a banking site. Bank is currently using its cobol based system and it wishes that its customer can check the Bank Statement Online. And i need a Converter from Cobol to SQL Or Any other better Solution Plz Recomend Rgrds and Tnx Muddaser Azeem

Re: as/400 and jsp

2001-03-02 Thread Marie Josephe Plainecassagne
Add ";trace=true" to your url, just after the system name. This will give you a debug of AS400 errors. Marie-Jo Peter Palombi wrote: > hi all, > i have made a jsp page to access to as/400 db. > ..but it don't work correctly. > in the as/400 there is table ANCL200F unter the lybrary A2_DNET > >

Re: simple question

2001-03-02 Thread Martin Cooper
I'm confused too. JSP is a server-side technology. AWT and Swing are client-side technologies. What is it, exactly, that you want to do? If you want to use JSP to create web pages that invoke/include applets that use AWT or Swing, then yes, you can do that. If you want something using AWT or Swin

Re: Singleton Pattern and JSP

2001-03-02 Thread Martin Cooper
>From this description, it seems to me like you just need the regular tag. If your page contains this (somewhere near the top): ... your bean initialization code goes here... Then you'll have a session bean that is (a) created and initialised the first time it is referenced, and (b) only