Pass Multiple Selections Values wihin a list box

8885 byte By tonymace at 2007-9-26 1:33:39
I have a JSP form with a list/menu object on the page. It allows multiple section of values within the box.The form field name is: TESTI use an IDE Macromedia Dreamweaver Ultra Dev to write my JSP code and I am new to JSP. I understand I need to collect the values within an array using ...

search within the site

251 byte By jprizm at 2007-9-26 1:33:42
I have site having 40 pages and 400 links. You can say its a link information providing site. I want to know how can I serach a speicfic link within a my site of 40 pages by using JAVA Server Pages.thanks for helpZAK

cookies ............correction

1056 byte By manohar2 at 2007-9-26 1:34:03
Friends I am using cookies in my jsp pages.Below is how I create my cookies :--Cookie cookie;cookie = new Cookie("MyCookieName","MyCookieValue");// setting the age to 1 hourcookie.setMaxAge(3600);response.addCookie(cookie);...-and retrieve my cookies :-...Cookie[] Cookies = ...

Connect to HotMail

150 byte By JMHOWELL at 2007-9-26 1:34:04
I'm new to JavaMail and was wondering if there was a way to connect to HotMail?I do know that it is an HTTP based mail v/s POP or SMTP.

javascript Help

648 byte By Priyam at 2007-9-26 1:34:09
Hi, I have one Array in javascript. Suppose my Array contains 20 elements . I want to display 5 elements at a time & I have one 'Next' button to display all remaining elements pagewise.For this I have written two functions. One is printArray() & other is nextElements()I want to ...

Session Help

660 byte By wmacey at 2007-9-26 1:34:16
I would like to know why....why...why? I have an app, with a login and password verification entry that I am working on. The rest of the app should be secure.Upon login verification, I set the session attribute login to hold some pertinent information. Then on each page, I check for the session ...

How to use a parser with crimson XmlDocumentBuilder

953 byte By wellards at 2007-9-26 1:34:39
Hi,I'd be very grateful for any help on the following...I used to use the following code to parse an Xml document, using a SimpleElementFactory to create my own class Element nodes...XmlDocumentBuilder builder = new XmlDocumentBuilder();parser = new ...

Using setAttribute(), getAttribute() in servlets

338 byte By sigrney at 2007-9-26 1:34:50
I need to take a Java String or other Object and pass it from one servlet to another. I have been trying to use the setAttribute and getAttribute methods. I also tried servletContext().set/getAttribute(). Everything I have tried passes a null value. This seems to me to be a fairly simple, ...

servlet - when would you use it ?

283 byte By stephensutherland at 2007-9-26 1:34:55
hi everyone It may sound very simple. But could some of you java experts please list the reasons you would use a Servlet instead of a JSP with Bean interaction.This will be extremely helpful.Sincerely Yours,Stephen Sutherland

email attachment count

457 byte By mrweb24 at 2007-9-26 1:35:12
hello java guru'scan someone tell me how will i get all the attachments(>2) and print each attachments content..part = new Packages.javax.mail.internet.MimeBodyPart(is);for each of the attachment, i want the filename, filecontent in a sort of array or something like vector...content is ...

Client code cast error:EJB returning data in Collection of Objects

2430 byte By bocockli at 2007-9-26 1:35:53
Still trying to understand this EJB stuff.....My BMP EJB returns data to the client in a collection of objects; // Home interface (CountryHome) nothing unusual here public Collection findAllCountries() //Remote interface (Country) nothing unusual here public CountryModel getDetails() The data ...

How can I keep a user from entering " character within a JSP input text box

97 byte By CHEERS at 2007-9-26 1:36:02
How can I prevent a user from entering the character " within a text box of my JSP?

JMS in a B2B scenario

1617 byte By debapriya at 2007-9-26 1:36:04
We have a scenario where external partners will transmit requests to our application, which will reply back with some results. Some of the other requirements for _our_ application are: support for concurrency, scalability, high avail, etc.We feel that using EJBs to model our application will ...

what is "current" for XML & Java

273 byte By mtndood at 2007-9-26 1:36:18
In the few weeks Ive started learning to use XML together with Java, there seems to be a lot of different parsers out there. IBM is now donated its XML4J to the xerces project. Other than JAXP, what is considered the "best" XML api for Java out there ?

Help on using importNode() method for DOM 2

678 byte By MB_75 at 2007-9-26 1:36:35
I need help on using method importNode(Node importedNode, Boolean Deep). I have three document interface and need to combine it to one. I'm uinsg importeNode() method from Document Interface to accomplish this. Does anyone know if i'm on the right path? I have Document Doc1, Document Doc2, ...

How Can I dispaly XML file with CSS?

166 byte By horseliu at 2007-9-26 1:36:45
hi,all There is maybe a simple way to dispaly a XML file with a CSS file in program.But I don't know.Who can tell me?Thank you very much!

Discussion Forum in JSP

178 byte By v_senthilraja at 2007-9-26 1:37:11
hii found many free discussion forums in asp, php.can anyone tell me a free discussion forum in jsp available for free download.senthil.

jsp

373 byte By ponugoti_p at 2007-9-26 1:37:18
hai alli am facing problem while requesting a jspfile.i am requesting this jsp file from URL.it is giving error on server as below.....java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '4096' bytes instead of stated: '4421' bytes. if have any solution mail me ...

Generate own session ID?

247 byte By lfwu at 2007-9-26 1:37:27
Does anybody know how to generate our own uniquesession ID when creating session?When we use request.getSession(true), it generate the session Id by the system, how can I generate my own sessID?ThanksBryan

How not to ignore white spaces in Dom parser ?

173 byte By amanoharan at 2007-9-26 1:37:29
Hi,In dom parser, how do i force the parser not to ignore white spaces when writing and reading back element values ?Thanks in advanceMano

How java will support the doc files

395 byte By manasa_m at 2007-9-26 1:37:32
I am doing a project where the back up word files are to be displayed on the browser . If it is a text file we can give it as a input stream and if it is a image , it will take it as a .jpg . Then how the .doc can be inputed(I want the MS-word files to be inputed) .I have to do it in jsp.If u ...

how to parse a string using Xalan or Xerces?

523 byte By xerokool at 2007-9-26 1:37:34
hi allgot a question here. hope someone can help me out. :)i have a string containing xml data and i want to parse it so that i can use DOM to alter the information in the xml data. pardon me but i dont know the usage of Xalan and Xerces. i'm a student doing a major project now and my lecturer ...

Help For Calling Method........!

667 byte By dragon_east at 2007-9-26 1:37:44
I am confused about a problem. When I access the method of EJB A: such as UpdJob(),it works seccessfully,also it is successful when access EJB B: insert(...).But when I call the both methods at the same time in a method:public void bothmethod(){B.insert();..........(the method of EJB ...

request.getParameter(String name) do not be used in one form

1688 byte By zjfsamuel000 at 2007-9-26 1:38:04
request.getParameter(String name) do not be used in one formwith ENCTYPE="multipart/form-data", this may be a bug? please look the followed file html file <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>Upload</title> ...

Unable to view javax.sql.*

333 byte By pleonardi at 2007-9-26 1:38:05
can someone explain what i may have done wrongi'm unable to view javax.sql.*,i have downloaded the jdbc driver jdbc2_0_1-stdext.jar into <dir>:\jdk1.3.1\lib and included this file into the classpath...i someone could give me futher direction would be extremely helpful...thanks ...

How to run JAXP in servlet using JSWDK?

408 byte By tom8131 at 2007-9-26 1:38:08
Hi, I am trying to parse xml to html using JAXP API within a servlet. But an error message showing ' java.lang.NoClassDefFoundError: javax/xml/parsers/ParserConfigurationException ' is displayed in the web brower. But when I parse the xml to html and output the html text to the standard ...

Page Break

140 byte By vansm at 2007-9-26 1:38:09
Hi! I'm new to JSP. how can I implement page break for printing. I would appreciate if you could send me sample code. Thanks.

Tomcat little problem

879 byte By axeld at 2007-9-26 1:38:15
Hi,I developped a web application with JSP.I use Apache and Tomcat.I want to reduce the URL...I explain...Under the directory webapps of tomcat i have myown directory myDirectory which containsmy jsp (under tomcat/webapps/mydirectory/myjsp)and all my jar (under tomcat/webapps/mydirectory). In ...

connectionpooling

141 byte By mtndeva at 2007-9-26 1:38:32
can we improve performance of servlet using connection pooling .. if it is corect iam looking for with example and explanation

Remove EJBObject and all referenced EJBObjects

291 byte By gjkreeft at 2007-9-26 1:38:42
We have an EJBObject (Order) that has references to other EJBObjects (OrderLines). When we try to remove the Order we first have to remove the OrderLines manually. Does anybody know if it is possible to automatically remove all referenced EJBObjects together with an EJBObject?

If the the page returned by the JSP too large what will happen.

480 byte By ponugoti_p at 2007-9-26 1:38:43
hay guyshere i am facing a bug problem.I am requesting for a JSP page which will return an HTML page. that returned html file is too large(containig images). because of this i am getting an exception on server side saying...java.net.ProtocolException: Didn't meet stated Content-Length, wrote: ...

JSP in javascript

408 byte By preetith at 2007-9-26 1:39:07
Hi,I would like to know how to pass javascript variable to jsp .the code wud look like this :function myfunc(name,value){<%session.setAttribute(name,value);%>}this gives a javascript error.We would like to do this without posting on the same form or using request.getParameter().Thanx in ...

accessing a client side variable on the server side in the same JSP

300 byte By abhis1 at 2007-9-26 1:39:08
I don't want to use a request.getParameter() because I don't want to do a post a hidden field onto the same form, is there any other way apart from posting the same form onto itself for accessing the client side variable on the server side in the same JSP, if anybody knows pls answer ...

scripting variables and custom tags

595 byte By iion_tichy at 2007-9-26 1:39:18
Hello,I wonder how I could use a scripting variable in a custom tag? I have written a tag that formats number and dates, and would like to be able to do somethin like<% double x = 12,345; %><x:write name="x" format="xyz" />Also I wonder how best to implement tags with parameters? I ...

How can i Call Method from COM

228 byte By mahendrudewakar at 2007-9-26 1:39:22
Dear thereI am Creating some applictaions by using JAVA. In which i need some Mehod from DLL Files(COM). How can I access these methods. If you know please Send me at this eMail ID: mahendrudewakar@yahoo.com

Go to http://www.javajia.com

47 byte By yukinglie at 2007-9-26 1:39:23
Welcome to http://www.javajia.com

com.sun.messaging.TopicConnectionFactory();

414 byte By Sone at 2007-9-26 1:39:37
I would like to create an instance of "com.sun.messaging.TopicConnectionFactory" simply by: TopicConnectionFactory tpc = new com.sun.messaging.TopicConnectionFactory(); instead of using this way:TopicConnectionFactory topicConnectionFactory = ...

Get a parameter in a TextField

1242 byte By stoneJ at 2007-9-26 1:40:03
Hello everyone,I have a JSP file from where a calling another JSP...first thing i do in calling the other JSP is sending the parameter from a hyperlink like this:-out.println("<tr><td><a href =DataInput.jsp?para=" + pers +">"+ pers ...

How to add 3 days to a date to get a newdate

198 byte By adamrau at 2007-9-26 1:40:28
Hi all,I have a date in this formatJUL 28, 2001I want to add 3 days and get the new date.Does anyone know how to do this.Thanks in advanceAdam

HttpSession::getMaxInactiveInterval method not found

1299 byte By neevem at 2007-9-26 1:40:40
Hi,I am trying to run a servlet on iPlanet Web Server 4.1 SP7. The servlet uses the getSession methods to access the session data. However, when I make the getSession call, an exception is thrown from NSHttpServletRequest indicating that the method HttpSession::getMaxInactiveInterval() cannot ...

Ignore Case of XML Using a DTD

196 byte By cosborne at 2007-9-26 1:40:43
Does anyone know how to force DTD validation to ignore case of the xml that is being validated? i.e. I want to be able to treat <serviceIn> the same as <servicein>

Mail Duplication

262 byte By richardsimmonds at 2007-9-26 1:40:50
If I send a html based email and Outlook receives it only one copy is displayed. However if I send the same mail to a web interface (hotmail) for some reason the html content is displayed twice within the one email.Why is this please?

Connection pool class not found

1256 byte By harpreet_hira at 2007-9-26 1:40:53
I have made a connection pool class for servlets and placed in JavaWebserver2.0\classes. This connection pool class is accessing one db.properties file which I have placed in the same directory. I am writting a servlet which accesses this class at runtime and uses takes the connection from this ...

!DOCTYPE not being output by transformer

856 byte By cyberjeff8 at 2007-9-26 1:41:02
Hi,I am trying to create an XML document from a DOM tree. I am using the Transformer and DOMSource interfaces to generate the XML. My question is: how do I get the !DOCTYPE to be output with the XML? I know that it is set because I am checking it prior to the transformation. I want to send the ...

Having a servlet as the main home page..

371 byte By pramod_vvs at 2007-9-26 1:41:05
Hi,How can I have a servlet as the main homepage of my application instead of the index.html ?When my user types www.mycompany.com instead of the index.html being invoked I would like a LogOn servlet to get invoked .How can I do this ?Iam using JRUN with IIS ?Any ideas/help would be of great ...

XML processing of CDATA

763 byte By rjolsen at 2007-9-26 1:41:19
I have a DOM document whose nodes have CDATA sections for code templates, when I write the document to a file, I'm cast the DOM document to an (XmlDocument) and call its write method. This all worked find in the JAXP1.1 early edition, we've just got around to installing the final version of ...

Bean Communication

240 byte By wmacey at 2007-9-26 1:41:39
If I have two beans in use on the same JSP page, can I have them communicate?What I mean is, can a method in one bean call a method from the other bean to do some work, or does it have to be done through the jsp?

MVC in EJB

392 byte By dupdup at 2007-9-26 1:42:01
I have implemented a small size project using the MVC architecture. It seems clear to me that the Model part would be some sort of EJB bean. What I am wondering about is would I need to create the servlet controler as an EJB too? Really I guess the question is if you are going EJB, is ...

Entity Beans

342 byte By dermotb at 2007-9-26 1:42:06
HiHas anybody got sample code for a simple entity beanthat maps 2 or 3 properties to a table in a database.I'm havaing trouble understanding how to setup a primary keyclassand how to use this class to find and instansiate a beanfrom the databaseThanksBrowne ...

Can you pass an array to a bean

265 byte By JavaDen at 2007-9-26 1:42:24
Hi, Can you pass an array to a bean?I need to pass 5 values to a bean if i convert the Bean setMethod to an array then I get an error thet the return type has to be an stringDoes anyone have an Idea how to do this ?TIADenis