430 byte By
jonnya at 2007-11-27 7:06:08
Hi,I encountered this question and was confused abt the answerWhat do EJB containers NOT provide? 1)Automated support for transaction management 2)Selecting application behavior at assembly or deployment time 3)Support for life-cycle management of EJB components 4)Bean lookup services ...
1366 byte By
zcona at 2007-11-27 7:06:16
Hello, I tried to use <h:inputTextarea> display text from database, the line items were stored in database and separated by Carriage Return like this: line 1 +CRLF ("\r\n") + line 2 + CRLF ("\r\n") .....and the text out put need like this:__line 1line 2line 3 ...- JSF code ...
392 byte By
oropezaa at 2007-11-27 7:06:23
Hi. I am working on a web app based on struts with a mysql db.My app will manage about 200 items a year, and will have few users online (DSS). Every item will have from 1 to 5 images that will be uplodaded from the frontend. My question is about efficiency. What is the best, to store my images ...
I am trying to send a mail using java but i keep reciving the following erro java.net.SocketException: Connection resetjavax.mail.MessagingException: Exception reading response;here is my code public void sendMail(String from, String to, String cc, String bcc, String subject, String body) ...
165 byte By
NORM555a at 2007-11-27 7:06:36
WHEN I AM ONLINE THE BOTTOM OF THE SCREEN IS NOT THEIR AFTER PLAYING A GAME I CANT GO BACK TO LOBBY AT IWIN.COM A HAVE TO GO BACK TO MY DESKTOP AND START OVER
Hi all,I am trying to install "java_ee_sdk-5_01-windows" on windows vista and i am getting installation wizard open and with messageunsupported installation platform detectedyou are currectly attempting to install this product on an unsupported platform and/or patch level.For a list of ...
386 byte By
kal132a at 2007-11-27 7:07:09
Hi,I want to use connection pooling in my web app that uses jsf. I know how to do getConnection() on the datasource, but not sure where to put that code. In the backing bean or as a static method in some class that can be called from the backing beans? Does anyone have an example of where to ...
I'm finding JSP development to be less efficient than it could otherwise be, based on my current configuration of Eclipse plugins. What Eclipse plugins do you recommend for web application development that really make good use of web.xml?- What I mean by that is when you add a ...
Hi, friendi am newbee to JSP technology.NOw i made some customers database and when fire a querythey are listed in one table.like belowCustomer_IDCustNameCustCityMobilenow i want that when perticular customer id is clicked on the table displayed, it should open that customer page to be edit.How ...
On Page 342 Core EJB Specs:If the client request is associated with a transaction T1, and the instance is not associated with a transaction, the container suspends the client抯 transaction association and invokes the method with an unspecified transaction context. The container resumes the ...
If we write explicit constructor and if we pass ServletConfig object to that as argument what happend?If we call destroy() from Service() method what happends?responce.setContentType("text/html")? plz give me the full details of this and if we want to pass .pdf files in place of text what ...
Hi I have a Jsp code like this<h:column><f:facet name="header"><h:outputText value="Request Types"/></f:facet><h:outputText value="#{report.requestType[0].desc}"/></h:column>Output for this code:(EX)RequestTypesdesc1But I want to print desc2 also below the ...
90 byte By
kandraa at 2007-11-27 7:08:06
Hi Can any body help me with clear cut idea on GET and POST methods in java.
We are developing a page with a datatable. One column in the datatable is h:selectOneMenu. We need to call the a new page according to the selected item in the i.e the value change in the h:selectOneMenu. There is no action to be done to call the page. HOw can this be done. Further in the code ...
Hi;I want to keep the navigation history of the web application. An idea came up to me. In a servlet filter, I can put each request object in a arrayList in the session. Then is it possible to recall this request object? And how?Thank you for your any comment and help.
Hi,Iam getting javax.servlet.jsp.JspException: Cannot find FacesContext Exception while executing the jsf application.My tomcat version is 6.0 and jdk 1.5 and jsf is 1.1 .Am added all the required jar files into the class path .And am checked url patterns like *.faces and /faces/* but me ...
I downloaded javaeetutorial5 tutorial from this URL.https://sdlc1a.sun.com/ECom/EComActionServlet;jsessionid=5874F5CFDFC12A3F5217CEA1ED76E76CAnd followed the steps to create the web service as mentioned here. http://java.sun.com/javaee/5/docs/tutorial/doc/JAXWS3.html#wp79980But I couldn't make ...
import java.io.*;import java.util.*;import javax.mail.*;import javax.mail.internet.*;import java.util.*;import org.apache.axis.AxisFault;public class Sample {//mail session state related private String m_Username; private String m_PostOfficeHost; private Session m_MailSession; private Store ...
73 byte By
geezera at 2007-11-27 7:08:19
I have written a servlet, I want to convert it to jsp. Any ideas ?
Hi ,i need to populate values in 2 combo-boxes where the valuesin the second combo is dependent on the first .. from db ...i.e if i select a value in 1 combo then the values in the second combo should be populated accordingly from the db..pls suggest on this.
245 byte By
musica at 2007-11-27 7:08:26
Hi all,when I receive a stream of file from server. How I can open and view this file on browser?My suggest: catch a stream and use library to open office file on browser, but I don't know which lib to do this.Thanks
If we write explicit constructor and if we pass ServletConfig object to that as argument what happend?If we call destroy() from Service() method what happends?responce.setContentType("text/html")? plz give me the full details of this and if we want to pass .pdf files in place of text what ...
Hi,i'm new to EJB.plz solve my problem Regarding NameNotFoundEXceptioni used Netbeans IDE with J2EE server 8.2.i want to simply print Hello through Session bean.bt i got error when i run my client programcode of interfaces class file and client code is given below.Home interfacepackage ...
my JSF application work fine in the tomcat 5.5 but when I deploy it to the weblogic 9,the weblets make error(I use it for my tag),I checked the source code ,that the getDefaultContentType() just return null.then I remove the weblets and resolve the resource problem myself,it work ,but the ...
HI,I am clicking on the button, I have configured my beans and faces-config.xml properly for navigating to the next when user cliks on the next button. When user clicks on the button, the control goes to the bean method and prints the log message, but again it comes to the same page, not going ...
how servlet invokes constructor(user defined no-arg constructor) before invoking init mehod? is servlet engine follw the normal java appln flow rather than it's own life cycle while creating an instance for servlet?Thnaks inAdvance,
I am getting this exception , while my application is trying to send mails. The complete stack trace is belowcom.bp.ebus.downstream.util.ErrorLevelException: javax.mail.MessagingException: 452 4.4.5 Insufficient disk space; try againlaterat ...
1061 byte By
balteoa at 2007-11-27 7:09:09
Hello,I have identified a problem with my app which really puzzles me:When I specify programmatically whether a command button should be rendered, the action method never gets called whereas the button does get rendered. See below:<h:commandButton ...
Hi all,I have a dataTable displaying data. For each row I wish to have a hover over to display addional information about that row of data.The trouble is I can not see a way to add a title attribute to the whole row. I have been able to use the title attribue on the outputText's for the table ...
HI,Am getting same error i.e Faces Context not found.Iam using common-collections,commons-digester,commons-logging,jsf-api,jsf-impl,standard and jstl jar files.Am configured jsf application correctly .But am not getting Faces Context .Do i need to change the jsr files Plz I need urgent.Thanks ...
hii wanted to clarify if any converter is needed in my case. i feel its not needed in case of checkboxes/listbox but just in case i am wrong somwherew.r.t code belowpublic class MyBean {private List<MyObject> selectedItems;private List<SelectItem> selectItems;..... public ...
1657 byte By
jan@f10a at 2007-11-27 7:09:26
hi,I want to include a JSP in another twice. The two includes should work on different backing bean instances. (Of cource the include contains JSF components)Business case: An insurance policy has one reference to a person in the role insured person and another in the role policy owner. I would ...
I need a Component that implements encryption solution between the browser and Java tier. I am a java programmer and have really limited knowledge about cryptography. I work on JSF . I am basically looking to build a component that will ensure that the password entered by the user in the login ...
Hai all,In my JSp page i have a combo box and i want to add a value change listener to this combo. I don't want to use javascript so Which listener shall i use?
380 byte By
Rajessha at 2007-11-27 7:09:51
I am sending email with some custom value set in the email header from my application. When the email get bounced back I am not able to get the custom value from the bounced mail.I think the SMTP server remove the header before it send the bounce message to the sender.Is there any way to get ...
i have a drop-down list and based on the selection contents in the page should be get updated.......//--Code-Jsp<h:form id="mainForm"><h:outputText value="Select an Account:"/><h:selectOneMenu value="#{tempBean.acct}" onchange="submit()" ...
Hi, i am facing some problem while using session in my application,The issue is when I login into my application, i set the username in a session vaiable, Now if i change my system date i.e. i increase the system date, the session is getting expired, i.e. after i increase the sysdate, and then ...
Hi All,Currently i have a project on JSF. I need to port this to a Spring and Hibernate framework. I use Eclipse 3.2 and Jboss 4.0.2 and MSSQL. Now i need some really simple tutorials to understand Hibernate and Spring frameworks. Also is it possible to have JSF and Spring work together? Can i ...
Hello,I have a servlet which call other servlet. in the first servlet is the search query interface which send the query to the second servlet that responsible to dispaly the query result from google.it is work fine but it display the google result in seperate page. how i can display the result ...
400 byte By
sri1025a at 2007-11-27 7:10:25
I'm trying out a web service client for this web service: http://ws.strikeiron.com/relauto/iplookup?WSDLI have downloaded Apache Axis 2-1.2 version. What are the steps that I need to follow to create the sample client?I'm assuming:1) Use the wsdl2java program to generate the Java classes for ...
383 byte By
NANDA73a at 2007-11-27 7:10:27
Hi,I have an issue in passing URL to open a page.I am building a URL dynamically to open a page. I need it open in such a way that the URL is not stored in IE history or browser history and the URL not displayed in the IE title/address bar. Is there any one who can help me on this? Pl give me ...
844 byte By
vAaka at 2007-11-27 7:10:29
Hi,In different tutorials I read that a message-driven bean which uses a Topic as destination, should exist before any message is send to this topic if it wants to receive this message.However, if I use some print statements, I get the following:PostMessage, before ...
509 byte By
nishitta at 2007-11-27 7:11:02
Hi,I have a JSP file to create a form that has date range from and to text field. I would like to submit the form when user changes the date. I have onChange="submit();" specified with the text fields. Form gets submitted fine when we change the date by typing in the field. I am using the ...
Hi All,I am trying to execute a prepare statement in JDBC and getting the following error:java.sql.SQLException: ORA-01006: bind variable does not existat oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)at ...
6636 byte By
Devemora at 2007-11-27 7:11:10
Hello,everybody. Recently,I wrote a simple JSP Web program basing on the Struts architecture.It created a page for a user to input his name and password,and after the user click the submit botton on the form,it can redirect to another page and show the name and password that the use has input ...
352 byte By
SRIWPa at 2007-11-27 7:11:17
Hi All,Can anyone suggest different ways of implementing the below scenario.I read the masterlist of products and store it in a managed bean application scope. But the master list can get updated in the database . How can i refresh the data of the managed bean in the application scope at ...
Hi,While transfering an authentication jsp into a servlet i bump into some problems. The original authentication jsp creates an ValidUser bean with the session scope after verifying the user credential agains the db. In my servlet, i do like this:ValidUser currentUser = new ...
553 byte By
naekoa at 2007-11-27 7:11:35
hello,i just want to open new window after clicking a command button. The new window should have a content of one jsp site. Sth. like:myFirst.jsp-<h:commandButton onmousedown="window.open('mySecond.jsp','SecondJsp');onclick="return false"/>mySecond.jsp<f:view><h:outputText ...
269 byte By
kfaziusa at 2007-11-27 7:11:37
Hi allMaybe it's stupid question, but I'd like to know what is the difference between local and global JNDI. I found this during my EJB3 investigation. I can't find it in any doc, so I ask you as experts :) I hope you'll help me. Thank you in advance.
Hello:I am starting to wonder if what I am doing will ever work...Ok, I am trying to avoid javascript. I have a drop-down list named "year" and I wish to call a JSP method that is defined/declared in the same JSP.First, I want to pass the chosen option to the method and then store the ...