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 ...
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 ...
<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>
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 ...
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 ...
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 ...
<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>
<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>
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
<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>
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" %> ...
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 ...
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>
<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>
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 ...
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 ...
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 ...
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 ...
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>
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 ...
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 ...
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 ...
<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>
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 ...
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 ...
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 ...
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 ...
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" ...
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 ...
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 ...
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 ...
<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>
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 ...
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 ...
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>
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" ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...