HTML and JSP

562 byte By manohar2 at 2007-9-26 2:23:33
Guys ,is there any scrolling thing in HTML.I mean i am making the user to enter same type of info atleast 20 times.But usually the entries are not more than 5.Hence I don't want the entire screen to be covered by all the 20 text fields.Is there anyway I can achiecve that.I am using JSP to ...

Implementing an SMTP Server with JavaMail

430 byte By mbenezra@yahoo.com at 2007-9-26 2:23:36
1. Does the JavaMail API provide an implementation of an SMTP Server? 2. If not, does the JavaMail API architecture make provisions for an implementation of such a server?3. Has anyone done this work before, would there be some sort of SMTP Server implementation out there done under the ...

Using Filewriter class accross a network

591 byte By wireframe at 2007-9-26 2:24:44
is there a way to specify the filewriter class to accept a url as a creation parameter? i have my jsp pages served off a linux box running somba, so it is accessable to our NT domain. now, i want to drop a file file from the jsp server to a shared directory on another nt box. i've tryed some ...

Undefined variable error

815 byte By mpburke at 2007-9-26 2:24:47
I defined the two variables upper_limit and lower_limit in my bean but I get an undefined variable message when I try to use them in my jsp page. Can anyone see what the problem is? JSP code: I'm thinking of a number between <%=lower_limit%> and <%=upper_limit%>.<p>error ...

Multiple Session Beans ? Losing One Bean ?

2514 byte By bryanwclark at 2007-9-26 2:24:53
Hi,I'm trying to make a multiple page input form where the user clicks on a next button to get to each different page and enter the cooresponding information to that page.I have a JSP page acting as the controller for this currently here's what that code looks like: Controller.jsp --<%@ ...

Can JMS work across firewall?

442 byte By zhengzhu at 2007-9-26 2:25:12
Sorry if this been asked before.I am working on a project that sync data for two different companies which both has firewalls. We want to use JMS's persistence and exactly once feature. Can anyone show me the configuration examples for this case if across firewall is possible?Otherwise, if JMS ...

Servlets and Cookies

2161 byte By srp15 at 2007-9-26 2:25:13
Hi I am trying to set a cookie in a servlet and redirecting the servlet to a static html page. In the html page I have javascript code which is unable to read the cookie set by the servlet. Quick help is appriciatedNote: Servlet is running on the WebSphere where webshpere on port 10200 and the ...

simple XML parsing problem

1052 byte By mtndood at 2007-9-26 2:25:24
In the code below im trying to see what is in the text node for a bookmark. Instead of getting the contents of the node i get nothing. Help ? - - - my XML document - - -<?xml version="1.0"?> <!DOCTYPE folder SYSTEM "bookmark.dtd"> <folder name="Travel Sites"> <folder ...

International Char. Sets

665 byte By PhilMcCartney at 2007-9-26 2:25:27
Hello, Does anyone know how to force the browserto use a particular charset with JSP?I am trying to write a page in Japanese,but the browser keeps switching tothe default ISO. I have alreadytried setting the contentType in thepage tag, but I can not find a listinganywhere of legal char sets.The ...

Newbie question about Javamail

195 byte By isam_hk at 2007-9-26 2:25:40
I hv coded a simple program to send e-mail w/ Javamail api and it works under windows through smtp. But how about if i want to run the program under Dos?Thanks!

Passing reference for Stateless Session Bean from JSP to JSP

3365 byte By honestcox at 2007-9-26 2:25:45
I am trying to build a simple bookstore website as part of a school assignment. I am using EJB's, J2EE1.2.1 and JSP. I am not using any servlets at this point because I had trouble getting the deploy tool to work with them, but that is another story. Essentially, here is what I am doing ...

Statefull session example in weblogic

1641 byte By malu4ram at 2007-9-26 2:25:57
Hi,I am trying to workout the example of statefull session bean example in weblogic 5.1I am able to successfully deploy it. When i call the client like this, i am getting the following error. I am using JDK1.3--error-C:\weblogic\myserver\clientclasses>java ...

JSP and Swing

2692 byte By smt123 at 2007-9-26 2:26:19
HI,In JSP if i want to import a class file(java application) the i use<%@ page language="java" import="DrawTable" %><jsp:useBean id="select" class="DrawTable" scope="request" /> </jsp:useBean> <% select.displayTable();%> where displayTable will be my method of class ...

dateformat

400 byte By des_xu at 2007-9-26 2:26:20
Hi, I go a small prob, hope someone can help miString past = "30/12/01";java.text.SimpleDateFormat x = new java.text.SimpleDateFormat("dd/mm/yy");java.util.Date mypastDate = x.parse(past);out.println(mypastDate);by right, this output should be 30/12/01 but it give mi this output, how come?Tue ...

how to store a string containing single/double quotes

331 byte By baskibv at 2007-9-26 2:26:46
HI,When storing a string from a textarea into a access database i have problem when the string contains single quotes or double quotes. The value is not updated in the database. My insert query isinsert into tablename values('"+request.getParameter("desc")+"')");thanks in advance.baskar ...

Applets and EJB's

100 byte By Jchiquit at 2007-9-26 2:27:00
Can an Applet work like a client for an EJB? How can I do this?Thanks for all.

Get Browser informations in JSP/Servlets

112 byte By LeBigornot at 2007-9-26 2:27:15
How can I get informations (name...) about the browser who call my servlet ?Please help me

Ejb's and javabeans

524 byte By smitaunni at 2007-9-26 2:27:20
Can anybody give me a good explanation on the difference between Ejb's and javabeans....And also the advantages and disadvantages of both. Pl do help as soon as possible....I want to know that whether I should be using javabeans or Ejb's in my web-based site...which is a administration site ...

How can i count number of active sessions ?

362 byte By nchhonker at 2007-9-26 2:27:21
Hi All, I am in great need to count number of active(valid which are not dead at given piont of time) sessions of my servlet.Actually i want to restrict login whenever more than specified(say 10) the number of person's logged into my system.How can i do this ? Please help me out .Thanks in ...

<%@page contentType="text/html;charset=utf-8"%>

898 byte By qinjiwy at 2007-9-26 2:27:33
<%@page contentType="text/html;charset=utf-8"%>This code is error?I put this code at the head of my jsp file,but error.Test.jsp<%@page contentType="text/html;charset=utf-8"%><HTML><HEAD><TITLE>HELLO WORLD</TITLE></HEAD><BODY><P>HELLO WORLD ...

EJB Development environment in VAJ3.5.3

401 byte By hairsinl at 2007-9-26 2:27:37
Does anyone know whether the EJB Development environment in Visual Age 3.5.3 supports EJB1.1? I know that Visual Age 3.5 only supports EJB1.0, and that Visual Age 4.0 supports EJB1.1, but I can't seem to find out which EJB version VAJ3.5.3 supports (I have looked in IBM documentation).Anyone ...

opening a disk file with a button of jsp

317 byte By rohit29 at 2007-9-26 2:27:40
Hi !Can anyone suggest me as to how to open a file for ex a txt file with a specific name existing at a hardcoded location with a click of a jsp's button.I do not want to use the window.open function since it open the txt file in the browser window.... i would just like to open the file. ...

Receiving e-mail problem

527 byte By isam_hk at 2007-9-26 2:27:45
I hv wrote a little mail to receive e-mail w/ javamail api but found the following error:javax.mail.NoSuchProviderException: No provider for pop3at javax.mail.Session.getProvider(Session.java:249)at javax.mail.Session.getStore(Session.java:323)at javax.mail.Session.getStore(Session.java:303)at ...

Transport Performance problems

6009 byte By richardsimmonds at 2007-9-26 2:27:53
Hi,I keep encountering a bottleneck whilst sending mails through the transport.connect, then transport.send method. I'm building a bulk emailer which has to send out personalised mails. A loop is used to scroll through recipient email address' and build a personalised mail but each time I get ...

How can I create a "Resultset Browser" ?

495 byte By jshamann at 2007-9-26 2:27:59
Hi all, I'm a beginner in java tech who want to create a "Resultset Browser" : I mean a resultset containing result from sql query, I want to display only 5 (or whatever u want) result in a html array. Behind this array two button (linK) next and previous to go throught the 5 other (more) ...

Tomcat running in the back end

143 byte By mrlai at 2007-9-26 2:28:02
Hi gurus, I'm running Tomcat on Win2k. Is there a way to hide the command window when starting the Tomcat? (beside a NT service)

DTD

297 byte By asgherali at 2007-9-26 2:28:27
Hello all,Does anyone know how to generate a BDTD from a standard DTDfile? I've written an HTML Parser in Java that worksgreat, except for the fact that I'm using the HTML32.BDTD file.Anyone have any idea?Thanks,Asgherasgher@lww.org

JSP page dinamic refresh

239 byte By florins1 at 2007-9-26 2:28:36
Hi.My ServletController gets data from a MS Access database and send it to a jsp for displaying.Another user modify my database.How do I refresh my jsp page for displaying the new data from the database ?

Extracting XML Document embeded in Envelope

292 byte By san_gomes at 2007-9-26 2:28:39
Hi allMy problem is how do I extract the XML Document embeded in the Envelope Is there a method to do the same Since it is present in the cdata section as a string How do i reconvert it to a XML document I am using jdom TIASanjay

Urgent--Help

1854 byte By smitaunni at 2007-9-26 2:28:45
I have a string ...sayString Content="<?xml version="1.0"?><page_data><template>home.htt</template><template_data></template_data><content><main><![CDATA[><div><span class="Heading2">Welcome to ...

Issues regarding using EJB - Entity / Stateless

1403 byte By sheena_abraham at 2007-9-26 2:28:47
My web application may have about 10000 logins at a time and at my design stage should i decide about using all throughtout only stateless session bean with methods to connect to databse being informix9.2, and invoke any kind of DML statements directly, rather than having a CMP/BMP Entity ...

File Transfer b/w Client - Server using JSP

573 byte By coffeejava at 2007-9-26 2:28:53
Hi,I need to implement a file transfer between the client and the server using JSP / Beans. The files can be XML Documents, Images (.gif,.jpeg) or even MS Word documents. The user has a set directory on his file system where the files are to be saved upon download and retrieved upon upload. ...

session.putValue("userid",userid) --> how to expire after 40mins of no acti

129 byte By adamrau at 2007-9-26 2:28:58
Using the above session attribute, how do i expire it after 40 mins of no activity. Thanks adam

JAXP IllegalArgumentException? Is it a bug?

807 byte By abaman at 2007-9-26 2:29:07
Hi,can some one help me resolving my prolem. I use the SAX Parser to parse an XML file on an NT machine with jdk 1.3.0_02 and java Hotspot VM installed. the parser works with small XML files. when i try to run on a large file an SAXParserException is thrown and the following message has been ...

Help to get NodeValue

2032 byte By smitaunni at 2007-9-26 2:29:15
I have an xml data which is as follows<?xml version="1.0" ?> - <page_data> <template>home.htt</template> <template_data /> - <content>- <main>- <![CDATA[ ><div><span class="Heading2">Welcome to ...

JSP trouble on iPlanet webserver

295 byte By peirlinc at 2007-9-26 2:29:19
Hi,I'm having trouble getting some jsp files to work in a subdirectory.The same files in the root are working fine. The moment I put them in a subdirectory, the files refuse to compile and I get a server error.Can any-one help me out?Thanks.Yves

Saving XML documents using JAXP

425 byte By jcshroff at 2007-9-26 2:29:34
Hi,I'd like to know how can we save an XML document using the JAXP 1.1 API. I have been manipulating an XML document using the JAXP API using setNodeValue and other methods in the Document and Node interfaces, but there is no method available in the API for saving the XML document after ...

How to get HTML form values in the same JSP

482 byte By killC at 2007-9-26 2:29:52
Hi all!For example, I have a "newuser.jsp" and I use an "addUser(...)" method there which needs some textfield values from the form being generated by itself (newuser.jsp). To migrate to the JSP Page I came from ("next.jsp"), I use an additional JSP Page which receives hidden values from ...

How to import API classes in JSP?

362 byte By ggiam77 at 2007-9-26 2:29:58
hi,What is the syntax for importing Java API classes in JSP (like in .java files)?I've tried,<% import java.util.*; %><%! import java.util.*; %><%@ import java.util.*; %><%@ page import java.util.*; %>...all don't compile!Please help. Thanks very much!Gerald. ...

Accessing an existing JavaBean from a servlet

369 byte By rajbhaskar at 2007-9-26 2:30:00
Hi folks,I have created a JavaBean with session scope in a JSP and now want to pass this to an existing servlet where several of the methods will be needed, but I don't know how to make the servlet see the Bean. I know that in a JSP you would just use jsp:useBean, but what is the corresponding ...

Scalability and J2EE RI

218 byte By kanderson1 at 2007-9-26 2:30:10
Can anyone tell me how scalable the server included with the J2EE download is? Is it meant just for testing/learning or is it capable of supporting real apps?Thanks and have a great day!Kaye

How to unload a JSP app

235 byte By peterbarry2002 at 2007-9-26 2:30:22
Folks,I was wondering can anyone suggest how to unload a JSP application? Is there a command that I could useto allow a user to exit the application?I would be grateful for any help Peter

Date problem

196 byte By geetuR at 2007-9-26 2:30:28
Hi all, I want to create a Calendar in jsp. I want to find out on what "day" would the "first" of a month occur. Also, is there any way of finding number of weeks in a month ?

getNodeValue and Node.TEXT_NODE

265 byte By mtndood at 2007-9-26 2:30:29
Im trying to get the text inside an Element. For exampleWhy is it when i call getNodeValue on a Text node that i get nothing but if I call getFirstChild().getNodeValue on the Element node just above it I can get the text just fine. What gives ?

I have two dates that are oracle DATE type. How to subtract and get days/hr

252 byte By adamrau at 2007-9-26 2:30:35
How to subtract two oracle dates and get the result in days/hours/minutes/seconds.Oracle keeps telling me that i need to do PL/SQL but i dont know it. They will not give me an example in JAVA so i came here.ThanksAdam

How to make the Open/Save dialogue download the text file instead of JSP

4872 byte By huangjjing at 2007-9-26 2:30:39
I am currently coding on a JSP program, which searches the database and writes the resultset into a file on the server, and then allows the client to download this tab delimited text file onto their local machine. But I met a problem, when the default Open or Save dialogue appears, it shows ...

using bean to insert data into database from jsp

1396 byte By reddy94 at 2007-9-26 2:30:51
hai,i am trying this i am getting null pointer exception at Db.insertData();<jsp:useBean id="Db" scope="session" class="DataBaseConnect"></jsp:useBean><% String sql=null; sql="insert into employee(job_desc,emp_name) values ('manager','xxxx')"; Db.openConn(); ...

Tomcat as add on server with Apache

240 byte By BRoberto at 2007-9-26 2:30:55
I have to install Tomcat 4 on a linux machine (Debian) as an application server (that is Apache serves the static content (html) and Tomcat serves jsp file)How can I do ?ThanksRoberto(caaib@tin.it)

how to pass object to JSP

1023 byte By chiranjp at 2007-9-26 2:30:56
Once I've created a Connection Pool how can I pass that pool object to another JSP?I am able to create a ConnectionPool successfully like so//Suppose this is: "welcome.jsp"<%DBConnectionPool myPool = new ...

Alias for column names : Urgent

434 byte By Priyam at 2007-9-26 2:31:02
Hi ,I want alias names for my columns.I'm writing query like thisinquiryBean.setQueryStatement("SELECT CDE AS "New Code", TXT AS "New Text" FROM TNR004_PY_METH");But it is giving me an error because there is space between New and Code also double quote problem is there.In short I don't know ...