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
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 ...
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 ...
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...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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?
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!
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
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 ...
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 ...
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" ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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" ...
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 ...
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 ...
[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 ...
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 ...
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);
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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" ...
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 ...
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?
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" ...