HelloI'm using a javabean inside a JSP, by the tag : <jsp:useBean id="myBean" scope="session"........>From that JSP i'm calling a servlet.The problem is that i can't access this bean from the servlet.I tried call it with session.getAttribute("myBean"), but got a null.How can I access ...
someone can tell me how to detect a foreign key in a table (mysql) and know which table this key point to ? i'am new with jstlit's very urgent,pl,Message was edited by: miagistevn
705 byte By
queshawa at 2007-11-27 7:55:22
The javadoc for XPath.evaluate(String, Object, QName) says that the second parameter is the context "node or node list for example". I'm familiar with the concept of an XPath context node. What does it mean to pass a node list as the second argument?With Xalan 2.7 and this ...
Aye,I want to generate passwords automatically. In the user-add-script I wrote, the one who is adding the new users is not to pick the passwords due to several irrelevant reasons. My script already works, using the timestamp as password, but 14849248294829 isn't really a user-friendly ...
Suppose I have a form that I submit, and its action is set to a JSP page that returns a series of elements <option>, for example:<option>2005</option><option>2006</option>Is it possible to GET that JSP response, inside the JavaScript code? Or should I better state, ...
How to disable the paneltab in jsf? I have used the follwing tag lib<%@ taglib uri=" http://myfaces.apache.org/tomahawk" prefix="t"%>Message was edited by: monowaralam
I am using jdk1.6u1, fedora fc5 and resin 3.0. Here is my setting:args="-J-server -XX:NewSize=128m -XX:MaxNewSize=128m -XX:MaxPermSize=512m -J-verbosegc -XX:SurvivorRatio=5 -Xmn1500m -Xss128k -Xms2000m -Xmx2000m -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC ...
900 byte By
pcisara at 2007-11-27 7:55:47
Hi all,got question about giving variables to Beansi'v got LoginForm bean with session scope where user login and 'user' entity is set in this bean. on another page i use bean AccountController (scope=request) to addAccount but i don't now how to give the entity 'user' from LoginForm to ...
I'm using a session to determine whether a user is allowed to view the page or not.In logincheck.jsp:HttpSession session1 = request.getSession();session.setAttribute("gegevens", gegevens);'Gegevens' is an array containing some important information, such as user id and role.My application ...
Hi,I have a requirement where I am generating the pure JSP popup window by clicking on some button on JSF page. Here I am passing various values from JSF page to the pure JSP popup in following way:Body bodyOne = getBody1();bodyOne.setOnLoad("win = window.open(\"ABCPopup.jsp?userId=" + userId ...
2664 byte By
sebbera at 2007-11-27 7:56:36
Hi,i'd like to have to following behaviour:@WebMethodpublic int testMethod(ComplexType ct) {return ct.getProcessor().do(5,5);}/// public class ComplexType {Processor p; // + getter + setter ...}public abstract class Processor {public int do(int a, int b) {}}public class ProcessorA {public int ...
7600 byte By
hstangla at 2007-11-27 7:56:39
I've got a strange problem trying to use validation on input fields. The basic setup is as follows:I've got a page divided into two parts with separate h:form tags, the one holding a dataTable with some elements and the other showing the element details in inputFields once an item is selected ...
Hi,I have a servlet mapped to /,/* in the web.xml which responsible for directing all request to coresponding resources as follow:protected void processRequest(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{String id = request.getRequestURI();id = ...
jsf is based on the mvc-model:m --> backingBeansv --> componentsc -->?what is the controller in jsf?the second questions is concerning the lifecycle:usual events occure in phase 5: invoke applicationbut there are special cases in which events can occure in the Apply Request Values, ...
Hi All,I read some of your articles, they are really fascinating. I am bugged with a problem of xml transformation using XSL. I tried at lots of places but i am not able to garner much help. I think you will be able to provide me with some thoughts/solution to this.My problem is as follows.I ...
HiIn a Struts framework, we normally have a class being mapped in the action tag, for example, in the struts-config.xml, we can have the ...
Hi AllI am trying to connect from JSP page to MySQL Server, I use the following method to get connection , but it returns null.private Connection getConnection(){Connection conn = null;try{Class.forName("com.mysql.jdbc.Driver");String url = "jdbc:mysql://localhost/acssDB";String userName = ...
i am trying to develop an applet that uses batik. when running the applet in eclipse it works fine but when i copy the classes and webpage for the applet to a tomcat webapp, it does not work. i get the errorjava.lang.NoClassDefFoundError: org/apache/batik/swing/svg/SVGDocumentLoaderListeneri ...
Dear all when i want to use <a href> this tag to do link to other page and the link include some of jsp values ... the question is how can i edit this values in to <input type="text" name="links" size="30" > for example ?<a ...
When attempting to deploy a test application,The build is successful, the deployment is successful but the browser comes up with a webpage telling me"this resource not available".I check the server logs up to the point of deployment.The following is the first error listed, looking at the ...
[nobr]Dear everyone,how to use j_security_check in my login page ...can anyone please give ur suggestions...i will show you my code...<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script language="javascript">function check(){var ...
hi to all ,I am doing the online test module ...In which i give the particular time for each question to answer .. The ANSWERING time exceeds the given time ... The question will be disabled ... he or she will not able to answer ...answer pattern it like that RADIO BUTTON ....HOW I CAN ACHIEVE ...
hi,I am developing simple three page application. first one login page second confirmation page that displays the name of user who logged in and it has also link for logout, which is logout.jsp page.I wirtten session.invalidate() in logout.jsp, but when i press window's back button it again ...
15322 byte By
OhmKu62a at 2007-11-27 7:58:09
Please help me... Thank you.This is CodeTree.java -- Run This Fileimport java.awt.BorderLayout;import java.awt.Dimension;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JFrame;import ...
413 byte By
anzaana at 2007-11-27 7:58:11
Iam able to run the same code successfully in generic java class but gives "No Such Provider for RSA" when the class method are called by JSP.ecipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");dcipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");ecipher.init(Cipher.ENCRYPT_MODE, ...
hi, i face this problem with <f:attribute>javax.faces.FacesException: javax.servlet.ServletException: Error getting property 'userid' from bean of type java.lang.String at here is my coding.<x:dataTable var="user" value="#{reportBean.userDetails}" id="userid" border="1" ...
6395 byte By
thanua at 2007-11-27 7:58:16
Hi all,When user clicks a submit button i need to send a mail. I have written java bean for sending mail.package MailGeneration;/* * GenerateMail.java * * Created on June 16, 2007, 11:10 AM */import java.beans.*;import java.io.Serializable;import java.util.Date;import ...
Hi All,i have written code to read a xml file to validate it with schemaand it is running fine with jdk1.5 but when i run the same code using jdk1.6it gives the following exception.Please help me to resolve this problem.Thanks in AdvanceSunny Kumar.org.xml.sax.SAXParseException: cvc-elt.1: ...
3967 byte By
Riketa at 2007-11-27 7:58:34
Hello, I've got an error I can't find since 2 days ! I'm trying to build a simple combo box in which there are some data from my database . It's to deploy a process under jBoss jBPM but the error is a JSF one :Here is my JSF form code :<jbpm:datacell><f:facet ...
3454 byte By
mgrahula at 2007-11-27 7:58:35
I am doing an project named an online exam.I have various questions say about 10 questions.And there are 4 radiobutton are given as option.In the next page I want to retrive the answers clicked by the user for each of the question.I am getting the values from the database ie, the questions and ...
I am facing a issue with the mail functionality with JAVA Mailing.The problem is that when I am running the stand alone program it is working fine but when same function is called from a JSP it gives Authentication failed Exception.I am attaching the code with the case.testMail() Is the ...
hi All,Greetings!in My parent window, i have around 18-20 fields.i want to open pop-up from the parent screen but wants these 18-20 fields to be available in my WebAction(Struts FrameWork).currently i m submitting the child window so i m not getting these fields.so overall, want to open pop-up ...
1049 byte By
Kezmana at 2007-11-27 7:58:58
Hallo,I want to send mails via sendmail.but I get this error if I try to send.The reason can be following :in this company there are 2 mail servers mailext and mailintour smtp server ist mailext but this use the mailint's certificate. (also the name is false) can this be a reason? how can I ...
96 byte By
ojhaa at 2007-11-27 7:59:04
hi i want to use GET method instead of POST...Can any one help me how to do tht...
396 byte By
bobza at 2007-11-27 7:59:07
hi ,i am getting blank screen while requesting for a particular JSP. ex: searchresults-searcher.jsp. i am requesting for this page. i am always getting the blank screen. i know its due to an exception thrown. but the response is commited from the server and while processing something wrong is ...
537 byte By
Zubeira at 2007-11-27 7:59:09
Hi,Ques: How to display/set error messages dynamically ?Here is the sample code:private void create(){TextField t = new TextField(); t.setId(); getGridPanel1().getChildren().add(t); t.setRequired(true); Message m1 = new Message(); m1.setFor(name); getGridPanel1().getChildren().add(t);}we got ...
1630 byte By
bastrala at 2007-11-27 7:59:12
Hello,Here is my problem: I need to access my session bean with a web service endpoint, but I need to keep track of my session bean instance each time I call my Web Service.As I can only use annotation @WebService with a Stateless bean (@Stateless) as an example I tried something like ...
Any ideas aobut how to create a input text with a custom dialog to assist the user?. I want a component similar to inputCalendar but with a list of String values instead of Dates. Thanks.
Hi there,I wonder if you could help, I've tried searching the FAQ's and around the internet for a solution to this.When I run the code below I get the following error..javax.mail.MessagingException: Could not connect to SMTP host: 172.20.10.110, port: 25, response: -1I can't seem to find ...
Good day everyone!Can somebody give me an idea what causes ParseException?I am having problems with this error and cant seem to figure it out why.Thanks in advance.Cheers
how to handle javascript validations using JSF give me the source?
i want to send mail to my inbox(i.e) either it could be yahoo or gmail...when i click on submit button of my web page the contents should go to my inbox ...how is it possible..can u plz help me
3433 byte By
mgrahula at 2007-11-27 7:59:35
I am doing an project named an online exam.I have various questions say about 10 questions.And there are 4 radiobutton are given as option.In the next page I want to retrive the answers clicked by the user for each of the question.I am getting the values from the database ie, the questions and ...
OK where to startI created an EE Client that accessed my session beans directly. though I wanted to run this client on the application server command line. So what do i do but copy all the ee Jars from /SUNWappserver/lib/ into the java jre. as well as the ejb jar(not the most sensible thing I ...
hi all,I'm new to java servlet, when i tried to do my first page that display the date of the day as below:<body>Hello! The time is now <%= new java.util.Date() %></body>when i open the page in the web browser the date didn't appear.I'm not sure if there is a missing part ...
i have ten questions in my jsp page ...each question have 4 radio button to choose one as answer ....But for me .. Totally only one i can choose for 40 radio buttons ....Message was edited by: kannankalli
Hi, Sorry for this, I know this is not a new problem, and trust me I've tried almost everything suggested regarding other issues I've found in this forum. Well I'll start by explaining the problem, I've just started working for a company and they have built a custom app in JSP for a client. ...
I know this is not the best location for submitting this but I think the people who knows the answer can be found here. We are in need of a decent email server (well at least good enough), for using with our application server which will be j2ee 5 compatible but all of the stuff I found are ...
Hi All,I am creating an xml file and validating with schema, problem is that code is running fine with jdk1.5 but giving problem with jdk1.6(error).Please have a glance on the following code to solve problem.org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element ...
639 byte By
AHmadQa at 2007-11-27 8:00:22
Hi all,I have the following urgent JSF problem, I hope that you can support me in solving it;- I have JSF application need to be deployed on IBM WebSphere 6.0.1 Application Server.- I have the tag: <jsp:directive.include file="Actions.jspf"/> which includes a page fragment.- This is ...