package javax does not exist

185 byte By iazurita at 2007-9-26 2:48:26
Im compiling a simple servelt with "javac -classpath c:\jdk1.4\lib\Servlet.jar Hola.java" and i stiil get the "package javax does not exist" error what do i do now?

jdk1.3.1, JSPs and Tomcat.

671 byte By bcleary at 2007-9-26 2:48:27
It seems there is a problem with jdk1.3.1 support for JSPs when running Tomcat. When I enter http://localhost:8080 and get the Tomcat index.html page the jsp examples that can be accessed from there don't run. Instead, I get:java.lang.NoSuchMethodErrorat ...

Limit on number of http request parameters ?

652 byte By belljo at 2007-9-26 2:48:29
I have run into a problem when trying to pass a fair number of http request parameters to another JSP using an HREF statement.Example:href="/pages/mypage.jsp?param1=xxx&param2=yyy&param3=zzz&param4=aaa&param5=bbb&param6=ccc&param7=ddd"Everthing works fine using Internet ...

How to get option value and the text of combobox

133 byte By sungava at 2007-9-26 2:48:44
Please help me to retrieve the option value and corresponding text from dropdown combo box.Thanks.Sungava

JAVA_HOME env var requirements

833 byte By lec20 at 2007-9-26 2:48:58
Does anyone know if Java2 must be installed on the system where Tomcat is installed (ie. deployment machine), i have seen JAVA_HOME that needs to be set, so i set it to /usr/java, but that is only JAVA1.1. It seems that all my example jsp and test jsp pages work, but that variable concerns me. ...

How do i pass a pararmeter with value "&" in Servlets and JSP

436 byte By chandruos at 2007-9-26 2:49:03
Hi all,I am passing a value from a servlet to bean. one of the value that i pass contain "&" .eg: http://localhost:8080/test?name=xyz&address=abc&pqr&zip=00000here the address has "abc&pqr" as value to be passed. since it contains a "&" in that, I get a ...

Migrate

151 byte By iazurita at 2007-9-26 2:49:05
Right now Im programming with asp and want to start with jsp on win. I have some expirience programming applets. What do I need to start?

Is there a way to trigger a JSP program by click close icon of a window?

614 byte By huangjjing at 2007-9-26 2:49:10
I am currently working on a JSP/JavaScript program: there are two interfaces. In the first interface, when the user choose "search by building" under search menu, the second window will be opened by using JavaaScript Window.open() method. There are two buttons on this new window, when the user ...

Sharing data between a bean and a jsp

10555 byte By skywalker0110 at 2007-9-26 2:49:11
I have a bean that is being used as a helper class for a jsp page. I can call functions in the bean and display what is returned but I can't test the state of the bean in the jsp page. Is this possible? my code is below: jsp: a form posts info to this page <HTML> <BODY> ...

How to know when a session expires

441 byte By honey_jal at 2007-9-26 2:49:41
Hello,I want to know is there any way to know when a users session ends or when he moves to another site. For example in a Chat to know when a user after logging in just closed his browser window without logging out and then how to remove that users name from our users list.Is there any event ...

JSP and Custom Tags

1564 byte By bcleary at 2007-9-26 2:49:42
Earlier today I posted the following:<<Can anyone place there custom tags any anywhere other than in the "classes" directory? Here is my tag declaration from my .tld file.><tag> <name> dosomething </name><tagclass> DoSomethingTag ...

transfer files from client to server

211 byte By w1981 at 2007-9-26 2:50:39
hello, everyone...i got a small problem here...i rushing my project now and i have to do some tranfering of files from the client computer to the server using jsp or javabean..can anyone help me...

Best way keeping data between pages?

479 byte By wasforce at 2007-9-26 2:50:40
Hello,I have a 2 filled list box's on page 1, only 6 items maxin each box. I need to traverse other pages to get data and bring it back to page 1 and still bring up the original2 list boxes of data.Should I use parameters passing hidden variables?It would be easier it seems if I could hide 2 ...

Gif

54 byte By srimathi at 2007-9-26 2:50:56
How to I create dynamic GIFs for my JSP?

How to clear JSP cache?

256 byte By erwinba at 2007-9-26 2:51:22
I use ResourceBundle class and create a LocalString.property file. But the JSP cannot at once get the new value after I append a new index. Maybe JSPmake a cache for all files.I want to clear all cache, please tell me how to do?

hostname-urgent

145 byte By advit at 2007-9-26 2:51:50
Hi pals, using applet iam trying to get hostname of machine running. can any one suggest me how to do in simple way.

how to create a pdf dynamically in jsp?

241 byte By k_b_konuri at 2007-9-26 2:51:54
hi, i would like to is it posiible to create PDF files dynamically from jsp page.like online application form where applicant's name will dynamically coms into pdf file.help me out...thanks,kishore.

displaying stringbuffer not working, please help

471 byte By sasbab1 at 2007-9-26 2:52:00
I have the following code in the jsp file,s1 is a StringBuffer containing multiple lines of text.<TEXTAREA NAME="DESCRIPTION" ROWS=8 COLS=100 value = <%out.println(s1);System.out.println("\nJust Printed line(s)\n" + s1);%>></TEXTAREA>Output from "just printed lines .. is ...

Problem Method Post in Apache!!!!!!!!!

312 byte By congha76 at 2007-9-26 2:52:41
Hi,I use method Post in jsp page is sucessful with Tomcat 3.2.1. But have problem when running under Apaches. I must change method=post to method=get It run successful. My data is large, i can't use method get. I need a help from you to solve this problem. Thank a lot.Cong Ha ...

passing form variables

562 byte By pumpindave at 2007-9-26 2:53:09
hi everyone,here is my prob:i created a form with a input type="text" an a input type="file". normally if i do a request.getParameter() on the following page, i can display all the form variables. but if there is a input type="file" in that form i have no chance to get the form variables any ...

Easy way to write servlets that output Html content

377 byte By ggayu at 2007-9-26 2:53:22
Hi Techies,Is there any easy way to generate html output using servlets. my project consist of more than hundred servlets which will output html content after server side processing. I feel more time is wasted in writing code for generating the html content.is there any tool which converts html ...

passing variables

2406 byte By raspus at 2007-9-26 2:53:24
Hi All, HELP NEEDED URGENTLY!!! I am writing a JSP application that access an Oracle database and makes use of Java beans. The case is: a user logs in, login information is set in the bean P_USER P_PASSWORD When a user clicks on a hyperlink (from a select.jsp file) the JSP sets these ...

Servlet Problem

398 byte By samraghav at 2007-9-26 2:53:37
Hi I have a servletwhich processes client request.The processing of request takes some 2 to 3 minutes.In the mean time if the operator at the client terminal presses the back button on the browser or if he closes the browser window,I want to throw a Exception and get notified.How do i do ...

taglib reference?

66 byte By ShagVT at 2007-9-26 2:53:40
Can anybody point me to a good reference on taglibs?

<body onLoad="form1.first.focus()"> --> YIELDS JAVASCRIPT ERROR IN NETSCAP

602 byte By adamrau at 2007-9-26 2:53:54
Hi all,Why does this error occur in netscape. Its says the form is undefined and the forms name is form1.Questions.1) Is there a way around this without javascript?2) If must use javascript, can i code this instead of puttin in the onLoad statement. The reason I would want to do this so i can ...

Unable to compile Class for JSP

45 byte By ravidevulapalli at 2007-9-26 2:53:59
Unable to compile Class for JSP

Raise "open with" dialog box

126 byte By chandruos at 2007-9-26 2:54:01
Can anyone let me know how to raise a "open with" dialog box for a unknown MIME type.thankschandru

helppppppppppp!!!!!!!!!!!!!!

1002 byte By siv-viv at 2007-9-26 2:54:05
hi ,i have a jsp page which receives the user name and pass word by two simple methods like getPass()and getuser() , this method works fine by getting the password and username . what i need is that after getting this username and password i need to store them in a xml file which is existing , ...

Use applet in jsp page

502 byte By jshamann at 2007-9-26 2:54:17
Hi all, I'm a newbie in java (and jsp) and i want to use an applet to display pie chart. This applet should be filled up dynamically by a jsp (or other) file: data coming from db.I don't know if you can do that (it seems, according to threads in jdc, that it's difficult), how can we do that ...

JSP redirect

212 byte By jazztoy at 2007-9-26 2:54:40
Hi all,I have 2 pages using the same third page to process data, how can I tell the 3rd page to go back to the appropriate page that sent the request?Many thanks in advance!!Un.

TOO MUCH JAVASCRIPT?

416 byte By CHEERS at 2007-9-26 2:54:45
In one of the JSP I have created I seem to have way too much javascript that is there to do some validation of inputted data by the user. If the user enters something that doesn't fit, they are given an alert msg box. Is this an acceptable JSP practice or should I find a way to place all this ...

How can I assign javascript variables to jsp or java variables.?

78 byte By mingsenjiang at 2007-9-26 2:55:17
How can I assign javascript variables to jsp or java variables.?

form reload or refresh

47 byte By primopc at 2007-9-26 2:55:35
how can i reload a form from jsp?

Encryption in JSP

300 byte By EVA_02 at 2007-9-26 2:55:49
Are there any easy method already implemented in Java for enrcypting-decrypting data?; if not, what's the way to do it?How works encryption in server pages?If the program runs in the server, the information will travel unencrypted to the server thru the net?Thanks ...

What is the content type for a plain text document.

208 byte By JeffMcLean at 2007-9-26 2:56:01
Hello :)I want to generate a plain text document for the user to either see, or to save to disk directly. What do I out for the setContentType MIME type for this?ThanksJeff.

JDBC closed connection - second time around

783 byte By j_mcnaughton at 2007-9-26 2:56:25
This is my mystery...Within a test JSP, I have code to create a JDBC Connection object, get a connection to a DB2 database, create a Statement object, set up an SQL statement, then get the ResultSet to process. After the ResultSet is processed, the objects are closed.This is just a test, so I ...

losing session

382 byte By sextog01 at 2007-9-26 2:57:03
I have searched everywhere and can't find anything to solve this problem. Session expires at random times. Sometimes it takes a while and other times a few minutes. I could be just going through the site and then all of a sudden the session expires. and I lose the user info and have to ...

url on browser shows servlet instead of jsp

413 byte By sasbab1 at 2007-9-26 2:58:43
hiI have a following sequencejsp1 --> servlet1 > jsp2->servlet2When jsp2 is displayed(its displayed properly), I am seeing the name servlet/servlet1 in the browser, instead of jsp2.Problem is, when jsp2 is trying to invoke servlet2, it looks for servlet/servlet/servlet2, instead of ...

Help to start Tomcat server

1131 byte By serguei714 at 2007-9-26 2:59:06
Hello everybody.I am trying to start up Tomcat-3.2.2 server on Windows(ME), after starting the MS DOS Prompt window gives the next output:******Including all jars in C:\tomcat\lib in your CLASSPATHUsing CLASSPATH: C:\tomcat\classes;C:\tomcat\lib\ANT.JAR;C:\tomcat\lib\JASPAR.JAR;(TO BE SHORT ...

why my JSP code is showed in browser

645 byte By qfjiang at 2007-9-26 2:59:07
Hi, everyone: I write JSP files , run it in iPlanet 4.1 SP3 server,when I run JSP file, i find when I add %81 at the end of JSP file, I see my JSP code in browser, for example:I input " http://localhost/test.jsp%81", I saw test.jsp 's content, I also find append %81 to %99 , all canshow JSP ...

help me to find a suitable server support jsp

42 byte By MaliciousHUT at 2007-9-26 2:59:11
yes,where I can download it?

dynamic attribute

532 byte By rag_pan at 2007-9-26 2:59:25
hi all,how to pass file name dynamically to the file attribute of include directive. i.e<%@ include file="temp.jsp"%> will work.if i pass temp.jsp through a variable it is not working.i.e<%! String filename="temp.jsp";%><%@ include file='<%=filename%>' %>passing the ...

How to getvalue from selected radio button

1413 byte By christine_csh at 2007-9-26 2:59:26
<table width="39%" border="0" cellspacing="0" cellpadding="0"><tr><td height="40"> <input type="radio" name="radiobutton" value="proID" > <strong>Product ID: <input type="text" name="remProID" size="5" maxlength="5"> ...

Help in Jsp-> Urgent

353 byte By k_swamy at 2007-9-26 2:59:28
HiFrom a servlet i am forwarding the request to a Jsp page.From that Jsp i want to call another Servlet.Can similar forwarding of Request be done as in case of servlets where we use the Requestdispatcher class.I dont want to perform the action in a Jsp page and go to the servlet.Help in ...

Problem with <return>

285 byte By kovaimadhu at 2007-9-26 2:59:42
hi i have a problem displaying contents from long text from database. it displays the text continously without carring about the <return> entered during data entry.i use mysql database. could anyone please help RegardsMadhu

Running a Servlet !!!!!!!!!!1Please help

201 byte By iwishtolearn at 2007-9-26 3:00:01
hi ,I have a strange doubt . If a Serlvet can be run from the command prompt like a normal java prgm ?Please let me know if this is Possible?Thanks in advance,

!!!!!!!!!!!!!!! Init method

111 byte By iwishtolearn at 2007-9-26 3:00:02
hican any one tell me the significance of a Init method?thanks in advance ..

Urgent: User credentials

737 byte By aymen at 2007-9-26 3:00:27
HelloThis is urgent. I have a simple HTML form page, that passes say a user and password field to another JSP or Servlet (doesnt matter), the JSP or Servlet looks up an EJB which recieves the user and password as arguments. The EJB performs a JDBC connection and returns whether it cosuceeded or ...

Urgent:Session swapping problem

454 byte By ssivu at 2007-9-26 3:00:28
Hi,We have a peculiar problem. We are running a site using JSP. Session handling has been done. When 2 users log in simultanesouly from different machines into our site and do a transaction, the details of the users are getting swapped between the users. The details of user A are getting ...

valueUnbound() method not called when session expires

1093 byte By PopescuA at 2007-9-26 3:00:41
Hi!I'm trying to implement session management in a servlet and I need to catch the event when the session expires or when the user logs out. To do this, I have defined a class that implements HttpSessionBindingListener and implemented the valueBound and valueUnbound methods.In the doGet method ...