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.
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: ...
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 ...
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 ...
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 ...
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: ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
<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 ...
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 = ...
Can I check whether an email has been read?
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 ...
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 ...
dear everyone and all,I had looked for some reference and had added these code to the ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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?
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}" ...
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 ...
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
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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" ...
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 ...
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 ...
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 ...
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 ...
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()) { ...