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 ...
how to get the session id in JSF?
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 ...
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
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 ...
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 ...
66 byte By
veerjaa at 2007-11-27 8:15:16
what are the JSF components for html td and trThanks
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 ...
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 ...
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 , ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Hi,Somebody knows how to upload a file in JSF1.2 without using the myfaces libraries.Thanks in advance,Pieter
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 ...
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 ...
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 ...
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] = ...
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" ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
How to encrypte the password(MD5) which is user input and put the encrypted password to MySQL database?Any api can help me?
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 ...
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 = ...
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 ...
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 ...
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( ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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}" ...
[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 ...
I have installed weblogic8.1 server,Can anybody tell the step by step procedure to run EJB applications using weblogic8.1 serrver?
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 ...