How I build XML dynamically?

446 byte By usam at 2007-9-26 4:03:51
Hello,I'm new to JAXP and I have this problem. Perhaps someone can help me:I have a database. I get data with many select-statements over some tables. Now I want to get one XML-String/-File with the data. The Problem is, I have to cascade these data.I have to build dynamically the ...

PLZ.....HELP ME WITH A FORM !!!

359 byte By azadeh00gh at 2007-9-26 4:04:10
I have a JSP page.....it cantains a form3 groups of radio buttons on the form ...(each group has 4 radio buttons....)I want the value of the each radio button be displayed on the page ......the user may change the value several times before submiting the form.....and I want all changes to be ...

How to print a crystal report using JSP?

165 byte By huangjjing at 2007-9-26 4:04:25
Could anybody tell me how to print a crystal report from a JSP. I use Seagate Crystal Reports. Any advices or sample codes will be highly appreciated.

Jsp Help

213 byte By laker_66 at 2007-9-26 4:04:30
Hi,I was wondering if any one knows where i can find some sample examples to work on JSP. I'm familiar with the fundamentals but i have a project to work on pretty soon. ThanksR

setText() with text/html contentType

455 byte By ddwb at 2007-9-26 4:04:38
HI,I'm trying to send an e-mail with a contentType of "text/html". I'm able use the addHeader() method to set the contentType successfully, but when I try and set the body of text, the setText() method defaults the contentType to "text/plain". How do you set the body of text for an e-mail ...

Session Time Out and Redirect to login - Urgent

601 byte By chandruos at 2007-9-26 4:04:40
After signing in to the site the user is bookmarking some pages, when the user is visiting those bookmarks the next time, login page has to be poped up and the user has to validate his username and password and then, the user has to be redirected to the page he wants to see. Right now I am able ...

Running ANT ...... please help

586 byte By venka001 at 2007-9-26 4:05:15
Hi All,I am trying to follow the J2ee tutorial examples. But whentrying to use ant I am getting this error...please helpMy ANT_HOME =C:\jakarta-ant-1.4beta1And My path includes C:\jakarta-ant-1.4beta1\binamong the other.C:\j2sdkee1.2.1\j2eetutorial\examples\src>ant converterBad command or ...

jsp includes inside a frame

604 byte By fmlhjl at 2007-9-26 4:05:58
Familiar with HTML frames? Is it possible to have a jsp frame and have a jsp includes where there the frame src syntax goes to source the jsp file into the frame? If so what would be the syntax...?My problems stems from having a parameter in the the url and the jsp page that is next has to know ...

selective include statements

1015 byte By blue8173 at 2007-9-26 4:06:06
Hi,I'm working on a website that requires different include statements depending on the user's selection (selection box)this is what i have:<%if (selected == 1){%><%@include file="page1.jsp"%><% } else if (selected == 2){%><%@include file="page2.jsp"%><%}else if ...

Who are these people?

1829 byte By beattris at 2007-9-26 4:06:29
Good day developers,Has anyone noticed that the quality of the questions in this forum have been degrading over time? I just can't believe some posts that come through here. For example, I can't even count on both hands how many times I've seen this one, "I need a JSP that shows 10 records ...

SAX parsing with DTD

787 byte By sathish37 at 2007-9-26 4:06:30
Hi,I am new to XML(two days).I need a sample code using Sax parser using DTD to validate and retrieve elements.ThanksSathishA portion of XML looks like<address> <address1>2000 Test Rd.</address1> <address2>Apt 1</address2> <city>Fremont</city> ...

javax.mail.NoSuchProviderException: No provider for Address type: rfc822

242 byte By chadorbaf at 2007-9-26 4:06:36
This error comes when i am trying to run a servlet to send email. How can i get rid of this and get it to work. To look at the source code please see: http://forums.java.sun.com/thread.jsp?forum=31&thread=133501

smtp server password

404 byte By fakkundo at 2007-9-26 4:06:51
I have download de java mail example from sun, and I tryed to send a mail with a picture. But I couldn't send the mail. I recived a mail that say that the smtp server did not reach the recipient(s).One thing I want to ask is: Don't I need to put the password of the smtp server? If yes, ...

analyse a inputstream

400 byte By bx1 at 2007-9-26 4:06:56
Hi,to read a file uploaded, i use :InputStream s=request.getInputStream();and i convert the input stream in a string.So,i would like to read it to localize some pattern and retrieve the next elements, but i don't no how ?have you got an idea ?maybe do you no how to analyse an inputstream to ...

PB With Java Embedded Server! Pls Help

941 byte By Omnigunk at 2007-9-26 4:07:00
I'm trying to install the Java Embedded Server Framework and I did it like this! I extracted setup.class into g:\jes2.0. My jdk is installed in "G:\winnt\jdk\bin". I add "g:\jes2.0" to my environment variable based on the help file"Make sure your CLASSPATH environment variable contains . (the ...

setting contenttype to UTF-8 not working!!!

1832 byte By thunderBolt at 2007-9-26 4:07:09
I have this in my test.jsp page. When I run it in Jrun3.0 server, I got '500 internal server error'<%@page contentType="text/html;charset=utf8"%><html><head> <title>Untitled</title> </head><body> Test</body></html> 500 Internal Server ...

Catching and error and going with it

202 byte By Massarian at 2007-9-26 4:07:10
I'm using a Sax Parser on a streaming XML feed and this feed has some errors in it, so I need to know if there is any way to catch the error and continue parsing.Thanks,Mass

Running a war file

994 byte By deepinjava at 2007-9-26 4:07:11
I have written an application that starts off with an index.html file which then calls servlets which in turn calls other servlets etc..and it all works well.Now, I want to compress them all into a single app.war file and run the application off the war file.I did: jar cvf app.war *.html ...

Invoking JSP tag with a JSP tag

494 byte By johnkchiu at 2007-9-26 4:07:17
Hi,I'm trying to write a tag that basically invokes another JSP tag 5 times with different values for its attribute. I'm just wondering if there's a way to accomplish.I tried creating instances of the tag that i'm invoking and then calling doStartTag() and doEndTag(), but this doesn't ...

Which parser is used under JDOM

309 byte By Brunky at 2007-9-26 4:07:26
Is there a way to tell which parser, Oracle, Xerces, Sun, is being used under JDOM. I'm getting a SAXBuilder, but I want to make sure it's using the right parser underneath. I know how to set it, but I want to know how to prove that's what is being used.Thanks in advance,Brunky ...

Javascript and JavaBean

170 byte By wmacey at 2007-9-26 4:07:31
Is there any possible way for JavaBean to Communicate with JavaScript?I have read a few....No Never responses, but am lloking for a definitive answer

Java Mail and MS-Exchange Calendar

512 byte By adwillia at 2007-9-26 4:07:38
Hi,I am trying to access all of the folders of outlook and I have had some luck. I have run into problems with the calendar. I can get all of the information out except for the start and end times of the meeting (rather important pieces of data). I printed out all of the headers and was not ...

JDOM, SAXParser and "-Djavax.xml.parsers.SAXParserFactory="

163 byte By Brunky at 2007-9-26 4:07:47
Has anybody been able to use a Sax2 parser with JDOM other than xerces. java -Djavax.xml.parsers.SAXParserFactory=?Thanks,Brunky

what Jaxp for SAX validation

209 byte By Duker at 2007-9-26 4:08:00
Hi When the compile the sample code Echo10.java, I am getting an error saying Attributes, DefaultHandler are not found. Please let me know in what pakage these classes will be there

Passing parameters from one jsp to other

822 byte By arunvis at 2007-9-26 4:08:15
I am having two jsp pages and one servlet.First jsp is calling second jsp and second jsp is calling a servlet as first jsp page <html><body><form method=postaction=""../jsp/second.jsp><input type=text name=text1><input ...

help - JSDK2.0 without the jsdk.jar

242 byte By sumanmadan at 2007-9-26 4:08:20
Hi,I am trying to download the JSDK2.0 since the apache JServ supports only JSDK2.0 and when I finsih downloading, there are no jar files or lib folders.Please help me........ThanksRegardsSuman

<jsp:useBean...> didn't create new bean?

1765 byte By verdi96 at 2007-9-26 4:08:21
According to tutorial or specification (in my perception),the following tag will create a new bean if it doesn'texist:<jsp:useBean id="prodDetail"class="mycomp.model.ProductDetail"scope="request" /> Say I put the tag in Product.jsp, and it is an entry formfor insert and update a new ...

Please Help!

584 byte By yu_hung at 2007-9-26 4:08:27
Hi thereI am using JBuilder 4 to create a Servlet and JSPes. When the client requests come it first goes to the Servlet and then the Servlet passes it to the appropriate JSP.Now I want to use some custom tag in the JSP page and I found that when I run the Servlet in JBuilder 4 it could find the ...

common variables in diff. JSP

253 byte By chungyan5 at 2007-9-26 4:08:30
dear all i have diff. JSP, they are also want to share a common variable, is it a efficient way to code that? i don't want to use a method that using GET method transferring from one page to another page. thanks yan

How to Pass a Database Connection String to JSP

234 byte By atifkhaliq at 2007-9-26 4:08:35
I want to pass a database connection string to JSP file ,from where i put my connection String and how can a jsp file get this string ? I want to make my code generic to change connection string repeatedly.

Add data to database with Entity Bean

390 byte By petermok at 2007-9-26 4:08:39
I am new to EJB. I understand that using home.create(int productID, String description...etc) will call the the ejbCreate(int productID, String description...etc) in the Bean (container managed) and the new data will be added to the database. What happen if the productID in my database is a ...

problem in j2sdkee1.2.1 installation

454 byte By sa1233 at 2007-9-26 4:08:49
Hi, I installed j2sdkee1.2.2 . I set the class path as c:\j2sdkee1.2.1\lib\j2ee.jar and PATH as "c:\j2sdkee1.2.1\bin;c:\j2sdkee1.2.1\lib". I also edited userconfig.bat under \bin directory and set J2EE_HOME=c:\j2sdkee1.2.1. Everytime I try to start the server with "j2ee -verbose" I get the ...

how to get the size of file from my system before uploading

229 byte By hariharan1005 at 2007-9-26 4:08:50
Hello friends,how can we determine the size of a file from the system before uploading it i dont see any method in file class that can get me the size of fileUrgent!!!!!!!!!!!!!!!!!!!!11

Multimedia in JSP

340 byte By tomcat_III at 2007-9-26 4:09:03
I have written a jsp file that checks for the username and password of a user and then logs them on to a database. When I include pictures or sound using normal html code such as <bgsound src=blahblaf> I get the following error 404, what is the cause of this error and how can I correct ...

Apache for HTML and Tomacat for JSP

349 byte By BRoberto at 2007-9-26 4:09:05
I have a linux system. I would want to use Apache as web server ( for HTML file ) and Tomcat as application server ( for JSP file ). I have my sites in dir /var/www/... and I have configurated Apache to "read" these sites... but when I insert a JSP file in these directories Tomcat doesn't work ...

Tycoons Of XML Help Me

161 byte By sameera_cmca at 2007-9-26 4:09:29
I am new To Java-XML Technology is any one here kind enough to help me hopw to proceed further, what to download , how and from where to get help .

NoSuchMethodError at jdom method

603 byte By Aarathorn at 2007-9-26 4:09:30
Hi allI'm writing a small server-program that receives and sends XML data. For this, I'm using the jdom and the xerces packages. My code compiles fine, but at runtime it yields a NoSuchMethodError for the jdom startElement method I am trying to use and propagates throught further jdom and ...

serverside

82 byte By ctssdc at 2007-9-26 4:09:35
Any one having idea abt Server Side Push and how is it implemented .

JSP forwarding problem in tomcat

639 byte By lizmarc at 2007-9-26 4:09:50
I have a jsp page with some images. I forward to get from a servlet. No matter what I do, Tomcat cannot find the images even though the images are in the same directory as the jsp page. I get a 404 error. My servlet code is pretty simple:RequestDispatcher dispatcher ...

Servlet / JSP hosting

336 byte By obersong at 2007-9-26 4:09:51
Hi!I need FREE servlet / jsp hosting.I searched the net, but I didn't found a provider that hosts ~10Mb of servlets, jsp and mysql database.I realy need it to earn money. Can anyone help me?the provider has to give me access to a 10 Mb mysql database, and 5 jsp pages.Thanks in advance. ...

new to JMS

182 byte By rahulkz at 2007-9-26 4:10:08
Hi friends,i am new to JMS.Where i can get good resources on JMSPlease suggest books and web linksThanks in advanceRahul Zulknathiwar

Redirect to a servlet when using a proxy

1177 byte By teka at 2007-9-26 4:10:11
Hello,How can I redirect to a servlet from a jsp without hardcoding any directory/parts of the url?I am using tomcat v.3.2.1.The webapp is behind a proxy server and that address can change so when the real url to a jsp called myjsp.jsp would be something like "www.host.com/webapp/myjsp.jsp", it ...

JSP Vs COM

245 byte By pawandandawate2 at 2007-9-26 4:10:12
hi !i want to know is it possible to access COM components say MS Outlook using JSP.I have learnt that it could be done thru JavaBean Bridge for ActiveX/COM.Can any one tell me how to go about this.pawan

jswdk-1.0.1 invoke static class when server is started!

653 byte By im_cwk at 2007-9-26 4:10:14
I'm now using jswdk-1.0.1. I need to create an object from a static class(SystemLogger) to create a log file when server is started, so that when later the program run, it can refer to that object to print log message inside the log file. Now, when I add "start java InitSystemLogger" inside ...

What is the ResultSet is null

403 byte By qasims_1 at 2007-9-26 4:10:19
Hi,I am trying to do some work if the ResultSet is null . The Sample Code is if (rs != null) {While(rs.next()){Get The values from the database} } else if(rs == null) { <jsp:forward page="XYZ.jsp" /> }The seems to be very simple. but not working.Any Sugetions about this ...

response.buffer = true ?

705 byte By ian_ferreira at 2007-9-26 4:10:35
Hi there,Is there an equivalent to the above ASP statement for JSP. I ma trying to include a header page in al my pages that does authentication based on a session var.e.g. <jsp:include file="header.jsp" flush="true" /><body>...where header.jsp is something like<% if (var == ...

error in Mysql database connectivity

276 byte By kuldipjain at 2007-9-26 4:10:55
hello,there is problem in Mysql database connectivity.when i connect JSP program to Mysql database it gives error : Server configuration denied access to data sourceplease help me asapkuldip jainkuldipjain@rediffmail.com

JSP's not seeing a servlet classpath.

538 byte By jonesro at 2007-9-26 4:10:56
I've put my classes that support my servlets in the servlet classpath, this way the classes are reloaded the same way servlets are when changed and you don't have to reboot the webserver. My problem is my JSP's also use some of these classes and I'm getting the old 'ClassNotFound' ...

weblogic JDriver for Oracle + Linux

554 byte By amtanoli at 2007-9-26 4:10:59
hi,i am working with weblogic 5.1, oracle 8 and linux 7.0. i am trying to use weblogic JDriver for Oracle. but the problem is that, how to set the path for JDriver. there is no entry in the weblogic documentation for linux for the directory to be included in the LD_LIBRARY_PATH. i have tried ...

Brief EJB stuff?

445 byte By rojaktambi at 2007-9-26 4:11:09
I am a beginner and I want to know in details about normal bean and enterprise bean.Well in the beginning I have some problem understanding of doing the implementation by customer to build beans and enterprise beans....so I want it to be more specific in comparison between this two ...