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>

calling ejb from another ejb

711 byte By George_.Smitha at 2007-11-27 11:32:48
HiI have an ejb project with 2 stateless session beans : 1) ValidateBean2) ValidateFacadeBean.I created a reference for the first bean (ValidateBean) so i can access it from the second bean (ValidateFacadeBean). the name of the reference is : "ejb/Validation"within the ValidateFacadeBean, i am ...

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>

Need help on coverting sql statement to NamedQueries

351 byte By thomas1031a at 2007-11-27 11:33:00
hi, all,I have a problem on converting the following SQL statement returning last 10 records from an Oracle database.The SQL statement is as followings:select * from (select * from TABLE1 where ATT1 = 1 order by ATT2 desc) where rownum<11However, how should I convert this statement into ...

Deploy problem ..

10920 byte By Reona at 2007-11-27 11:33:01
this is my main jsp page<html><head><title>Welcome to login screen</title></head><body><form method = post action = "Usebean.jsp"><table><tr><td>Login</td><td><input type = text name = login></td></tr><tr><td>Password</td><td><input type = ...

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

run ANT task in xp local machine & deploy to remote websphere on unix

962 byte By sunprabua at 2007-11-27 11:33:05
Hi,I need to write ANT script for deploying to remote websphere server which is running on unix. Local machine is xp here i need to run ant scriptI written sample code but i am not sure about this<project name="InstallApp" default="installapp" basedir="."> <taskdef name="wsInstallApp" ...

Web services & XML files

382 byte By sche4a at 2007-11-27 11:33:38
I am trying to develop a web services with XFIRE and Tomcat, this web services will use an XML file to store some data, I have integrate this file in the web services project, but when I invoke the service, I get an exception that the file don not exist. I know very well that the problem is about ...

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

EntityManager and Collections (Many-To-One relationship)

1497 byte By unobriania at 2007-11-27 11:34:06
I have an entity (InvalidAddress) with a many to one relationship with another entity (ServiceRequest). I am trying to add an InvalidAddress entity to the InvalidAddressCollection owned by ServiceRequestInvalidAddress invalidAddress = new InvalidAddress();//perform setters on ...

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

Singleton instance

1232 byte By krodmana at 2007-11-27 11:34:46
Hi all. I have developed a web application based on Struts 1.3.8 and the application is deployed on JBoss 4.0.5.GA.I have four application configuration parameters that I need to access in different areas of my application. My solution has been to create a configuration object that is a singleton ...

How to stop Thread when tomcat shuts down

1291 byte By jposthuma at 2007-11-27 11:35:08
Hi,When I shut down tomcat, tomcat shuts down but the console window stays open and the system.out.prinln text from my class using Thread still shows.Can I sense in my class if tomcat is still running? Or maby I call a method when tomcat stops to kill my thread?In my web.xml I have the following ...

Eclipse Europa with Sun Application Server 9

381 byte By darbvina at 2007-11-27 11:35:28
Does anyone know if Europa supports version 9.0_01 of the Sun Application Server? And, if so, how to get it setup?In Europa, I see the following, perhaps one of these is the one I should choose?Sun Application Server 8.1Sun Application Server 8.2GlassFish V1 Java EE 5GlassFish V2 Java EE 5GlassFish ...

output javascript in servlet

390 byte By morningJavaa at 2007-11-27 11:35:51
Hi,I am using a servlet to output an html page. This page calls on a .js file.out.println("</title><SCRIPT LANGUAGE=javascript src=\""+request.getContextPath()+"/script.js\"></SCRIPT></head>when i call the javascript functions they work in ie7 but nothing happens in firefox and no ...

Bracket Problems

381 byte By houseofwraitha at 2007-11-27 11:35:56
Hi,I am new to JSP and am trying to get this bit of code to work that I know is fine in a normal java classArrays.sort(fields, new Comparator<String[]>() { etc...It does not seem to like running it and I think its because of the <String[]> part...Any ideas.. reading other topics; do I have to ...

Cannot expand tree nodes using <t:tree> tag

391 byte By tomtsui_tszkina at 2007-11-27 11:35:58
Hi, I have a question. I am a beginner of JSF. I am trying to deploy a very simple tree using <t:tree> in my local tomcat server, similar to the following one: http://www.irian.at/myfaces/tree.jsfThe result is that the tree is properly displayed, but I cannot expand the nodes when I click on the ...

CommandLinks within Datatable, browser history

838 byte By jha42a at 2007-11-27 11:36:13
When I click one of many commandlinks in a datatable, all the links are showing as visited.Within each row of a datatable we have commandlinks that all point to the same page. That page uses the selected row to retrieve data based on specific fields within that selected row. The problem is that ...

pass value information of SelectIem to backinb bean

2179 byte By Intel3a at 2007-11-27 11:36:39
Here is my codeJava Bea:public class Tester implements ValueChangeListener {private String name = "Heyhey";private boolean selected = false;private String[] items;private UISelectItem[] myValue;public Tester(){}public String[] getItems() {return items;}public void setItems(String[] newItems) {items ...

JSF Validations

1062 byte By Arthi.Konditia at 2007-11-27 11:36:44
Hi All,I am just started learning JSF [ 3 days old in JSF]. i was trying to do validation,it was giving me the follwing error.Conversion Error setting value '' for 'null Converter'.My JSP Code- <h:message for="inputText1" styleClass="warning"/><h:inputText id="inputText1" ...

Cannot have F:param within a h:commandButton

1574 byte By nirav_p_assara at 2007-11-27 11:36:45
2:52 PM 7/24/2007by Nirav AssarOverviewIt was discovered that with the component h:commandButton, JSF does not work when you embed an f:param and try and pass it through the request. However this does work with h:commandLink. The reason for this lies in how the Renderer classes in JSF vary when ...

Does income xml request get validated against wsdl?

627 byte By weichen_davida at 2007-11-27 11:36:58
Hi, there:I'm using document/literal web service. My question is: Does income xml request get validated automatically against wsdl complex type xml schema? If not is there any configuration way we can set to validate income xml request automatically?I searched posts in this forum, it seems the ...

is This possible - request.getParameter(xx);

473 byte By lalith123a at 2007-11-27 11:37:24
Hi,I got a parameter which changes all the time (in my jsp) as followse.gparam1_12-1_value and next time it will be param1_13-2_value the middle part changesI have a request.getParameter("xxxx"); in my server side code.Is it possible to have regular expression for xxxx? What is the best way to ...

error msg inside a popup

311 byte By GuruSeethaa at 2007-11-27 11:37:44
Hi , I have a popup wher ei search for city thru a text box.If that searched string(city) is not found i need to display error msg inside that same popup window itself. Now i am giving it in main jsp from where popup is displayed.Can anybody help me ?Thanks in ...

Clear the fields in struts form

668 byte By Sowja at 2007-11-27 11:37:45
Hi all,I am using struts, here I have opened a new window using javascript:openWindow for adding the contact details of the person into the database. Every thing works fine, but my problem over here is that when I submit the form and if I open again I have the previous entered values. I tried using ...

Platform edition of javax.jms

297 byte By Deepak2001a at 2007-11-27 11:37:59
<p>Hi,</p><p>After going thru Sun site, I found out that JMS platform edition is available only for the Solaris, Linux and Windows platform. Any idea if it is also available for the HPUX platform.</p><p>Also let me know if JMS Enterprise edition support HPUX or not.</p><p>Thanks,</p><p>Deepak</p>

JSF newbie: assigning value to bean variable

1390 byte By lin_javaa at 2007-11-27 11:38:01
Hello Friends, I am a JSF newbie, I need a little help to solve the problem explained below. I have table t:dataTable which display the details of the authors, one column inthe table is defined as <t:column><h:commandLink action="#{authorList.listWorks}" value="Add Important ...

color change on focus on hte textbox

508 byte By JHyenaa at 2007-11-27 11:38:06
Hi all,I have a struts form on which there are number of text boxes present. When the user enters a wrong value in any of the text boxes and when the validation fails then the error message is displayed on the page. Along with that I have to bring he focus to the text box where the problem is ...

Plz help- JSP popup windows post input values are not fetched

569 byte By divinea at 2007-11-27 11:38:07
HiI am working on a jsp page (sendmail.jsp) that submits the information relating to sending an email. The page is pop window that is opened when I click on a button. Now I want to post this data to another popup window which is itself a jsp page (mailsent.jsp) and have code to send the mail using ...

Facing Jsp Compilation Problem in the Server

627 byte By Raja_Abilasha at 2007-11-27 11:38:12
Hai all,I get the following problem when i try to call a jsp in my browser.javax.servlet.ServletException: org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer.<init>(Lorg/eclipse/jdt/internal/compiler/env/IBinaryType;Lorg/eclipse/jdt/internal/compiler/env/AccessRestriction;)VThis problem ...

how to use sql tag of jstl for inserting data

118 byte By nikhil@cetharsoft.coma at 2007-11-27 11:38:21
<p>hello </p><p> I want to insert the data in to oracle through jsp using standard sql tags of jstl please help me</p>

Performance Vows , Requests get lost ..

985 byte By Jasdeep.Singha at 2007-11-27 11:38:22
I am performance tuning my JSP/Struts web-application deployed over jboss.. I have not got success yet.During performance/load testing of my web application with apache jmeter.It is OK up to 1400 request per minute..But if i increase the load , i get followingIssue: from 1800 requests sent to the ...

displaying the page can't found after an hour

430 byte By venkat2007a at 2007-11-27 11:38:26
Hi all, can any one please help me..i am retrieving records from database based on date range.the browser works well with in an hour it can displays with small date range.if i give 5 years range it will take more time and the browser displays page conn't find after an hour.my application runs well ...

how to use jmaki widgets for my application

230 byte By nikhil@cetharsoft.coma at 2007-11-27 11:38:27
<p>hello </p><p>I'm using<b> jmaki dojo.dropdown datepicker</b> for my application but to insert the date value into database i want to take into some string variable. Can anybody please help me how to use for my application.</p>

How to run war file using oc4j

346 byte By QussayNajjara at 2007-11-27 11:38:28
hi to all..i'm new to oc4j .. i used to work on tomcat..i deployed the war file and all i have to do is to run the app. but i guess oc4j has different way in this ..you may say google for it, or read the oc4j tutorial i read it before but i just can't understand it..somebody pls can expalin the ...

Communication between 2 Enterprise ARcives

239 byte By Leelavathia at 2007-11-27 11:38:34
<p>Hi,</p><p>I have 2 EARs each with separate functionalities. Now i have to use the service provided by the first EAR say Example1.EAR from the second EAR say Example2.EAR. Is there anybody here to help me out?</p><p>Thanks in advance</p>

Ajax and Servlet

173 byte By Husama at 2007-11-27 11:38:52
<p>dear All ,</p><p>where i can find a good articals and tutorials for AJAX and Servlet </p><p>If anu one have links to web site or PDF it will appreciated </p><p>Thanks</p>

Opening New Window on button click

309 byte By JayKVa at 2007-11-27 11:38:57
Hi all,On click of a <h:commandButton> i want to display a new window which is containing datatable. Is there any possible way to do this with out using javaScript? Is there any possible way of doing it inside bean?If javascript is the only way tell me how to do that. ...

HTTP Status 404 - The requested resource is not available

422 byte By Biplab.Mishraa at 2007-11-27 11:38:58
My Tomcat is running good when i am runnning as http://localhost:8080but my first webapplication is not running but producing an error as "HTTP Status 404 - /biplab/hello.jsp and The requested resource (/biplab/hello.jsp) is not available" what can i do ? biplab is my webapplication ...

conflict on port 80 shutdown the Sun Java Application Server

516 byte By rinoa_fftsya at 2007-11-27 11:39:02
I have a webapplication(in JSP) running on Sun Java Application Server in Fedora Core. I set the http listener of Sun Java AppServer to port 80. so instead of accessing my application in port 8080, it is access thru port 80.its ok for some span of time (my application is working fine) then suddenly ...

Retrieve date for textarea and select type in jsp

236 byte By febykadera at 2007-11-27 11:39:11
<p>How to save and retrieve data to a textarea using jsp and jdbc connection....</p><p>For other input types like text there is value attribute which is entered as <%=value%> </p><p>But how is it done for textarea and comboboxes?</p>

Populating Drop-Down menu in JSP from XML

934 byte By DhurjatiCa at 2007-11-27 11:39:15
In the web.xml file I have made this entry under <web-app>:<context-param><param-name>Option1</param-name><param-value>India</param-value></context-param><context-param><param-name>Option2</param-name><param-value>Global</param-value></context-param>In the JSP ...