716 byte By
deroka at 2007-11-27 9:15:57
Hi,I am working with this code<%@ page import="java.util.*" %><%Hashtable elementsnow = new Hashtable();%><%! int nu(){Enumeration e = elementsnow.elements();}%>and i get this error:cannot resolve symbolsymbol : variable elementsnow location: class ...
Hello,I developed a very simple service class annotated with @WebService.If I copy the class directly in the autodeploy, the server startsautomatically everything and I see it on the web services, andalso the call to http://server/MyService/MyService?WSDL works fine.If I package the class ...
problem is in the jsp file in the tag of <h:datatable value="CustomerBean.myResultSet">the datatable value is a result setthe example in the book write like this <h:datatable value ="CustomerBean.getMyResultSet">the error occurs here because the value can not be a functionit must be ...
295 byte By
deroka at 2007-11-27 9:16:34
Hi, i have "method1" in a .jsp, and I want to call that method from another .jsphow do i call it?thanks..in 1.jsp: float method1() { }in 2.jsp:method1();?
Hi All,I would like to ask a question about how I can group data in JSP. Essentially, I have a DataBean (extends ArrayList) that is being returned to my JSP. The ArrayList contains HashTables. Please note that the JSP assumes the data is returned in sorted order. This JSP is not responsible for ...
I guess I don't completely understand how to set up a web.xml, so I need some help.I have the following: /package/Servlet1index.html/fr/index.htmlMy descriptor looks like ...
764 byte By
fredleva at 2007-11-27 9:16:56
In a jsf page I have the following code:<h:selectOneRadio value="#{listeBean.ecoleChoisie}"><f:selectItems value="#{listeBean.listeEcoles}"/> </h:selectOneRadio>In the backing bean:private List listeEcoles = new ArrayList();public java.util.List getListeEcoles() {SelectItem u ...
Hi,I have 4 JSP Pages in my application (1.jsp, 2.jsp, 3.jsp, 4.jsp)Now, in "1.jsp", i use 3 radio buttons and onclick of each radio button i call a javascript file specified below.3 radio buttons are attached to 2.jsp, 3.jsp, 4.jsp respectively which are loaded in <DIV> of 1.jsp when ...
529 byte By
gnavala at 2007-11-27 9:17:19
Greetings, I am using ajax4jsf,jsf, I have a Collection of value objects as property of a JSF backing bean. I would like to use the elements in this collection to pre-populate input fields in the jsf page, also, each input field needs to be AJAX anabled to submit with onchange event. Question ...
Hi, I'm quite new to J2EE field and my question must be a simple one.I've written an enterprise bean (stateless session bean, j2ee 1.4) and also the Home and remote interfaces. I want to generate the client stubs so that other project can invoke the session bean doing a JNDI lookupI'm using ...
Hi,I've a LoginForm class that extends ActionForm and the login.jsp page accepts 2 fields - "username" and "password" and there are corresponding setters and getters in LoginForm.java. As part of moving this to container managed security (using login modules), I want to change the field names ...
hi!!! i m creating website ...i m using ajax.When tga page loads..there are 2 combo box one for state and other for city.on select of state city will get populated and on select of city my age will dynamically generate textbox along with combo box.This dynamically generated textbox will contain ...
I have a servlet that is in the package connection and i when i build and deploy it fill out the html forma nd send the data to /ConnectionManager/setConnection(ConnectionManager is the project name..and I assume the WAR file prefix)Project Folder: C:\Documents and Settings\me\My ...
Hi allI have a problem using jstl functionsI have a tag file with following code<%@ taglib uri="/WEB-INF/tlds/c-1_0-rt.tld" prefix="c_rt" %><%@ taglib uri="/WEB-INF/tlds/fn.tld" prefix="fn" %><%@ attribute name="path" required="true" %><%@ attribute name="base" ...
706 byte By
HanhTT1a at 2007-11-27 9:18:17
Hi all,I have code below:<td><html:submit value=" "style="background-image:url('./view/images/button/bbb.bmp');position: absolute; top: 10px; left: 10px; height:36px; width:153px;border:none;"></html:submit></td><td><html:button property="" ...
610 byte By
tinnya at 2007-11-27 9:18:33
HiThere is a point that has been confusing me for a while about J2EE web applications and today ive decided to try and lay it to rest!What is the difference between deploying a Servlet (say a HttpServlet) on Apache Tomcat or deploying it on the sun application server 9?When I develop my ...
1265 byte By
thanua at 2007-11-27 9:18:40
Hi,I have downloaded apache.commons.fileupload jar file and commons io jar file. Iam using netbeans. I have placed the jar files in j2sdk1.4.2_12\jre\lib\ext and in the project properties->Build->Packaging (in netbeans) i have mapped the jar files.But still i get this errorC:\Documents ...
I've found interesting tutorial about request validation: http://www.owasp.org/index.php/How_to_add_validation_logic_to_HttpServletRequestIt is working quite good, but I have problems with setting up a handler for ValidationExceptions. I'm only able to add try/catch block to getParameter ...
Hello, I am not gettting the user-defined error page in my servlet application.i have included<error- page>..... </error-page>in web.xml file .but for the specified error - java.lang.NumberFormatException, the given ErrorPage.java is not displaying. The container genrated error is ...
Dear AllI want to add If condition in JSF page .How can I use EL at JSF pageI want ot Add If condition .With Thanks and RegardsGunjan Bohra
hi ! well my servlet app in done, but Im worried about security and how sensible data can be reached by people who shouldnt be accessing it.So my question is, wich is the best way to ensure that the data will not be readed by someone else? I have crypted things like database fields, but Im ...
497 byte By
deroka at 2007-11-27 9:20:01
Hi,I am making a registration page,and the users most enter their e-mails to register.I want to validate the e-mails in order so the registration gets completed.The user most enter this format:username@mailserver.comIf they don't follow this format , for example:if they enter something ...
Hi all, I'm new to Tomcat and I have a few questions...1) I have a HttpServlet class in my server. Will an instance of this class be created for each request?. For performance reasons, can I specify a number of instances to be pre-created before user requests? (creating them at user request ...
Can anybody tell me how to send SMS from the system that i create to Hand Phone. now i am doing a system and i need to send same information to inform the user via hand phone. Can i use Java Message Service or J2Me to do that? TQ.
723 byte By
ak102a at 2007-11-27 9:20:25
Hullo,I'm fairly new to entity beans, and I have a general design question regarding CMP entity beans. I've been trying to google for an answer but I still can't quite answer it yet.... Anyways, here's my question: as I understand it, the J2EE server is responsible for creating and removing ...
How do I get EJBContext in EJB 2.1. rgds,Jatin
1042 byte By
Iftia at 2007-11-27 9:20:47
hi everybody!! can anyone help me? i am in great trouble. Here is my problem description....I have one jsp page named a1.jsp in this page i have some checkbox in a form. an html link.I select a checkbox and when i click the link then onclick() event of the link execute the javascript function ...
164 byte By
ronada at 2007-11-27 9:20:48
Hi,I have forgot Sun java 9 App server's admin console password. Is there a way to reset the password or reset ?.Thanks,Veeranna Ronad.
Hi, I have two custom jsp tags that both work fine when i call each one individually! however when they are nested i get an exception cause the inner tag is not resolved before resolving the outer one. And the outer one expect the output of the inner tag, not the inner tag itself. There you are ...
Hi all!I'm trying to understand the basic concepts of EJB. Starting with Session Beans I read that all these beans must implement a default constructor, for instance:public class HelloBean implements SessionBean....public HelloBean(){}....And I read that also other parametric constructors can ...
Hi,I have a struts app that is partially taken from a book, it lets you search for name or a security number, it then return matches and present them in a JSP page. The names and numbers are taken from a DB. I now would like to add the functionality to add user to the DB. I have the following ...
608 byte By
deaaa at 2007-11-27 9:21:04
hello,(excuse me for my poor English)I want to map a short url to large one. for example:mapping : 1)www.example.com/testto2)www.example.com/sport.jsp?x=1&y=2meaning every one hit the first url redirect to the second.(and case insensitive: TEST or TeSt is legal)what is the best way to do ...
I get the following error and installation abruptly halts.Can someone please suggest what do i need to do ?INFO - unpacked jar file: F:\Program Files\Sun\SDK\lib\webservices-tools.jar.pack.gzINFO - unpacked jar file: F:\Program Files\Sun\SDK\lib\deployment\sun-as-jsr88-dm.jar.pack.gzINFO - ...
Hi,I'm new to JSF, trying it by using Tomcat 6, JDK 5, jsf 1.2.I only have a simple jsp/jsp file along with the *.xml, the jsp like<%@ taglib uri=" http://java.sun.com/jsf/core" prefix="f"%><%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h"%><%@ taglib ...
667 byte By
Pawel34a at 2007-11-27 9:21:33
Hi. I have a site created in NetBeans (it's a Visual Web Application). It's based on Sun tutorials for NetBeans like this one http://www.netbeans.org/kb/55/vwp-fileupload.htmlApart from the File Upload component I also have - as a header - Page Fragment Box where there are : one picture ...
1719 byte By
deroka at 2007-11-27 9:21:37
I am working in Sale of Products,I have this method "addProduct" to request and add the products with a Hashtable variable "elements123".and the "Enumeration123()" method that returns enumeration of the values in the hashtable.<%! Hashtable elements123 = new Hashtable();void ...
I am develop a website for an airline by using JSP, MySQL, Netbean- in the index.jsp , I create 2 field name=bookingID and name=lname to get the user inputs- then, in the loginprocess.jsp, I user variable st1 to get bookingID, and variable st2 to get lname. NEXT, I compare the st1 and st1 to ...
Hi all,I am using james mail server 2.3.0 along with jsieve(java implementation for the Sieve mail filtering language )mail content filter on OS windows xp along with jboss for putting the mail on the queue.I am sending farsi words in my email they are been seen in email body in windows XP but ...
I am develop a website for an airline by using JSP, MySQL, Netbean- I already have a DB containing a list of cities, so1. How can I display the list of city by using List base on the information on DB2. And, after user chose a city, how can I take the name of the city to code3. I have oneway ...
I'm trying to set the check mark for a SelectManyCheckbox item from a backing bean and cannot find any explicit explanation or example to do this. This would be used to have a command button select all checkboxes and a command button to clear all checkboxes.I've been trying to set the ...
Hi there,m new to EJB i' ve got a prob in compiling a client java fileErrors:HelloClient.java:22: cannot access javax.ejb.EJBHomeclass file for javax.ejb.EJBHome not foundHello hello=home.create();^HelloClient.java:24: cannot access javax.ejb.EJBObjectclass file for javax.ejb.EJBObject not ...
me gustaria saber si alguien lo sabe porque la nueva version de netbeans, cuando se crea un proyecto vwp crea la jsp con estas etiquetas o tag webuijsf y no se utiliza la tradiional, lo que pasa es que cuando inserto un componente tipo text fields cuando se pinta en el browser se pinta como una ...
HelloI am reading a file in a servlet with url.openStream and getting inconsistent results. Is/how it possible to thread the entire reading process from within one of methods of the servlet? If this is doable, but not scalable what is a better approach?
Hi,I have a requirement for a data grid (similar to a data table) in which i can group data on columns. It seems .NET has a similar grid component (infragistics.com). I need to know if there are any open-source/commercial components available for this.Some advanced commercial grid components ...
i am facing OutOfMemoryError when i tried start application in tomcat i had already set CATALINA_OPTS=-Xms512M -Xmx512Mbut still getting problem Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception ...
HiI am trying to create a basic web application where i have followingMyapp/1.jsp: A form which takes the user inputMyApp/2.jsp: jsp which displays the data that has been fetched from the database using the jsp:useBean tagWEB-INF/classes/MyServlet.java: Populates the bean and fowards the ...
Hai all,i want to send some values to the next page appending with the URL like http://webjava-2k:8080/mydemo/keyword.faces?allowcan i do this? If yes, then in next page how can i retrieve the value?
JAX-WS included with Java 6 provides a built in HTTP server giving the ability to host web services without running a Java EE server. I've created several sample services to get myself familiar with the functionality and followed http://java.sun.com/developer/technicalArticles/J2SE/jax_ws_2/ ...
Hi All,I want the Difference between Application Server and Web Server.can any body send this details please.Thanks in Advance........RegardsKiran
155 byte By
ysmuleya at 2007-11-27 9:23:00
After user logout from web application user can access the application using back button. and without authorization.How to solve this problm?