Hi all,I tried to send a test mail by using the following codeimport javax.mail.*;import javax.mail.internet.*;import java.util.*;//import com.adventnet.nms.smtp.*;public class Main{String d_email = "x@gmail.com",d_password = "xxx",d_host = "smtp.gmail.com",d_port = "465",m_to = ...
<p>hi,</p><p>I am having file in jsp. but, its take long time to run in browser. so i need to run jsp file in linux command prompt, Its possible to run JSP in linux command prompt?. If there is yes mean, plz tell how we can do that...</p><p>I am waiting for ur reply......</p><p>Thank in advance</p>
<p>Hi,</p><p>I have a form with several commandLink buttons in there that are binded to that same method in the backing bean. How do I find out in the backing bean which button is clicked.</p><p>Thanks</p>
2409 byte By
Ehsan.Sa at 2007-11-27 11:18:02
[nobr]HelloI have a form that gets the name of a term and some other information and then gets different values that can be attached to this term for example different URLs. the form looks something like this:<form id="expertForm" method="post"><input type="hidden" name="sendAll" /><br ...
2466 byte By
olegkona at 2007-11-27 11:18:06
Hi,I am relatively new to Struts [using 1.3].I need to create a form using Struts tag libs with 2 HTML select's [lists],connected to 2 DB tables, say allUsers and Admins, which would allowto select Administrators from the list of AllUsers.So I will have 3 buttons: Add, Remove and Update.Add - to ...
<p>I use Oracle JDeveloper. But It is so much complex I think.</p><p>What about Sun Studio Creator or Eclipse ?</p>
<p>Which book of JSF is good for beginning?</p><p>Any Basic or Beginning Tutorial?</p>
1062 byte By
paul@sdna at 2007-11-27 11:18:28
The single navigation to another page I have in a project no longer works after switching from 1.1 to 1.2. I've checked and rechecked syntax differences and libraries, but run out of ideas to debug this further. Any thoughts would be appreciated.Using Sun RI 1.2 - 1.2_04-b16-p02 via WTP 2.0I can ...
1521 byte By
Rhea1978a at 2007-11-27 11:18:41
I have a JSP where I am trying to display the elements of a collection. This collection is set as as Request Attribute in the action class. This collection contains the result of a database query done using Toplink. I am getting the collection as Not Null in the JSp but I am not able to display its ...
<p>hi.. i am just starting to learn JSP </p><p>how can i call a specific jsp script <% %> on mouse button click?</p>
3429 byte By
teser2a at 2007-11-27 11:18:57
I have a JSP that calls a method from a Servlet and it gives me a NullPointerException error in my Tomcat 5.5 Container on Windows.Here is my Servlet Class:package data;import java.io.*;import java.text.*;import java.util.*;import javax.servlet.*;import javax.servlet.http.*;public class DateServlet ...
Hello everybody ..I just want to make a <h:form> with two command buttonsand a separate action for each one,,i know the way and i did it, but it just not working...although i'm sure of the mapping in the faces-config.xml..a NullPointerException and 500 exception is returned...so ... ...
Hi,I'm developing a web application using Struts framework.and my questions is, does the validate method int the ActionForm replaces the using javascript validation?If I can do all the validations in this validate method, so does that mean that i'm not going to use JS at ...
org.apache.jasper.JasperException: An exception occurred processing JSP page /proj/AdminLog.jsp at line 130127: Driver Driverrs3 = (Driver)Class.forName(MM_Conn_DRIVER).newInstance();128: Connection Connrs3 = DriverManager.getConnection(MM_Conn_STRING,MM_Conn_USERNAME,MM_Conn_PASSWORD);129: ...
When compiling on linux/tomcat machine I put the path to cos.jar in my javac command and get the following error:.../cos.jar: cannot execute binary fileI can compile servlets that do not require this jar file but cannot compile servlets that need it. Does anyone know how to resolve ...
1761 byte By
D@vida at 2007-11-27 11:19:49
Hi,I have quite a problem with the following.Imagine a scenario like storing an item with a name and a variable number of detailsThe Input Form would look like this:Name: (inputText)Detail1: (inputText)add another detail (as a command link)Clicking the command link should lead to this:Name: ...
Hi,heres my requirement:To open a pop-up window onclick of a link from the parent window. Parent window has a data-table and a column called 'StatementInfo' which shows the statementNumber as a h:commandLink. When i click on the statement number i want to show the details of that statement in the ...
343 byte By
jlexjoya at 2007-11-27 11:19:55
Hi all... Can anyone help with trying to scrape a hotmail address book based on the user-id and password given with the help of a java program.. I tried using HTML Unit to do this but the process seems too tedious.. and cant really figure out the hidden variables n stuff in the hotmail ...
533 byte By
Shebua at 2007-11-27 11:20:04
Hi..Friends I am very new to all t his J2EE, can any one what is the differnce between Eclipse, Web Tool Platform and Lomboz eclipse.. ? What should I use to develop J2EE applications that includes JSP, Servelets, Htmls etc... Currently when I use Lomboz eclipse 3.2 I am not getting support writing ...
789 byte By
jimmy6a at 2007-11-27 11:20:19
In the validation phase, when i use valueBinding.getExpressionString(), It will give me "#{backingBean[property]}". But i want the original EL of jsf. Thus, how to get it back?<ui:composition><h:outputLabel for="#{property}" value="#{label}" /><h:panelGroup><t:inputSecret ...
Hi all,I'm using tomcat 4.1...I created the rmitunneler.war file which contains one servlet and configured the server.xml as the following:<Context path="/rmitunneler" docBase="/opt/uas/rmitunneler"crossContext="false"debug="0"reloadable="true" allowLinking="true"caseSensitive="true" />[/bI ...
9417 byte By
Meepa at 2007-11-27 11:20:27
The Action class should forward to the error.jsp after getting an error message. I purposely turned off the mySQL to get errors but it looks like it's not working for some reason. I looked at every code, it looks fine and should be working. I think it might be related to ActionMessages since I'm ...
Hi all,I have a deployed a sample JSF application in tomcat 6.0. It works fine. But when i try to port the same application to weblogic 9 it is not working, I am getting the following error when i try to access the jsf(jsp)weblogic.servlet.jsp.CompilationException: Failed to compile JSP ...
497 byte By
yael800a at 2007-11-27 11:20:42
HI,I'm new in server side.I have programed in the client side with swing 7 months.I'll start a new job in these topic (I will learn @ job), but I want to start to learn myselp.Al I know is it will be with J2EE & serverside.I don't used J2EE so from wher should I need to ...
1208 byte By
xoxotaa at 2007-11-27 11:21:10
I don't even know if I can explain what I want to do here, but here goes: I have a generic abstract "Task" class with common properties (name, description, startDate, endDate, isEnabled, owner), and a property called "editorAction" that specified the JSF action to call when editing this Task.There ...
1225 byte By
anw1652a at 2007-11-27 11:21:13
Could someone please tell me how cookies are scoped and managed? I have a web application, implemented with Tomcat, and in some parts of the application I can get cookies, and in others not. The header HOST value is the same (I've printed it out), so I don't know how to get at these cookies.What ...
2500 byte By
gsrya at 2007-11-27 11:21:34
[nobr]Hi,I am trying to add the values from left to right and remove from right to left. I need somebody's help as to how to move values from left to right box and right to left.If I select an item in the left and say add, the item has to be removed from the left box and added to the rigtht box ...
651 byte By
rcd27a at 2007-11-27 11:22:00
I install a Tomcat 6. When I run my application, the runtime exceptions debug on Tomcat server log did show any line number. It make me difficult to find the bug.Can anyone tell me why the exception debug info don't show line number instead od "Unknown Source" when I use Tomcat 6? The debug ...
I have wriiten a simple code for sending mail.It works fine, but doesn't give any notification i.e. whether mail is deleivered or not ,wrong value for receiptant.I guess Transport event class can be used for this pusposeI want sample code for JavaMail Events.Please confirm whether i am correct or ...
Hello everyone, greetings this monday morningI've been working on a web application, and run into a problem which i don't really know where to start with, so i figured i would ask all you veterans (first real job for me) for some advice/helpthe situation:our web app has a pretty pasic MVC ...
Hi allIam working on one secured web site. My site pages are caching in browser.we can see the pages view-->Explorer Bar-->History in IE. It will give all the pages we have visited. can any one please tell me how to avoid storing these pages in browser. I already tried following code in ...
118 byte By
Suri.ya at 2007-11-27 11:22:56
<p>How to retrive Hidden Values from a JSP into an action ?</p><p>request.getParameter() is returning a null value</p>
<p>pls any body explains what is idempotent and non idempotent method in servets, and y ther r called as so?</p>
182 byte By
Adeea at 2007-11-27 11:23:38
<p>Hi , i have a web service up and running. But the problem is when ever i add any operation or change in parameters it doesn't update itself. Any one has idea.?</p><p>regards,</p>
Hi all,I have a downloadservlet where I need to check permission. Therefore I retrieve a backing bean by creating a FacesContext and get the bean from it like this:FacesContext ctx = this.getFacesContext(request, response);VariableResolver vr = ...
I'm new to Java's webtechnology..I configurate tomcat in this way..For example:I place the tomcat related files hereD:\PROJECT\APPLICATION\TEST\TomcatServlet:D:\PROJECT\APPLICATION\TEST\WEB-INF\classesJSP:D:\PROJECT\APPLICATION\TEST\jspAfter placing them i run the application...It works ...
Hello every body .I am newer in jsf.I have used the following segment in my jsf page .Now I want to read value from intl properties file in place of "*********************".How i will do it?plz help me Thanks in advance.<t:panelGrid id="guestUserIstallationhelpnotesGrid" columns="1" width="100%" ...
1172 byte By
eegaia at 2007-11-27 11:23:49
I have a dataTable which has 20 columns. So the width of the dataTable is larger than screen width. I am also using a t:inputCalendar in 15th column. To select a calendar value in a row, I need to scroll horizontally. Because of this (horizontal scrolling), on click of the calendar image icon, the ...
1533 byte By
pvwa at 2007-11-27 11:23:50
hi,here is my code:public void doGet (HttpServletRequest _req, HttpServletResponse _res)throws ServletException, IOException {/* Refresh session attributes */session = _req.getSession();session.removeAttribute("loginError");session.removeAttribute("submitError");String action_get = ...
i made different types of reports in jsp.i want to print the particular report which is opened.i also have a print button,i can select different type of users from drop down list to see the report of selected user.report contain which different types of activities.i have to print opened report.how ...
Hello I have created a component in C++ using COM. I need to use this component in javascript. But I am getting an error message as shown below: Error:Automation Server cannot create objectCode Snapshot <html><head><meta http-equiv="Content-Type"content="text/html; ...
hi all, I have a jsp page where in i have a selection drop down menu box.... based on the selection of the drop down menu i should call the related servlet.---select the servlet to be called<select name="hello"><option value="hello world"> Hello World<option value="hello java">Hello ...
<p>Hi,</p><p>I am using Tabbed panes in JSF. I want to display the second tab and not the first tab when the page refreshes. How can I do that?</p><p>Thanks.</p>
Hi allI am trying to pass an object from a tag to a servlet. i did the following,1. In the tag class, i put:pageContext.getRequest().setAttribute("QList", list);The above Tag will go to a servlet, i need to read the above request attribute in the servlet, how can i do this?, i tried ...
742 byte By
ekrisjoa at 2007-11-27 11:24:12
Hi,I saw this statement on the Java EE service engine in relation to Glassfish: "In-process communication between components of application server and JBI components to increase request processing speed."What does this mean exactly, if I let two EJB communicate with eachother over the NMR as a ...
392 byte By
relnaa at 2007-11-27 11:24:21
in some website if the login fails a message"login failed" is displayed on the login page itself.........in this case should we create a copy of the login page with this message displayed on it and redirect the user to the new page?means we have to duplicate this page and add a message in it....is ...
1771 byte By
jayson17a at 2007-11-27 11:24:22
Im creating a cms page, and what i want to do is to delete from my database(on button click) all userid that are checked in the list of userid<%//registering the driver Class.forName("org.gjt.mm.mysql.Driver").newInstance(); //defining URL of database serverString url = ...
Hello,I want to load an image whose name or path contains special character such as accents (a french name). So that generates an exception. For exemple for an image named caf.jpeg I obtain this message :java.io.FileNotFoundException: /media/disk/images/caf.jpeg (No such file or directory)Can you ...
Hi there,I want to use a jsp:include in home.jsp to include a servlet, NavigationServlet. NavigationServlet queries a database, creates a bean and stores the bean in the request before forwarding to sidebar.jsp. sidebar.jsp uses the bean stored in the request to output some data.Is this possible, ...
<p>hi,</p><p> i am using pagination in my application. But while i paginate it refresh the entire page insist of only datatable so that it take too much time for me to paginate. is there any way to optimize the pagination?</p><p>Regards,</p><p>Ananth.P</p>