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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
<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>
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 ...
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 ...
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 ...
<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>
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 ...
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 ...
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 ...
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 ...
<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>
<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>
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. ...
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). ...
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 ...
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). ...
<p>i want get data from <rich:dataTable> when onClick on row . Data will output at below. i can't get it.</p>
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" ...
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 ...
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 ...
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 ...
<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>
<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>
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 ...
<%@ 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" ...
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" ...
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 ...
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 ...
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 ...