182 byte By
69901a at 2007-11-27 9:36:34
Hi all,the result is a very large it will take more than one jsp page in this senario how we will display the result in more than one jsp page.Thanks in Advance.
hii,I have a servlet from which I m creating a thread. I want to execute the thread even if it completes servlet execution. For ex. I have a servlet UserServlet from which I m creating a thread RunApplication. I want to run RunApplication even if the UserServlet completes its execution.. Please ...
Hi,I have a simple Struts app that's connected to a DB. I can search for an "employee" and know I want to add the functionality to add an employee, so I have two add buttons in a JSP page. When I come to the Action/controller page, how can I know which button that has been pressed, i.e, which ...
Dear Everyone,In the web application, i am using Form based authentication for security...i have configured exactly by giving login page and error page..i have also configured <security constraint> , < login -config>...But i receive error page while i give username and ...
i am getting following exception when running my HelloClinet from command prompt after deploying EJB Application in Websphere 6.1the exception is:Exception in thread "main" java.lang.NoClassDefFoundError: HelloClient (wrong name: examples/HelloClient)at java.lang.ClassLoader.defineClass0(Native ...
I have written a bean called comboboxbean & in faces-config mentioned its reference. Now when i try to call it inside <select items>like #{comboboxbean.combovalues}I am getting class not found and can not get value for combovalues etc.Now either i am missing something or there is some ...
Please help on this program ,import java.io.IOException;import java.net.URLDecoder;import java.util.Enumeration;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import ...
Hi!I'm trying to use tomahawk components in my shale application. I have inputCalendar fields in my form. The problem is when I click on Submit. I get this error:Jul 4, 2007 3:31:16 PM org.apache.myfaces.renderkit.html.util.DefaultAddResource writeMyFacesJavascriptBeforeBodyEndWARNING: MyFaces ...
hellow hi friend i have one doubt i am new in javamail so i have successfully compiled following javamail program import javax.mail.Message;import javax.mail.Session;import javax.mail.Transport;import javax.mail.internet.InternetAddress;import javax.mail.internet.MimeMessage;import ...
Dear AllThe below data table is in popup window ...The binding methods is called by JSF only first time ....And then gives me same binding values which it set at first time no refresh call ...I want to call it every time once I click for button to popup How can I force JSF life cycle to call ...
Hi,I'm developing a webapp using Struts 1.3. I've seen that is possible to do this:<bean:message key="label.myNumber" arg0="${myBean.value}"/>And then, in MessageResources.propertieslabel.myNumber = My number is: {0,number,##0.00'%'}However, when I try to execute it, i get the ...
I would like to know, how we can give underscore for the hotkeys in JSF command buttons.e.g if a command button is having a text as "Save ", then the letter "S" should be in underscore.Anybody tried....
1154 byte By
kuhnmia at 2007-11-27 9:37:53
Hi,I want to do the following using JSF:There should be a SelectOneMenu from which a user can select an entry. Next to the SelectOneMenu, I want to have two buttons: one to replace the text in a InputText field with the selected item and one to append the selected item to the current text in ...
6140 byte By
fredleva at 2007-11-27 9:37:54
I have a very simple program.For the jsf page:<%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %><%@ taglib uri=" http://java.sun.com/jsf/core" prefix="f" %><HTML><HEAD/> <body><f:view><h:form><h:inputText ...
Hi,Im implementing a secure login using j_security_check (validating users against our active directory). This is working and logging users into our site, however randomly it seems, when users login they are forwarded to either http://localhost/j_security_check/ or http://localhost/favicon.ico ...
Good day to all,Currently I am facing a problem that whenever i try generating a Transformer object from TransformerFactory, I will have a TransformerConfigurationException threw. I have did some research from the net and understand that it is due to a bug that JVM memory limit of 64kb. However ...
2360 byte By
shamexa at 2007-11-27 9:38:26
postMail method throws this exception "Could not send email". This exception occurs at this line of code "Transport.send(msg)". Does anyone have any idea ? public void postMail( String recipients[ ], String subject,String message , String from) throws MessagingException,IOException {boolean ...
I have made a table which is invisible but on click of a button it becomes visible. The functionality is working as expected. But the page is having a blank area even when the table is invisible. How can i make the page without the plain area when table is visible
Hi,I'm having a functionality working of pre-populating dropdowns using struts like:ArrayList list = getRoles(); //This method will return list of rolesrequest.setAttribute("roles", list); By setting this collection in the request it will be availbel to <html:select and ...
can anybody tell me why do we call the doPost() method with in doGet()?When do we use doGet() and when do we use doPost()?
4461 byte By
faedera at 2007-11-27 9:38:49
Hi all !I am curently working on a quiet complex website using jsf. So far, everything has been well but , as it was just the beginning, I coded without thinking too much.So, I have a web page which uses tabs for navigation. At first I coded everything in the same jsp file. I have a ...
Hi AllI have a small servlet that displays some data from database, at the end of the page, i have a hyperlink, I want this hyperlink to go to a jsp page, how could i do this please?for example:This is inside the servlet, and i want it to move to page myJsp.jsp, <a ...
how to create EAR file in my project
4269 byte By
AJYa at 2007-11-27 9:39:20
Hello all,I'm looking for some help in making calls from an EJB into a Backing Bean (the converse is fairly straightforward). My basic question is: what is regarded as the best way to do this? However, for anybody who's interested, I'll describe what I've been trying...Here's my situation ...
129 byte By
manu_ama at 2007-11-27 9:39:25
Hi friends, what is the difference between Apache htttp web server and apache tomcat.Can i run php in tomcat
Hi,When I try to send a mail from my app it is throwingjavax.mail.SendFailedException: Sending failed; nested exception is:class javax.mail.SendFailedException: Invalid Addresses; nested exception is:class javax.mail.SendFailedException: 598 mail is rejectedany ...
hi,i have to create web service which will call pl/sql procedure. i have wsdl file (order.wsdl) and xml file (order_request.xml) .and i am new to webservice, i dont know how to create it.so, pls give me some details regarding web service(creation, test, deployment)i am using eclipse 3.2 WTP and ...
I can able to compile the following code successfully but while executing it showing the error C:\Program Files\Java\javamail-1.4\demo>java msgsend -o anbarasu.d@abs.in -M 203.112.158.188 anbarasu.d@abs.inException in thread "main" java.lang.NoClassDefFoundError: msgsendimport ...
i have an application in jsf from a previous college.now i have to implement security in it. it would be easy to do it in struts for me, but in this jsf application i'm totally lost.i see no httpservlet object in the application.i need to do getRemoteUser.but where does it fits in the ...
404 byte By
bbclonea at 2007-11-27 9:39:50
Hi,I'm generating an xml file using Java (dom) and I need it to be idented. How can I do that ? I'm using java 1.6 and I already have the line transformer.setOutputProperty(OutputKeys.INDENT, "yes");Is it possible without changing api? I think JDom does the indentation, but I can't change to ...
Hi,While I am compiling my application, I am getting an error sayingCan not resolve Symbol : getServletContext() in HttpSessionThis application is already compiled successfully by others previously.Can any one help me in resolving the above issue. Thanks in AdvanceDamodar Reddy ...
hi I am trying web service,where it returns collection.following is the code snippet, @WebMethod() public Collection<CustomerInfo> getAccountList() {Query query=em.createQuery("from CustomerInfo c");return query.getResultList(); }the problem is at the time of deploying i am getting ...
640 byte By
xyzta at 2007-11-27 9:40:25
Hello,I want to learn about Hibernate and I read this tutorial to learn something: http://www.netbeans.org/kb/articles/hibernate-javaee.htmlI installed hibernate as understood in the tutorial. then I created entity classes using Netbeans. after that I created jsf pages for these entity classes ...
Hello I want to access a session managed bean from a Validator i created.I did added that to my faces-config.xml : ...
Is there something like the following...<c:url value="/someUrl/someFile.css"/>....in JSF in order to get the webapp context in HREFs?
5701 byte By
uremoga at 2007-11-27 9:40:38
sorry, this is in the wrong place is there any way i can move it to general programming?i'm making a file splitter to split large text files into smaller parts. so far everything works as far as test files that i make, however, sometimes when i copy and paste text off the internet, for ...
Hello,i would like to know how to generate/create a webpage using dynamic user input. just like a site builder. WYSWYG would be excellent option, i believe. can anyone help me with that. mail me at asirishc@yahoo.co.in
I have written a code to check the Vulnerability character in url but ,when i am clicking the links , all link are redirect into error Page ,even itsallowed character ..any changes i want to Please help on this ,,,,Thanks in Advance public abstract class RedirectFilter implements Filter { ...
312 byte By
DJ_Kata at 2007-11-27 9:40:42
Hi i was wondering if there is a easy way to install a JSP webserver like xampp does with PHP. installing apache tomcat is kinda frusterating.What I am basicly looking for is an installer for windows or linux that will install everything i will need to run my JSP pages and maybe even mysql for ...
hello i am using one entity bean for find by primary key oe database register.one field from this row isone oracle clob field.if i access to tis row using one normal resultset i load the data into one byte[] well but if i try to load this row i cannot put it into the byte[] propertie od one ...
Aloha @ all,I got a tiny problem with the Jakarta Image Taglib. While it's working all correctly on my local tomcat setup (windows pc), it simply won't run on my server (Linux - Debian Fedora Core 6), even though both Java-version and Tomcat Version are identical. The taglib does create the ...
Can anyone provide some insight into what I'm getting when using both valueChangeListener with onchange="submit()"? Both are needed in my app to cause a form change when a selectOneMenu item is selected.After the page is initially loaded and making a menu selection, the selected menu item does ...
Hello,I have a combo box within which i have given 2 options namely select by faculty name and other one select by department. Next to the combo box is a text field where the admin will enter the name of the faculty or the department. What i want is to execute a query based on the option is ...
Hi,I have configured my app as follow:$CATALINA_HOME/conf/server.xml<Host name="localhost" appBase="webapps"unpackWARs="true" autoDeploy="true"xmlValidation="false" xmlNamespaceAware="false"><Context path="/Core1" docBase="Core1" debug="5" reloadable="true" ...
81 byte By
Shebua at 2007-11-27 9:41:51
How to handle idempotency issue of methods like doPost ... in servlets.. ?
584 byte By
Troilusa at 2007-11-27 9:42:15
Hi,today I read an article about the PRG Pattern and after that I tried "F5" on every page of my webproject. I found out that I have issues if I log out an user and try to refresh the page. The problem is that the "F5" tries to reload the old user-page (but the user already logged out). Does ...
I m using Sun Java Application Server for learning J2ee. I started with EJB. When i create a client stub jar and try to invoke the session bean from the application client using the tool appclient....then i m getting an error ......Error::java.lang.IllegalAccessExceptionThe description is like ...
hi, im creating a simple web application adding user or save user to my database now i would to get the values that are being input to my JSP and retrieve to my Java Class and by the use of SQL clause i will now insert to my database can you explain me how or an example as my references thanx ...
Hello Experts,am generating an xml file through a java program using javax.xml.parsers.Following is the format of file (say for eg) generated when i see in notepad<root><tag1>val1</tag1><tag2>val2</tag2></root>which is not required. I want the file to be in ...
Hello,Any body know how to run the EJB program in NetBean.I am using Application server 8.1 and NetBean IDE 5.5.1.While running the source code of EJB(available at http://www.netbeans.org/kb/55/ejb30.html)its giving the deployment discriptor build.xml not found error.How to solve this one.Pls ...