7548 byte By
willea at 2007-11-27 10:47:45
Hi! :)I need to replace an attribute value in a session, but it seems to become 2 attributes instead.I need this method to replace or remove a value:public void changeItemCount(HttpServletRequest request, String nr, String id) {try {int itemCount = Integer.valueOf(nr).intValue();if(itemCount == 0) ...
208 byte By
ss1_ss1a at 2007-11-27 10:47:51
<p>Hi,</p><p>After clicking the logout button i planned to close the window. But if i click on the button no action is taking place. PLease anyone help me out...</p><p>Thanks & Regards,</p><p>Satish R</p>
76 byte By
siri85a at 2007-11-27 10:48:25
<p>Hi All,</p><p>Is JSF 1.1 supports AJAX or not?</p><p>Please tell me..</p>
Does ServletRequestListener methods execute in the same thread that the Servlet.service method?I wonder if the answer is always 'yes'. And I hope it will. I've been reading the specs but found nothing related.I think it's an important issue because this way you can take advantage and share data ...
<p>Hi to all,</p><p>i have a dataTable with 40 columns,so i need a horizontal scroller for that datatable,any one can help me</p><p> thank you</p>
<p>Hi everyone, </p><p>i want to implement remember Login for login page using java / jsp / struts / javascript. </p><p> please, anyone suggest me some way for its implementation. </p><p> Thanx in advance.</p>
Hello, I have a requirement where I should create a 3 - level menu from database.For that I am asked to customize the NavigationMenuItem or jscookMenu tag so that it would take the tablename and then get details from database and create.I cant use a backing bean as I should take tablename from the ...
934 byte By
Ryion69a at 2007-11-27 10:48:39
Hi Guys I have a jsp (search.jsp) that deals with a request from a web form and shows the results in the browser. Im then trying to pass this request to a second jsp (export.jsp) to put the info into an xls file. I can create an xls file on its own by setting the contentType but i cant show the ...
<p>hi,</p><p>I have a jsf page with one button of graphic image.how can i call managed bean when that is clicked.</p>
140 byte By
JavaIQa at 2007-11-27 10:49:23
<p>Hello, </p><p> Pls can any one tell me how to send email using javaMail,</p><p> I'm using ADF/JSF.</p><p>Thanks in advance, </p><p>M</p>
413 byte By
nomaxa at 2007-11-27 10:49:25
Hello,Right to the point:Is there a way to redirect an user right back to the start ( login-page) if he tries to directly access a jsp-site? I prevented it by moving all jsp-files into a subfolder of WEB-INF.Its not pretty but it works.... But id rather use another aproach.. - including the ...
Hi,I have a JSF application that is using hibernate to persist data to a MySQL database, but after doing a few small operations in the application I get the error:com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: ...
522 byte By
timhuya at 2007-11-27 10:49:35
Normally, we can execute a Struts actions thru Ajax like the following Javascript lines var url = "myStrutActions.do?parm1=parrm1val&parm2=parm2val&.."loadURL(url, AjaxTriggerFunction);where loadURL is the Ajax function to execute the Struts actions.My question is instead of passing literal ...
303 byte By
timhuya at 2007-11-27 10:49:38
Let say we have Actions A and B.In Actions B, I will execute some business logic and execute the same business logic I coded in Actions A.Is it possbile that in Actions B I can execute Actions A, thus avoid having the same code in 2 different placesPlease let me know. ...
Hi all,I'm currently converting a project from jsf 1.1 to jsf 1.2 on tomcat 6. Unfortunately two selectOneListboxes that use a converter-for-class do not work anymore now.I checked in my converter and it really gets called upon changing the selectbox just like it should. So far so good. However, ...
639 byte By
kal132a at 2007-11-27 10:50:09
Hi,I have a commandlink in my jsf and in that i have following code- <h:commandLink onclick="getClarify(#{clarifyDetRep.ticketNumber})" id="showTicketDet"><h:outputText value="#{clarifyDetRep.ticketNumber}" id="column1"/></h:commandLink>Where getClarify is a javascipt that opens new window ...
In the Context.xml file, I have reference to the database I am using for the application. Here is the Context.xml code.<?xml version="1.0" encoding="UTF-8"?><Context path="ABATE" reloadable="true" docBase="C:\Documents and Settings\koconnor\EclipseWorkspace\ABATE" workDir="C:\Documents and ...
Hi,Recently, got sometime to take a look at JSF 1.2 specs, excited me about the approach taken. I then started looking at the available framework but there are plethora of frameworks available so got kinda confused. Appreciate if anyone suggest the best framework to start off with JSF ...
393 byte By
orribla at 2007-11-27 10:50:21
Hi,I wonder how I can get the rootpath of my application.I have a jsf & spring application and want to place a xml-file under the application root (e.g. in the WEB-INF). But when I want to load the xml file in the code I don't know how to get the directory (absolute or relative) so I can load ...
Hi,Recently, got sometime to take a look at JSF 1.2 specs, excited me about the approach taken. I then started looking at the available framework but there are plethora of frameworks available so got kinda confused. Appreciate if anyone suggest the best framework to start off with JSF ...
Hi,I am submitting a form using document.forms[0].submit. The form has 5 paramteres and the servlet inserts a record into the table using the form values. After successful insertion the servlet will return a boolean value based on the success or failure.How to get the boolean value in the jsp and ...
888 byte By
Troubya at 2007-11-27 10:50:42
Hello,I have a commandbutton with an actionListener tag set,in the method that is invoked within the actionListener, I am trying to restore some other ui components on the view as follows:UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();UIComponent comp = ...
Hi,I have a form which has a Text box in which I require user to input some numeric value and press SUBMIT button.I want to keep a check that if user Submits 5 incorrect values in the Text box, it should terminate that page or redirect him to some other page and he should not be allowed to enter ...
Hello allI have wrote the code for a servlet. But I am having difficulties in compiling it. It comes up with "class not found". I am very sure I have set all path correctly. I have set the path to jdk and jre. Could some tell me how to get this to work. I have been trying for two days to compile a ...
Hi,I have some experience with JSP, however, I discovered that it's limited to scripting in JSP . I started reading the java 5 EE tutorial and went through fine with the servlet part. Once I got to the jsp part however, it just jumps into tags and JSTL in a way that assumes I have sufficient ...
I am using JSTL to render the following radio button:<input type="radio" value="${nextObject.garbledID}"onclick="executeSelection('${nextObject.garbledID}')" />The radio button is rendered correctly with the resolved value of nextObject.garbledID for onclick on Windows/Linux. On AIX, the value ...
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 ...
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 ...
<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 ...