jsp & Hashtable

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

To deploy a webservice on Sun Application Server 9.0_01

1911 byte By quazarbluea at 2007-11-27 9:16:17
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 Please help

534 byte By renga_muralia at 2007-11-27 9:16:33
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 ...

call method from a jsp

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();?

Grouping Data with JSP or JSTL

1785 byte By joebassila at 2007-11-27 9:16:48
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 ...

servlet url pattern problems in web.xml

889 byte By black_lotusa at 2007-11-27 9:16:54
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 ...

Newbie question about SelectOneRadio

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

JSP & AJAX Combination Problem (Page Loading Slow)

2487 byte By linkinpark2007a at 2007-11-27 9:17:10
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 ...

ajax submit quesiton

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

command to generate client stubs

667 byte By javaguy2007a at 2007-11-27 9:17:22
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 ...

Question about Struts and ActionForm

538 byte By kpalaniaa at 2007-11-27 9:17:36
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 ...

Dynamic naming of text box and combo box

1773 byte By swatipriyadarsania at 2007-11-27 9:17:54
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 ...

appache error

3956 byte By paulchwda at 2007-11-27 9:17:58
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 ...

problem with <c:out> and fn:trim

1782 byte By java1357a at 2007-11-27 9:18:14
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" ...

Problem: Show image in button

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

Web depolyment on app server or Tomcat

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

Problem with org.apache.commons.fileupload

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

HttpServletRequest validation

594 byte By peter_07a at 2007-11-27 9:19:00
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 ...

Error page in Servlet

460 byte By Abhijitdasa at 2007-11-27 9:19:06
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 ...

How Can I use EL in JSF

181 byte By Gunjan-Bohraa at 2007-11-27 9:19:08
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

Best way to secure server

452 byte By juanmanuelsancheza at 2007-11-27 9:19:31
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 ...

mail registration

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

Basic questions about Tomcat

541 byte By ciwee_ufrja at 2007-11-27 9:20:04
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 ...

Send SMS from the system that i create to Hand Phone

237 byte By Angel_Weia at 2007-11-27 9:20:11
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.

CMP Entity Beans and data cleanup

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

67 byte By Jatin_Kulkarnia at 2007-11-27 9:20:36
How do I get EJBContext in EJB 2.1. rgds,Jatin

passing jsp variable through a link

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

Admin console password

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.

nested jsp tags!!

1177 byte By RidwanHabbala at 2007-11-27 9:20:52
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 ...

Constructors in Session Beans

837 byte By albertthea at 2007-11-27 9:20:53
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 ...

How to expand a Struts app.

750 byte By javaExceptiona at 2007-11-27 9:21:00
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 ...

need help in url mapping ...

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

Java EE 5 SDK Installation Errors

1143 byte By sandeep_m1981a at 2007-11-27 9:21:09
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 - ...

compile error:the root element must be well-formed.

1861 byte By john_woo_canadaa at 2007-11-27 9:21:24
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 ...

NetBeans ApplicationBean PageFragmentBox upload

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

jsppass information

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

DB Retrieving

717 byte By KonsaiWaltera at 2007-11-27 9:21:45
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 ...

Not able to see farsi words in email on windows server 2003

566 byte By ketanbparekha at 2007-11-27 9:21:46
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 ...

List, radio button problem with mySQL

468 byte By KonsaiWaltera at 2007-11-27 9:21:49
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 ...

setting check mark for SelectManyCheckbox item

2116 byte By paul@sdna at 2007-11-27 9:21:54
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 ...

javax.ejb.EJBHome not Found

2820 byte By Java_Boxera at 2007-11-27 9:21:55
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 ...

Inquietud de netbeans 6

364 byte By jaiderrodrigueza at 2007-11-27 9:22:06
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 ...

threaded servlet

267 byte By aster_bodya at 2007-11-27 9:22:10
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?

JSF Data Grid Component

1266 byte By dilip_jsfa at 2007-11-27 9:22:39
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 ...

java.lang.OutOfMemoryError in starting the tomcat

3168 byte By amitrana83a at 2007-11-27 9:22:45
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 ...

Please tell me wts wrong with this

6494 byte By Manthan0a at 2007-11-27 9:22:47
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 ...

Append a value to the URL and send

234 byte By subrato_001a at 2007-11-27 9:22:50
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?

Java 6 JAX-WS self hosted services listening on one interface only

1497 byte By kubakabacinskia at 2007-11-27 9:22:54
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/ ...

Difference between Application Server and Web Server

181 byte By AruruCodingScreena at 2007-11-27 9:22:56
Hi All,I want the Difference between Application Server and Web Server.can any body send this details please.Thanks in Advance........RegardsKiran

Back Button Problem in Web Applications

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?