Showing message with webservice

3565 byte By passion_for_javaa at 2007-11-27 7:40:38
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, ...

check out this FacesContext error

2344 byte By subrato_001a at 2007-11-27 7:40:49
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, ...

how to handle null pointer exception in ejb3

616 byte By patel123a at 2007-11-27 7:40:50
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); ...

how to write a singleton in JavaEE

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?

Instantiation

5538 byte By venkatJSFa at 2007-11-27 7:41:05
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 ...

Deploying visual web pack application

385 byte By WebServicea at 2007-11-27 7:41:07
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 ...

problem running the simplemessage application from the javaEE5 tutorial

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

how to delete multiple checkbox data ( like yahoo mail )

110 byte By Ghanshyama at 2007-11-27 7:41:11
Hi , friendhow to select multiple checkbox and delete that dataon jsp page ?]]help

EJB 3.0 integration with JSF

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

hi

50 byte By JSFVinaya at 2007-11-27 7:41:20
how to creat popup window plz send jsf code

how do I use arrays in web services?

99 byte By RALIIYAMAa at 2007-11-27 7:41:29
I have a function which returns an array of byte? How do I declare an array in Web services.

Struts layout:form tag

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

<h:messages> rendering

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

JSP save button and page message

489 byte By scorpion2a at 2007-11-27 7:42:03
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 ...

Help urgent ! display database value as selected in drop down list in JSP.

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

Getting problem in rendering selectOneMenu component

1687 byte By Manoj.s.Jaina at 2007-11-27 7:43:15
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 ...

Connection in JSP

300 byte By Come_Javaa at 2007-11-27 7:43:36
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 ...

Want to Remotely Force Reload of JSP Page

601 byte By SSTwinrovaa at 2007-11-27 7:44:12
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 ...

Pass the "code" of the Highlighted Row of a List Of Values from Popup

3800 byte By jiapei_jena at 2007-11-27 7:44:32
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 ...

Problem Filling Forms Automatically

1486 byte By Nidhuggura at 2007-11-27 7:44:44
[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 ...

Sending a private message on a public Queue

236 byte By peaceinpala at 2007-11-27 7:44:52
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

Delete a Row in Struts

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

Urgent help!display db value as selected in drop down using select option

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

Chat messenger in Java

686 byte By aman_mahajana at 2007-11-27 7:45:10
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 ...

Error with Vector

981 byte By egonztri1a at 2007-11-27 7:45:13
Hi all,I have following Exception in my JSP:exception org.apache.jasper.JasperException: stpview.db.STPViewDB.getAllAlarms()Ljava/util/Vector;at ...

servlet outputstream doesn't work after class.forname

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

JSP form input with double qoutes, Java cant see the qoutes

961 byte By meconlin4192a at 2007-11-27 7:45:22
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 ...

The problem on download

1920 byte By henry_22a at 2007-11-27 7:46:04
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 ...

JAXB Adapters Collection

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

The problem on delete file

1928 byte By henry_22a at 2007-11-27 7:46:16
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 ...

StackOverflowError--Please HELP

5024 byte By aniketh_parmara at 2007-11-27 7:46:17
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 ...

request attribute vs parameter

858 byte By lnthai2002a at 2007-11-27 7:46:32
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 ...

Problem with ADF Faces application

481 byte By skumar_tvma at 2007-11-27 7:46:35
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 ...

File uploader in strust

429 byte By chahalkhushwindera at 2007-11-27 7:46:40
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 ...

java.io.IOException:Data has already been flushed to the client

613 byte By swaruparavia at 2007-11-27 7:47:10
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 ...

cannot resolve symbol 7 errors location: class javax.mail.internet.Internet

2821 byte By AnkurBhatiaa at 2007-11-27 7:47:19
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 ...

create dynamic combo box

2115 byte By paramujavaa at 2007-11-27 7:47:27
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.<%@ ...

javax.mail.AuthenticationFailedException - Pls Help

4878 byte By leeChaolana at 2007-11-27 7:47:40
This are my codes on my jsp page for sending out an email. <%@ page language = "java" ...

interface to acces ejb

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

URLEncoder.encode not working in netscape for special characters

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

Performance on reading XML

812 byte By radicjesa at 2007-11-27 7:48:28
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 ...

My own renderer: How to convert special characters (e.g.: "<" into "& lt;")

731 byte By mwinandya at 2007-11-27 7:48:36
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 ...

JSF Validator with Spring beans

64 byte By tim@t-pages.nla at 2007-11-27 7:48:46
Is it posible to use Spring beans within JSF validators ?

styles in datatable

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

Communication between two web applications

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.

Web Services changing to doc/literal what does it mean for clients

493 byte By rconnelliia at 2007-11-27 7:49:16
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 ...

How to increase height of IFRAME without refreshing its contents.

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

One mail - one attachment

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

Problem with JSF rendered

1303 byte By vishal@screena at 2007-11-27 7:49:42
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" ...

Preserving line breaks from a inputTextArea

427 byte By Der_KosaKa at 2007-11-27 7:49:46
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 ...