jsp authentication

856 byte By Midragoa at 2007-11-27 9:28:59
Hi All,At the moment I am calling stored procedure and passing it username and password from login form. Than if login credentials are valid I set session variable called "username" to value of username from the login form.This works just fine. the only thing is that my HTML code is cluttered ...

Problem During deployment

1762 byte By senthilmurugana at 2007-11-27 9:29:00
HIPLease tell ur suggestions for this error:I expected very soonHTTP Status 500 - --type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for ...

Web service to validate US states, city and zipcode

222 byte By tahirakrama at 2007-11-27 9:29:19
I want to validate city against selected state and zipcode against selected city.Is there any free web service that I can use to validate it.Kindly help...thanks in advance.--Tahir

Using SQL Server to call stored procedure?

234 byte By CJ_125a at 2007-11-27 9:29:41
Hi All,I am using Netbeans 5.5, app.server 9.0 and SQL server 2005. I have some problems when calling stored procedures in EJB 3.0. Do you have any idea how to call stored proc? Kindly regards, Chris

Problem with Custom Validator

565 byte By dmercurya at 2007-11-27 9:29:46
Hi,I was trying to develop a custom validator to check for all my validations. Followed all the possible steps defined ....Created a class that implements Validator InterfaceImplemented validate() methodRegistered the class in faces-config.xml, with a validator IDReferred the validator in a ...

Overriding init of Faces Servlet

369 byte By eegaia at 2007-11-27 9:29:55
Experts,I need to load application related data in Servlet Context on server startup. Right now I am using a separate sevlet to do this. Is there any other way to achieve this? Like, Some filter or listener which is called only on server startup of JSF project. Or, is it 憃k?to have a dummy ...

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

java.lang.NullPointerException in session bean

1407 byte By jiangzhia at 2007-11-27 9:30:48
Hi !I am trying to get a Entity bean through "LocalHome.findByPrimaryKey".I get an error:java.lang.NullPointerException.this is session bean:public class LoginBean implements javax.ejb.SessionBean {private javax.ejb.SessionContext mySessionCtx;public UsersLocal usersBean = null;public List ...

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

ArrayList in WebService

1094 byte By prashant1406a at 2007-11-27 9:31:00
I am newbie to WebService. I was able to develop a sample WebService using AXIS. The WebService had only primitive datatypes like int, String. Now i would like to move a step further. I would like to create a WebService that has non primitive data types like Collection Data Types etc. Any ...

How to get name of default mail server?

275 byte By deepakchandarana at 2007-11-27 9:31:08
Hi , I need to get the name of default mail server . In 1.5 i can get this usingSystem.getenv("MAIL_SERVER");.How do i get this in 1.4?Since getenv() is depricated in 1.4 , how can i get the name of mail server in 1.4?plz help me....

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

JAX WS webservice returning List

489 byte By patel123a at 2007-11-27 9:31:32
HiI want web service to return list,following is the code snippet i tried@WebMethod() public List<CustomerInfo> getAccountList() {Query query=em.createQuery("from CustomerInfo c");List<CustomerInfo> info= query.getResultList();return info; }i tested webservice using web service ...

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.

ERRORsymbol:class UserTransaction(cannot find symbol)/package javax.mail.in

690 byte By crisssa at 2007-11-27 9:32:10
Hi people, I am trying to compile a web proyect in MyEclipse with Ant 1.6.2, but now it appears an error that says : [javac] F:\...\Doc1.java:13: cannot find symbol[javac] symbol : class UserTransaction[javac] location: package javax.transaction[javac] import ...

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

JAX WS version?

156 byte By patel123a at 2007-11-27 9:32:36
hiI am very new to webservcie.can anybody explain how could i check JAX WS version.I am using jdk1.5. and jboss 4.0.5 app server

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

given some xml and an xsd, how to remove extra stuff in the xml.

412 byte By NightWinga at 2007-11-27 9:34:04
Hi. I have a question. I am trying to use the various XML libraries to parse/validate an xml file given an XSD schema. I want to remove the extra stuff in the xml to output a new xml. The problem is as I validate or parse the SAXParseException it produce only gives me the localName. Is there a ...

Who can tell me about the addresses?

3420 byte By amanjpro@yahoo.coma at 2007-11-27 9:34:11
I'm trying to send an email to via my contact us page, to my info mail account...but my problems is about addresses...boolean debug = false; // change to get more informationString msgText = "A body.\nthe second line.";String msgText2 = "Another body.\nmore lines";boolean sendmultipart = ...

Reseting the database with java pet store and Java EE SDK 9.1

180 byte By jahendrick5a at 2007-11-27 9:34:16
I have added contents into the Java Pet Store Database through the web application interface and now I want to reset the database back to its initial state. How can I do so?

JNDI Context Retrieval in EJB 3.0

713 byte By albertthea at 2007-11-27 9:34:32
I have a doubt about JNDI context retrieval in EJB 3.0. I know that when I call a bean from another bean I can use this line:InitialContext ctx=new InitialContext();But I'd like to know whether in a Client I am obliged to pass this parameter:InitialContext ctx=new ...

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