Avoid form resubmission

167 byte By icebreakera at 2007-11-27 8:22:18
Hi,A simple question. How do i avoid form resubmit, when refresh is clicked or back and fwd button is clicked.( Im using servlet.)Thanx in advance

Using <jsp:forward> tag

937 byte By goel1a at 2007-11-27 8:22:25
I am using the sign.jsp page and on clicking it the control should be transferred using the <jsp:forward> tag. My example is<%@page language="java"%><html><head> tilte </head><body>function clickreg(){<jsp:forward page="click.jsp"><jsp:param ...

facesContext.externalContext.requestContextPath help please

426 byte By gnavala at 2007-11-27 8:22:26
I am trying to retrieve an image file and need to pass 3 request parameters to a servlet, from a jsf page. The following snippet fails, the contentId req parm gets all the whole string. <img ...

problem while i am sending image as a stream between jsp pages

124 byte By AVAJa at 2007-11-27 8:23:15
Hi,I want to send the image from one jsp page to another jsp via stream.Help to continue the process...

Try this simple Java and Servlet Program

1989 byte By Sri_Sria at 2007-11-27 8:23:18
dear friends,1.when i am compile and run this simple program,it is ok i can get class file import java.io.*;class samples{ public static void main(String args[]) { int sum=0; int num1=2; int num2=5; int num3=4; sum=num1+num2+num3; System.out.println("The sum="+sum); }}****2. we i compile and ...

Need advice on performing file comparison from JSF app

733 byte By kdesaegera at 2007-11-27 8:23:22
Hi,I am investigating whether or not it is worth changing the Code Review tool that we are using from a standalone MFC application to a JSF web application. The thing i am not sure about is how to perform a file compare from within the web application. You cannot simply run an executable on the ...

help for set classpath

317 byte By kripa_ostwala at 2007-11-27 8:23:29
Dear Sir \ MadamI have download javamail-1.4.zip and jaf-1.1.zip from sun at c:\j2sdk1.4.1 directoryThen I extract these files in same directory with folders javamail-1.4 and jaf-1.1. These folders have mail.jar and activation.jar fileI am confused to set correct pathPlease help ...

Mixing in JSP page

367 byte By SwingIta at 2007-11-27 8:23:31
Hi,I want to pass a JSP value to JSF.I tried this code, but it does'nt work:<% String str = "1234" ; %><h:commandLink action="#{manager.editMySetup}"><f:param name="paramname1" value = "<%= str %>" /> <h:outputText value="Submit" /></h:commandLink>Anyone has ...

multi user access problem.

281 byte By Subrat.Ranjan.Raya at 2007-11-27 8:23:39
My JSF application contains a combobox . on value change event it is fetching data from server and displaying in same page.But when two users are logging in and trying to access simulteniously then one browser not responding. So what to do in this case?

pass and ampersand

1861 byte By derk_the_zeemana at 2007-11-27 8:23:57
response.sendRedirect("showAddAMember?cntry=" + country + "&stte=" + state + "&city=" + city + "&course=" + course + "&coursename=" + coursename + "&messagename=" + messagename + "&TFM=" + worker + "&admin_type=" + admin_type);I am using a response.sendredirect() to ...

String separation

158 byte By harinibiligiria at 2007-11-27 8:23:59
I've a string say 228S13I want to separate it as two substrings. i.e one before S and one after S.ie S1=228 and S2=13. How do I do that?

Excel in Popup

247 byte By iamleia at 2007-11-27 8:24:04
Is it possible from a commandbutton to open an excel file in another web browser?For example, once a user clicks on an export button (commandbutton) it will open inside another web browser. Like excel is embedded in the page. Thanks!

javax.faces.el.EvaluationException

174 byte By vishwanath-javaa at 2007-11-27 8:24:14
HiI getting error javax.faces.el.EvaluationException when i am going to work with select one menu with selectItems tag using arraylistPlease help in this

wsdlDocumentLocation must not be null

1799 byte By anuraktha at 2007-11-27 8:24:18
I got these error when calling webservices that deploy on other machine(sun appserver 8).[#|2550-06-21T16:33:03.625+0700|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.core.naming|_ThreadID=14;|java.lang.IllegalArgumentException: wsdlDocumentLocation must not be nullat ...

Set component attribute bug

557 byte By JSF_custom_tagsa at 2007-11-27 8:24:34
I use components inside UIData and change thir attributes by children components. I tried to use UIComponent.setValueExpression("onclick", ...), UIComponent.getAttributes().put("onclick", ...), UIComponent.setValueBinding("onclick", ...). It works good for components, which is not within ...

intermittent File Download dialog appearing for *.JSF files

770 byte By ricardoga at 2007-11-27 8:24:36
Hi All,If anyone could help me with the following, highly obscure problem, I would be most grateful:intermittently, users are asked to download and save a JSF view by their browser (this is happening with Firefox and IE) instead of serving the JSF view as HTML as per normal. The "File Download" ...

Why Faces Servlet returns different encoding in the response ?

481 byte By JOKea at 2007-11-27 8:24:38
Using JSF RI 1.4_4 and from time to time in the RESPONSE the Faces Servlet return instead of all UTF 8 symbols like \u043F\u043E\u0434 \u043D\u0430\u0435\u043C it returns ? why sometimes it return теле sometimes ? maybe i need to learn SUN how to code ? i will never use ...

Could not passivate; failed to save state

3078 byte By RicardoMa at 2007-11-27 8:24:55
Hi guysI'm using ejb with a web application on jboss 4.0.5 with jdk 1.5 and i'm getting this exception:11:53:50,390 WARN [AbstractInstanceCache] failed to passivate, id=f373o8gy-sjavax.ejb.EJBException: Could not passivate; failed to save stateat ...

can U solve it ?

3133 byte By kripa_ostwala at 2007-11-27 8:25:01
This is my code for retrive mail import java.util.Properties;import javax.mail.internet.*;import javax.mail.*;import javax.swing.*;import java.awt.*;import java.awt.event.*;//import javax.activation.*;import java.util.*;public class FetchMail {private String host = "";private String ...

creating a directory explorer in JSP

420 byte By vivek_kattaa at 2007-11-27 8:25:18
Hi,I need to create a directory explorer in my JSP. Basically there are a set of directories and files. I have to show them in a tree view. If new directories/files are created, then the JSP view should get updated dynamically.I know this amount of java IO is not very efficient, but my client ...

How to implement onchange attribute of list box in jsp

444 byte By kunwar@newgena at 2007-11-27 8:25:38
Hi frndz i am getting a problem in intracting two list boxes in Jsp what actually i want is that I have two list boxes in a same jsp page when i select item(sub folders name inside a paticular dir.) from first list box then i want to show the item(list of files inside the selected folders) in ...

With the new seession in IE gives session error for new user

385 byte By ss1_ss1a at 2007-11-27 8:25:42
Hi,In new opened IE if i tries to login with new user. It is switching b/w the files in the status bar(ie., Header1.jsp and ListServicecall.jsp simultaneously) and at end the session error result will arise.But for the second time if i login with the same username/password the page is ...

Sun Java System Application Server Platform Edition 9 help need

483 byte By ragavarnan_call_screena at 2007-11-27 8:25:53
I am trying to download Sun Java System Application Server Platform Edition 9 version, but i am not able to get the exact software, while i am clikcing the link "Sun Java System Application Server Platform Edition 9.0; Java Platform, Enterprise Edition 5 SDK" it is going to "Sun Java System ...

ow to get select value from selectOneMenu using <f:selectItems>

565 byte By Aurora_Greena at 2007-11-27 8:25:56
Hi All,We are trying to get the selectvalue from the list .The code like this: <h:selectOneMenu value="#{leaveDetailBean.processLeaveType}"><f:selectItems value="#{leaveDetailBean.leaveTypesSelectType}" /></h:selectOneMenu>Here leaveTypesSelectType contains ArrayList of ...

please help me... i want to upload huge file...

620 byte By amanjpro@yahoo.coma at 2007-11-27 8:26:04
hi every one....I'm a new and member betwenn you...and the only Java programer in my country... now, i try to create a web page.. for uploading about 5MB byte file, via HTML Form....but when, i did the uploading web page, for small size files, (upto 2 MB)but when i want to upload a huge file, ...

problems with JSTL ,tomcat and bean method calls

973 byte By vsowmyaa at 2007-11-27 8:26:10
I have an application that was deployed on resin previously and it had JSTL code that tried to access bean methods..Here's a sample statement<c:out value="${sessionScope.key.getReporter().getFname()}"/> where key is an attribute that's set during a session, which is typically set to a ...

JNDI lookup for bean [ejb3]

842 byte By B.Harrisa at 2007-11-27 8:26:27
I've EAR with 2 modules:a) ejb module, which contain 1 session bean:public interface TestBean {...}@Statelesspublic class TestBeanImpl implements TestBean {...}b) web module, which contains some *non managed* service, which needs access to above bean. Question is - how can get access to this ...

java.sql.SQLException: ORA-01009: missing mandatory parameter

1289 byte By hunterzza at 2007-11-27 8:26:34
don't understand why I am getting this error........the method istry{url="jdbc:oracle:thin:@//172.21.1.2:1521/orcl";user="XXXXX";password="#####";OracleDataSource ods = new OracleDataSource();ods.setURL(url);ods.setUser(user);ods.setPassword(password);connect = ods.getConnection();}catch ...

Object pasing from selectOneMenu

690 byte By FT77a at 2007-11-27 8:26:40
Hi there,I have got an input.jsp witch creates appointments. Each Appointment Object has an owner witch is an Object of class Person. Here an abstract of the jsp: <h:selectOneMenu value="#{AppointmentController.currentAppointment .owner}"><f:selectItems ...

general away from page action

461 byte By jco1323a at 2007-11-27 8:26:47
Hi,I have a page in which some modification of a database data occurs. However, I was wondering if there was a way to put an action in that would be called regardless of what page navigation component is selected. I have a menu that the user can choose one of many different other pages to go to ...

adding custom converter to custom component ?

738 byte By mikfua at 2007-11-27 8:26:51
Hi, I have created a custom component in JSF 1.1 that extends HtmlInputText.The component works as it should. My Problem is that when I apply one of my own custom converts to it, the converter is never invoked ?<ps:custInputText id="text1" ...

How to include a jsp file only once

444 byte By NielsPa at 2007-11-27 8:26:55
Hi,I have collected all my common jsp stuff in include.jsp that is included in all app jsp pages. Depending on business logic some jsp pages (say a.jsp) might redirect to other jsp pages (say b.jsp) - in this case the include.jsp would be included twice as part iof request and my app breaksDoes ...

Problem while setting response header in a filter

435 byte By Abbysa at 2007-11-27 8:27:07
Hi,I am intercepting response in a filter and trying to modify the response header, so that my subsequent class would get the header in request .Somehow i don't get the header in request. I don't know whats going wrong.I have few more filters other than the one in which i m modifying the ...

outputLabel and line breaks doesn't work - Is there a hack for JSF1.2?

1026 byte By mwinandya at 2007-11-27 8:27:08
[nobr]Hello,I use JSF 1.2 and Facelets to generate a form automatically. This works so far well. But if I have a label with line breaks, JSF does not convert the line breaks into ?br />?tags. Is there a hack to convert line breaks into ?br />?tags?A little exampleCode:<h:outputLabel ...

Plz anyone help me..its urgent..

830 byte By JaganMa at 2007-11-27 8:27:34
Hi allam doing project with struts, j2ee, jsp ete..and am getting client side exception likejavax.servlet.ServletException: BeanUtils.populateat org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)at ...

sendRedirect to edit values

200 byte By roger5089a at 2007-11-27 8:27:36
Dear all how can i to use response.sendRedirect("select.jsp") to edit any value tag ? for example String sur = "url=abc" ;response.sendRedirect("select.jsp?" + sur);

Reading from HTML Drop-Down Menu into JSP

2269 byte By ScottS.a at 2007-11-27 8:27:37
Hi folks. I'm am just delving into JSP, and I have a very basic question. I've been looking around the internet for a good tutorial on how to read HTML form input data into my JSP page. I really haven't found anything, and was hoping that you could provide me with some good resources. I want ...

System Message Queue 4.0 is starting everytime i run my client program

2057 byte By Pragadaa at 2007-11-27 8:27:39
I am using SJSAS PE 9.0.I have created a connection factory and queue using Admin console.Whenever i try to run the client application to send or receive messges, System Message Queue is automatically starting.Here is my program to access the message queue to send and receive message. But it is ...

IllegalStateException. Why?

11470 byte By b12sa at 2007-11-27 8:27:40
Hi, I have a page which renders different panels depending on user input. Everything works fine on the initial go around however when i leave that page and then come back to it i get the following exception and i have no idea why or what it means. phase(RESTORE_VIEW ...

WebServices and Enums

370 byte By DerBruzzzlera at 2007-11-27 8:28:03
Hi!I'm trying to write a little web service using NetBeans 5.5.1 and Sun Application Server 9 on Mac OS X.I have problems with objects containing enum attributes. These objects can't be used as a return value of a web method :(Is there any solution to this? What am I doing wrong or is it just ...

dynamic datatable + filter comboboxes?

1971 byte By pallena at 2007-11-27 8:28:15
I'm working on a web page that has a datatable that's driven by a DB query. This DB table changes frequently, so I need to refresh the data model every time the page is reloaded. I have a new requirement to provide a filter combobox on the web page that restricts the amount of data shown on ...

javax.mail.internet.ParseException: Expected ';', got ":"

2613 byte By appy77a at 2007-11-27 8:28:27
Hello Everyone, I get 2 exceptions when I use the MimeMultipart's getCount method on e-mail messages that have either a colon or equals characters.javax.mail.internet.ParseException: Expected ';', got ":"at javax.mail.internet.ParameterList.<init>(ParameterList.java:179)at ...

cannot start imqbrokerd

784 byte By Alan_Smitheea at 2007-11-27 8:28:32
I've installed the MessageQueue under C:\Sun\MessageQueue\bin Where the log files are being outputted to, I do not know.I can not start the service. When I start from the command line, there is simply no output or any indication that anything has happened. When I start as a service from ...

action components acting strangely

1287 byte By jco1323a at 2007-11-27 8:28:34
I have a commandLink and commandButton that are acting very strangely and I need some help. I have a page which is set up as follows:html table--|| h:dataTable1 ||html table |column:||-|commandLink||| bunch of inputs ||_|||_|| h:dataTable2|||_|commandButtonAs for the behavior of the page, ...

cookies in JSTL

1463 byte By MrReddya at 2007-11-27 8:28:45
Hi,In my index.jsp, there are 3 fields - email text, password text & 'remember me' checkbox. When the user has entered email & password and selected 'remember me' checkbox, I need to authenticate the email/password combination & put the email in browser's cookie.I am able to ...

[ANNOUNCE] Recent JSFCentral Articles (JBoss, McClanahan, Dreamweaver)

1408 byte By kitomanna at 2007-11-27 8:28:50
Hello everyone,If you haven't checked out JSFCentral recently, you may want to read one of our recent exclusive articles:Designing User Interfaces with JSF, Dreamweaver, and the JSFToolbox ( http://www.jsfcentral.com/articles/dreamweaver.html)Learn how to use JSFToolbox for Dreamweaver, a Web ...

Using Netbeans with Axis 1 shows HTTP Version Not Supported

1840 byte By _a_l_e_x_a at 2007-11-27 8:29:06
Hello,I need to use Axis 1 with Netbeans. So i have integrated Axis 1 in build.xml file to use axis ant targets. If i am executing the deploy target:<target name="AdminClientDeploy" description="adminClient" depends="validate"><java classname="org.apache.axis.client.AdminClient" ...

Cannot execute my first JSF Program

8542 byte By schumachera at 2007-11-27 8:29:11
Hey all. I am trying to execute my first JSF program but i get this output on the browser when i try to run my login.jsp file through tomcat version 5.type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception ...

EJB3: Using Stateful session Beans with JSF

250 byte By jdesmeta at 2007-11-27 8:29:32
I envision that a managed bean with session scope makes the use of Stateful session beans unnecessary.Is there any case we can make in favor of using Stateful session beans?Is there any best practices that I can learn about this?

what is in struts <global-forwards>?

1358 byte By lnthai2002a at 2007-11-27 8:29:46
Hi guys,I am now recoding my web app with struts framwork because i cant solve the problem of recursive loop at front controller. Anyway here is my question about struts:In my struts-config.xml i have the following line:<global-forwards><forward name="main" ...