I cant replace attributes in sessions

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) ...

Window.close() not working within the frame

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>

Can I use Ajax with jsf

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>

Same thread for ServletRequestListener and Servlet request?

499 byte By puchericoa at 2007-11-27 10:48:26
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 ...

Datatable in JSF

146 byte By archana_tcsa at 2007-11-27 10:48:27
<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>

how to implement "Remember Login " in jsp

209 byte By gyan_softa at 2007-11-27 10:48:33
<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>

How to customize the NavigationMenuItem class

839 byte By Sruthi.ma at 2007-11-27 10:48:38
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 ...

passing request to a second jsp

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

how to call a managed bean when a button in clicked

117 byte By javamnr948a at 2007-11-27 10:49:16
<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>

java mail

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>

Struts - Redirect to start by accessing jsp-file?

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

Too Many Connections / Connection Pooling

1648 byte By mon.goosea at 2007-11-27 10:49:26
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: ...

Ajax actions and Form Beans

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

Execute Struts actions within Struts actions

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

selectOneListbox problem after upgrading to jsf 1.2

586 byte By tombatorea at 2007-11-27 10:49:55
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, ...

Page reload in commandlink

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

Referencing Database from Context.xml

1206 byte By JasonMcAuleya at 2007-11-27 10:50:14
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 ...

Information Related

314 byte By javashisha at 2007-11-27 10:50:15
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 ...

get webapp root

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

Require Information Related to JSF

314 byte By javashisha at 2007-11-27 10:50:25
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 ...

Getting return value using a POST request (document.forms[0].submit)

382 byte By arulanandspa at 2007-11-27 10:50:32
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 ...

ActionListener, restoreState issue

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 = ...

JSP - Count Text Box User Attempt - Session Terminate

484 byte By linkinpark2007a at 2007-11-27 10:51:12
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 ...

Servlets basics

388 byte By princerozarioa at 2007-11-27 10:51:13
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 ...

java EE tutorial's problem with jsp

577 byte By Octaviana at 2007-11-27 10:52:18
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 ...

JSTL single quotes embedded in double quotes issue

755 byte By kumar007a at 2007-11-27 10:52:30
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 ...

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

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

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