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?
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?
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.
Hi All,I want the Difference between Application Server and Web Server.can any body send this details please.Thanks in Advance........RegardsKiran
Hello I am using tomcat 6 I have to use the work directory as D:/projects/jsp1. Currently it is /webapps/
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: ...
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 ...
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 ...
89 byte By
beejuma at 2007-11-27 9:24:03
What is the difference between Development environment and Deployment environment?
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
[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 ...
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 ...
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) ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 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.
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 ...
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.
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")){ ...
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 ...
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 ...
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 ...
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 ...
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" ...
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 ...
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 ...
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 ...