How to change the default directory of Tomcat 6.0

217 byte By @Vilas@a at 2007-11-27 10:20:12
<p>Hi All, </p><p>I want to change the default directory of webapps in Tomcat 6.0 </p><p>from "C:\Apache\Tomcat 6.0\webapps\ROOT\" to my folder in drive C:</p><p>How to configure it ? </p><p>Thank you,</p><p>Vilas</p>

Cannot view XML input using XSL style sheet

557 byte By the_Orienta at 2007-11-27 10:20:23
Hello,I am trying to surf the web application (developed in JSP)which is there in my web hoster system .I am getting the error while accessing the link :Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.A name was started ...

problem exporting file depending to computer regional settings

1390 byte By markos_da at 2007-11-27 10:20:43
goodmoring to allThe problem I face is the following :We need to export some data as an excel-csv file, with greek characters. And everything works fine, as long as the computer (where the server is hosted) regional settings are set to Greece. But if we have English settings, we get every greek ...

mapping in jsp

368 byte By aziz.saiyeda at 2007-11-27 10:20:49
hi buddies...i have a requirement.. need to import a file... display its fields on jsp against field values fetched from db.. user will map the fields of file and db... n then records will be transferred from file to db... can anyone help as to how this requirement can be approached... pls also ...

Weird string sum bug in filter

1740 byte By radicjesa at 2007-11-27 10:21:13
I've got a very strange problem in one of my filter classes.What happens is this://Filter...public void init( FilterConfig filterConfig){...this.errorPage = "test" + Configuration.getErrorPageLocation();...}...//Configuration class...public static final String getErrorPageLocation(){return ...

Whitespace not rendered by writeText()

570 byte By Ganesha@caa at 2007-11-27 10:21:15
HiI have a problem with writeText() method of ResponseWriterImpl class I have observed that if I use writeText(" Text", null);the whitespace at the beginning of the string " Text" is ignored. That is, it is not rendered. But, instead, if I use write(" Text"), the string is rendered as expected. I ...

MVC & ResultSet...

290 byte By jini4javaa at 2007-11-27 10:21:47
<p>Hi all,</p><p>Why one should use a Collection object which contains javabean objects (one for each for each database row) over ResultSet object in MVC? What are the advantage on not using ResultSet in MVC at presentation layer?</p><p>I hope my question is clear enough.</p><p>Cheers.</p>

MVC & ResultSet...

288 byte By jini4javaa at 2007-11-27 10:21:50
<p>Hi...</p><p>Why one should use a Collection object which contains javabean objects (one for each for each database row) over ResultSet object in MVC? What are the advantage on not using ResultSet in MVC at presentation layer?</p><p>I hope my question is clear enough.</p><p>Cheers.</p>

cannot view database on HTML form using AJAX

5310 byte By ubarua123a at 2007-11-27 10:22:17
[nobr]Hi .. ive been trying out AJAX and i wrote an html form which just displays the contents of a table in a MYSQL database. The problem is, NOTHING is happening.. No error messages, no alerts (inspite of putting so many of them) nothing. I m kinda lost as to whether and connection has been made ...

Add fields dynamically

2062 byte By a1ba at 2007-11-27 10:22:18
[nobr]Hi all,When add button is clicked then textboxes and drop down boxes appears ..<html><head> <body onload="fillproduct();"><script language="javascript" src="list.js"></script> <script>function generateRow() {var d=document.getElementById("div");d.innerHTML+="<select ...

how to use taglibarary

160 byte By NikisinProblema at 2007-11-27 10:22:20
<p>I have created my tag library in one porject i wnat to use it in to another project how can i do that?</p><p>Message was edited by: </p><p>NikisinProblem</p>

Struts2 problem

2298 byte By vani_patangea at 2007-11-27 10:22:29
HiIam newbie to Struts2.Whenever i used struts-tags lib to build user interfaces iam getting NullPointerException coming at TagUtils.javamy simple jsp page is looks like this<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%@taglib prefix="s" uri="/struts-tags"%><h1>Input ...

pass array list from JSP A to JSP B

239 byte By faceblinda at 2007-11-27 10:22:31
<p>Hi everyone,</p><p>How to pass arrylist or string array from a.jsp to b.jsp, when clicking href?</p><p>I have tried setAttribute( Name, object) and <a href=b.jsp?Name=object></p><p>I need help in a hurry.</p><p>Thanks in advance.</p>

need help about wiki

263 byte By haijania at 2007-11-27 10:22:35
<p>Hello friends.</p><p>I have been given a task to implement a wiki in an intranet.</p><p>I would like to know that is there any free wikis available to plug into my intranet?</p><p>Any help in this regard would be highly appreciated.</p><p>Thanx in advance.</p>

Browser Shows 'cannot find server'

335 byte By venkat2007a at 2007-11-27 10:22:38
Hi All,I am retrieving records from database and displays in jsp page in a table. 72000 records are in database.After 1 hour the browser shows 'cannot find server' but in tomcat console application is running. how do i get records to be displayed in jsp page.can any one help in this issue. ...

Paging like goooooooooooooogle

416 byte By drvijayy2k2a at 2007-11-27 10:23:03
FYIHi guys,Most of Guys asking how to set page 1,2,3,4 ..... so on ,so that i post this link regarding paging,its easy to implement,Go through this links and create your own paging, http://www.servletsuite.com/servlets/pagertag.htmIf you want sample example with Database and with out,please feel ...

Retrieving a hidden field from another non managed bean class

1771 byte By jmutonhoa at 2007-11-27 10:23:15
I'm trying to access a hidden field from a form as shown below :<h:form id="categoriesForm"><center><h:dataTable rowClasses="list-row" headerClass="tableHeader"width="60%" var="category" value="#{categories.categories}"><h:column><f:facet name="header"><h:outputText ...

JSF - UICommand component not rendering properly

1974 byte By nirav_p_assara at 2007-11-27 10:23:22
2:12 PM 7/11/2007by Nirav AssarOverviewIt was discovered that in certain situations a UICommand component does not bind properly to its associated action method in the managed bean. The symptoms of this situation occur when you have a page with an action, and you click the action and nothing ...

Small confusion about refreshing the page

1320 byte By avnera at 2007-11-27 10:23:32
Hi,I have a small confusion about refreshing a page....I have a JSF page in which when I click on the submit button I am saving all the data in the database.The saving to the database is performed fine and after that I am returning null from the action method of the submit button....One more thing ...

Project to donload excel client

433 byte By akaura at 2007-11-27 10:24:04
I have just started working in java. this is my first project.I m working on project which have four versions and i have to do coding so that i give the links to all the versions of project and user can download the version they need. and also i have to write coding that the users can download the ...

A tree component

434 byte By AlienQueena at 2007-11-27 10:24:06
Hello,I'm presently looking for a JSF tree component. I need one which not only would allow me to display a little icon next to my leaves names, but which would allow me to display a checkbox too.I've tried the Apache MyFaces tree, in the Tomahawk sub-project. But it looks like I won't manage to ...

Error in Incorporating jsf 1.0.1

5547 byte By dilip_jsfa at 2007-11-27 10:24:07
I get the following error when i incorporate jsf_1.0.1 with IBM's JSF implementation and apache faces 1.3.[7/12/07 20:13:00:188 IST] 6a841920 WebContainer W SRVE0017W: Web Group not found: default_host/ProjectOne[7/12/07 20:13:00:188 IST] 6a841920 OSEListenerDi E PLGN0021E: Servlet Request ...

use Oracle SEQUENCE funtion hwo to define in PreparedStatement?

1130 byte By roger5089a at 2007-11-27 10:24:18
Dear all i have one question with Oracle SEQUENCE function to insert data into jsp page which i use PreparedStatement this object. the way when i create one SEQUENCEcalled and the problem is that i donot know how to declare pno = accountcheck_sequence.nextval in to PreparedStatement this ...

Javascript and CSS questions

831 byte By jco1323a at 2007-11-27 10:24:25
Just two quick questions. First, I am trying to change the value of one of my backing bean properties using js. It is a boolean and what I tried was:onfocus="{ ${displayOnly} = true}"however, as expected, this tries to set the actual value of displayOnly (false) to true which cant be done. How do I ...

Pass string from java file to display on jsp

678 byte By Huija at 2007-11-27 10:24:29
Hellolooking for some help here please.In my .java file i have these couple of lines which calls a method to obtain an email adress and store it into usrMail and mgrMail. Example:public actionForward (httpservletrequest request)String usrMail;String mgrMail;...Utils bpUtil = ...

how to install jsf

2178 byte By secmaska at 2007-11-27 10:24:39
hi all .i using eclipse 3.3 and tomcat 5.5 to work with jsf. First, i create a project with jsf 1.1 support and copy : jsf-api.jar, jsf-impl.jar , jstl.jar and standar.jar to /WEB-INF/lib . this is my web.xml <?xml version="1.0" encoding="UTF-8"?><web-app id="WebApp_ID" version="2.4" ...

Struts: List in a List

1324 byte By talk2keya at 2007-11-27 10:24:43
Hi All,I have a requirement where I have a List consisting of Lists. This inner lists will have beans. I need to display amounts from the beans.I could successfully display the amounts by using two "logic:iterate"'sIn the code below amountsForm is my ActionForm, amountsList is the parent list ...

where is servlets-cgi.renametojar ?, enabling CGI, Tomcat

1834 byte By tofuwithcoffeea at 2007-11-27 10:24:46
Ok, either I do not understand well, or I have not yet my cofeee or the system do not has the file:"To enable Tomcat's CGI servlet, you must do the following:1. Rename the file servlets-cgi.renametojar (found in CATALINA_HOME/server/lib/) to servlets-cgi.jar, so that the servlet that processes CGI ...

How pass parameter to jasper report's fillreport() used in jsp

232 byte By elangesk78a at 2007-11-27 10:25:04
<p>Hi All,</p><p>i want an example for pass parameter to jasper report's fillreport() [note: i used java code in jsp] used in a jsp file. I already used a hashmap for fillreport.</p><p>Thanks & Regards,</p><p>K.Elangeswaran</p>

How to write back from JSP to DB.

191 byte By PaviEluri20a at 2007-11-27 10:25:07
<p>I have a JSP page. Based on a specific action from user like button click event a parameter on the DB needs to be modified. Plz tell me how should I do it. Should I call my DAO for it?</p>

write back to database

390 byte By faceblinda at 2007-11-27 10:25:14
Hi everyone,I try to write back quantity of data in MYSql, i need to pick out wrong data by checking if the input row has complied PK.The way i am doing is using For loop and "select" statement and "result set" to process one inputed row at a time to see if PK not existing.If there are easy way and ...

Using Filters and Wrappers

10592 byte By tonyhaubera at 2007-11-27 10:25:15
I have been trying to use a Filter to add code to my html after a servlet is run. I decided to wrap the response and then use a filter to add stuff before and after it. The problem is I'm having problems getting the content of the actual page to display. The filter works its just the it bypasses ...

How to retrieve value from a DAO to JSP

493 byte By PaviEluri20a at 2007-11-27 10:25:34
Hi,I need to retrieve a single value from a DAO function which has result set into JSP. I am using the following code to do it:-%String i=request.getParameter("StatusCd"); System.out.println(i); %><html:button property="button" value="Accept Project" onClick="alert()"/ ></html:button> Problem ...

Reading DB table using Hibernate

4026 byte By mon.goosea at 2007-11-27 10:25:53
I've finally enabled hibernate persistence in my application, and it looks like everything is moving smoothly on the writing side. The database is being written to as it should. My final step in incorporating hibernate will be to have a javabean read the database to return an array of objects for ...

Table not displaying headers

1558 byte By jmutonhoa at 2007-11-27 10:25:57
The following jsf code isnt displaying my table headers.<h:dataTable rowClasses="list-row" headerClass="tableHeader"width="60%" var="product" value="#{products.products}" border="1"><h:column><f:facet name="header"><h:outputText value="Name"/></f:facet><h:outputText ...

passing a variable from jsp to javascript

524 byte By johnpeeba at 2007-11-27 10:26:05
Does anyone know of a tag library or something else which allows one to do the equivalent of:<jsp2js jspVar="${myJspVar}" jsVar="myJsVar" />where the result would be a javascript assignment statement in the html which sets myJsVar equal to the value of myJspVar. I know there are some simple ...

Error getting property ... from bean of type ...

4795 byte By eLIXa at 2007-11-27 10:26:06
Hi, I'm working on a jsf login form with database connectivity.But I'm stuck on an error I get.exceptionorg.apache.jasper.JasperException: javax.servlet.jsp.JspException: Error getting property 'username' from bean of type ...

Object relational mapping (ORM) libraries?

152 byte By d11wtqa at 2007-11-27 10:26:27
<p>Hi,</p><p>This is an easy one hopefully. I'm just after some recommendations for a strong ORM packages on top of JDBC.</p><p>Cheers,</p><p>Chris</p>

Captcha IN Struts

478 byte By aarthyjavaa at 2007-11-27 10:26:31
Hi ,I am trying to implement Captcha in my Struts Project using the Simple Captcha Project at http://simplecaptcha.sourceforge.net/.how can I refresh the image without refreshing the entire page?Can anyone help me as how I can check the entered text value from the verification image in the ...

find a servlet URL at runtime

339 byte By cheddarmakermana at 2007-11-27 10:26:47
I have a web service in one WAR file #1 and a servlet in WAR file #2. Both WARs are deployed in the same EAR. I want to be able to make a request from the web service implementation to the servlet in WAR #2 but in order to do that I need to be able to find the servlet's URL (at least host/IP and ...

assign value of a text field in html from a javascript variable

271 byte By fab3a at 2007-11-27 10:26:50
<p>I defined a javascript object say var obj and I want to assign its value to the value of a text field <input type="hidden" name="hiddenValue" <b>value=</b> > in order to be submitted within a form object. But I am not familiar with the syntax on how to do that.</p>

Terminate a jsp page on exit in browser

671 byte By geiz777a at 2007-11-27 10:26:59
I have a jsp page that reads from an excel file as a database. I have it sleep everytime it finish reading a row and prints it out. I do this to make it a really long task.My problem is when i exit my jsp page on a browser it seem like the page is still running and reading the file. Either the jsp ...

Can't create DataSource: invalid arguments in call////please help me

4481 byte By jin412a at 2007-11-27 10:27:01
I try to do search function using JSP. no compile error message but when I click sumit on the page. I have the following error message.can you help me? I do not know where I have to start the bug? it probably caused by datasource connection or custome library path?HTTP Status 500 -type Exception ...

What have I done to be rewarded with a

8269 byte By jmutonhoa at 2007-11-27 10:27:27
I'm getting a org.apache.jasper.el.JspMethodNotFoundExceptionon one of my view pages .Here's what in the jsp :<h:panelGrid width="375px" bgcolor="#ff8040" columns="2" border="0"><f:facet name="header"><h:outputText value="User Login" /></f:facet><h:outputLabel for="userName" ...

Automatic update of a part of Jsp

939 byte By Sarvanandaa at 2007-11-27 10:27:46
Dear all, I was wondering if anybody could give me pointers on the direction for this : I need to update my rows displayed in jsp based on updates done to the database. Initially I thought I could do this with refreshing the JSP using the Meta tag for every 5 seconds and then having a sql query run ...

how to export pdf using jsp

176 byte By kingofpeacea at 2007-11-27 10:27:57
<p>hai friends</p><p>i know to export excel using jsp</p><p>but tried the same process to pdf, it s not work..</p><p> please give some solution......</p><p>thanks</p><p>rex</p>

Create OutputFile in jsp and write this file to response

135 byte By fenria at 2007-11-27 10:28:06
<p>Hello</p><p>Please can you help me</p><p>I need to dynamically create a file in jsp and send this file to user</p><p>Please help</p>

page should be expired if its idle

104 byte By gania at 2007-11-27 10:28:18
<p>HI,</p><p>How do i expire a page if its idle for more than 10 minutes..</p><p>Thanks in advance..</p>

"Starting TomCat"

94 byte By beejuma at 2007-11-27 10:28:43
<p>Hello,</p><p>What is the significance of setting up JAVA_HOME for Tomcat? </p><p>Thanks</p>

Web Service client running on Tomcat behind Apache-ModJk

989 byte By robicha at 2007-11-27 10:28:58
Hi all.I've realized a web service, which have been deployed on a Tomcat 5.5 instance running behind a firewall.The Web Service is published through an Apache 2.0 Web Server, which is in the DMZ and which is connected to Tomcat via modjk.Everything is working fine (as apache forwards to tomcat ...