if else statements in JSF

195 byte By KY8a at 2007-11-27 9:49:48
How would I do this in JSF?I have radio A and radio B.If radio A is selected, then table A is displayelse if radio B is selected, then table B is displayThanks.

classnotfound when POP3s account connected to before IMAPs account

4305 byte By zparticlea at 2007-11-27 9:49:49
I have implemented the DummySSLSocketFactory stuff for handling unsinged certs on POP3s ser vers and it works fine, However is I connect to one of these servers before connecting to an IMAPs server I get the following error:javax.mail.MessagingException: java.lang.ClassNotFoundException: ...

how to hightlight a row

1659 byte By SubhaMania at 2007-11-27 9:49:58
Before i used to have a single row for a record since i dinot have enough space to display two more columns(data) . i am displaying a one record in two rowseg. name1 ,name2,....name4,name5But when i move my over the record i have to hightlight both the rows. I would appreciate If you could ...

hyperlink parameter is not workin

3487 byte By rameshra at 2007-11-27 9:51:02
Hi all,The following is my sample ajax testing code . In the below code the "onchange" event of combobox is working and the ajax function is getting executed i.e.; the value of text box is set. But the same doesn't work with hyperlink.Also the code works good with MAC and not with windows. Can ...

RequestDispatcher.forward goes to an infinite loop

1084 byte By venkyfunkya at 2007-11-27 9:51:13
Hey All,I am trying to redirect my jsp page to a different page. Am using the forward function of the RequestDispatcher, but for some reason its entering an infinite loop. The only reason that I could site is the page re-calling itself. But i checked to see the pat of the destination jsp being ...

about javamail

5904 byte By abhinay_31a at 2007-11-27 9:51:24
can anyone tell me what is the meaning of following error/takeaction.dqlhalfleave= 0.5 Error Message: Operation not allowed after ResultSet closed Cause: null Error code: 0 Error state: S1000 java.sql.SQLException: Operation not allowed after ResultSet closed Error Message: Error during query: ...

Tags Causing Exceptions ?

380 byte By Jasdeep.Singha at 2007-11-27 9:51:26
Hi all , I am using Struts tags + jstl + display tags in my application....It was working fine before , its giving following exception from last few days .java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;application is ...

How to use rowspan with display:column tag

193 byte By Akshua at 2007-11-27 9:51:31
Folks,For displaying table in my project I am using display:table tag. Now in one of the column i need to use row span attribute. How can i use that. Waiting for the reply.

Javascript+radio button+maintain value after submit

1724 byte By ali_hammada at 2007-11-27 9:51:40
HiI have three radion buttons on a page, when a radio button is selected the page is resubmitted.Problem:First Approach-I save the value of radio button( in onClick() function) to a global variable and then submit the page like this<script>var val = ' '; // The global variablefunction ...

setting the value of a textfield inside dataTable

895 byte By technocrata at 2007-11-27 9:51:46
Hi AllI have a dataTable which contains one textField and a commandLink in each row.When the commandLink is clicked a popup containing list of values is opened.When the user selects a value from that popup I have to set it to the adjacent textfield.This behaviour is working fine outside the ...

JSTL-Struts problem

4147 byte By Javielloa at 2007-11-27 9:52:22
Hello everybody!!I'm developing an application with struts and JSTL tags. Everything is OK but when I put a cancel button by using JSTL tags in my *.jsp (<html:cancel>Cancel</html:cancel>) and I clik it, all I get is the ...

Model Updates not effective when using immediate="true"

538 byte By zzza at 2007-11-27 9:52:23
Hi, is it possible to populate some form fields from an actionListener method when using immediate="true". I want to select an ID from a dataTable row and load the user with this id into the form. I need immediate="true" to skip validation. All works well, but when i set the properties of the ...

request.getParameter("reportvalue") returns null

709 byte By sivakaminathana at 2007-11-27 9:52:29
<html:form action="/hr.do" enctype="multipart/form-data"><input type=hidden name="reportvalue" value="1">request.getParameter("reportvalue") returns null value in same jsp page when form was submitted with enctype="multipart/form-data" in struts applicationin action execute method i ...

About pop3

666 byte By youhaodiyia at 2007-11-27 9:52:33
I use these program to get the email from my email server:Properties props = System.getProperties(); Session session=Session.getDefaultInstance(props,null);Store store = session.getStore("pop3");store.connect(email_host,username,password);Folder folder = ...

How can i get only non-read email?

50 byte By youhaodiyia at 2007-11-27 9:52:38
Can I check whether an email has been read?

Run a JSP file from within a servlet, then get the result into a string?

4390 byte By d11wtqa at 2007-11-27 9:52:48
I'm trying to create a very simple MVC structure with a composite view. Right now it's just has to be a simple:--HEADER (common on all pages)CONTENT (dynamic)FOOTER (common)-I've got a FrontController class which currently loads the layout with a header and footer, but I'm struggling to see ...

IE Browser back button goes to two pages back

627 byte By krajnisha at 2007-11-27 9:52:49
I am not using JSPs, using a servlet ABSServlet to display the search page, after entering the search criteris I'm displaying a report page. The report page has a button 'Save As Excel' which open the report in the Excel form. When I click on this button browser asks 'Open' or 'Save'. I ...

always getting redirected to error page?

1614 byte By senthil_yogaa at 2007-11-27 9:52:56
dear everyone and all,I had looked for some reference and had added these code to the ...

How to access message resources in custom component

387 byte By kfaziusa at 2007-11-27 9:53:02
Hi all,I'm trying to build custom JSF navigation component. In my component class I call external EJB, and get navigation structure from it. Now menu can render menu almost correctly, but I have one problem: I have menu items labels as keys for internationalized messages. How can I print ...

JSF managed bean onload problem

759 byte By termia at 2007-11-27 9:53:07
In my application when the managed beans are initialized I use the constructor of a managed bean to load data from the data base and i want to use it in other managed beans.I dont want to fetch the data again as i am using the same data in other pages. But when i reference the managed ...

How to send a HTMl content via email

307 byte By VenkataRajesha at 2007-11-27 9:53:12
Hi all,I want to send a html content via email. A html page is having an email link. On clicking the link it should prompt for to address and from address and should send what ever the content in that HTML page as the mail body. Can anybody help me out!!!! Its Urgent...Thank ...

file Uploading

836 byte By RAMJANEa at 2007-11-27 9:53:21
Hi All,I am uploading file using the following codeimport java.io.*;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.ServletInputStream;public class FileUploadBean {public void doUpload(HttpServletRequest request) throwsIOException ...

what is the solution of this problem

2469 byte By muditvaidyaa at 2007-11-27 9:53:30
Hello, I get the following error when the search.jsp is called.Error: 500Location: /examples/jsp/pro/search.jspInternal Servlet Error:org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been ...

Mail Server

397 byte By Abbskoola at 2007-11-27 9:53:38
Hi Iam Shishir ,I need to develop an application that sends emails to various email addresses.Is it necessary to install a SMTP mail srever?If so please tell me, where i can get it?I f it is not necessary to install the mail server, then please tell me how to achieve the same objective ?I am ...

How can we contrrol the focus of an form Object from the Managed bean?

393 byte By giri12a at 2007-11-27 9:53:41
I am getting the following script error...Can't move the focus to the control because it is invisible or not enabled or of the type that does not accept the focus...I have a button whose action is mapped to a function in the Managed bean.In the managed beanI am making the button Invisible ...

Javascript: accessing a form array field

762 byte By talk2keya at 2007-11-27 9:53:54
Hi,I have a form field as follows:<input type="hidden" name="name1" value="value1" /><input type="hidden" name="name1" value="value2" /><input type="hidden" name="name1" value="value3" />When I submit the request I get the values for "name1" parameter as an array. Before ...

Add new entry of Table to A to table B

444 byte By ASH_2007a at 2007-11-27 9:53:55
Hii, I have 2 tables, say A and B. Table B stores the exact same data as table A. Whenever there is a new entry in tale A, I also want to add that value to table B. I have a Batch JOb in Iava and I want to write this code in it.Can anybody please help me,I know it's complicated but..plz help ...

cleaner HTML with JSF-Facelets

183 byte By johnpeeba at 2007-11-27 9:53:58
I seem to recall hearing of some type of extension or Servlet Filter or something which cleans up the HTML that Facelets or JSF renders. Does anyone know of anything like this?

Scope in JSP

1603 byte By joebassila at 2007-11-27 9:54:00
Hi All,I'm trying to build a data structure ArrayList [Hashtables] on the top of my jsp page (i.e. before the <html> tag> and iterate through that structure in my page <body>. However the ArrayList is not in scope. Can someone explain to me how I should declare and use the ...

Passivation/Activation extended entitymanager

245 byte By p2auljra at 2007-11-27 9:54:15
If I have a stateful session bean that has been passivated and uses an extended entitymanager and has a reference to a managed entity, will the managed entity be detached from the extended entitymanager when the session bean is activated?

How to display menus in panelNavigation2 component

3907 byte By Manoj.s.Jaina at 2007-11-27 9:54:20
Hi allI've code for displaying navigation menu on left side. it's working without any error but doesn't display any label/string on the page. What could be missing in my code?pls help.I've code like <t:panelNavigation2 id="menu1" layout="list" binding="#{navigationMenuBean.panelMenu}" ...

Servlet to read search results from other webpages.

639 byte By arijit_dattaa at 2007-11-27 9:54:25
Hi guys, I am a beginner with servlets so I was hoping if you could help me out. I have to design a servlet which will take lots of arguments from users and when the "submit" button is clicked it will pass those arguments to a search engine on the net ( http://www.biblio.com/isbn/ ). and when ...

test jsf pages with unit test

144 byte By sivasaia at 2007-11-27 9:54:31
hi,is it any example for jsf forms to test with unit test.like command action,value change listner.thankssiva

link from servlet to servlet

317 byte By morningJavaa at 2007-11-27 9:54:32
I have a servlet that writes html reports. I have another servlet that creates a PDF file of the report. in the html servlet i have a <a href=""></a> link that I want to use to call the PDF servlet. My question is what is the path I should be using to link from one servlet to ...

In my action method I add an error to the FacesContext, but jsf just ignore

386 byte By jimmy6a at 2007-11-27 9:54:46
In my action method I add an error to the FacesContext, but jsf just ignores it. In the previous version of appfuse jsf integration, it will not use jsf h:message? but just now i download the latest version of appfuse. It uses back the jsf default error mechanism. Is it the latest jsf solve ...

How to send 20 mail?

144 byte By boske3a at 2007-11-27 9:55:08
Hi i got one problemI need to send about 20 mails with attachments in the same time.Has anyone has idea how to do it.Thanks

When transaction starts and finally ?

1268 byte By Solraca at 2007-11-27 9:55:24
Hi, i have a questiom from container transaction.If i have a servlet-->businessdelegate-->sessionejb-->entitybean-->databaseWho begin a transaction ? and when the same finally ?/********* Servlet *********/...call... businesDelagate.actions(XXX);/********* BusinessDelegate ...

HELP: jsp cookie problem

1525 byte By sleggea at 2007-11-27 9:55:31
Hi,1) I have a page (index.jsp) that looks for a cookie, if the cookie isn't there it redirects to a login page.2) The login page, on submit, calls a servlet that sets the cookie (when usr and pwd are valid). Then the servlet redirects to the original page (index.jsp).3)The problem is, when ...

how to go to the previous page in struts

474 byte By SubhaMania at 2007-11-27 9:55:35
I have a login page through this page i can navigate to any page . I have a invoice page which can come from two or three pages. in invoice page i have a back button . If i press this back button it should go to the page where i came from(previous page).and i have other buttons like Reprint and ...

set method is not called for the datatable items

1629 byte By vpalkondaa at 2007-11-27 9:55:55
I have a strange problem. I have a page with a checkbox and a table.In the table has two columns<code><%@ taglib uri=" http://java.sun.com/jsf/core" prefix="f" %><%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %><h:form id="ips-form"><h:selectBooleanCheckbox ...

XSL comparison ignore case

168 byte By Sheni_a at 2007-11-27 9:56:20
Hi,How to do string comparison in XSL by ignoring case.test="($pr= 'yes')I want this conditon return true even if pr is Yes or YES or YEs.

Action on hyperlink keeps getting called when doing other actions

6242 byte By Djaruma at 2007-11-27 9:56:35
Hello.I have a jsf application created mostly with visual web pack, but with some custom code added. I have a table where one of the columns contains a hyperlink, which I created a custom action for. This action gets an HttpServletResponse and write urls to it with content type ...

Prob in populating the current date in drop down

624 byte By aniketh_parmara at 2007-11-27 9:56:36
I want to get the current date into a drop down list.There are three drop down.1.Month 2. Day 3. Year.If anytime the page loads there should be current date in the drop down list. and if any one wants to change he can change the date accordingly.Can any one help me in sorting out this prob.I ...

JSP page presentation

312 byte By deroka at 2007-11-27 9:56:37
Hi, I am working in a jsp page,and I want to know how can I improve the presentation of the page, make it more better looking for the users that are going to use it.cause right now I just have it with a plain .html and <BODY BGCOLOR>.what can i ...

How to get itemValue of selected radio button in action of commandButton ?

2005 byte By learningjava5a at 2007-11-27 9:56:44
I am new to JSFs and still learning the basics. <html> <head><title>Search by Catagory</title></head> <body><h:form> <h:selectOneRadio id = "searchCatagory" layout = "pageDirection" value = "#{SearchCatagory.searchCatagoryPage}" required = "true" ...

compile Servlet

305 byte By jeyrama at 2007-11-27 9:56:58
when i try to compile servlet i got error message. it can't be identify servlet classes. why is that? some books mention about class path to fix that problem. but i can't understand.can any one explain little bit deep?* i am using windows xp and tomcat ...

Error deploying web application under bundled tomcat and standalone tomcat

896 byte By mslinuza at 2007-11-27 9:56:59
This may be an old problem obviously.But, I have no idea to solve the problem anyway.Everytime I try to deploy an application built wiht netbeans visual webpack, I'm getting this error on the log :SEVERE: Exception starting filter UploadFilterjava.security.AccessControlException: access denied ...

reading from a file in servlets

590 byte By vvna at 2007-11-27 9:57:02
i have a piece of code in a java file as:...........= someFunc("newfile.xml");it has to read data from that newfile.xml.but when i call this java file from a servlet, i get an error :java.io.FileNotFoundException: /opt/netbeans-5.5/enterprise3/apache-tomcat-5.5.17/bin/defaultXmlData.xml (No ...

reading from a file in servlets

590 byte By vvna at 2007-11-27 9:57:03
i have a piece of code in a java file as:...........= someFunc("newfile.xml");it has to read data from that newfile.xml.but when i call this java file from a servlet, i get an error :java.io.FileNotFoundException: /opt/netbeans-5.5/enterprise3/apache-tomcat-5.5.17/bin/defaultXmlData.xml (No ...

Result Set

940 byte By muditvaidyaa at 2007-11-27 9:57:09
Hi,This code is displaying a single row of the result set multiple times. Can u please tell me why this is happening ? <%while (rsnew.next()) { ...