facing problem in XSL FO block element and choose element

1125 byte By lingamaneni04a at 2007-11-27 8:14:26
I have a set of data which is dynamic.i.e the no. of rows is unpredictable. So I want to use XSL <for-each> element . Also I want to put conditions. My code is like:<xsl:for-each select="parent::EC-REPORT/TITLE-HEADER"><xsl:choose><xsl:when ...

getting the session id?

40 byte By Subrat.Ranjan.Raya at 2007-11-27 8:14:31
how to get the session id in JSF?

dont wanaa show request paramets in url

320 byte By r_h_t_d_ma at 2007-11-27 8:14:57
hii m new to this technology and have developed and deployed Hello example in the sun tutorial successfully :)now my issue is i dont want to show the request parameter name / value pair in the response.jsp url ... i.e (...response.jsp?name=rhtdm)any help regarding this is highly ...

How can I retrive mail from servers

202 byte By kripa_ostwala at 2007-11-27 8:15:00
Hello Sir/madam,I want to develop an application,which fetch all mails from my all mail accounts & send me in my local mail account.Would you help me by suggessions?Plese

Problem writing into several database tables using one submit form

946 byte By Roland44a at 2007-11-27 8:15:06
Hi,I'm totally new in programming using JDeveloper/OracleVersion of JD is 10.1.3.2.0Problem:I have database with tables User,Project,Proj_memberOn web application user enters it's email for user table and project name for project table.After button click new row should be put into all 3 ...

JSF Redirection Problem

398 byte By mtzo81a at 2007-11-27 8:15:11
i used the following code to redirect but sometime, it did not succeed.what's wrong the code?FacesContext context = FacesContext.getCurrentInstance();HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();response.sendRedirect(url);is there any other ...

JSF equivalent to <td> and <tr>

66 byte By veerjaa at 2007-11-27 8:15:16
what are the JSF components for html td and trThanks

Session doesnt expire after window is closed.

523 byte By rahul.aggarwala at 2007-11-27 8:15:18
Hi All,I have facing this issue for quite some time now.1. I login into my application using Firefox. User now can view below the line pages.2. Open another window of firefox.3. Close the window open in the first step.4. Hit the application URL in the second firefox window and u find the user ...

How to check the value of a variable

566 byte By vatora at 2007-11-27 8:15:26
I'm making a webapplication and I find it really hard to check the value of the variables? What is the best way to do this? I've tried using the debugger, but for some reason I can't get it to work properly. How do the professionals do it? Do you write the value to the browser? Or do you ...

server side form validation

557 byte By DhipuJoea at 2007-11-27 8:15:30
I have a page form.jsp in which i use <jsp:useBean id="FormValues" class="com.bean.FormValuesStore" scope="session"/><jsp:setProperty name="FormValues" property="*"/>when I submit thispage it goes to formSubmit.jsp , there i check the form entries using bean , ...

Session already invalidated error

1254 byte By bunty4ua at 2007-11-27 8:15:32
hi everybody i am devloping one application in which i have written following jsp file usermater.jsp<%@page language="java" session="true"%><%@include file="common.jsp" %>.............<%String uerrorMessage=(String)session.getAttribute("upasserrorMessage"); %>......common.jsp ...

java.lang.ClassCastException

497 byte By chahalkhushwindera at 2007-11-27 8:15:33
Respected SirI am getting the java.lang.ClassCastException in the following while comparing the value id.equals() in th follwoing if.Please suggest some solution.<%if (session.getAttribute("stoneId") != null){String id = (String) session.getAttribute("stoneId"); if ...

inserting facelets with my own UIOutput component?

1526 byte By MrFPGa at 2007-11-27 8:16:01
I am using Jboss 4.0.5, Seam 1.2.1 and JSF 1.1.I am developing my own JSF UI component that should take a collection as a parameter and iterate over the collection and, based on a String, insert a div element and then the content of a facelets inside the element. I was thinking of using the ...

using iframe in JSF

313 byte By klsa at 2007-11-27 8:16:07
hi...i have a problem, can anyone help me with my iframe problem..i try to use two iframes, one for the menu n the other for the selected page...but what i got only one frame showing, the other frame disappear from the presentation..can anyone give solution?i also have tried to use ...

XPath processing with namespaces does not work. Please review my code..

3167 byte By Ziga at 2007-11-27 8:16:09
Dear all,I am working on with the IMS Group's Enterprise XML standard ( http://www.imsproject.org/enterprise/) and need to retrieve member information using XPath.After significant fault finding, I have narrowed down the problem to the XML file containing multiple namespaces in the root ...

request against session context

537 byte By javosoa at 2007-11-27 8:16:12
Hello!I know that it is recommended to put your backing beans in the request instead of the session context.In case you need i.e. a String to cross two request you could use a hidden field.But I have now a complex bean (which has domain objects as attributes ), which has to cross two or three ...

confused with request.getParameter()

7535 byte By hardcodera at 2007-11-27 8:16:20
i have this jsp page wich have a hidden field names 'jsEnabled' that has a value of "false". if the javascript is enabled, before it is submitted i will change the value into "true" so that the servlet will know if the form is validated or not. the problem is it's not working at all. here is ...

how to upload a file in servlet ?

552 byte By kannankallia at 2007-11-27 8:16:41
hi i am new to this concept ..............i need upload a file in mysql database .........i created a form ... <html><form method="post" action=" http://localhost:8080/examples/servlet/UploadFile" enctype="multipart/form-data">File<input type="file" name="upload"/><input ...

dataTable single row coloumn display as two rows..

437 byte By mraja at 2007-11-27 8:16:50
I need to display dataTable single Row columns in 2 rows.For Eg :dataTable each rows has 4 columns...by defalut it displays col1 Col2 Col3 Col4.But i need to displaysrow1 :Col1Col2 Col3Col4row2 :Col1Col2Col3 Col4I tried with inner and outer table combination but still having problems.Does ...

LINK TO JSP PAGE

390 byte By SOMA_INDIAa at 2007-11-27 8:16:59
HI!All I am displaying data in a html table and want to link TEST2.jsp with the field CN_NO. pls. give me the code.rs is the RESULTSET.while(rs.next()){ out.println("<TR><TD>" +rs.getString("CN_NO")+"<TD>"+rs.getString("DEST_FROM")+"<TD>" +rs.getString ...

security constraint.

747 byte By spear_arrowa at 2007-11-27 8:17:07
in my web.xml i have something like:<security-constraint><display-name>Example Security Constraint</display-name><web-resource-collection> <web-resource-name>Protected Area</web-resource-name> <url-pattern>/*</url-pattern>I am using FORM based ...

Upload a file in JSF 1.2 other than myfaces

137 byte By PieterPareita at 2007-11-27 8:17:41
Hi,Somebody knows how to upload a file in JSF1.2 without using the myfaces libraries.Thanks in advance,Pieter

preview image

317 byte By gudi_mahesha at 2007-11-27 8:17:44
hi all of you,I am new to jsp and javascript . I wanted to know that how to load the image in the image tag after selecting from the file dialog and preview in the same page using javascript or jsp. If anybody has the code plz forward it to me.Its urgent...........Thank ...

Human readable descriptions on entity fields

758 byte By codebooka at 2007-11-27 8:17:46
My current project is using Hibernate/JPA as our DB access technology. We have all of our entities described using JPA annotations. What we need now is a way to add a human-readable description String to each @Column and @Table. We want to be able to use these in the code as tooltips as well as ...

updating elements in a collection

1529 byte By applea at 2007-11-27 8:17:50
Hey. I'm trying to update the objects in a collection that is displayed on a jsp. Everything loads fine, the collection displayed using logic:iterate, but the on of the fields in each record is a checkbox and on form submit, my changes to the checkbox is not on the form! Anyone know how I can ...

How can I "read" value from a Bean into a javascript variable?

1864 byte By fab3a at 2007-11-27 8:17:53
Hello,I have a short javascript to dynamicly display the results matches the keywork user typed in. <head><script type="text/javascript">var list = new Array();list[0] = "Abc";list[1] = "abbbc";list[2] = "rasff";list[3] = "raff";list[4] = "aalex";list[5] = "AaLex";list[6] = ...

Using JSF and tiles

893 byte By Shacharla at 2007-11-27 8:17:54
Hi Friends,I'm trying to combine JSF and tiles as follows:Template file:<f:subview id="content"><tiles:insert attribute="content" flush="false"/></f:subview>content file:<tiles:insert definition="userSpecific"><tiles:put name="content" type="string" ...

Problems with a struts app

927 byte By javaExceptiona at 2007-11-27 8:18:20
Hi,I have done this simple login web app with Struts, with LoginAction, LoginForm and three JSP pages, login.jsp, success.jsp and failure.jsp. It's from a tutorial found here: http://www.roseindia.net/struts/struts-login-form.shtmlI have this in my ...

How to set up to retrieve email from different users

2230 byte By Pleisurea at 2007-11-27 8:18:21
Hi,I have the following problem:I have written a Java application for some video/postproduction work.This application is using Java webstart, so different users are able to use the application via internet. Now I want the users to be able to send the content of a JTextField by e-mail ...

af:selectBooleanCheckbox - Show focus on the checkboxes when tabbing

441 byte By tracyta at 2007-11-27 8:18:46
Hi,I have several af:selectBooleanCheckbox components on one form and would like to see that a checkbox are on focused as I tab through the fields. Firefox does show that the checkboxes are on fucused but IE does not. Does anyone know how get this to work on IE?h:selectBooleanCheckbox gives the ...

Problem in Displaying JSTL Tag, in Browser received ?

674 byte By aMiTa at 2007-11-27 8:19:10
Hi All,I am creating properties and in the properties file, there is one tag,support.mainapplication.title = Home Page - LoginNow In JSP add following tab lib<%@ taglib uri=" http://java.sun.com/jstl/fmt" prefix="fmt" %>and now I am use the tag like <fmt:message ...

Spring factory-method and factory-bean

6071 byte By hemanthjavaa at 2007-11-27 8:19:11
I have a singleton class which returns a Connection object by getDbConnection() method. I have created the bean of this class and declared getDbConnection() as a factory method. How do i access this factory method from other classes. No doubt I have created a second bean which uses the factory ...

dataTable row selection without radiobutton/checkbox/commandlink

353 byte By skaszyk1a at 2007-11-27 8:19:17
I'd like to be able to get the user's row selection without requiring them to click on a radio button or link but cannot figure out how. All the row selection topics in this forum have great solutions but require adding a selection column containing a commandlink or radiobutton which is ...

About MD5 encryption...

137 byte By Eddie@HongKonga at 2007-11-27 8:19:19
How to encrypte the password(MD5) which is user input and put the encrypted password to MySQL database?Any api can help me?

Send Outlook Calendar Event from Servlet

1243 byte By linxpda_tcolea at 2007-11-27 8:19:24
I am attempting to fire off calendar events to Outlook users as part of a workflow engine. I am havnig some issues where the calendar event is attached (with the little calendar icon) but when the user attempts to open it the following error is revealed:Cannot import vCalendar fileThis error ...

ServletContext -Servlet/Filter/ServletContextListener

552 byte By nemcovaa at 2007-11-27 8:19:28
Hi,Is the ServletContext returned from the filter code:ServletContext context = config.getServletContext();different from the ServletContext returned from Servlet or ServletContextListener:ServletServletContext context = getServletContext();ServletContextListenerthis.context = ...

Sending email without authentication

459 byte By harish_nkumara at 2007-11-27 8:19:31
I have a form where the user fills in the to and from email addresses. Then clicks on the send button. Now I want to send the email automatically without password authentication. JavaMail API I used, but it is giving me AuthenticationFailed Exception. How to solve this problem without ...

New to XML+Java: which is the best API?

835 byte By ntalamaia at 2007-11-27 8:19:32
Hi,I am new to XML+Java and I am trying to develop an application that will both read and write to an XML file. After reading some tutorials, I decided that jaxp, sax, and org.w3c.dom.* are rather low-level and very unfriendly.After a cursory web search, I came to the conclusion (please correct ...

Validate a Text Field of a Form That is Not to be Submitted

1347 byte By jiapei_jena at 2007-11-27 8:19:33
I have this web page coded in JSF. In this page, I undertake some client side operations (they work properly) and therefore the "type" of my <h:commandButtion ...> is "button".<h:commandButton type="button" value="Find" immediate="true" onclick="filterTable_clickButton( ...

hi everyone

2162 byte By deepthi_tirunaharirama at 2007-11-27 8:19:37
HiI am new to javaMail....And i having a problem with this program.I getting the following exception when the run the following programimport javax.mail.*;import javax.mail.internet.*;import java.util.Properties;public class MailDemo {public static void main(String[] args) throws ...

sending email with javamail

2162 byte By deepthi_tirunaharirama at 2007-11-27 8:19:38
HiI am new to javaMail....And i having a problem with this program.I getting the following exception when the run the following programimport javax.mail.*;import javax.mail.internet.*;import java.util.Properties;public class MailDemo {public static void main(String[] args) throws ...

Application server and JVM

465 byte By kehu0a at 2007-11-27 8:19:42
II am trying to install a certain application server on certain Unix platform (let it be anonymous for now), the 1st thing the installer asks me to do is to run a script that will install some kernel extension and turn on asynchronize IO. I am pretty sure these things have nothing to do with ...

JSF & XHTML/CSS

3205 byte By mon.goosea at 2007-11-27 8:19:54
I am trying to integrate parts of a JSF app I've been making with standard HTML and CSS markup, but I'm running into serious issues. Are there a few things I need to know about how to do this properly? Few pages on the internet address the best way to go about this, though I've already read ...

How can I display to screen the contents of a Soap Message

229 byte By Richard_Cromera at 2007-11-27 8:20:33
I am writing a JAX-RPC client and just want to look at the actual XML soap message I get back. I have access to the class SoapDeserializationContext and to the XMLReader. Can anyone help?Thanks,Richard

JSP to JSF

371 byte By SwingIta at 2007-11-27 8:20:39
Hi,I want to pass a JSP value to JSF.I tried this code, but it does'nt work: <% String str = "1234" ; %> <h:commandLink action="#{manager.editMySetup}"> <f:param name="paramname1" value = "<%= str %>" /> <h:outputText value="Submit" /> </h:commandLink>Anyone ...

Adding Validators in Custom Component

1254 byte By Java.Developera at 2007-11-27 8:21:19
I have created jsf 1.2 custom component for rendering full name. This custom component has three input text fields. This component extends UIInput and accepts one attribute "value". This "value" attribute accepts bean object which has properties firstName,lastName and middileInitial. This ...

whats going on?

2624 byte By schumachera at 2007-11-27 8:21:56
hello all here is my code<%@ taglib uri=" http://java.sun.com/jsp/jstl/core"prefix="c" %><%@ page contentType="text/html;charset=UTF-8" language="java" %><html><c:set var="username" scope="session" value="${param.username}"/><c:out value="${username}" ...

[problems running this code

4008 byte By schumachera at 2007-11-27 8:21:58
[nobr]hello all. i am trying to run a simple example which consist of a servlet, jsp and a java file. i am using eclipse. For some reason when i try to run my jsp file in eclipse the output in the browser displays thattype Status reportmessage /ProductServlet/ex.jspdescription The requested ...

Weblogic8.1 -EJB

137 byte By Jeyashreea at 2007-11-27 8:22:03
I have installed weblogic8.1 server,Can anybody tell the step by step procedure to run EJB applications using weblogic8.1 serrver?

Try this simple Java and Servlet Program

1989 byte By Sri_Sria at 2007-11-27 8:22:11
dear friends,1.when i am compile and run this simple program,it is ok i can get class file import java.io.*;class samples{ public static void main(String args[]) { int sum=0; int num1=2; int num2=5; int num3=4; sum=num1+num2+num3; System.out.println("The sum="+sum); }}****2. we i compile and ...