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 ...
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
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 = ...
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.
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 ...
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 ...
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 ...
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, ...
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
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 ...
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 ...
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?
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 ...
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 ?
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, ...
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!
hii found many free discussion forums in asp, php.can anyone tell me a free discussion forum in jsp available for free download.senthil.
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 ...
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
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
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 ...
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 ...
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 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> ...
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 ...
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 ...
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.
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 ...
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
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?
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: ...
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 ...
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 ...
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 ...
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
Welcome to http://www.javajia.com
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 = ...
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 ...
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
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 ...
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>
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?
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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