Hai all, i have a application where i am updating the user data, in user lastname and firstname field it is displaying the user name in a text box in editable mode, these are required fields. if the user deletes the name and left it blank it is displaying proper error message. But i want if the ...
Hello I am new in developing the struts project.Any one help for my questtionMy question is?I have develop the struts project in struts using eclipse and I have uploaded the files into the server.The Servlet file not workingThanks in advance
Hi all!In EJB 2.1 the initialization was with create (args) methods. NOw, how is it exploited? Create methods are no more there and there must be a way to send parameters to the stateful session bean when it is newly created...isn't it?Thank you!
576 byte By
vkjsfa at 2007-11-27 9:57:37
I am using Netbeans 5.5 for a web project (with JSF, MySql server) it's working fine, now copied all the files from "build/web" directory and I've added the code: <listener><listener-class>com.sun.faces.config.ConfigureListener</listener-class></listener>in web.xml ...
hi i am facing one problem related the javamail actully i have using one javamail simple class but the thing is that that class is taking 4 parameter from,to,sub,mess so this class i am calling from my servlet handler so in servlet handler i have created the object of this class and passing 4 ...
I have an application using form based security with JSF on SJAS.Loggin in the first time works fine and I log out the user with:<%session.invalidate();session = request.getSession(true);response.sendRedirect("main.faces");return;%>Which redirects him to the log in page again, which is ...
Hi All,I'm new to JSF & trying to build a portlet wherein.I have a requirement where i to display a graphic ( tick or error) into one of the column's of a data table depending upon an attribute of the bean class.The problem is that with the any other column i have to simply bind the ...
I set test/WEB-INF/classes as project output folder , why I can not find "WEB-INF/classes" in Eclipse "Package Explorer'. is it normal or issue?Thanks ahead!
Recently I deployed some new servlets into my Tomcat 5.5server I move the new class files (servlet files) into the correct directory (WEB-INF/classes/<my dir>) and also jar filesin the directory (WEB-INF/classes/lib) I also edit the web.xml file in WEB-INF to reflect the new servletsI ...
Eclipse 3.1.2 Bundle JBoss-IDE1.6 - Java Build Path issueWhen added ECLIPSE_HOME to JAVA BUILD PATH "Libraries", I got following message:Required library cannot denote external folder: 'E:\Friends\eclipse' for project mobilefish_demoIs it really need to add ...
Can someone tell me the steps to debug the web application in ECLIPSE?Is only can do after setup the package and deployment configuration or not? Thanks!
1558 byte By
Bhishmaa at 2007-11-27 9:58:27
Hello All, I am creating a web app with only POJO's. Now before I get too far into the design wanted to confirm with you if I'm doing the right thing.The layers integrate as follows:Web Tier (JSF, JSP pages + Backing beans) --> Business object Managers (BOMs) --> Business Objects.So the ...
687 byte By
d11wtqa at 2007-11-27 9:58:42
Let's say for example I want all my URLs for servlets to take the form: http://mysite.com/module/action?argumentsWhat's the most scalable way to handle mapping the values in place of "module" and "action"? For example, I might have a "forum" module and have an action to "deleteThread", called ...
2210 byte By
xyzta at 2007-11-27 9:58:59
I created a web application with Java Server Faces framework selected in Netbeans.IDE gives two pages at first. one is index.jsp and other is welcomeJSF.jsp. When I cut some jsf related code from welcomeJSF.jsp page and paste it into index.jsp and run the applicationI get this ...
116 byte By
Shebua at 2007-11-27 9:59:20
Hi..Can any one explain me what is the difference between Java scripting variables and EL variables..?
Hi,I am trying to display a HashMap in a datatable where the values for each key is an ArrayList e.g.ArrayList al = new ArrayList();al.add("AA");al.add("BB");al.add("CC");HashMap hm = new HashMap();hm.put("ONE", al);ArrayList al2 = new ...
2403 byte By
xyzta at 2007-11-27 9:59:34
My faces-config.xml is like ...
Dear fellows,What i want to do is for example :I have following JSP page which look like FormIDDepartmentID ViewDetails***********************************************cs101dcs viewdetails (this is hyperlink)and FormID and DepartmentID are fatched from database what i want to is when is click ...
1597 byte By
xyzta at 2007-11-27 9:59:46
Hello,I added a listener to web.xml<listener><listener-class>milagesoft.SessionListener</listener-class></listener>and created a class which implements HttpSessionListenerpackage milagesoft;import javax.servlet.http.HttpSessionEvent;import ...
Hi,What is the best way to call a certain method in a backing bean whenever the jsp page is reloaded?I have a managed bean that provides the data for a form and the bean gets it's data from a SQL DB. I want the bean to reload the data from the DB when and only when the page is loaded or ...
How can I sign a single xml document with 2 signatures and be able to verify both signatures as well.ThanksAhmad
5265 byte By
d11wtqa at 2007-11-27 10:00:18
Say all requests go through a front controller. The front controller delegates that request to a particular action controller. The name of the controller, and the name of the action comes from the URL. What's the cleanest way to get an instance of the action controller based on its name, then ...
Hi,The page that I'm developing needs to be able to manage session without using cookies. Therefore I'm using response.encodeURL() for all links.However I don't know how to keep the sessions when submitting forms using commandbuttons that trigger backing bean functions.E.gI have a ...
it is only wokring when i only assign value to sub1 variableassign<html> <body><%@ page language="java" import="java.sql.*" %><%String[] list=request.getParameterValues("list");// String list=request.getParameter("list");int i;String ...
346 byte By
ticanoa at 2007-11-27 10:00:46
Hello.I have a problem in Servlet for responding for a request.I think I succeeded getting the soap request in my servlet.And I'm stuck in sending my soap response back.Is there anybody tell me exactly how to send my javax.xml.soap.SOAPMessage instance through HttpServletResopnse?Please help ...
3480 byte By
paulchwda at 2007-11-27 10:01:02
Hello All,When i submit the HTML file (to connection/SetConnection) I get an exception report from apache my context path is: connectionproject: connectionpackage: connectionI have included the report below and my web.xml file, i am using NetBeans IDE to deployHTTP Status 500 -type Exception ...
As of July 8th 2008 Area 51 IT Solutions will no longer be supporting Java technologies. Sun Microsystems has failed to keep integrating Java technologies up to date on Windows Servers and make the integration process on the fly. Its pretty bad when a server admin has to uninstall the latest ...
is is possible to have 2 connections to 2 different subscribers with 2 different topics at the same time?
1324 byte By
nag1610a at 2007-11-27 10:01:17
I wish to begin a transaction (JTA) in one method of a statefull BMP EJB, call multiple methods from multiple client calls (which could even be JSPs/Servlets initiated by the user from his browser in a session), all the methods are in same transaction and would process the client input in the ...
Hi all,I'm currently working on a school project that uses net beans 5.5.1 IDE Java Server Faces to develop it. I am pretty new in this area, thus I find it difficult to understand the codes. I am starting on a login page and right now I am stumped at the codings section for the login_button. ...
1223 byte By
jimfixera at 2007-11-27 10:01:34
Hi all,I'm working on sending Turkish email to our customers, notify them that they need to activate their account before using our product. Email should contain a link that customers will click on, and it should be in Turkish. I store all messages in .properties file. MimeMessage message = ...
[nobr]hi, I'm new for the JSP and got struck at this point . I have a JSP page wherein it consists of a table and the servlet that retrieves the data from the DB(MY SQL). Now i need to fill the contents of the table as mentioned below. First 5 rows must get printed then upon clicking the next ...
Hi friends !!!i am facing some problems Continuously , Log entry of that error is asfollows and after that server gets stop .java.sql.SQLException: ResultSet is closedat sun.jdbc.odbc.JdbcOdbcResultSet.checkOpen(Unknown Source)at sun.jdbc.odbc.JdbcOdbcResultSet.clearWarnings(Unknown Source)at ...
it is only wokring when i only assign value to sub1 variableassign<html><body><%@ page language="java" import="java.sql.*" %><%String[] list=request.getParameterValues("list");// String list=request.getParameter("list");int i;String ...
Hello,I am using j_security_check feature to make login page.my Login page is : <html><head><title>Login Page</title></head><body bgcolor="white"><h2> <center> Custom Login Page </center></h2><hr width='90%' ...
Hi, I need columns of varying width in a JSF panelgrid. Please advice.Rgds, Victor
466 byte By
Sharifa at 2007-11-27 10:02:30
Dear Friends,Please help how to get the query string of the url ( such as that getQueryString() of the Servlet) in JSP/JSTL.I would like to get the query String for the below URL http://localhost:8282/MyJSP/index.jsp?locale=en_US then I attach at the end of the below <a href ...> ...
1104 byte By
Andremona at 2007-11-27 10:02:44
Let's imagine such experiment:1. we have java-program, which receives mail from some POP3 server.this program simple uses something like this:....msgs = folder.getMessages(1,1);folder.fetch(msgs, fp);....2. Let's imagine, that our test POP3 server has bug: in some moment, when our ...
I'm using the below give code to send mail in Trukish language.MimeMessage msg = new MimeMessage(session);msg.setText(message, "utf-8", "html");msg.setFrom(new InternetAddress(from));Transport.send(msg);But my customer says that he gets sometime unreadable characters in mail. I'm not able to ...
I use to log all outgoing mails in a table and this code executes after successfull execution of Transport.send().Some time some of my customers complain that they are not receiving mails while we have logs in our table. Is there any way to get it confirmed that mail has been sent successfully ...
Hi,In my web J2EE application I want to set up a https connection for secure payments. I was wondering if I need to configure this in my tomcat configuration somewhere of in my servlet. Can someone tell me what to do? I am using tomcat 6.0.10Thanks,Jarno
this error is shown first loading the page please help mejavax.servlet.ServletException: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not foundorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)javax.servlet.http.HttpServlet.service(HttpServlet.java:802)when i make ...
1535 byte By
suse69a at 2007-11-27 10:03:53
I'm try to validate a form using struts Form with Validator, I want to validate the no input & maxlength. I've setup the configs but when I test the form it only shows "Validation Error(s), UserName is required."even if I've put a username.. why?part code:form jsp<html:javascript ...
1776 byte By
__Vadima at 2007-11-27 10:04:02
Hello, I have a strange problem displaying my nested JSF DataTable. From the docs I saw that this should work but strangly it doesn't.I would like to display a DataTable inside, (nested) an another.<h:dataTable var="doc" value="#{docs}" ...
HiIn my Java I have two BigDecimals that I pass to a JSP. THey both have a scale of 2, so I have x = 5.52 and y =1.22When I add them up in the JSP, the decimal places are lost e.g. <c:out value="${ x + y)"/>I get 6, instead of 6.74Please can someone tell my why I get this rounding ...
116 byte By
dy-xa at 2007-11-27 10:04:17
May I know how to create a forum using JSP?Any resources can provide a guide on that?Thank you.
Hi everyone, I'd really appreciate any help on this matter. I'm trying to build a GUI for a web service. I want the GUI to accept input from the user which is converted to a soap request which is then sent to a server to be processed, and a response is sent back. I want to format the response ...
i am using tomcat 6.0 am getting http 404 error this i my 1 web application. i have checked all web.xml server.xmlplz help
851 byte By
kurtu2a at 2007-11-27 10:04:33
Hi, this is a very general question and maybe stupid for most of you. I have my jsf/facelets web application and i use inside of this application some managed beans, which are session beans. I want to know how is it possible to reset this beans. I'm asking this question beacuse i have this ...
Hi AllCan any body tell how can I refresh component bind in dataTable ....I want to call binding method should be called every time ,once page callsI want to recall component binding method every time as component is being rendered .With Thanks and RegardsGunjan ...