TLS Authentication

3133 byte By Devibalana at 2007-11-27 11:17:38
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 = ...

run JSP file in Linux command prompt

299 byte By seetharampla at 2007-11-27 11:17:47
<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>

Find in backing bean which commandLink is clicked

205 byte By whitesox12a at 2007-11-27 11:17:48
<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>

Accessing javabeans from a form within a form multiply times?

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

Using Struts tag libs

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

JSF IDE

115 byte By asif_need_javaa at 2007-11-27 11:18:08
<p>I use Oracle JDeveloper. But It is so much complex I think.</p><p>What about Sun Studio Creator or Eclipse ?</p>

JSF Books or Tutorial

86 byte By asif_need_javaa at 2007-11-27 11:18:10
<p>Which book of JSF is good for beginning?</p><p>Any Basic or Beginning Tutorial?</p>

debug ideas for navigation issue?

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

How to display elements of a collection in JSP using Core Tag Library

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

How to call a specific JSP script?

119 byte By jayson17a at 2007-11-27 11:18:56
<p>hi.. i am just starting to learn JSP </p><p>how can i call a specific jsp script <% %> on mouse button click?</p>

Servlet method in JSP outputs NullPointerException

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

how to <h:form> with two command button

338 byte By QussayNajjara at 2007-11-27 11:19:13
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 ... ...

validating data in client side

306 byte By natoskiiia at 2007-11-27 11:19:38
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 ...

problem on delete statement in JSP

723 byte By jayson17a at 2007-11-27 11:19:45
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: ...

error when trying to compile with cos.jar

316 byte By kipperdoga at 2007-11-27 11:19:46
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 ...

Variable number of Input fields

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

Working with Pop-Up windows

936 byte By dilip_jsfa at 2007-11-27 11:19:51
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 ...

Java Code to scrape a hotmail address book

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

What is Eclipse, WTP and Lomboz.. ?

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

i want original EL of #{backingBean[property]}

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

WAR file is not getting extracted even though server.xml is configured

609 byte By Lior_Levya at 2007-11-27 11:20:25
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 ...

Forwarding to error.jsp

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

Porting JSF application from tomcat 6 to weblogic 9

759 byte By sudheerkollaraa at 2007-11-27 11:20:29
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 ...

Hope this is the place to ask about programing in server side

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

How to subclass a managed bean

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

Where do all the cookies go?

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

Adding values from left to right and right to left

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

Debug information "Unknown Source" on Tomcat 6 server log

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

want sample code for JavaMail Events

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

multithreading doesnt behave itself in tomcat

1799 byte By Vectorizeda at 2007-11-27 11:22:48
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 ...

cache in browser history

718 byte By anand_reda at 2007-11-27 11:22:49
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 ...

retrive hidden values

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>

What is idempotent in servlet

112 byte By ragavarnan_call_screena at 2007-11-27 11:22:59
<p>pls any body explains what is idempotent and non idempotent method in servets, and y ther r called as so?</p>

WebService Doesn't Update ItSelf

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>

Retrieve JSF session from a servlet

711 byte By tombatorea at 2007-11-27 11:23:45
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 = ...

Tomcat Configuration

653 byte By ram-javaa at 2007-11-27 11:23:47
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 ...

HTML tag problem in jsf page

920 byte By monowaralama at 2007-11-27 11:23:48
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%" ...

t:inputCalendar: problem in positioning popup calendar

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

session expire(not exist)

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

how to print my web application?

404 byte By FaiyazAziza at 2007-11-27 11:23:51
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 ...

Creating a COM object in JavaScript

1080 byte By DevSenthila at 2007-11-27 11:23:52
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; ...

calling servlet based on the drop down menu selection

767 byte By ravishankera at 2007-11-27 11:23:54
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 ...

JSF TAB PROBLEM

161 byte By fandi_yacinea at 2007-11-27 11:23:56
<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>

Passing Objects

562 byte By jotnartaa at 2007-11-27 11:24:05
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 ...

Java EE service engine optimization

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

printing a message on top of the login page....

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

Access a javascript variable inside a JSP block?

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

load image with ImageIcon component

373 byte By WebServicea at 2007-11-27 11:24:33
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 ...

jsp:include - including a servlet problem

780 byte By bigadjayea at 2007-11-27 11:24:42
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, ...

optimzing pagination in JSF

256 byte By Ananth.duraia at 2007-11-27 11:24:47
<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>