My PC doesn't understand .JSP extensions

852 byte By Shtarkman at 2007-9-26 2:16:00
How do I get my computer to understand JS Pages that I write?I have installed Forte4j and JRun 3.0. These are JSP editors, however, my PC doesn't know what I'm talking about. I have also downloaded Apache Tomcat 3.2.3 and have added the necessary CLASSPATH and JAVA_HOME roots. But these ...

Can I force a parser to use fixed DTD for validation?

795 byte By 1884133 at 2007-9-26 2:16:16
How do I force a SAX parser to use a fixed DTD (and ignore any DOCTYPE decl. in the xml doc) ?I have been searching Java forums, apache website, the web, and SAX APIs for a way to do this but without luck. The usage is that I want to validate with a DTD located on the server, and wish to set my ...

Weird! I thought crimson.jar/jaxp.jar were included in rt.jar for jsk 1.4!!

844 byte By 6tr6tr at 2007-9-26 2:16:19
I am trying a Wrox Books Example (Chapter 2 in Professional Java XML), and if I do this: java BookMainI get this error: Exception in thread "main" java.lang.NullPointerException at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524) at ...

prob with redirect

388 byte By des_xu at 2007-9-26 2:16:24
Hi, I will need some help with this qns =)I have a menu.jsp page that contains a javascript menu.Whenever a user log in from login.jsp, the page will redirect the user to menu.jsp, however, I cannot see the javascript menu when i reach the menu.jsp from login.jsp.But when i run the menu.jsp ...

Jaxp & Java Problem

364 byte By wma453 at 2007-9-26 2:16:34
I'm getting Exception in thread "main" java.lang.NoclassDefFound : org/xml/sax/helpers/DefaultHandlers.xalan.jar,jaxp.jar, and crimson.jar are in c:\jdk1.3.3\jre\lib\extI tried creating a CLASSPATH environment variable but that didn't work either. Can any one give me a procedure to follow ...

Please help me get started... JSP

564 byte By Shtarkman at 2007-9-26 2:17:03
Hey, I'm brand new to web development. But I'd like to get into the field. For various reasons, I would like to start with JSP dev. I'm a C++ programmer, so concepts of OOP are not foreign to me. However, I don't have any idea as to where to start.I have installed Forte 4.0 software, ...

Jakarta - log file

223 byte By tvraju71 at 2007-9-26 2:17:09
Hi ALLhOW can i delete "isapi.log" fileinside jakarta-tomcat\logsi can't able delte even i stop jakarta serviceand IIS service..thanksraju tvrajutv@hotmail.com

XML->HTML->JLabel(urgent)

442 byte By kukunoya at 2007-9-26 2:17:19
Hello All,I have an xml file, and I'm reading data from it. I give this data directly as the text to JTextPanes and JLabels. If I am able to specify the HTML tags in the XML file it will be of great help to provide formatting(bold) and wrapping functions. But the problem I'm facing right now ...

Xerces question

1536 byte By xerokool at 2007-9-26 2:17:39
hi all,i wanted to know how to get the attribute 'width' from the following tag:<svg width="382" height="966" viewBox="0 0 382 966" xml:space="preserve">also, i have an error(Exception in thread "main" java.lang.NoSuchMethodError: main ) when i tried to run my app even though i dont ...

How to create .war files

291 byte By praveensmart at 2007-9-26 2:17:42
Hi,I'm using tomcat-3.2 with XML Nativedatabase and apache.For this I'ld like to create .war file and put that in the tomcat's webapps directory. So, please suggest me how to create .war file from this files.Does it takes directories also.RegardsPraveen

.wbmp pictures does not show up, why ?

2369 byte By tloikka at 2007-9-26 2:17:44
Hello,Problem:I have created a Java servlet which produces a WML card with text and an command to load .wbmp picture (see code below). I have tested the WML card without servlet (loaded it straight from hard disk), and it works fine. The problem occurs when I try to use Tomcat 3.2.2 in my PC, ...

Should I use XML or a database?

790 byte By dewangs at 2007-9-26 2:17:57
Hi all,My plans were to use XML, but I am now reconsidering the decision. The data to be stored is users for a Chat server.1. Concurrent access - With a database, there are locks and provisions for simultaneous access. With XML, I would have to syncronise my methods since my app is ...

Tomcat Root = Apache Root

458 byte By sunnyl at 2007-9-26 2:18:12
Hi,I have installed Apache 1.3 and Tomcat 3.2.3. So far, I have success in executing servlets through the Apache server in a directory under the Tomcat directory structure;e.g. tomcat_home/servlet/.... What I want to do is to put my servlets into the apache directory structure;e.g. ...

writing a text file from a jsp

339 byte By rohit29 at 2007-9-26 2:18:22
HiI have a jsp which fetches data from a d/b based on certain parameters ...This page displays the results in a tabular form.Now i want to insert a button in this jsp page upon clicking which i will get the same results also in a text file...How to go about this please suggest...Thanks in ...

Propagation of ctx between EJB and JSP

233 byte By Marchioni at 2007-9-26 2:18:25
Hello,Does anybody know how to propagate the SecurityContext between EJB and JSP so that when I login in my JSP page the user will be after recognized in my EJB system ?ThanksFrancesco

How many types of Servlets exists?

216 byte By sjhyam at 2007-9-26 2:18:30
Hi! I have heard that there are 5 types of servlets. I know 2 of them: Generic Servlets and Http Servlets. What about the other three? What is that purpose of these servlets? Bye!Sj

Marshall exception when calling a remote business method in EJB

768 byte By chidambaresh at 2007-9-26 2:18:31
Hi,From a java client, i am calling a business method from a ejb. the home and remote interface object is sucessfully received at the client. but at the time of calling the remote business method the following error occurs.java.rmi.RemoteException: ; nested exception ...

using different bgcolor with include

408 byte By mroosendaal at 2007-9-26 2:18:36
Hi,I have a page which includes a few other pages (<%@include=" "%>) but these pages have different backgroundcolors. With the include the bgcolor of the main page is dominant. How can you change this. I tried several things including things with stylesheets. I need a way to override the ...

Why XSL code was dumped into TEXTAREA?

2946 byte By kttan at 2007-9-26 2:18:37
I am creating a FeedBack form, which loads the dynamic data from a XML file.In my XSL file I created some <INPUT>s and one <TEXTAREA>. The contents of these fields will be from the XML files.When I process these two files, all <INPUT> fields display the contents successfully ...

connecting to an access database

919 byte By russelladams at 2007-9-26 2:18:38
i have a servlet that is trying to connect to an access database and read the data within it. when i run the server i get this error:-java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specifiedi have set up the data source name in the ODBC ...

Problem with transaction -- Urgent

509 byte By sbpyari at 2007-9-26 2:18:46
hi Guys.. I created a BMP bean to a tanle that contains LOB fields..I am using OC4j server for testing the beans.. while creating a bean i am getting an exception java.sql.SQLException: ORA-22292: Cannot open a LOB in read-write mode without a transactionORA-06512: at "SYS.DBMS_LOB", line ...

HTML received a s text

589 byte By richardsimmonds at 2007-9-26 2:19:02
If I send a message in HTML message.setDataHandler(new DataHandler(htmlTemplate, "text/html")); it is still being received in text through some web interface mail browsers (e.g lineone). Also when hotmail receives it two copies are displayed.What can I do to only allow one copy to be displayed ...

getting error with Jaxp1.1 .

436 byte By ccyaa at 2007-9-26 2:19:03
i already check the classpath , but still get the following error :org.apache.jasper.JasperException: Unable to compile class for JSPC:\jsp\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fxml_0002fmessage_0002ejspmessage_jsp_0.java:81: Attempt to reference method getFirstChild in interface ...

how to create new XML document with DOM API of JAVA

204 byte By bansal_amit at 2007-9-26 2:19:06
hi all, please tell me how to create a new XML document through JAVA with DOM API. please give me full information and coding for this. thanks & regards Amit Bansal

Im dropping a cookie with userid. Can I encrypt it somehow?

121 byte By adamrau at 2007-9-26 2:19:25
I would like to encypt my cookie. Does anyone have any idea on how to do it.Thanks in advance

java mail message flags

343 byte By hariharan1005 at 2007-9-26 2:19:27
I am developing a mail portal using java mailapi iam finding it difficult to to give visual clueof recent,unread,deleted messageswhen i open the folder in read write mode all the recent messages flag is set to seen can any body give me a posiible solution or some online tutorials ...

Forwarding to JSP's through a servlet

533 byte By shirin2 at 2007-9-26 2:19:32
I am developing an application which contains several JSP's and a servlet which acts as the controller. Between each page, control is passed to the servlet, some processing is carried out, and then the servlet forrwards to the next JSP. I have reached a point in the application when on ...

Jaxp 1.1 and InputStreams

556 byte By deragon at 2007-9-26 2:19:50
Greetings. I started using Jaxp 1.1 last week. I noticed that the functions DocumentBuilder.parse() only accept java.io.InputStream. Can someone explain why java.io.InputStream has been used instead of java.io.Reader? I thought that we should move to java.io.Reader gradually. I have to use a ...

a good advice

744 byte By smitaunni at 2007-9-26 2:19:53
We have a web based content management system running in VB...I am developing a administrator website for that in jsp.It will include setting proper users to access pages edited in the system...then approving certain pages..deleting them etc...Now I want to know what will be the proper way for ...

onMessage() ?

283 byte By Somrajs at 2007-9-26 2:20:13
Hi All,I am writing a small application in IBM MQSeries using Java.My objective is to read from a queue whenever a newmessage written into it.Any help in this aspect would be of great help.....Thanx in advance....Sanjay.

Connecting To A News Provider

423 byte By JavaDen at 2007-9-26 2:20:48
We have to do this portal for a company that has stocks and news that users setup like on yahoo or msnNow the question is how do we get this news thru JMS or RMI, basically we need to build some kind of service that runs all the time and connects to the news and updates the database if the news ...

PLEASE HELP!!!!

638 byte By moined_mogul at 2007-9-26 2:20:49
I have a JSP that has five text boxes in the centre of the page. Each of the text boxes represent a field in my database table. The first box is actaully a select box (not a text box), that has a drop down menu with all the items in my first column in my table of the database which is a ...

JDOM - Variable not intialized error, why? please help.

2583 byte By neelimap at 2007-9-26 2:20:54
Hello,Please assit me.....I need a rush help. Stuck! Stuck!!!!I am reading a text file which has multiple headers(identified in the first 2 pos as '//'), followed by '01' records which are details. It would look like//nbr....01address....01city.....01zip....//name...(continues).My jave ...

Connection pool problems with EJB's

631 byte By squaloD at 2007-9-26 2:20:57
I'm using j2ee with an InstantDB data base.I take connections from a datasource properly registered.... When I start the j2ee server, it reads informations from the DB and appears to work properly, but if I make changes to the DB tables from another application, these changes are not visible ...

Please suggest!!!!

744 byte By smitaunni at 2007-9-26 2:21:10
We have a web based content management system running in VB...I am developing a administrator website for that in jsp.It will include setting proper users to access pages edited in the system...then approving certain pages..deleting them etc...Now I want to know what will be the proper way for ...

Error getWriter() was already called in downloading

1613 byte By priviet at 2007-9-26 2:21:19
if i will use window.open it works fine. But when ii want to use request dispather or call new class method i am getting thiserror. The thing is that before downloading starts i am using resonse for writing some HTML content after finishing that it should startdownloding. If use out.close() ...

Persisting sockets in an EJB (session bean)

1075 byte By Anakha_ at 2007-9-26 2:21:36
I've been trying to figure out the best way, if it's even possible, to persist a socket connection in my session bean and I could use some help. :-)Basically, when my bean is first called, it opens a socket connection to an outside server. Then it performs an operation by sending a command ...

Concurrency problem in Servlets, JSP

203 byte By rajani_s at 2007-9-26 2:21:39
Hi allI found that whenever 2 or more access my servlet or jsp, the server is giving an error.How do I solve this. How do I synchronize.Please help.Rajani

Urgent please help me!

6388 byte By plalitha at 2007-9-26 2:21:42
java.lang.NullPointerException at pagecompile.jsp._Company._jspService(_Company.java:207) at com.sun.server.http.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at ...

Read form params when file is uploaded

236 byte By seralex at 2007-9-26 2:21:44
Hello Friends,How can I read a form hidden parameter when the form has multipart type (a file is being uploaded)?I call param = request.getParameter("paramname");and this returns null.Thank you.

Deploying Data Access Objects

69 byte By skuruganti at 2007-9-26 2:21:51
When deploying EJB, how and where should I specify DAO?

tomcat not configuring

242 byte By inishant at 2007-9-26 2:21:54
wel despite my efforts to configure i have not been able to do soi have set the JAVA_HOME variablebut still there is some "out of environment " errorand the server starts and shuts downwhat shall i do

Javascript question

754 byte By Priyam at 2007-9-26 2:21:56
Hi,I have one jsp file and two javascript files like*** a.jsp******** <html><head></head><body><%! String a = "BBH" %><script src= b.js></script><script src = c.js></script></body></html> ************* ...

Page cannot be displayed ?

597 byte By vijayksharma at 2007-9-26 2:22:08
Hi,I am constantly getting this message, Page cannot be displayed, on my browser window whenever I am attempting to call a specific method on the Server, which generally takes lot of time. Browser window title reads Cannot find the server.If I try calling the same method with different ...

Display results with next and previous buttons

329 byte By smitha_rai at 2007-9-26 2:22:12
I have an arraylist which contains data fetched from database. I want to display all these results in a jsp in a shot of 10 results at a time. The jsp contains two buttons namely, next and previous. Can any one help me out with a code or some tips. It is quite urgent for me ...

GURU Question: how to write RequestDispatcher.include HTML to a file...

1027 byte By jaywright00 at 2007-9-26 2:22:33
Here's a question that has been misunderstood and is therefore still unanswered. I am using the RequestDispatcher's include method to process jsp templates in a page. It generates, as I understand it, HTML that is written to a buffer in the response object, that will be sent to the client ...

j2ee will not start

2310 byte By JavaDen at 2007-9-26 2:22:37
anybody know why j2ee won't start ?port 1050 is not in usethese are the error messagesC:\>j2ee -verboseJ2EE server listen port: 1050org.omg.CORBA.INTERNAL:minor code: 1398079697 completed: Noat com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:256)at ...

Accessing bean method within javascript on JSP

387 byte By moined_mogul at 2007-9-26 2:23:05
I some javascript on my jsp that I want to access a "get" method of mine inside the javascript of the JSP. How can I do this?I would like to use something like this:document.FormName.IDNumber.value = "StringValue";Instead of assigning IDNumber as "StringValue" though, I would like to assign to ...

Possible bug!

810 byte By skywalker0110 at 2007-9-26 2:23:06
I am designing a portal application. There are only 3 pages: #1 Login page that submits a form to..#2. a main jsp page that includes #3. Another jsp which defines a class. The application works fine (you can put your login info in and it will search a database and do other stuff) it even givs ...

NameAlreadyBoundException for EJB server.

155 byte By janetie at 2007-9-26 2:23:30
I got NameAlreadyBoundException for EJB server when I tried to start PNS in VAJave Websphere test Enviornment.Any help is appreciated.