The requirement is like Dot net environment needs to call a webservice to access mails of a certain user from java mail.I wrote a webservice that connects to IMAP and able to fetch certain message details. The webservice returns a string(say resultString) which includes details like From, Size, ...
Hai all,I am modifying an existing project which has jsp pages and simple javaBean class. Now according to the project requirement i added a new JSF file to the project and change the existing javaBean to managed bean (loginBean). public class loginBean implements HttpSessionBindingListener, ...
hiits very silly question i dont know how to check the object is null or not.this is my code snippet,Query query=em.createQuery("select u from Users u where u.firstname = :username and u.password = :password"); query.setParameter("username",username); query.setParameter("password",passwd); ...
187 byte By
revevera at 2007-11-27 7:40:51
We have a DataCollector which collects and stores data periodically. So this class should have only one instance (or else data will be duplicated in the DB).Anyone any idea?
Hi,iam getting below exception while running the jsf appliaction javax.faces.FacesException: Can't instantiate class: 'com.edit.jsf.Contact'.. class com.edit.jsf.Contact : java.lang.InstantiationException: com.edit.jsf.Contactat ...
I have created a visual web pack application using the NetBeans IDE .And I used JSF in my project.To test it Netbeans deploy automatically the project on the sun java application server.But now I want to deploy the application in on the application server without independently of netbeans .I ...
1684 byte By
dg4a at 2007-11-27 7:41:09
when I try to run this application (simplemessage) using netbeans5.5 and sun application server 9 I get a NameNotFound Exception with following message 14-Jun-2007 13:04:39 com.sun.enterprise.naming.NamingManagerImpl bindObjectsSEVERE: NAM0008 : Invalid Destination: jms/Queue for ...
Hi , friendhow to select multiple checkbox and delete that dataon jsp page ?]]help
12963 byte By
Gantua at 2007-11-27 7:41:15
Hi,I have some problem in integrating EJB into JSF.I have Entity class Car.javaAnd Session CarSessionBean.java which implements @Local and @Remote interfaces.Than i have BackingBean.java which i am trying to integrate into JSF.When I am running the program i got following error:JSF1001: ...
how to creat popup window plz send jsf code
I have a function which returns an array of byte? How do I declare an array in Web services.
247 byte By
pengyoua at 2007-11-27 7:41:38
Hi,I am using Struts layout:form tag which has not "id" as attribute. But I need to set an id to my form for using javascript later on : document.getElementById().Do you have any solution for this?Regards,Pengyou
793 byte By
mikfua at 2007-11-27 7:41:52
Hi all.Does anyone if <h:messages> can render output as a bulleted list? Or other ways of solving the problem.Ex. <ul><li>message1</li><li>message2</li><ul>setting the layout attribute to table render like:<tr><td><span ...
What Im trying to do is have a jsp page with a save button and when this save button is pressed the page shows a message which declares that "the data had been saved" and on the same page as where the button is.Is there anywhere I can find out how to do that as it involves both javascript and ...
1210 byte By
newbeana at 2007-11-27 7:43:01
Hi All,My problem is i had resultset from database and i want to display it as drop down.By default it should show the actual database value for that field also user should be able to change it by selecting from drop down. What is happening is it is by default displaying the last value from the ...
Hi All,I'm getting exception pages/common/updated login.xhtml @18,60 value="#{newOrderBackingBean.strs}": Exception getting value of property strs of base of type : com.myorder.order.neworder.NewOrderBackingBeanwhereas i have backing bean as package com.myorder.order.neworder;import ...
Hi, allI have a silly question.I have a db connection in jsp file. In the beginning of file, I open it and close it at the end.Does the connection return to the pool when the jsp file has the run-time error before closing connection?What happens to this ...
I have a JSP page (hosted in Tomcat) that grabs information from a database (though a Java program running on a different computer) and populates itself based on that information. I have it set to automatically refresh every 5 minutes or so to always get the latest information stored, but there ...
I have a popup window which display a list of values in a tabular form. I have no problem to do the popup or display the table. The table has two columns; one is the "code" and the other is the "description".When a row is highlighted and the "SELECT" button is clicked, I am supposed to pass the ...
[nobr]I've got a very strange, non-error, problem. I pinpointed the exact location of the failure, which should make it easier to debug.It's as follows: I'm writing a 'user update' page, in which users can edit their profile (i.e. personal information). One of the fields is 'Street ...
Hi,I would like to know if it is possible to send a message on a public Queue, after explicitly indicating who is able to extract it, so that any other client (malicious or not) would not be able to read it.Thank's
195 byte By
Sowja at 2007-11-27 7:45:07
Is there any way to delete a row like the one yahoo beta does..Just highlighting the row and clicking the delete button...I am using the struts framework...Please help me its urgent
1210 byte By
newbeana at 2007-11-27 7:45:09
Hi All,My problem is i had resultset from database and i want to display it as drop down.By default it should show the actual database value for that field also user should be able to change it by selecting from drop down. What is happening is it is by default displaying the last value from the ...
Hi,I was just thinking about some concpets in J2EE. is it possible some how that we can design a chat interface with JSP servlets.I know it can be done via networking.But in that case we need to have client installed on our machine and lot of network programming need to be done.Is there any way ...
Hi all,I have following Exception in my JSP:exception org.apache.jasper.JasperException: stpview.db.STPViewDB.getAllAlarms()Ljava/util/Vector;at ...
1673 byte By
kambooza at 2007-11-27 7:45:17
hi there,i'm beginner to servlets and jdbc i was trying a code the servlet outputstream doesn't work after registerting the mysql driverhere is the code://///////////////////////////////////////////////////////////////////////////////////////////////////////////////import ...
I am having an intermittent problem with double qoutes in a form input. Sometimes the qoutes are recognized and they show up in the corresponding business code, sometimes they do not. I have done this to test the issue:I can print the input value in the JSP and the corresponding Action. Test 1 ...
Below is the download method, which is used to download the file on server side to local, but when the download finished, I could not manually delete the file on the server, it prompt me the file is using by another program. How to solve it? is there any problems with my Download ...
4715 byte By
roger_sa at 2007-11-27 7:46:15
Hi,I've followed the example on the link below in order to use Hashtable in my classes. http://weblogs.java.net/blog/kohsuke/archive/2005/04/xmladapter_in_j.htmlMy classes are below:@XmlAccessorType(XmlAccessType.FIELD)@XmlRootElementPublic class ...
Below is the download method, which is used to download the file on server side to local, but when the download finished, I could not manually delete the file on the server, it prompt me the file is using by another program. How to solve it? is there any problems with my Download ...
Hello Frds,I am stucked up at a critical place. I am getting the following errorype Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionjavax.servlet.ServletExceptionat ...
Hi all,I am getting confused of request attribute and request parameter. What i understand is that a parameter is a piece of info that send with the request. Such that infomation (parameter) come from a form component (text field, radiobuttion,selection...). By using servlet.getParameter("my ...
Hi,I have deployed sample ADF Faces application on tomcat 5.0, but when i try to access i am getting following error.org.apache.jasper.JasperException: The absolute uri: http://xmlns.oracle.com/adf/faces/EA13 cannot be resolved in either web.xml or the jar files deployed with this application.I ...
Respected SirI have a file uploader component in one of jsp file. Like :<html:file property="smallImage">Now i want that it should have a default value when the page is loaded, which will show the image path of the image which is already present in the database.My question is how to give ...
hi,will u please anyone tell about this exception? its very urgent to me? i am getting exception when i ma forwarding a page in jsp.exception is :java.io.IOException : Data has already been flushed to the client. my code where i am getting this exception is: if(filled_var ...
Dear Friends,I have created a JAVA SOURCE in PL/SQL (Oracle 9.2.0.5) to send mail in oracle. But when i compile the source code, it prompts me with a message:Warning: Java created with compilation errors.When I use Show Errors, it show:SQL> show errors java source "SendMail"Errors for JAVA ...
hi friends i want to create a combo box whenever i click the button.i have one vector in my jsp page. i want to pass that vector to javascript method as well as i want to add that values as option for combo box.Below is my code.whenever it loads it produce the error line 50 ,; expected.<%@ ...
This are my codes on my jsp page for sending out an email. <%@ page language = "java" ...
518 byte By
vAaka at 2007-11-27 7:48:21
Hi,Can somebody please help me with the following question.Why is it that when we want to use a ejb from within another ejb, we use interfaces to acces/find this other bean, and not just an object?I have some thoughts on it, like:* does it support lazy creation?* does it deliver the possibility ...
891 byte By
tech_nwa at 2007-11-27 7:48:24
Hi all,I have the following code in a jsp.searchString = request.getParameter("searchString"); java.net.URLEncoder.encode(java.net.URLEncoder.encode(searchString,"UTF-8"),"U TF-8"); this was not working for special character ? It gets converted to ?.I changed the code as given below: ...
Hello,At the moment i have a central static Configuration class that contains all the server-specific stuff (like uploads folder, css folder, etc.)All the items are hardcoded in here.I want to change this so that the configuration is done inside an xml file that the Configuration class ...
Hi,I have developed my own component. But I have a problem with my renderer if the value of my component contains special characters like e.g. umlauts (?e) or angle bracket ("<" and ">"). If my value contains one of these special characters my renderer does not convert them into valid ...
Is it posible to use Spring beans within JSF validators ?
583 byte By
naekoa at 2007-11-27 7:49:01
hi, i have a datatable with some rows and columns.i would like to center the text in my columns:<h:column><f:facet name="header"> <h:outputText value="#{myMsg.myMsg1}" style="text-align: center"/></f:facet> <h:outputText value="#{myMsg.myMsg2}" style="text-align: ...
102 byte By
pras78a at 2007-11-27 7:49:04
hi,Can anybody tell me how two servlets in different web applications access each other.
Our web services are changing from RPC-literal WSDL to a DOC-literal WSDL what do clients of our services have to complete? I assume that the client have to recompile with the new DOC-literal binding so that the correct client code gets built? Is this a correct assumption. Or does the client ...
438 byte By
Glimpsea at 2007-11-27 7:49:17
Hi,I want to increase height of an IFRAME inserted in HTML,presently i am doing this by specifyingvar frameSrc = myFrame.src;myFrame.height = newHeight;myFrame.src = frameSrc;but as this refreshes the IFRAME i can see the time lag in the loading of page specified as src of IFRAME.Is there any ...
458 byte By
boske3a at 2007-11-27 7:49:29
I have a problem.I want to send mail to different email addresses but to attach only one txt file to one email address.For example: on mail1@somemail.com to attach xx1.txt on mail2@somemail.com to attach xx2.txtand so on.Also i want to automaticly attach these files from some standard folder ...
Hi,I have strange problem in my JSF project. When i use rendered along with <h:commandButton> it is not invoking method specified in action attribute. In following code <%@ taglib prefix="h" ...
HiIn my app, I have an h:inputTextArea whose content will be saved in the DB and later be printed in some other page. The problem is that I need to print the text as it was typed in the textarea, but the line-breaks get stripped away during the process.How can I make sure that the component ...