83 byte By
dubwai at 2007-9-26 2:00:05
Has Sun upgraded the JAXP since the w3c decided on the schema format?
212 byte By
katalex at 2007-9-26 2:00:17
I installed Java2SDK and JSWDK and tryed to look at examples from JSWDK but all the time I receive a message about "500 error"I've set PATH and CLASSPATHPlease help!!!Thank you
521 byte By
sarumii at 2007-9-26 2:00:20
Hi I use a dynamic include for my top "header" (by header, I mean many urls that pertain to either internal or external users) of my web page, and I use String agent = request.getRemoteAddr(); ......to get either a intranet header or internet header dynamaically,but, if inside the body I have a ...
Hi, I'm new to JSP.Here is the JSP page that causes the error<% String n = request.getParameter("name"); String s = request.getParameter("surname"); if(n.equals("xxxx") && s.equals("yyyyy")) {%><jsp:forward page="myhome.jsp"><jsp:param name="name" value="<%=n ...
Our under-developent web system is global. Our clients should be able to search data from the server-side database and then after get the resultset, they also should be able to save these data as a text file on their local machine by just a click. Of course, before they click the OK button, ...
Is there a way to redirect the response objects output buffer to a file instead of to the client (browser)? I am using the jsp to process a set of jsp templates (using the RequestDispatcher's include method) and I would like to send the resulting html to a file, NOT to the client. Any ideas. ...
I'm trying to deploy my application with J2EE v1.3 and I'm getting the following error:javax.ejb.EJBException: ERROR: SQL statement for creating table is empty. Possible cause: SQL Generator has not been run.Could someone please explain what this means?
Hi, I want to know if a query is yielding a resultset. Say for examplers = stmt.executeQuery("Select first_name, last_name , home_branch, full_time, reg_schedule_hrs , part_time from employee_details where employee_id = '"+emp_id+"' ");I want to know how to code if it doesn't return records ...
724 byte By
mtndood at 2007-9-26 2:01:04
Im experiementing with various examples of parsing an XML document and adapting it to a TreeModel for use in a JTree component. Im looking at some of the newer JAXP API's like org.w3c.dom.traversal Interface DocumentTraversal. Im wondering about depth first and pre-order traversal.What do ...
279 byte By
walaloo at 2007-9-26 2:01:08
Is anyone familiar with using Forte 3.0 to develop/deploy a web application to an iPlanet Server? All I need is a simple walkthrough to create/deploy a "Hello World" app (it could be just a JSP) or a link to some document that covers this topic.Thanks
264 byte By
wmacey at 2007-9-26 2:01:16
I really want to put a scrollable JList or JTable into my JSP page.I have heard comments that this is impossible and would like some input on other JSP compliant options I have.Any input is welcome, as long as it is constructive.
1739 byte By
m_ansram at 2007-9-26 2:01:19
Hi Friends, I am using the MQ server fV 5.2 or windows 2000. I am trying to publish a message to a topic using the following code com.ibm.mq.jms.MQTopicConnectionFactory tcf = new ...
484 byte By
rdf2 at 2007-9-26 2:01:27
Hi,Is there anyway for one to keeping an smtp connection alive? Every mail I send via smtp sends a QUIT at the end which essentially close the connection on the smtp relay.Thus when I send a new mail it has to re-establish a connection to the mail server every time, which can take some ...
158 byte By
wmacey at 2007-9-26 2:01:36
I have information in my JSP, obtained through some bean, and need to pass allthat info to an applet I want to run. Is it possible
525 byte By
jerkyboy at 2007-9-26 2:01:37
I need to make a servlet that allows the user to download multiple files at once. I was thinking the save as prompt would be necessary for each file. So my ideal system would be the user clicks a link that would bring up a save as prompt when they click save, another comes up with another file ...
913 byte By
met209 at 2007-9-26 2:01:58
Hi everyone:My coworkers and I need to track the number of pages a user visits while visiting our site.We set a cookie in the login servlet. If they're not logged in and they visit 5 pages, we want to redirect their request for a 6th JSP to "pleaseLogIn.jsp." Here's the problem:1 -- We want ...
563 byte By
marinaR at 2007-9-26 2:02:02
Could you please explain me where is the difference between passing integer to "where" clause and string.if I use like this:("select * from table_name where id=" + id)-return to me everything what i need exactly,but in case when I use("select * from table_name where name = " + myname)-get error ...
143 byte By
tnr009 at 2007-9-26 2:02:21
I want to separate the XML contents so that I can create lists. How do I create a dropdown list based on the XML contents?
I have a session bean S with a method foo1(). S.foo1() calls an entity bean A (which has multiple child entity beans of type B) twice via its method bar() which creates a new child entity B. In other words, you call the session bean which calls the entity bean twice and tells it each time to ...
HiI want to generate a report based on certain criteria. The values entered by the user in the text boxes of the HTML form needs to be validated from the database table. Should I validate all the fields at once or should I validate one field at a time. How does it effect the performance. I am ...
232 byte By
datou_yu at 2007-9-26 2:02:56
when i use jaxp parse a xml dcument, for every node, there is always a empty child node which has a "#text" node type, emptyl node name and node value. could someone can tell me what's this node for? thanks your help!
931 byte By
dUb at 2007-9-26 2:03:11
I am constantly getting the error that "Couldn't load database driver: oracle.jdbc.driver.OracleDriver " Now I believe this is due to the fact that something is screwed up with my classpath. However I have the driver in my enviromental classpath and I believe that it needs to go in the ...
588 byte By
kbandela at 2007-9-26 2:03:13
Hi All,ENIVRONMENT:OS: Windows NT 4.0 Apache Web Server, Macromedia Cold Fusion Server 5,Java JDK 1.3.2, JAXP 1.1PROBLEM:I have a Java class in which i am parsing an XML string(using SAX parser) and doing some other stuff. All is fine when I run at the command prompt. But it doesnt work when ...
594 byte By
calbear at 2007-9-26 2:03:20
Hello everyone,I have a web page that gets messed up when a user double clicks a submit button in MS Internet explorer (causing the user to submit the form twice). I remember a former company of mine having this problem, but I wasn't the one who worked on the solution so I don't know how they ...
Hello PeopleI need suggestions and input on a news publishing APP.it's hosted on MyCGIServer. http://www.mycgiserver.com/~rehanmalik/news.jsp(Main News Page). http://www.mycgiserver.com/~rehanmalik/news/(Login Page)Username: adminPassword: adminI'm ready to get flamed =P ...
124 byte By
des_xu at 2007-9-26 2:03:32
Hi, does anyone know how to write a timestamp codes for JSP page so tat my JSP page wont be cached?thx!
143 byte By
des_xu at 2007-9-26 2:03:35
Hi, is there any software tat can write JSP codes and debug it, functioning the same as what microsoft interdev is doing for ASP?
207 byte By
macitoma at 2007-9-26 2:03:41
Is it possible to do that without reloading the whole page?Can someone give me any ideas how to update, let?s say table content, once user clicks a button.Thanks,TM.
760 byte By
rajeshkz at 2007-9-26 2:03:42
Hi, I'm trying to get the encoding of an xml file with the following code.- org.xml.sax.InputSource is = new InputSource( new FileInputStream( new File (filename ) )); System.out.println( "encoding for "+ filename + " is " + is.getEncoding() );-Input xml file is <?xml version="1.0" ...
I am trying to do the tutorials with j2sdkee1.2.1 intalled on Windows 98. While I tried to run compileEJB.bat file for Converter Application, I am getting the error on the console- " Bad command or file name".I feel there is no problem with my installation as I am able to start J2EE server and ...
Hi,I tried to display PDF file with Servlet in IE but failed.I used response.setContentType("application/pdf") to set the content type. And then write the pdf stream to the OutputStream. It can successfully display PDF in Netscape with Acrobar Reader plugin. But failed in IE, in IE, it just ...
126 byte By
des_xu at 2007-9-26 2:03:57
Hi, I want to check if a given string contains numbers or alphabets, is there anyway to go this using JSP codes?
364 byte By
mafubo at 2007-9-26 2:04:18
Environment : JSP+TOMCAT(3.2.3)+WINNT(4.0 SERVER)Problem : As we know , there will be compiling when wevisit a jsp-page which didn't be visited before. So it willbe slow when we first visit a new website ! My question: Is there a way to compile my all jsp-pages of new website before i start ...
Hi -I was wondering about an alternate way to connect to Oracle from an entity bean... In the J2EE examples for entity beans, the context is queried to find the datasourceand then the datasource is queried to geta connection.To replace CLOUDSCAPE with ORACLE in thereference implementation, I ...
Hi All,What are the advantages of Servlet over JSP?Thanx
351 byte By
ravish.k at 2007-9-26 2:05:11
Hi, I am trying to read a properties file in a java class which will be used as a bean for a JSP page . But I can not read properties file and it is saying "File Not Found" . I am able to read the file if I give fullpath or if I keep that file in tomcat/bin/ . Is there any other solution ...
717 byte By
SridharM at 2007-9-26 2:05:14
Hi, I have a JSP (abc.jsp) that has a <BASE href = " http://www.xyz.com" >. It also uses a html bookmark "abc.jsp#top" to provide a "Top" link for the user to go to the top of the page. This page is viewed for the first time through a Request dispatcher's forward method from a Servlet. It ...
Hi,In my application, (am using JSP), i am using the 'request.getRemoteAddr()' method to retrieve the IP of the client who hits my web page. My prob is that this method does not give me the IP of the actual client, instead it returns the IP of the gateway (in case it is there), or if the ...
454 byte By
swetav at 2007-9-26 2:05:30
I Have just begin to learn JSP. I downloaded the JSP developer kit from java.sun.com. However I dont know how to proceed. I have seen references to'the container'. what is it and how do I start it? and the same for the server which I have in the form a batch file. How do I configure the ...
82 byte By
tomym at 2007-9-26 2:05:34
Can anyone tell me how to send SMS using JavaMail API.Thanks
421 byte By
karank at 2007-9-26 2:05:37
Can any one tell me where can I get the source code for the sun.jdbc.odbc.JdbcOdbcDriver class file.Actually, I am working on IBM Websphere and I need to access an MSAccess database. When I try to configure my Appln. in Websphere to work with MSAccess database, it asks for the driver jar ...
332 byte By
fagane at 2007-9-26 2:05:51
I have a form that allows a user to update their details. The form displays the current details. One of my input fields is a drop down list. How can I get the drop down list to display the current value for this field (i.e. the value the user entered the first time the submitted their details) ...
320 byte By
isam_hk at 2007-9-26 2:05:54
Does anyone kindly to send me the sample codes for sending & receiving e-mail through smtp by javamail api?Since I'm new in javamail & hv no idea where to start. But I think I can amend the sample code for my own use rather than start from scratch. THanks! ...
221 byte By
wisec at 2007-9-26 2:06:02
Hi,I am coding some JSP and Servlet codes, and want to push back a mssage to browser and don't let browser first send a request to server like chat. Who can help me for that?Thanks,Wise
234 byte By
taruns2 at 2007-9-26 2:06:09
I am unable to pass a vector from a Jsp to a Servlet. I have tried request.setAttribute and req.getAttribute in Jsp and Servlet respectively. Even session.setAttribute and session.getAttribute doesnt seem to work.
253 byte By
xerokool at 2007-9-26 2:06:23
hi alli got a rather simple question here.how do u construct a DocType to look like the following:<!DOCTYPE svg SYSTEM " http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">thanks :)
329 byte By
Abhi325 at 2007-9-26 2:06:33
Hi!I am not able to open jsp files from the Java Web Server2.0. I place the jsp files in the public_html folder, the java and class files in the classes folder. I have also downloaded a few sample files which seem to work fine, so there is no problem with the server. Can someone help me out ...
886 byte By
daffin at 2007-9-26 2:06:36
Hi,I writing a small webapp to test/understand the 2.2 Servlet Spec. I am deploying this as a WAR to Orion, Tomcat and Silverstream.The app's name is: "myapp"My application has an index.html, which is listed as the sole welcome-file in the welcome-file-list element in the app's web.xml.The ...
I have set up the required variables in order to run the startup.bat file and I get the following error when attempting to start it:java org.apache.tomcat.startup.TomcatException in thread "main" java.lang.NoClassDefFoundError: org/apache/tomcat/startup/TomcatI have modified my Startup.bat file ...
5884 byte By
pengyl at 2007-9-26 2:06:44
Hi guys i am having problem with the Web Application: I wrote a program in Jsp+JavaBean, Microsoft Access Database, this program runs smoothly in Windows 98/Me+Apache+JRun developer version, but when I put it on the ISP's Server, it always (not every time) cause "Jrun Closed Connection" , i ...