sending javabean from JSP to servlet

373 byte By George_.Smitha at 2007-11-27 7:55:10
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 ...

how i can detect a foreign key in table mysql ? (it's very urgent ,pls!)

209 byte By miagistevna at 2007-11-27 7:55:20
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

jaxp xpath evaluate method node list parameter?

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 ...

Generating Passwords

883 byte By Nidhuggura at 2007-11-27 7:55:23
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 ...

JSP response into a Javascript code

1057 byte By tofuwithcoffeea at 2007-11-27 7:55:24
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?

200 byte By monowaralama at 2007-11-27 7:55:27
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

Could somebody suggest an optimal JVM setting?

485 byte By christopher_chenga at 2007-11-27 7:55:30
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 ...

values between beans

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 ...

Session Problem

1849 byte By Nidhuggura at 2007-11-27 7:55:52
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 ...

How to pass a list from JSF(JSP) page to pure JSP page

976 byte By vijay_foruma at 2007-11-27 7:56:01
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 ...

JAX-WS and abstract classes in a complex type

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 ...

Validation error corrupts component tree?

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 ...

ininite loop in front controller

2706 byte By lnthai2002a at 2007-11-27 7:56:40
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 = ...

general questions

699 byte By schaeflia at 2007-11-27 7:56:41
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, ...

Index matching on the basis of occurence in a xml

3409 byte By kunaljain18na at 2007-11-27 7:56:42
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 ...

Struts - Can anyone tell me what this URL is doing?

1299 byte By SheepSheepa at 2007-11-27 7:56:43
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 ...

JSP-MySQLconnection problem

1138 byte By mansoorxpa at 2007-11-27 7:57:05
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 = ...

applet in jsp not working

421 byte By hardcodera at 2007-11-27 7:57:07
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 ...

input type = "text" how to get valus

528 byte By roger5089a at 2007-11-27 7:57:30
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 ...

What do I need to import for this to exist.

809 byte By cplmckenziea at 2007-11-27 7:57:40
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 ...

how to use J_security_check in my login page

3934 byte By senthil_yogaa at 2007-11-27 7:57:47
[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 ...

how to disable the question in online test ?

659 byte By kannankallia at 2007-11-27 7:57:56
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 ...

after logout jsp retain values

584 byte By cooljassia at 2007-11-27 7:57:58
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 ...

How to Create XML Schema From JTree ?

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 ...

JSP : RSA Encryption Problem

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, ...

Error on getting bean property in <f:attribute>

958 byte By Ananth.duraia at 2007-11-27 7:58:14
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" ...

Problem with bean

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 ...

problem while xml validation with jdk1.6, but at jdk1.5 code is running ok.

5409 byte By sun@2005a at 2007-11-27 7:58:18
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: ...

Combo box , error type !

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 ...

Urgent Please help RadioButton + Jsp

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 ...

Authentication failed while using the function from JSP.

4598 byte By sunil962a at 2007-11-27 7:58:47
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 ...

How to Submit Parent Window from Child Window...

470 byte By AshishGajabia at 2007-11-27 7:58:48
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 ...

javax.mail.MessagingException: 501 5.0.0 Invalid domain name

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 ...

Using GET method in jsf

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...

blank screen jsp

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 ...

Displaying Error messages dynamically in JSF

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 ...

How Can I access a Stateful Session Bean with a WebService ?

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 ...

input text with a custom dialog to assist the user?

194 byte By ffbeltrana at 2007-11-27 7:59:14
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.

javax.mail.MessagingException: Could not connect to SMTP host: 172.20.10.11

5800 byte By hockeygod76a at 2007-11-27 7:59:15
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 ...

ParseException

205 byte By terrence27a at 2007-11-27 7:59:16
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

hi

73 byte By pavansrinia at 2007-11-27 7:59:27
how to handle javascript validations using JSF give me the source?

to send mail

207 byte By chandrakalaa at 2007-11-27 7:59:31
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

RadioButton + JSP

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 ...

Beyold! the greatest problem of my Carrer

3825 byte By Brian.R.Johnsona at 2007-11-27 7:59:38
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 ...

jsp problem

488 byte By Fatima_qua at 2007-11-27 7:59:39
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 ...

radio button in jsp

239 byte By kannankallia at 2007-11-27 7:59:57
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

Unable to see current JSP files in browser

1371 byte By harrymcka at 2007-11-27 7:59:59
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. ...

Looking for open source email server.

1087 byte By dave.khosha at 2007-11-27 8:00:01
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 ...

problem while creating xml using jdk1.6

6122 byte By sun@2005a at 2007-11-27 8:00:20
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 ...

How to include page fragment for JSF application deployed on WebSphere?

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 ...