Note it: Difference between Apache-Tomcat and Jakarta-Tomcat

725 byte By drvijayy2k2a at 2007-11-27 9:30:04
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 ...

jsps under WEB-INF

279 byte By hamidagaa at 2007-11-27 9:30:38
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

Mixing JSF and JSTL

1883 byte By newbyfacesdevelopera at 2007-11-27 9:30:58
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 ...

strut project

121 byte By Java_Jsp_servleta at 2007-11-27 9:31:18
hi i need simple strut project using mysqlserver. pls any one tell me website for this. pls its very urgent

how to use jsp:useBean ?

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

convert html pages dynamically to WML

483 byte By qasitoucha at 2007-11-27 9:31:24
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 ...

facelets and selectOneMenu

426 byte By jamesclintona at 2007-11-27 9:31:25
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 ...

get httpSessions from context

311 byte By bamkin-ov-lestaa at 2007-11-27 9:31:28
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 ...

handle list of list of objects in actionForm

506 byte By Prafull.Jaina at 2007-11-27 9:31:49
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 ...

Path to dir

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.

jsf script

111 byte By anantharambabua at 2007-11-27 9:32:16
this is ramui want to submit the JSF command button through javascript?can any one help me

How to refresh part of a page

257 byte By r-squareda at 2007-11-27 9:32:21
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.

getSession() Vs getSession(boolean)

353 byte By javanewbie80a at 2007-11-27 9:32:25
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 ...

getSession() Vs getSession(boolean)

353 byte By javanewbie80a at 2007-11-27 9:32:26
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 ...

File System

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

java.security.AccessControlException - ? n idea why

5078 byte By JamesMorgana at 2007-11-27 9:32:37
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 = ...

Uploading a file from a J2ME application

6531 byte By -fluffy-a at 2007-11-27 9:32:44
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 ...

"java.sql.SQLException: No suitable driver"

3469 byte By sacinthaa at 2007-11-27 9:33:08
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" ...

separating application and business layer

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

Problem with Configuring Tomcat for running jsp web applications..Plz HELP

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

Current Request Dispatcher

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

Memory Leak with Tomcat version update 3.2 to 6.0

757 byte By mattcrwia at 2007-11-27 9:33:43
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 ...

jsf popup

815 byte By MarkBrettLeea at 2007-11-27 9:33:53
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 ...

LifeCycle Question

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

Help! JSF keeps barfing: Non-serializable attribute

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

Jasper exception when including a html file in jsp

616 byte By Deborah_Rachela at 2007-11-27 9:34:38
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. ...

jstl 1 and xml attributes

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

Simple authorization solution

427 byte By johnpeeba at 2007-11-27 9:35:02
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 ...

form submit via javascript to iframe

896 byte By raghuveer_vellankia at 2007-11-27 9:36:02
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 ...

Error handling in overridden methods in AbstractPageBean

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

how to extract war file

64 byte By AWCPa at 2007-11-27 9:36:17
how to extract war file? explain technoloby behind in war

why JSF can not get the session's var?

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

looking for alternative to struts-layout

73 byte By xianwinwina at 2007-11-27 9:36:21
can anyone advise on an alternative to struts-layout?thanks

how server knows that the page has closed

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

how to display result in more than one jsp page

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.

Asynchronous thread execution from servlet

354 byte By Anoop_KAa at 2007-11-27 9:36:36
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 ...

Multiple forms in struts

398 byte By javaExceptiona at 2007-11-27 9:36:42
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 ...

How to view Secured page using J_Security_Check ?

1515 byte By senthil_yogaa at 2007-11-27 9:36:43
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 ...

how to call collection in dropdown using selectitems in java server faces?

4655 byte By vj_makera at 2007-11-27 9:37:03
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 ...

Filtering the URL

6082 byte By sreenivaspallaua at 2007-11-27 9:37:24
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 ...

problem with tomahawk inputCalendar

1033 byte By paulr1984a at 2007-11-27 9:37:25
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 ...

How can I force JSF life cycle to call binding method again ...

1399 byte By Gunjan-Bohraa at 2007-11-27 9:37:33
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 ...

Formatting numbers with MessageResources

1454 byte By xurigueraa at 2007-11-27 9:37:43
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 ...

Having letter underscore for hotkeys in JSF Command buttons

223 byte By SivaSundarama at 2007-11-27 9:37:44
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....

SelectOneMenu and InputText

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

A frustrating error

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

Secure Login redirects to 404/favicon

1665 byte By hyrogen32a at 2007-11-27 9:38:00
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 ...

Invisible element in JSP

271 byte By BillJistsona at 2007-11-27 9:38:29
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

Approaches for Prepopulating dropdowns in Jsp using struts.

631 byte By prashantkaushikjava@sun.coma at 2007-11-27 9:38:33
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 ...

about doGet() and doPost()

136 byte By sunvenkata at 2007-11-27 9:38:38
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()?