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