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

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

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

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

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

Hidden Text Box

393 byte By Kewl_Spacea at 2007-11-27 10:59:48
Hi, I would like to know, whats the level of difference it makes using a hidden filed in a JSP and using a text filed having its display style as none i.e., virtually a hidden text filed.That is what is the difference the following two code pieces produce?<input type=text ...

Uploading Files to jsp

632 byte By eur0dada at 2007-11-27 11:00:00
Hi,My app requires the user to upload three different files. I'm using the "file" input type for the first time, but it's not doing what I'd hoped it would. I really just need the absolute path (the path that shows up in the textbox after they select their file) to that file. I.e.If they select ...

Deploying my JSP

465 byte By eur0dada at 2007-11-27 11:00:02
My program runs fine locally, as a non JSP application. It uses the CsvReader library javacsv.jar, and one of my files imports "com.csvreader.CsvReader" from this library. When I try running it as a JSP application, it gives me a NoClassDefFound for "com.csvreader.CsvReader" class. I added the ...

How to display wait for page load message when JSF page is loading

454 byte By kbalas78a at 2007-11-27 11:00:06
Hi everyone,Requirement : in my jsp page i load & display my table when my drop down is populated. So i click a button when my drop down is selected. Upon clicking the button my table gets rendered and get displayed.So, the issue the button runs a back end script which needs few minutes to ...

create a sub table in a table data

251 byte By nagesh.reddya at 2007-11-27 11:00:26
<p>Hi all,</p><p>I want to create a subtable inside a row data.</p><p>how should i go about it.</p><p>e.g:</p><p>question and answers.</p><p>i have to show the quetions and answers against it.</p><p>the answers might be more than one.</p><p>thanks</p>

Problem Logging Data to Access Database

6584 byte By Pugmaster0a at 2007-11-27 11:00:39
Hello,First I'd like to start off by saying I'm totally new to JSP so please excuse my beginner errors.I found some code which allows me to grab the NT username along with Domain and Machine name from the clients machine.I plan on using this on a corporate Intranet and everyone uses IE so I ...

Services to start and stop Tomcat

743 byte By oaklandara at 2007-11-27 11:00:50
I have Tomcat 4.1.27 on a Windows 2000 Server where the startup.bat doesnt work and I have to startup the container using the Windows Services tool. The server also doesnt show any Tomcat console window so I can see what is happening.The startup.bat just pulls up a window real quick and it ...

dynamic creation and deletion of rows in table

413 byte By skallurayaa at 2007-11-27 11:01:16
hi friends,i have a problem. i have to dynamically generate rows for a table and at the end of each row there will a checkbox. now outside the table i have a delete button. when i check a row and press delete button, that row should be deleted.This can be done by creating a flg variable for each ...

What is a Portlet

190 byte By javanewbie80a at 2007-11-27 11:01:18
<p>what is a portlet and how is it different from a portal. What i understand is that portal is a normal web application, probably just like this sun java site. right? What is a portlet?</p>

Problem with Session time out

689 byte By Ananth.duraia at 2007-11-27 11:01:21
Hi,I have some problem with session time out. in web.xml i set session time out for 30 minutes and i check the session expiry in each servlet asif((request.getRequestedSessionId()!=null && !(request.isRequestedSessionIdValid()))) { // forward to login expires page}then i use ...

Output Link and Command link problem

597 byte By Arch_Bytesa at 2007-11-27 11:01:44
I have this command link that I want to redirect to a certain url, a complete one with the Http://www.webpage.com.. and its value is Goto This Page..lets say I want it to pass through a certain backing bean before redirecting how am i supposed to do it...?before it was this simple:<h:outputLink ...

getting exception

605 byte By siri85a at 2007-11-27 11:01:57
hi,I am very new to Java Server Faces.I created one jsf page and when I am trying to run this page I am getting the following error.javax.servlet.jsp.JspException: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'POPBean' resolved to nullat ...

Cant read the header info

393 byte By BenjaminJavaa at 2007-11-27 11:02:03
Hi all Am not able to read the header info from my servlet . In JSP response.setHeader("UNIVERSALID","nave");RequestDispatcher view = request.getRequestDispatcher("Login");view.forward(request,response);In Login Servlet-request.getHeader("UNIVERSALID") is resulting nullHow to get the header am ...

I'm unable to run jsp pages in ecllipse

172 byte By sindhu.garapatia at 2007-11-27 11:02:13
<p>Hi,</p><p>I have written JSP pages and i am not able to run those files in ecllipse.Can any one tell me the actual procedure of running JSP files written in ecllipse</p>

calling a servlet by passing the parameter

297 byte By ravishankera at 2007-11-27 11:02:18
<p>hi all,</p><p> the scenario is :</p><p>I have a JSP page where in if i click on an element (not a button) it must invoke the servlet by passing the element value (which is clicked).</p><p> Please help me in figuring out this....</p><p>thanks in advance....</p><p>Regards,</p><p>Ravi Shanker</p>

Why do you use jsp:useBean?

637 byte By Troilusa at 2007-11-27 11:02:20
Hi,I have one "simple" question :) : When or why do you are using <jsp:useBean>,<jsp:getProperty> and <jsp:setProperty>? For practice, I am creating a form, sends the data to a servlet and the servlet "packs" the parameter into a Bean and put this Bean into a request- or SessionScope. ...

Deploy servlet error(Kindly Help me please)

1401 byte By nitin403a at 2007-11-27 11:02:32
What the step by step method of deploying a servlet.This what I did to deploy servlet.1). I created a "servlet.java" File2). Compiled it on my machine.3). Then on the machine I want to deploy it I created a folder "TestServlet" in tomcats webapps.4).Under "TestServlet" I created "WEB-INF" folder5). ...

JSF-file download

366 byte By spicy-pinka at 2007-11-27 11:02:34
On clicking a link on my page i want to download the doc file. The jsp page containing jsf & html tags are displayed inside a portlet. i tried using myfaces file upload but it was showing error when i deployed & run the file. i tried using html <a href >also.the doc file which i want 2 ...

Deploy servlet error(Kindly Help me please)

1401 byte By nitin403a at 2007-11-27 11:02:36
What the step by step method of deploying a servlet.This what I did to deploy servlet.1). I created a "servlet.java" File2). Compiled it on my machine.3). Then on the machine I want to deploy it I created a folder "TestServlet" in tomcats webapps.4).Under "TestServlet" I created "WEB-INF" folder5). ...

help me

113 byte By onRowClicka at 2007-11-27 11:02:37
<p>i want get data from <rich:dataTable> when onClick on row . Data will output at below. i can't get it.</p>

JSTL and Scriptlet

853 byte By Sebastien.Bervoetsa at 2007-11-27 11:02:38
Hi,I take back a code from another developer, I get an error and I don't understand why. RAD 7 tells me "media cannot be resolved" in the scriptlet.Could you help me to understand why ? There is may be another way to do the same.Thanks<bean:define id="media" name="accountForm" property="media" ...

redirect user to login if not logged in

383 byte By eLIXa at 2007-11-27 11:02:52
Hi,I know there are allready lots of topics on this subject but I can't seem to understand the solutions yet.So basically what I want to prevent is that users can just type in the url of the admin page (admin.jsp) in their browser and thereby skipping the login page (index.jsp)Can someone give me ...

Input value from SQL database into html Form

744 byte By Maxcorda at 2007-11-27 11:03:06
I was new to jsp and want to make update page for my website, i want to pun value in my html form from table. i using JSP.JDBC ConnectionResultSet rs2 = stmt2.executeQuery("Select * from securityDetails );-html textbox--<form name="f1" action="prosesmyprofile.jsp" method="get" onsubmit="return ...

JSP problem:request object returning null

2457 byte By yuva670a at 2007-11-27 11:03:26
Hello,I am using an authorization JSP before proceeding to another JSP. When the authorization is valid, I go to the next JSP. Now there is a drop down box in this next JSP. I select a value from this drop down and submit the form. When I retrieve the value of this drop down in the next JSP using ...

servlet(null pointer exception)

185 byte By terrorratha at 2007-11-27 11:03:30
<p>i want to reterive the data from database to jsp and i should get a populated drop downbox. but it is show the following error.</p><p> null,</p><p> null,</p><p>action=reqid=null.</p>

servlet(null pointer exception)

210 byte By terrorratha at 2007-11-27 11:03:42
<p>i want to reterive the data from database to jsp and i should get a populated drop downbox. with those information. but it is shows the following error.</p><p> null,</p><p> null,</p><p>action=reqid=null.</p>

Open a Local file from JSP

567 byte By shardulba at 2007-11-27 11:03:58
Hi All,I want to access a local file from a JSP. On click of the link the local file should open. The location of the local file isO:/VWS00000000000000000001/REPORT_FRAGMENTS/Title1.docand the hyper link on the JSP showsfile:///O:/VWS00000000000000000001/REPORT_FRAGMENTS/Title1.docsomehow the file ...

JSF 1.2 (MyFaces) + Tomcat 6.0.10 issue

7230 byte By necromancer15a at 2007-11-27 11:04:04
<%@ page import="javax.faces.context.FacesContext" %><%@ page import="javax.faces.application.FacesMessage" %><%@ taglib prefix="jsf" uri=" http://java.sun.com/jsf/core" %><%@ taglib prefix="h" uri=" http://java.sun.com/jsf/html" %><%--<%@ taglib prefix="t" ...

Problem with Struts2 Validator (doesn't parse)

3900 byte By lordfergusona at 2007-11-27 11:04:07
Hi all! I'm trying to create a validator for this form:<s:form namespace="/user" action="create" validate="true"><s:textfield id="nameUser" name="user.nameUser" label="Nombre"/><s:textfield id="surname" name="user.surname" label="Apellidos"/><s:textfield id="address" ...

how to print break line in jsp.

674 byte By ukbasaka at 2007-11-27 11:04:20
in jsp where a bean.getProperty() value has a broken line. but it displays as a single line in the web page. when printing the line by System.out.println() statement, it displays as a verious new line where '\0' is applied but in jspbean.getProperty it does not. For example : It displays by ...

Queries questions regarding jdbc and jsp

470 byte By javaqueuea at 2007-11-27 11:04:55
Hi, I have a few questions regarding jdbc and jsp:1. where does the implementation of the Interface Resultset take place?2. which one is better Resultset or Recordset?3.if in 1.jsp file i include 5 jsp files using inclde directive, then during the translation phase in total how much .class files ...

Servlet doing serialization

3739 byte By n2xta at 2007-11-27 11:04:57
Hi all,I'm designing a small app in order to perform compilation test on struts framework using flash tools. The project is organized this way: the user tells how many "compilation test" he wants to perform on the main page and then these informations are passed to a servlet which generates fake ...