Arraylist iteration on jsp!!!

202 byte By java@mania at 2007-11-27 9:23:08
Hi friends, I have called a function which returns arraylist.Now i want to show all the values into the arraylist in a jsp page.How to iterate nad get the values from the arraylist.

Difference between Application Server and Web Server

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

Message Persistency

509 byte By boraboraa at 2007-11-27 9:23:17
Hi,I am a noob on JMS, I understand that message can be persisted before it is send to the destination.However, I need to persist the message whenever it reaches my local queue (for recovery purpose, e.g. before the message being processed, the whole server need to restart). Can the JMS ...

how to change the defualt work directory

134 byte By codename47a at 2007-11-27 9:23:25
Hello I am using tomcat 6 I have to use the work directory as D:/projects/jsp1. Currently it is /webapps/

File Upload problem

2700 byte By thanua at 2007-11-27 9:23:26
Hi,I get this following exception while trying to upload. I have imported<%@ page import="org.apache.commons.fileupload.*"%>I get error at this point// Create a factory for disk-based file itemsFileItemFactory factory = new DiskFileItemFactory();exception -javax.servlet.ServletException: ...

preventing url modifications

371 byte By anu1a at 2007-11-27 9:23:37
Hi All, I am developing an web application, and I am having the following problem.1. when result page shows details of particular customer like for customer 'a'.2 Changes can be made to url in title bar, and get the details of customer 'b'3. Can anybody plz suggest that how can i prevent ...

XPath problem - how can I correctly parse this XML?

1883 byte By syg6a at 2007-11-27 9:23:45
Hello.I have a problem with how XPath parses my XML doc, and I don't know if there is any way to fix it.Let's say I have the following XML which represents room availability for a given hotel :<GetAvailability> <IdHotel>x</IdHotel> ...

Making JSP / JSF pages compatible for linux and windows

311 byte By yesaiaa at 2007-11-27 9:23:57
Hi,is there an easy way to make a JSP / JSF page compatible to be deployed on both linux and windows app servers? Right now, I'm running into problems when using relativ path names like in "url=/jsp/images/test.png" because of the file seperator.Any ...

Development evnoronment Vs Deployment environment

89 byte By beejuma at 2007-11-27 9:24:03
What is the difference between Development environment and Deployment environment?

Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Addr1

476 byte By prakash.nmsp@gmail.coma at 2007-11-27 9:24:15
Hi All,I am getting this error when am try to exeucte the jar file.D:\>java -jar smirror.jarException in thread "main" java.lang.NoClassDefFoundError: javax/mail/AddressI have set the classpath like this :D:\>set classpath=D:\javamail-1.4\mail.jar;D:\jaf-1.1\activation.jar;But i dont no ...

Commons file upload in IFRAME doesn't work

282 byte By raghuveer_vellankia at 2007-11-27 9:24:23
Is there any special handling for Using File Upload in a jsp page in IFRAME.Because my upload code works every where in applicatuion but when used iniFRAME it doesn't work Please share your ideas what would be the problems using file uploads in IFRAMES?

Unable to compile class for JSP

2536 byte By senthilmurugana at 2007-11-27 9:24:24
HIPLease help me.. how i can solve it i shown error message belowtype 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 ...

question to graphicImage

1070 byte By naekoa at 2007-11-27 9:24:25
helloi have one questioni have an image.by clicking on specific area of this image the whole page should be reloaded with new data.<h:commandButton image="image.gif" actionListener="#{myListener}"/>in myListener i get the x and y coordinates where i clicked in my image and in dependanceof ...

I have questions respect to JSF implementations Standards!

564 byte By Solraca at 2007-11-27 9:24:41
Hi all, My question is what the true standard in implementations of JSF ?I develop a application using Oracle ADF Faces, the now in MyFaces project. My question is, if i use Ajax4JSF, ICEFaces or other with Ajax Support the same is not portable entire implementations not ?The Standard of JSF is ...

XML classpath issue.

1112 byte By srins_2000a at 2007-11-27 9:24:50
Hi,My web app is running on iPlanet 6.0 with JDK1.3.1. I'm planning to upgrade the JDK version to 1.4.2. But by doing so, I'm getting a FactoryConfigurationError. I'm using the old xerces.jar file and its on the classpath. Here is the error message:Internal error: Unexpected error condition ...

please see this error

331 byte By codename47a at 2007-11-27 9:24:54
Hi all i got this error while running a jsp pagecan u say me what may be the reasoni have placed the NumberGuessBean.java in the folder src in the root folder named numorg.apache.jasper.JasperException: /numguess.jsp(20,4) The value for the useBean class attribute num.NumberGuessBean is ...

Problem when viewing output of a JSP

583 byte By Kansa at 2007-11-27 9:24:56
Hi all,i got a problem with my web application.For a given request, my application should load a jsp just like any other web application. Once the request happens, the jsp gets loaded but the output isnt visible. When i do a right click on the resultant html and do a view source, i am able to ...

creating List box

214 byte By anilmekala.reddya at 2007-11-27 9:25:00
Hello every body,I would like to develop one webapplication.In that i need to create one empty list box .Could u plz tell me how we have to create that list box in my jsp page.thanks in advance

Problem on JSP

1793 byte By senthilmurugana at 2007-11-27 9:25:10
Hi Please Help me for this problemJBOSS Webserver;Eclipse IDEHTTP 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 ...

Problem with long running backend process - Page can not be displayed

731 byte By BalkrishnaRawoola at 2007-11-27 9:25:17
Hi,I have a probelm with a long running backend process. A web application is deployed on BEA Web Logic 8.1. When one of the forms is submitted, it takes around 2 hours for the web application to respond. It actually creates thousands of threads.But the problem is after an hour, the browser ...

Iterating 3 Lists in dataTable

2621 byte By StinaSa at 2007-11-27 9:25:24
Hi,I got the following problemI have a List of containerTypes, shippingroutes and costs.A Containertyp is an Object with a Longvalue and a shortvalue.A Shippingroute is only one String value.A cost has an amount and a currency.A cost exists for many Containertypes and many shippingroutes. I got ...

Existing session is becoming null when returning from jsp

981 byte By Pulsar220a at 2007-11-27 9:25:42
Hi Guys ! I have an urgent requirement to meet in few days from now and got stuck with session problem in servlet.Scenario :- For the first time when i call a servlet a new sessoin is created and after some validations i forward to a jsp which has some links.I have printed sessoin ids from both ...

set methods aren't called

417 byte By johnpeeba at 2007-11-27 9:25:51
For some of my managed beans, the set methods are not being called for the properties. Instead, it appears that the get methods are being called, and it modifies the reference in order to modify the stored property. I am using Facelets 1.1.12, MyFaces 1.1.4, and tomcat 5.5.17 (the one bundled ...

can't find deployed web app in browser

570 byte By Aharona at 2007-11-27 9:25:58
Hi I'm sure I'm missing something really easy, I'm new to web design.I have just deployed a simple web app on my server. Now the war file unpacked properly and I can see my index.html file where it is supposed to be.However when I try to go in my browser to the address: ...

New to EJB

194 byte By pinto_ga at 2007-11-27 9:26:08
HiI am new to EJB technology.Can anyone pls let me know from where can i download a sample application which i can install on Websphere and learn more?ThanksPG

java.lang.OutOfMemoryError: Java heap space

460 byte By Aurora_Greena at 2007-11-27 9:26:16
Hi All,I am trying to execute a query which will return around 3000 records, but I am getting the following error.java.lang.OutOfMemoryError: Java heap spaceS/w:Tomcat- 5.0 and Jdk 1.5 I am newbie and googled it, got one answer:"$_RUNJAVA" -Xmx512M $JAVA_OPTS $CATALINA_OPTSThe same problem ...

JSP page is not getting rendered properly

1110 byte By haialbina at 2007-11-27 9:26:44
[nobr]Hi All,I have a JSP which is having a structure like the one below. I am using WebSphere Application Server 6. When the below JSP rendered to the screen it is showing only the contents of my dynamic include and code after the last dynamic include. I have tried to change the buffer size ...

get object from context

734 byte By sivasaia at 2007-11-27 9:27:08
hi,following code giving null.how to get right object from context. String beanName = "Bean2";Object o = getValueBinding(getJsfEl(beanName)).getValue(FacesContext.getCurrentInstance()); System.out.println("test1:"+getValueBinding(getJsfEl (beanName)));//geting ...

How this bean is remembering the state?

1720 byte By Hussein_Baghdadia at 2007-11-27 9:27:12
Hi.I have been re-reading "JSF In Action" and there is something I didn'tunderstand.ShowHistoryBean is a request based bean and its role is displayingthe project's history using paging technique.Project's history is displayed using UIData component.public void next(ActionEvent actionEvent) ...

Date that Does not Support Java

704 byte By Sharifa at 2007-11-27 9:27:20
Dear Friends,I am trying to do Date locale in a language that does not support Java.I have a link that switches the locales.When I click the English link the date is shown in English. When I click the French link the date is shown in French but when I click the local language link it just shows ...

Including Library in Build Path

666 byte By karephula at 2007-11-27 9:27:38
I am using Eclipse 3.x,How do I add External Libraries in my ProjectAns: Add all the external Jars in the build path (from project properites)What if its a huge hirarchy ?Ans shoud be: make a userlibrary and link that library to the folder which contains all jar files (hirarch of folders), and ...

Using a transaction in CMP which is marked as setRollbackOnly in session be

257 byte By tetsa at 2007-11-27 9:27:40
Session Bean is calling CMP.Session bean starts the transaction and CMP has transaction="Mandatory". What will happen if I call some finder method on CMP after I set mySessionContext.setRollbackOnly () in session bean?ThanksAbhay

BPCatalog file-upload component bug

529 byte By @akira_aga at 2007-11-27 9:27:42
Hi!I think that found a bug:If for the BPCatalog uploading example (bp-file-upload.war) you change in web.xml a Faces Servlet mapping from "/faces/*" to "*.jsf" - component doesn't work when index.jsf is opening (progress bar didn't see and uploading didn't any action):... ...

how to log exception from a struts action class

811 byte By lnthai2002a at 2007-11-27 9:28:03
Hi guys,I am recoding my application to use the strut framework. There's one small thing i wonder is that how i can log an exception arrise in an action class. In my original servlet, wherever an exception arise, i use:catch(Exception e) {getServletContext().log("User enter an invalid ...

servlet set up and configuration

1383 byte By jin412a at 2007-11-27 9:28:04
I try to run my first servlet code, helloworld. I got a problem. can you help me?package projservlet;import java.io.*;import java.net.*;import javax.servlet.*;import javax.servlet.http.*; public class HelloWorld extends HttpServlet {public void doGet(HttpServletRequest request, ...

Drop down menu problem

662 byte By aniketh_parmara at 2007-11-27 9:28:08
Hi,I am using two drop down menu's. Now when even I select any thing in my 1 drop down, automatically the values in the second drop down should come up depending upon the selection of 1st drop down.Its like I have several categories and selecting upon any category in 1st drop down, all the sub ...

How can I persist the content of "xsd:any" tag using JAXB and EJB3?

3744 byte By bastrala at 2007-11-27 9:28:11
Hello,Using wsimport I generated a class from the following xsd type:<xsd:complexType name="MDVendorExtensions_T"><xsd:sequence><xsd:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/></xsd:sequence></xsd:complexType>The class ...

One web-app Multiple JSP sources...

1842 byte By homer400a at 2007-11-27 9:28:24
My use case:I am building a web application framework. I want most of the framework (UI, menus, save/load model) to be based on the same set of JSPs (using JSF). However I want to make modules represented by Jar files that, if present (on the classpath), provide the web application with new ...

license agreement

1260 byte By peekaya at 2007-11-27 9:28:29
I am trying to create a dynamic web project using eclipse and it starts to create the project then after the folder appears in the project explorer pane a window pops up asking me to accept an agreement that is being downloaded from the following ...

Extremly Messy session - Urgent Help Please

2020 byte By princea at 2007-11-27 9:28:32
In my jsf application when the login page is initialized the httpsessionListener tells that session is created.Next there is filter used to authenticate user and create user session as coded below HttpServletRequest reqObject = (HttpServletRequest) arg0;HttpSession sessionObject = ...

Which JSF template technology? Best practices?

182 byte By Pro-grammera at 2007-11-27 9:28:37
Which templating technology is most suitable for use with JSF? What are my options? I'd just like to use the templating framework which is most accepted, and has flexibility.

If statement help - comparing SessionIDs to URL strings?

805 byte By JamesMorgana at 2007-11-27 9:28:39
Hi i am basically trying to compare the value of an session aattribute to the value of a parameter in the URL. I should really know this but i havnt writen a jsp if statment in a while and am getting confused, all i recieve on the page is the "failed login here" even if i change the value of ...

where could i get the source code of

251 byte By SpaceOfFranka at 2007-11-27 9:28:43
hello,everybodywhere could i get the source code of "Core JavaServerFaces, Second Edition"i can't open the url " http://corejsf.com" .if somebody have it ,please send to my mail frank2us@sina.com.cn.thanks very much.

RequestDispatcher method call with parameter

2348 byte By florida41a at 2007-11-27 9:28:47
I have several RequestDispatcher references in a Servlet and would like to condense them using a method:Current in my Servlet:if(condition.equals("abc")){ RequestDispatcher rd = req.getRequestDispatcher ( "/pageOne?msg=invData") ; rd.forward ( req, res ) ; }else if(condition.equals("efg")){ ...

problem importing org.apache.commons.fileupload

1059 byte By lance_dragonsa at 2007-11-27 9:28:49
hello, I've got an annoying problem I feel like I should be able to deal with, and have dealt with similar importing problems.Anyhow, my program, which compiles fine before, is giving me an error onimport org.apache.commons.fileupload;I've tried setting my classpath:which reads (from the ...

struts internalization for javascript messages

413 byte By loguKKa at 2007-11-27 9:28:50
Hi ALL,I am doing an internalization to my struts application... i am using property files for each language (say for example, english, french.. etc,) ... i can get the labels, messages to the struts fields, other texts.. but how to interact the javascript messages? i don't know how to ...

Too many jsp files will cause out of memory ?

1448 byte By Yeona at 2007-11-27 9:28:51
Hi all,There we have a Content Manage System (CMS), this system including a front side and manage server side.Editor will load lots of new contents on manage server side, and manage server will publish these contents to front side, every content will be stored as a jsp file, the count of jsp ...

jsp authentication

856 byte By Midragoa at 2007-11-27 9:28:54
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 ...

when is connection pool created?

1390 byte By lnthai2002a at 2007-11-27 9:28:55
Hi,I declared a connection pool in META-INF/context.xml as follow:<Context path="/Core1" docBase="Core1"debug="5" reloadable="true" crossContext="false"><Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"maxActive="100" maxIdle="30" maxWait="10000"username="guest" ...

NullPointer problem in JSP

2379 byte By ubarua123a at 2007-11-27 9:28:57
Hi. I m pretty new to JSP. So i wrote this code to enter data into a database in MYSQL and den retrieve from it. Now when i press submit, it shows java.lang.NullPointerException in the next page. Heres the code:<%@page import="java.sql.*"%><%@page import="java.io.*"%><%!public ...