?en_US.errors.required? instead of fileds names

2719 byte By natoskiiia at 2007-11-27 11:25:08
Hi,I'm using the validator framework with struts, in order to validate the user data. And I wanted to get the error messages from the MessageResources_en.properties file. But instead it writes ?en_US.errors.required? instead of fileds namesI don't think that there's a problem with my message ...

How to pop up a jsp page from a grp of radio buttons?

2284 byte By PaviEluri20a at 2007-11-27 11:25:12
*******URGENT HELP REQUIRED*********THIS IS NOT A YADA YADA POST......Here is my code. I want to pop up a jsp page if user clicks on one radio button. <html> <title>Radio Button Validation</title> <body bgcolor="#FFFFFF"> <script language="JavaScript"> <!-- function ...

How to do h:selectManyCheckbox for each of rows in h:dataTable

976 byte By red-ariesa at 2007-11-27 11:25:16
I've tried to find out how I can make h:dataTable with one (selectBooleanCheckbox) or more chechboxes (selectManyCheckbox) for each of table row.my Bean is:private DataModel userModel = new ListDataModel();private User user = new User();public void setUser(User u) {this.user = u;}public User ...

Reg redirection

645 byte By Sangeetha.Ka at 2007-11-27 11:25:22
Hi,I have two servlets which is running on two different web applications. When i hit a servlet it has to forward to another servlet which is running on different web application. i tried request.getRequestDispatcher and servletContext.getRequestDispatcher but both takes as relative URL and appends ...

Losing session attribute

814 byte By dr.jgha at 2007-11-27 11:25:23
Hi ,I have a servlet acting as a front controller which uses a JSP via request.getRequestDispatcher(main.jsp) to handle the display.The JSP uses a servlet to handle the display of some hyperlinks.I set an attribute in the controller servlet to true but in the servlet displaying links remains null. ...

JSSF what you say about this security lib for JSF?

200 byte By necromancer15a at 2007-11-27 11:25:45
<p>JSSF - Java Server Security Faces it's framework for security layer. With JSP tags and pages/resource access control. Support MyFaces and Sun RI JSF</p><p> http://sourceforge.net/projects/jssf/</p>

displaying a part of the jsp page based on an item selected from drop down

326 byte By sam_wiza at 2007-11-27 11:26:08
Hi, I am developing an application using struts i need to display a part of the form (eg details of the item selected ) depending upon what is selected from a drop down in the form, can you please help me regarding this. iam running short of time , would highly appreciate quick replys thanx ...

clear session

215 byte By roger5089a at 2007-11-27 11:26:10
<p>HI ALL </p><p>i wuould like to ask everybody wheni use session.setAttributte("a","a");</p><p>this method to set session on. and then after use this session variable i want to remove it . how can make it work?</p>

How to assign >> to attribute value of <h:commandButton>

306 byte By learningjava5a at 2007-11-27 11:26:13
I am trying to use ">>" as a label of <h:commandButton>like this:<h:commandButton id="cmdNext" value=">>"></h:commandButton>Seems like JSF page validator doesnot like the way i assign >> to its value attribute.How can I assign >> to value of ...

Best approach to using command link from within a custom component

2303 byte By thatricharda at 2007-11-27 11:26:28
I have created a navigation component "Menu" , used as follows:<custom:menu />The contents of menu are stored in an xml file and the Menu component delegates the rendering to a custom renderer, which basicaly writes out html links. (Actually, the component does a lot more, but I'm simplifying ...

Query Result

3561 byte By Delmonico02a at 2007-11-27 11:26:31
This is what I want my user final page to look like.CID is 222Container_type is DVDContainer_size is 4gbContainer_desc is Western Digital External Hard Drive. S/N: 86973648396Project_ID is 118I have written code to get just one category from database and display on page.What code can write to ...

Backing bean with parameter in method called in JSF selectOneMenu

2150 byte By Boozlea at 2007-11-27 11:26:47
Hi,The title sounds a little bit weird, sorry for that,but I don't know how to describe it with a less of characters. Let me explain my problem. I have a <h:selectOneMenu> tag that gets it <f:selectItems> through a backing bean. The selectOneMenu is then filled with a list of categories one ...

How to add rows to a UIData datable without persisting to the DAO?

1103 byte By xoxotaa at 2007-11-27 11:26:53
Here's a brain-twister. I'm using JSF for the following:I have a "main" page that lists Tasks. The user is able to click on a task to navigate to a Task Editor page, where they can edit information. Each Task has a list of Task Administrator emails, and the Task Editor page displays them in an ...

selectOneMenu

197 byte By bill_bartleya at 2007-11-27 11:27:20
<p>Is there some way to have the dropdown portion of the selectOneMenu expand to be wide enough to show selections that are actually wider than the size of the control (in the non-select state)</p>

alernative to <bean:write> in JSTL

988 byte By pingu143a at 2007-11-27 11:27:21
Hi All,I have a struts form bean - comForm and it has a property comArticle - which is a List of objects(bean objects). again each bean object has some more properties e.g articleSummary.I am using JSTL to print the articleSummary. <c:forEach items="${comForm.comArticle}" var="article" ...

form bean output

114 byte By pingu143a at 2007-11-27 11:27:22
<p>how to output a form bean object which has List as a property.</p><p>Message was edited by: </p><p>pingu143</p>

One question for struts2-How to get action

1549 byte By Gonewiththewinda at 2007-11-27 11:27:29
My jsp fold structure:Webcontent-index.html login -login.jsp me-me.jspmy java fold : src-login-Login.java me-QuestionSubmit.javaFirst I login successfully,and go to me.jsp pageI submit a form in me page,my jsp code:<form name="frmQuestion" method="post" action="SubmitQues">,but I get 404 error ...

Deleting an array

241 byte By mark07a at 2007-11-27 11:27:50
<p>I'm using 3 arrays in a program but i repeat the program once becuase i have to do 2 different websites so i don't want to have to write a whole nother set of code is there anyway i can just delete the whole array and use it again ?</p>

NO data after a page is loaded

592 byte By jsf_ajax_usera at 2007-11-27 11:27:52
Hello Freinds,I am new to jsf. I have a jsf page containing a data table.One of the columns has a command link. When the user clicks on the command link, a action method is invoked and the page is redirected to a new page containing another datatable using a navigation-caseOn the click action ...

Session variable null in jsp after some hrs

2142 byte By kkorea at 2007-11-27 11:28:09
Hi All,I am facing problem with session variable in JSP. For 6/8 hours application is running fine then session variable on JSP become as null. Values of NAME_LIST are coming from database. When we are storing in DAO and Action we are getting NAME_LIST properly. But when control is forwarded to ...

ArrayList output from database

1907 byte By Evergreana at 2007-11-27 11:28:50
I have an output that I get from my Oracle database where it takes parameters from form entries and queries the database.It list the records where it works with an ArrayList to get the output.Everything works great but was wondering if there is a more efficient way to do this?ArrayList ...

inputStream.available();

2734 byte By r19850420@yahoo.com.cna at 2007-11-27 11:28:52
This is what I'm trying to do,I want to send image byte[] from a J2ME client to a servlet.But there is no correct length returned.Is there any way can get through this?I heard some one use Printwriter works,but still not work in my case.on servlet side--String type=request.getContentType();int ...

Wrap all code paths within AccessController.doPrivileged() block

1379 byte By aj.a at 2007-11-27 11:29:12
Folks,We are migrating from an JSP based UI to JSF. In our old application we used to have a single servlet base class that would wrap all the invocations of servlet subclasses within a AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext).I'm looking for an suitable ...

how to Deploy Servlet in web logic 8.1?

151 byte By rajtwa at 2007-11-27 11:29:14
<p>Hi all,</p><p>i need information that how to deploy servlete in web logic servler8.1?/</p><p>and what are the steps to be followed?</p><p>thanks</p>

Custom tag library - some attributes working, others not

1912 byte By jeff_chisma at 2007-11-27 11:29:22
[nobr]I have a custom tag library that I am trying to pass a parameter to. Some parameters can be passed but others can not. This is a really simplified example:<%@ taglib uri="/taglib/blah.tld" prefix="blah" %><blah:simple selectid="<%=new Date().toGMTString()%>"/>returns23 Jul 2007 ...

retriving data from sql server and producing it as statistical graph

204 byte By raghavjavaa at 2007-11-27 11:30:02
<p>Hi,</p><p>how to retrive data from sql server and produce it as statistical graph as output </p><p>which concept will be easy to implement?...</p><p>Please reply......</p><p>Regards,</p><p>Raghavan</p>

list box

268 byte By relnaa at 2007-11-27 11:30:03
<p>we have a list box with some values...</p><p>the selected value is inserted into the database</p><p>later,after retrieving the same String from result set ,we want it to be set as "selected" in the list box...( for modification purpose)</p><p>how will we do it?</p>

calling JSP from java using URL class and pass object in query string

643 byte By rahul_yadava at 2007-11-27 11:30:15
Hi all, i have scenario,where i need to send a http request to web application from core java application and send a object with request.URL url = new URL(" http://localhost:6060/EVIPPOC1/first.jsp?invokehandler=this&ccxmlsessionid="+ccxmlid.toString());URLConnection conn = ...

how to upload a web app to a site

423 byte By QussayNajjara at 2007-11-27 11:30:22
Hi to all java mania ...just a simple question - i don't know if it's simple - i wonder if any body can help me in telling me the way of uploading a web app on the neti've just finished my project and all i have to do now is to upload it one the company site,, and i have no idea at all, not the ...

Help me on this error...?

741 byte By sure_2912a at 2007-11-27 11:30:47
Hi,In my project i am using Tomcat server . When ever i am accessing my files in another folder it says org.apache.jasper.JasperException. It is working well in localhost. When ever i am placing code in mysite it says error.org.apache.jasper.JasperException: Exception in JSP: ...

session

114 byte By jotnartaa at 2007-11-27 11:30:55
<p>Hi All</p><p>How can i access session object within a servlet?, specifically within doPost()</p><p> method?</p>

List of Countries, cities

536 byte By ibn_aziza at 2007-11-27 11:30:57
Hi,I would appreciate any help that I can receive, basically I need to be able to generate a list of cities (maybe even towns, if possible) along with the respective countries to provide as selectable options in an application.I am aware that Java provides the 'Locale' API, but unfortunately this ...

Ctrl N

180 byte By sumeshzzza at 2007-11-27 11:31:11
<p>I have a web page opened. When I press Ctrl N, it opens the same page in another window. Are these 2 pages in the same session, or it is a new session...Can anybody explain?</p>

Illegal Start of Expression

213 byte By febykadera at 2007-11-27 11:31:21
<p>Pls help</p><p>I get an error on my jsp page as this when I try to retrieve datavalues</p><p>action_jsp.java:397: illegal start of expression</p><p>out.print(subject_ar=);</p><p>^</p><p>What does this mean?</p>

prompt user

231 byte By relnaa at 2007-11-27 11:31:41
<p>i have a jsp page with some check boxes and one "update" button.......... i want to post the data in to another jsp page along with the input from a user prompt........</p><p>how can i do it.........</p><p>please help.......</p>

response.sendRedirect() and jsp:forward()

1364 byte By Zorama at 2007-11-27 11:31:47
Sir, I want to pass the variable 'transfer' to 3.jsp. What should I do?. And how?By using both the option like jsp:forward and response.sendRedirect(), its not working. Why? Can't I do it like this?Here's my code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 ...

JSF Unit testing along with JUnit

306 byte By vng_javaa at 2007-11-27 11:32:00
I want to know that which framework or tool is best for web application unit testing along with the JUnit. Can I know the differences between various framework like Cactus , Selenium and Shale. Can anyone suggest me that which one is best to use long with JUnit For JSF application and why is it ...

Selecting in a DropDownList

477 byte By ninamoea at 2007-11-27 11:32:03
Hello everybodyI'm using Netbeans and Visual Web Pack to develop this web-thingy. I have a DropDownList where the user i supposed to select an item. After selection I want my dropdownlist to return to the first item. Can anybody tell me how to do this. I can't seem to find it out by myself.... As ...

IE 6.0 and t:fileupload BUG

415 byte By Reddingoa at 2007-11-27 11:32:24
Hei.Ich have found a **** &$$%% BUG When I use the Tomahawk-fileupload-component to upload a file to the webserver, I get an errormessagen and no fileupload-dialog :Line: 637Char: 4Error: Object requiredCode: 0URL: ..... The file upload control seems to work OK in Firefox, Konqueror, Opera, IE ...

design pattern of servlet context

101 byte By neha_vermaa at 2007-11-27 11:32:37
<p>hi all</p><p>can u please tell me what design pattern is used in servlet context.</p><p>thanks</p>

connection time out in server.xml

171 byte By venkat2007a at 2007-11-27 11:32:44
<p>can u plz tell me what is connection time out in server.xml, how we can change it and what is the advanges or disadvantages if we change it.</p><p>Thanks in advance</p>

applet problem

785 byte By paridaa at 2007-11-27 11:32:50
hi all, i have an application in which i am using applet . in my applet i am sending a vector to my servlet.in the servlet iam storing it in session and using the vector as required in respective jsp pages.now the problem is when i use http://localhost:8080/myproject in codebase attribute of ...

failed.org.hibernate.AnnotationException: mappedBy reference

14593 byte By FT77a at 2007-11-27 11:32:51
Hi, i am German student and new to hibernate. I established a mn conetction between to entities using hbm.xml mapping files. now I try to create the same connection applying annotations. unfortunately it does not work and I do not now why. First my error message followed by my classes and ...

Prevent the users from save or print the page

219 byte By Husama at 2007-11-27 11:32:57
<p>How I can Hide the Save and Print button for the PDF viewer to prevent the users from print the page or save it .</p><p>also how we disable the save and the print for the IE explorer and the Firefox </p><p>Thanks</p>

converting normal text to textfield

1086 byte By javamnr948a at 2007-11-27 11:33:04
hi,I am unable to convert the normal text into a textfield by using the following code.Is there any mistake in my code.my jsf page is<%@ taglib uri=" http://java.sun.com/jsf/core" prefix="f"%><%@ taglib uri=" http://java.sun.com/jsf/html" ...

best choose for authencation and authorization on java web applications

422 byte By dreampeppers99a at 2007-11-27 11:33:41
Well, I want to know which is the best solutions for authentication and authorization on java web application.the most easy to use?the most flexible ?the most used on java community?and your opnion about your favorite mode (framework, way,...) to authencation and authorization java web app ...

Session in ie7

889 byte By marcelia at 2007-11-27 11:33:45
Hi guys,I implemented a Filter in my JSF application that works fine in ie6 and firefox. The problem appeared when I used ie7.It seems like ie7 has a different way to get the session. Here is my code (inside doFilter method):HttpServletRequest request = (HttpServletRequest)req);if ...

how to get image dimension

665 byte By thanua at 2007-11-27 11:33:47
Hi , I need to find the height and width of an image (any type. for eg.jpg,png,tif,gif,eps etc.)the following code works for jpg,png and gif but not for eps and tif.eps is what i need. I read that imageicon does support jpg,png and gif and not other types. so is there any solution to find the ...

DataTable Initial Sort

533 byte By mon.goosea at 2007-11-27 11:34:00
I have a datatable which is receiving generated data from an array. When displaying the datatable, I would like to have it sorted by one column. I've looked around on the internet, but all tutorials show how to sort the datatable when a user clicks on a header. I don't need user inputed sorting ...

Include Page Fragments (or other jsp files) from within the backing bean

1150 byte By markus_luxa at 2007-11-27 11:34:35
Hi there,I am developing a web application with Netbeans Visual Webpack. Until now that all worked fine for me but now I am at some point where I want to have a "master page" that provides me a header and a footer, so that I don't have to include these things everytime on every page (what makes ...