When using h:dataTable, cells enlarge vertically depending upon # of rows

543 byte By learningjava5a at 2007-11-27 10:52:32
I am using h:datateble with styleClass="searchDataTable" and in my CSS i have defined .searchDataTable {width: 900px;height: 360px;}With these dimensions if i have 10 or more rows, dataTable looks fine.But if i have two or three rows only, then every row cell is 5 times taller then it should. In ...

right click functionality in JSF?

408 byte By aparna_ra at 2007-11-27 10:52:41
How do I call an "onContextMenu" correspondingly in JSF?I want to customise the right click menu whenevr I click on the input fields on my page.I use JSF tags. <h:inputText id="text1">In case of HTML, 'oncontextmenu' works. But in JSF, no such attribute exists. How do I go about the ...

Is there any component to make the navigator bar like google's bottom nav?

233 byte By eingmarraa at 2007-11-27 10:52:47
<p>Hi,</p><p>My project needs a navigator bar which is like google's bottom navigator bar.</p><p>It needs highlight current page, show next page, last page...</p><p>If you know any components, please help me!</p><p>Thanks a lot!</p>

sql insert single qoute ' problem

521 byte By tank82a at 2007-11-27 10:52:48
I have problem when insert string that hv single quote. Can anyone help me on this...query = "INSERT INTO lexicon VALUES ( " + id + ", '" + lex + "')";s.executeUpdate(query);where lex is ambassador's.Below is the error:java.sql.SQLException: You have an error in your SQL syntax; check the manual ...

Can any one solve my problem

1788 byte By vpalkondaa at 2007-11-27 10:53:12
Here is what I am trying to achieveI have page with a table (name, and description). Each row in the table is a group. It has following properties. 1) name, 2) description c) collection of stringsNow I click an add button on the first page, It takes to the second page.There I have name, description ...

my servlet shud get the static files such as htm,xsl etc from the .war fil

1051 byte By mcrafta at 2007-11-27 10:53:14
My htm , jsp or xsl files are placed under sub directories of my appliction dir /fcbWar / BO / 01 / eng / login.xslcurrently , this path is hard coded and i return the static files to my servlet to generate the response. This works fine.But now , i shud get these files from my .war file that i use ...

Java script and Servlets

132 byte By muthu2007a at 2007-11-27 10:53:18
<p></p><p>Any body can give a sample program how can i included a java script in a servlet program</p><p>Regards</p><p>Marimuthu</p>

how can I change normal text to text field

211 byte By javamnr948a at 2007-11-27 10:53:37
<p>hi,</p><p>how can I change normal text into empty textfield when a button is clicked.</p><p>i.e. when a button is clicked,the normal text must be appeared.In that place,a empty textfield must be appeared.</p>

Hashmap problem in JSP

315 byte By Meghnaa at 2007-11-27 10:53:44
Using hash map in JSP page i hav added the code<%@page import="java.util.*%>java.util.HashMap hmFiles = new java.util.HashMap();getFiles(ftp,hmFiles,jobNoTest);But it gives error as --Generated servlet error:java.util.HashTable cannot be resolved or is not a ...

use of IgnoreCase !!!!!

1382 byte By java@mania at 2007-11-27 10:53:49
hi Balus CThis is my code for comparing the string and vector.String value1="Jsp, Hibernate ,Weblogic9.0 , Struts";String[] value2 = value1.trim().split(",");String str = " jsp, struts, hibernate, java, Applets";String[] str1 = str.trim().split(",");boolean hello = false; Vector abc = new ...

columnSortHeader action method is called twice

4391 byte By maroofa at 2007-11-27 10:53:55
i have a parent table and child table for each row of parent table under the detailStamp facet. the problem is when there is only one row in the parent table the action method for columnSortHeader of the child table is called twice, which is not desirable. it works fine if there is multiple rows in ...

sending java mail error+smtp.gmail.com

2084 byte By jimmy@banga at 2007-11-27 10:54:02
hii m facing an issue while sending mail.the mail is actually sending(received in the To email) but an error is thrown javax.mail.MessagingException: Exception reading response; nested exception is:javax.net.ssl.SSLException: Unsupported record version Unknown-50.49at ...

How to retrieve the path of the browser position?

320 byte By nomaxa at 2007-11-27 10:54:11
Hi,Id like to retrieve the path from the browser into a String.I need it to check for forbidden file-types ( like direct access to my jsp-files ).i tried String path = processPath(request, response);But it only returns the path of my application.can somebody help ...

Illegal Model Reference

5070 byte By Helgetnthemana at 2007-11-27 10:54:15
Hi! I have this problem, I get "Illegal Model Reference in this context for expression ' #{outboundBean.dataItem.briteId}'." everytime I try to submit. The jsf page that araises this problem has a form that is supposed to edit data stored in a database. The message above appears for all form ...

deserialization error: XML reader error: unexpected character content:

2575 byte By Tindora at 2007-11-27 10:54:16
Hi,I'm just learning to write web services. I pasted the service and it seems to work.It's code is :package server;import javax.jws.WebService;public class HelloImpl { /*** @param name* @return Say hello to the person.*/public String sayHello(String name) {return "Hello, " + name + "!";}}I wired ...

A question about entity manager in stateless session bean.

739 byte By ncu_askaa at 2007-11-27 10:54:23
JSR 220 ejbcore, page 47 : stateless session bean: All business object references of the same interface type for the same stateless session bean have the "same object identity", which is assigned by the container.So, if we have two session beans in client code...@EJB Cart cart1;@EJB Cart cart2;then ...

Problem while compiling!!!

234 byte By java@mania at 2007-11-27 10:54:40
<p>hi all,</p><p>I am doing simple java programs using vector or ArrayList . After compilation, it gives the following warning </p><p>Note: Recompile with -Xlint:unchecked for details.</p><p>why is this warning is being displayed?</p>

com.sun.faces.saveStateFieldMarker

3527 byte By Sorin_Ciolofana at 2007-11-27 10:54:44
Hello! I'm new to jsf. I've a very simple jsp page (result.jsp) which contains:<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%> <%@ taglib prefix="f" uri=" http://java.sun.com/jsf/core" %><%@ taglib prefix="h" uri=" http://java.sun.com/jsf/html" %> ...

cache problem

466 byte By allavudeen_screena at 2007-11-27 10:54:46
Hai,any one can help meMy problem is,I updated my .jsp with a new Imagefile. Tomcat will still load the old page. I am very sure that i have updated the file with the new one.Currently to solve this problem, the only way i can do is to referesh that jsp page . Please advice me on what i should do ...

All Bar

202 byte By JavaIQa at 2007-11-27 10:55:24
<p>Dear All,</p><p>When I run my application I want Hide (remove) all bars if run on IE or </p><p>FireFox. How can I do it?</p><p>Is there any one have this script?</p><p>Thanks in Advance, </p><p>M</p>

Call a JSF application from a Standar Web application (JSP)

258 byte By juanjo.garciaa at 2007-11-27 10:55:26
<p>Hi all,</p><p>We have 2 aplication, one is JSF and the other one is standar web jsp.</p><p>We want to invoke from the standard web application to the JSF application and pass param from the jsp to the *.jsf page.</p><p>how can I do that?</p><p>Thanks.</p>

two buttons in same jsp page

317 byte By sunvenkata at 2007-11-27 10:55:28
hello to java peopleMy ? is, jsp page named as login.jsp, In this page i want to use two buttons.If i click on one buton it will goto sucess.jsp and for another button it will go to find.jsp.i.e, two actions in same page, is it possible ? help me by giving sample ...

Summing (variable) strings error

6761 byte By radicjesa at 2007-11-27 10:55:53
edit: simplified exampleI just don't get it, whenever I sum up a variable that contains a string (ie: string + string), it will give me an error/exception.For example I call this short function:public void writeFile() {String test = "/loc/to/a/map/";String test2 = test + "filename";}If I remove ...

how to read a properties file from a jsf project...

550 byte By Sorin_Ciolofana at 2007-11-27 10:56:11
Hello! I'm new to jsf. I've created a properties file named configuration.properties under the WEB-INF folder. From a java class located in com.mycomp.utils I try to read the propertiesProperties p=new Properties();p.load(new FileInputStream("/WEB-INF/configuration.properties")); but the file is ...

Write files in a .war deployment

347 byte By radicjesa at 2007-11-27 10:56:16
Hello,Is there any way to write/change files inside a .war deployment? (like changing an xml document that is stored inside the .war file that is desployed on a tomcat server)I can read files but can't seem to find any method for writing in it, since it always points to an absolute filepath which ...

Converting PHP to JSP

293 byte By Timexa at 2007-11-27 10:56:25
<p>For work I need to convert a code that I wrote in PHP to JSP in order for it to run on our windows server.</p><p>Trouble is, I know very little java. The script is a very simple, short email script located here: http://pastebin.com/m7b4b4e96</p><p>Any help would be greatly appreciated.</p>

accessing bean in servlet

1198 byte By kannankallia at 2007-11-27 10:56:27
hi to all, i created a simple bean for login access that has getter and setter method...I am trying to access the bean in a servlet .. i got error....my bean code is ...simple login page<form method="post" action="/BeanServlet">user Name :<input type="input" name="username" >Password ...

commandButton actionListener

304 byte By eLIXa at 2007-11-27 10:56:35
Hi,I've been searching on how I can add an actionListener to my commandButton. But can't figure it out.So what I wanna do is very simple I guess. It's just counting how many times a commandButton has been clicked.Anyone can give a good solution how to do ...

Struts servlet failed to load on application startup

5180 byte By gtataa at 2007-11-27 10:56:37
I am having problems deploying a struts application on WebLogic 8.1 SP3. I get the following error on startup. Call com.manu.cro.online.ui.KarmaActionServlet.addMapping(ActionMapping[path=/routingPost, type=com.manu.cro.online.ui.routing.RoutingPostAction])Pop ...

calling JS function on an event

253 byte By aparna_ra at 2007-11-27 10:56:42
<p>Hi,</p><p>I would like to call a javascript function that displays a menu, on right clicking on the editable fields in the jsp page.(input fields)</p><p>I use JSF components.</p><p>How should I go about for the same?</p><p>Many thanks in advance.</p>

A4J decode problem

614 byte By technocrata at 2007-11-27 10:56:44
Hi AllI have a button, on click of which a dialog is shown.The reRender attribute of the button contains the id of the dialog.The dialog.jsp contains an AjaxCommandLink which is constructed from the renderer of the dialog by calling component.getChildren().add() .This link is rendered properly.But ...

The name of param passed to request.getParameter() method is dynamic

775 byte By tomtsui_tszkina at 2007-11-27 10:56:46
Hi, I have a concern. Hope someone can help me, thanks!The name of the drop down menu is generated dynamically<select name="<c:out value="${id}"/>versions" ><option>......</option></select>where id is defined using <c:set var="id" value="xxx"/>I am just wondering how do I get the ...

Comparing values !!!

932 byte By java@mania at 2007-11-27 10:56:47
hi all,Friends !!!1]I have a string which have values seperated by delimiter ",", i have split the string and stored it into the vector. For example str2="jsp,servlet,hibernate";there is another string having value stored into the database. and for fetching this value from the database.i have a ...

Java ee tutorial bookstore

399 byte By bezgodoa at 2007-11-27 10:57:20
i tried to run the bookstore tutorial of the java 2 ee tutorial buit it gave an exception like Exception(TOPLINK-4002) (Oracle top link essentials): oracle.toplink.essentials.exception.DatabaseExceptionInternal exception: org.apache.derby.client.am.SqlException: Table 'WEB_BOOKSTORE_BOOKS' does ...

<hx:fileupload -- populate file name dynamically>

893 byte By MyJSFa at 2007-11-27 10:57:29
Hi,I am using <hx:fileupload component in my JSF page. I am trying to populate file name dynamically and do not want users to browse for the file to locate.JSF Code:><hx:fileupload styleClass="fileupload" value="#{myBean.fileLocation}"id="uploadFile"><hx:fileProp name="fileName" ...

problem with tomahawk inputCalendar events

1089 byte By dantevaza at 2007-11-27 10:57:33
Hi all.Im using tomahawk in combination with ajax4jsf and facelets. However,im having a problem with an inputCalendar component. When the user changes the date with this calendar (an "onchange" event), the week of the year of that date is calculated and updated in an h:inputText component. It works ...

Using metrics with a cluster of brokers.

862 byte By cferris84a at 2007-11-27 10:58:02
Hello, Here is my situation -I'm using the metric topic "mq.metrics.destination_list" to receive the mapped message of metric data. I'm doing this to get the queue depth, number of consumers and number of messages acknowledge. My JMS provider is Sun JMS. I have a cluster of two brokers on Window ...

Simple Struts

1806 byte By kayeanna at 2007-11-27 10:58:11
Can anyone explain to me why the code isn't working?Flow:* User will input this details in the welcomeStruts.jsp:Username: kayeannPassword: something* System will call LoginActionForm then LoginAction then assuming it is successful, forwards it to index.jsp* Expected result: Welcome ...

jsp project

161 byte By singhabhinava at 2007-11-27 10:58:45
<p>hi</p><p>i want to make a project in jsp</p><p>can any body tell me some good topics on which jsp project can be made</p><p>thanking u all in anticipation</p>

Struts - How to use an ArrayList as a bean?

2081 byte By Danteviosa at 2007-11-27 10:58:49
Dear Java Community,I am using a very old version of struts - Jakarta Struts 1.1 b2 (The Version included in JDeveloper 10.1.2.1.0 for Java 1.4). I have to use this version of struts on the project I am working on because it is the only version compatible with our OC4J Container (Oracle Containers ...

Internationalization with JSF

2368 byte By tizia at 2007-11-27 10:58:53
Hi Everyone,Here is what happens in my App:When index.jsp is hit, I determine wether its an authorized/unauthorized login. Based on that user is either forwarded to search/error jsp's. Now I have to add Multi Lingual support to the app. Basically the aplication will be invoked from a portal like ...

Calling session bean from within another session bean.

252 byte By aacaina at 2007-11-27 10:58:58
<p>I have a session bean that needs to call another session bean's methods. What is the best way to access another session bean from within a current session bean's. I assume that I would use the local interface for this.</p><p>Thanks in advance.</p>

How to query Date format from oracle DB into JSP using struts

373 byte By PaviEluri20a at 2007-11-27 10:59:11
I have a DAO from which I am querying a date. I am unable to display it in JSP field using session. Here is the set property I have in DAO-cdfb.setStartDate(rs.getInt("startDate"));Here is the code I am using now to display in JSP:<bean:write name="results12" property="startDate" scope="session" ...

servlet request problem

1130 byte By scorpion2a at 2007-11-27 10:59:20
Ok theres a site with an address similar to the following http://test.address.uk/serverArea?view=confirm&file=ID4793944974.ID&cd=0my servlet performs a check in the following way//please note request.getString is the same as request.getParameter except it//throws a certain exception if a ...

JSP problem

7284 byte By Reona at 2007-11-27 10:59:21
I deployed it through deployment tool 8.2 and put it in docroot ..Both of there holding the same error...error:1 [javac]BankAccount BA = null;[javac]^2[javac] BA = (BankAccount) _jspx_page_context.getAttribute("BA", PageContext.APPLICATION_SCOPE);[javac]^3[javac]BA = new ...

XMLStreamWriter issue

622 byte By zkajana at 2007-11-27 10:59:24
Hello,I'm using http://java.sun.com/webservices/docs/1.5/api/javax/xml/stream/XMLStreamWriter.htmland when I try to do something likeXMLStreamWriter writer = createXMLStreamWriter(someoutbutbuffer)String somestring = "<abc>hello</abc>writer.writeCharacters(somestring);the someoutbutbuffer ...

JavaPersistence - relationship maping

1168 byte By marcinta at 2007-11-27 10:59:34
DataBase - Postgres 8.2AppServ - Sun Application ServerI use Hibernate.Below is structure of my Postgres db :CREATE SEQUENCE x_id_seq;CREATE TABLE x (id integer NOT NULL DEFAULT nextval('x_id_seq') PRIMARY KEY,ad_typesmallint);CREATE TABLE x2 (fk_x_idinteger NOT NULL REFERENCES x(id) PRIMARY ...

display Request bean property in jsf page

781 byte By antwakea at 2007-11-27 10:59:37
hi everyoneI work with Netbeans so it's probably a Netbeans oriented problem as it involve the prerender method.I created a property actionType in the Request Bean of my application.I set its value when I hit a button in my menu.jsp page. (in the action related to the button)I try to display its ...

JMS using JNDI

339 byte By ICANa at 2007-11-27 10:59:38
All,I have a fundamental question. Say for example I have given the JNDI binding information to a external application who will read and write from the message server. Would the application able to create the queues (new) on our message server wiht our knowledge. If yes how can we stop them doing ...

select Item and invoke information to display on same page

381 byte By Intel3a at 2007-11-27 10:59:40
My question is I have constructed a list of books into selectOneListBox. And everytime I select an item it will display the information of tha book beside the listbox on the same page. My concern is the information jsp should be generated dynamically upon selection. How will the back bean work to ...