Hi guys,Note it this answer,The Apache Software Foundation is a community of developers dedicated to creating and maintaining open-source software projects, including the Jakarta project. The Jakarta Project creates and maintains open-source solutions based on Java technology. Tomcat is an ...
Hello,i've moved my jsps from outside WEB-INF to WEB-INF directory/web-inf/jsp/private/home.jspBut now i can't receive the home.jsp page. what do i have to do to see the home.jsp in the browser? Do i have to change my faces-config.xml ?thanks
Hi,I'm having a little issue with combining JSTL and JSF.I have a jsf selectOneMenu drop-down that I would like to fill with values stored in a bean. The bean is a Vector that contains objects of a certain type. The vector object is called Languages which carries objects of type Language. Each ...
hi i need simple strut project using mysqlserver. pls any one tell me website for this. pls its very urgent
124 byte By
Vansha at 2007-11-27 9:31:20
Hi to all,I want to save data through jsp:useBean andhow to create bean ?Waiting for replyThanks
I want to convert web-sites dynamically to wap-sites(wml). Please guide me how can i do this and what are the steps to follow to do this. If someones has related source code and links please share with me.I'll be really pleased and thankful if you give me guide and help.Also tell me are there ...
Moving to facelets but am have problems with the selectOneMenu.The menu renders, but there is no content....event when hard coded like below.<h:selectOneMenu id="test" value="label"> <f:selectItem itemLabel="label" itemValue="value"/></h:selectOneMenu>Any ideas ...
Hello,Does anybody know how a servlet can access the HttpSessions (plural) from a servlet.For example: if one were to remove a user from a database of users, one would also wish to invalidate their HttpSession to avoid a programme getting 'confused'.Thanks in ...
Hi, In my struts application, I am getting results from database, based on my search query. In result, I am getting set of list of objects mean set contain lists and list contain objects. I am passing these values from my action class to jsp page using one bean class. Now I want to pass all ...
180 byte By
ripita at 2007-11-27 9:31:59
Hi,I wonder how I can get the path to the directory where the jsp files are from a javabean. I don't want to get it from a jsp page and then send it to the javabean.
this is ramui want to submit the JSF command button through javascript?can any one help me
I have a RichFaces dataTable that I want to refresh independantly from the rest of the page. I would prefer to avoid using something like iFrame. I have searched the forums, but I haven't been able to find anything on refreshing part of page.
if in my project i am using just getSession() and not getSession(boolean), what kind of troubles i can get into. what is the disadvantage of getSession(). There must be many of this approach (of using only getSession() ) since for getSession() i will always get a session even if my session ...
if in my project i am using just getSession() and not getSession(boolean), what kind of troubles i can get into. what is the disadvantage of getSession(). There must be many of this approach (of using only getSession() ) since for getSession() i will always get a session even if my session ...
2392 byte By
thanua at 2007-11-27 9:32:30
Hi all,I tried upload and download using apache commons. but still i get strange error. could not resolve it. Ok this is my scenario.My application should allow the user to upload and download files between their local machine and server. We are doing a project something similar to CVS. Now ...
Hi all, i have been getting this message with my server all day but just with one page i have made. jsp page code: <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %><%String url = ...
Ok, obviously this is either not interesting, or no one really knows what to do, I would love any ideas even if they dont work, just anything that would help would be great :)I am extremely new to servlet programming and reasonably new to J2ME. I want to upload a file from my device to a ...
Hi,Can anyone help me? I have some JSP pages that load data ORACLE database.I'm using jboss-4.0.3SP1 .The jsp code that breaks :<%@ taglib prefix="sql" uri=" http://java.sun.com/jsp/jstl/sql" %><sql:setDataSource var="qspp" driver="oracle.jdbc.driver.OracleDriver" ...
1111 byte By
feruduna at 2007-11-27 9:33:22
from struts I was used to have a formbean and a corresponding bean e.g.UserInfoFormBean and UserInfoBean. The formbean contains all instance variables the bean has and additionally some elements concerning the UI.With BeanUtils.copyProperties I was able to copy the proberties between the ...
20048 byte By
Sudipthaa at 2007-11-27 9:33:24
I am using Tomcat 5.5 and Jdk 1.5.0_12 and Oracle 10g. I am using jdbc-odbc bridge connectionto connect to the database. I have placed my project folder calledtdm under the webapps folder in Tomcat. This 'tdm' folder consists of a collection of html pages,jsp pages and images of my project. ...
1426 byte By
xtc77a at 2007-11-27 9:33:26
Hi all!I've a question about the request dispatcher. Let me describe the situation.I've a jsp that with a specific custom tag dispatches (using "include") to a servlet that generates an xhtml document . This document is inserted in the positing where custom tag was used (like tiles).I need 2 ...
Hi, I've been trying to update tomcat from 3.2 to 6.0. My issue is that I have a memory leak(s?) that make the web application unusable. Currently in my setup I am using these components:Tomcat 6.0, sun JDK 1.6.0_01, mssql 2005, Microsoft SQL Server 2005 JDBC Driver 1.2, xalan 2.7.0, log4j ...
Hi there, I have a jsf page which produces a popup on button click. <h:commandButton value="popupParent" onclick="popupFn()" action="#{testbean.actionFn()}"/>The popupFn will create a popup window. That window is a jsf page that has a input text field and a button. <h:commandButton ...
2236 byte By
Illua at 2007-11-27 9:33:54
Hi all!I have a method that allows a file to be downloaded to the user's hard-drive.My problem is that the life cycle seems to stop when they save the file i.e. the page they are on is not refreshed! Can anyone help me?I need the page to be redisplayed because they are dealing with records in ...
2243 byte By
xoxotaa at 2007-11-27 9:34:01
I keep getting the following exception whenever I try to hit a JSF page:java.lang.IllegalArgumentException: setAttribute: Non-serializable ...
How do I incude a static html file in the jsp in a portal application? By using <c:import> or <jsp:include> I am able to achieve it. This is working if the requested file exits. In my case the file name is formed dynamically and so I cannot assure that such an html file exists. ...
681 byte By
Sarky78a at 2007-11-27 9:34:49
HiSorry if i am not using the right java terminology here but i'm really new to jsp and have inherited a project using jstl and xml. I need to be able to add an xml attribute to the xml file that is being used, but when i add this attribute to the file and leave the jslt/jsp the same it ...
I need to handle authorization for a set of pages; however I don't need to handle authentication. In other words, I already know the user is who they say he/she is, I just need to check if that user has the rights to access the page. I don't need/want a database solution, just a simple ...
How to send the values in a JSP page when submitted to reload in iframe page with latest values.The requirment is to get the previous form values for processsing page to get some other values from database .At present i have done with URL query string.But i need to carry almost 20 name =value ...
2701 byte By
but.heda at 2007-11-27 9:36:13
Hi,I'm writing a small app in JSF. One of the pages populates a bunch of text fields from an XML file whose name is passed into the app as an initialization parameter. The purpose of the page is to allow editing of the fields.It seemed that the prerender() method was the right place to ...
64 byte By
AWCPa at 2007-11-27 9:36:17
how to extract war file? explain technoloby behind in war
339 byte By
mypdaa at 2007-11-27 9:36:19
I have set the session var in my managed-bean, in my jsf page I can use the <% session.getAttribute( "var" )%> to get the session var, and the JSF EL( #{ var } ) do so, but #{session.var} or #{sessionSCope.var} can't return the session var's value. I am using Resin3.1.1 and JSF1.2.Any ...
can anyone advise on an alternative to struts-layout?thanks
316 byte By
69901a at 2007-11-27 9:36:32
Hi all,how would the server knows that the page is closed and we want to close the session of the particular page.when ever the clien didn't click on logout link and closed the window at that time we want to expires the particular session of the page how can we do this.Thanks in ...
182 byte By
69901a at 2007-11-27 9:36:34
Hi all,the result is a very large it will take more than one jsp page in this senario how we will display the result in more than one jsp page.Thanks in Advance.
hii,I have a servlet from which I m creating a thread. I want to execute the thread even if it completes servlet execution. For ex. I have a servlet UserServlet from which I m creating a thread RunApplication. I want to run RunApplication even if the UserServlet completes its execution.. Please ...
Hi,I have a simple Struts app that's connected to a DB. I can search for an "employee" and know I want to add the functionality to add an employee, so I have two add buttons in a JSP page. When I come to the Action/controller page, how can I know which button that has been pressed, i.e, which ...
Dear Everyone,In the web application, i am using Form based authentication for security...i have configured exactly by giving login page and error page..i have also configured <security constraint> , < login -config>...But i receive error page while i give username and ...
I have written a bean called comboboxbean & in faces-config mentioned its reference. Now when i try to call it inside <select items>like #{comboboxbean.combovalues}I am getting class not found and can not get value for combovalues etc.Now either i am missing something or there is some ...
Please help on this program ,import java.io.IOException;import java.net.URLDecoder;import java.util.Enumeration;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import ...
Hi!I'm trying to use tomahawk components in my shale application. I have inputCalendar fields in my form. The problem is when I click on Submit. I get this error:Jul 4, 2007 3:31:16 PM org.apache.myfaces.renderkit.html.util.DefaultAddResource writeMyFacesJavascriptBeforeBodyEndWARNING: MyFaces ...
Dear AllThe below data table is in popup window ...The binding methods is called by JSF only first time ....And then gives me same binding values which it set at first time no refresh call ...I want to call it every time once I click for button to popup How can I force JSF life cycle to call ...
Hi,I'm developing a webapp using Struts 1.3. I've seen that is possible to do this:<bean:message key="label.myNumber" arg0="${myBean.value}"/>And then, in MessageResources.propertieslabel.myNumber = My number is: {0,number,##0.00'%'}However, when I try to execute it, i get the ...
I would like to know, how we can give underscore for the hotkeys in JSF command buttons.e.g if a command button is having a text as "Save ", then the letter "S" should be in underscore.Anybody tried....
1154 byte By
kuhnmia at 2007-11-27 9:37:53
Hi,I want to do the following using JSF:There should be a SelectOneMenu from which a user can select an entry. Next to the SelectOneMenu, I want to have two buttons: one to replace the text in a InputText field with the selected item and one to append the selected item to the current text in ...
6140 byte By
fredleva at 2007-11-27 9:37:54
I have a very simple program.For the jsf page:<%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %><%@ taglib uri=" http://java.sun.com/jsf/core" prefix="f" %><HTML><HEAD/> <body><f:view><h:form><h:inputText ...
Hi,Im implementing a secure login using j_security_check (validating users against our active directory). This is working and logging users into our site, however randomly it seems, when users login they are forwarded to either http://localhost/j_security_check/ or http://localhost/favicon.ico ...
I have made a table which is invisible but on click of a button it becomes visible. The functionality is working as expected. But the page is having a blank area even when the table is invisible. How can i make the page without the plain area when table is visible
Hi,I'm having a functionality working of pre-populating dropdowns using struts like:ArrayList list = getRoles(); //This method will return list of rolesrequest.setAttribute("roles", list); By setting this collection in the request it will be availbel to <html:select and ...
can anybody tell me why do we call the doPost() method with in doGet()?When do we use doGet() and when do we use doPost()?