Tomcat Admin Login issue

813 byte By kensingtona at 2007-11-27 10:45:49
For my Tomcat 4.1.27 Java container I have to use the startup.bat and shutdown.bat to start and stop the Web Server.I tried using the http://myserver:8080/admin/login.jsp with the correct username and password that I got from conf/tomcat-users.xml.It gives me back a reply: Access to requested ...

Loading War file

513 byte By Evergreana at 2007-11-27 10:45:52
When loading a War file in our Tomcat 4.1.3 on Windows Server, the first time it takes the war and creates the specific webapp folder and I dont have to stop and start the container. If I want to put in a newer war for the same web app it requires me to stop and start the web container. Even if I ...

New to JSF. Looking for documentation

232 byte By AkkirajuKirana at 2007-11-27 10:46:12
<p>Hi </p><p>I am very new to JSF and looking for step by step navigation example documentation. Could you please anybody let me know which document I should refer? Appreciate your responses. </p><p>Regards </p><p>Kiran Akkiraju</p>

Problem using, deploying an EJB

3316 byte By Sapana at 2007-11-27 10:46:13
Hi All,I have been trying to compile and run my first EJB in NetBeans. It is a very simple EJB which goes like this.package test;import javax.ejb.Stateless;-/** * * @author Vibhushan */@Statelesspublic class NewSessionBean implements NewSessionRemote, NewSessionLocal {/** Creates a new instance of ...

Data Table's records display condition wise.

416 byte By Manish_Paliwala at 2007-11-27 10:46:17
I have a problem like this:My Data Table is like ThisSELECTNAMEAGESTATUSABC25DONEXYZ20NEWBBB18DONEA12328NEWNOTE: Select Column have check boxes.I want to display my table like this:When STATUS is DONE, this row should be disable. I mean to say, check box should be unselectable. If Status is NEW ...

How to get my URL path?

672 byte By roamera at 2007-11-27 10:46:20
I would like to show my current url path when I execute a jsp page.I write a javabean file, using this method:String currentdir = System.getProperty("user.dir");Then print it out in my jsp page, it shows:D:\Program Files\Apache Software Foundation\Tomcat 5.5 but my desired answer should ...

changing the code

2431 byte By javamnr948a at 2007-11-27 10:46:22
hi,I have a html page here.now I want to convert it into jsf page.I have lot of confusion regarding this.Pls,can anyone change my code into jsf.here is my code in html <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><table width="100%" border="0" cellspacing="0" ...

Invoking an action....?

2217 byte By xyzta at 2007-11-27 10:46:32
HelloI have a controller class like that:public class MyAction {private String name;public MyAction() {}public String action1(){setName("guest");return "ok";}public String getName() {return name;}public void setName(String name) {this.name = name;}}And in faces-config.xml, a session scoped bean is ...

problem with command buttons in jsf

335 byte By esh_pva at 2007-11-27 10:46:40
how to position or allign command buttons inside a page?for example if i include reset command button inside my page using,<h:commandButton value="#{form.buttonText}" type="reset"/> they are placed towards a corner only, how to bring them to the center of a page in jsp? or how to set the ...

ResultSet values to store in arraylist

426 byte By java@mania at 2007-11-27 10:46:41
hello all,Need help.Please help me in adding all the values from result set to the arraylist.And also tell me as to how we comparing two string values with delimiter in it.For example :string1 = "Ejb,Jsp,Weblogic9.0,hibernate,jsf"and string2 = "Weblogic9.0,struts"in this two string at least one ...

AJAX Potential Issue - Disabled Javascript

247 byte By linkinpark2007a at 2007-11-27 10:46:44
<p>We all know that AJAX functionality doesn't work if the user has disabled JavaScript of the browser.</p><p>Can anyone suggest me that is there any way to programatically enable the JavaScript of users browser through Ajax or any other way?</p>

difference between jsf 1.1 and jsf 1.2

292 byte By siri85a at 2007-11-27 10:46:52
<p>Hi,</p><p>Any One can u please tell me what is the difference between jsf1.1 and jsf1.2.we are doing some r&d on jsf for our project.So,please tell me what are the differences. and please tell me what are the advantages of jsf.and why we need to go for jsf framework?</p><p>Thanks.</p>

what is .jspa extention

123 byte By manu_ama at 2007-11-27 10:46:53
<p>Hi friends,</p><p> Can anyone expalin what is .jspa extention . Is it for jsp advanced</p><p>with thanks,</p><p>Manu</p>

How to use ArrayList in Java Web Service

6899 byte By Subbu_javaa at 2007-11-27 10:47:01
Hi frenz,i am having a web service that is having 3 operations. They are all working fine.now i want to add the forth operation with a return type of "ArrayList".i tried, but it thrown an error:error: Collection types are not supported in literal mode - Type: "java.util.ArrayList"This is my wsdl ...

how to use dataTable without scrolling header

1647 byte By vinuthamla at 2007-11-27 10:47:08
I have a dataTable like this where i put entire table within div,<div style="overflow:auto;height:120px;"><h:dataTable class="adresstable"value="#{PatientWebGuiListBean.patientDemographs}" var="patient"rowClasses="oddRow, evenRow" columnClasses="column" ...

Entity bean questions

237 byte By ppatidar2001a at 2007-11-27 10:47:29
<p>what is the sequence of events that takes place after, findAll method on EJB Home of an entity bean is called. In particular I want to know when EJB Objects are created? I am not able to understand this from Entity Bean lifecycle.</p>

jsp form

264 byte By aschandra2704a at 2007-11-27 10:47:40
<p>hi </p><p>i have a form which takes name,age,sex and a photo of the user for registration. if in two forms i am able to succeed the task, but in the same form i am not able to do it. can anyone please help me with the data storing and file uploading script.</p>

I cant replace attributes in sessions

7548 byte By willea at 2007-11-27 10:47:45
Hi! :)I need to replace an attribute value in a session, but it seems to become 2 attributes instead.I need this method to replace or remove a value:public void changeItemCount(HttpServletRequest request, String nr, String id) {try {int itemCount = Integer.valueOf(nr).intValue();if(itemCount == 0) ...

Window.close() not working within the frame

208 byte By ss1_ss1a at 2007-11-27 10:47:51
<p>Hi,</p><p>After clicking the logout button i planned to close the window. But if i click on the button no action is taking place. PLease anyone help me out...</p><p>Thanks & Regards,</p><p>Satish R</p>

Can I use Ajax with jsf

76 byte By siri85a at 2007-11-27 10:48:25
<p>Hi All,</p><p>Is JSF 1.1 supports AJAX or not?</p><p>Please tell me..</p>

Same thread for ServletRequestListener and Servlet request?

499 byte By puchericoa at 2007-11-27 10:48:26
Does ServletRequestListener methods execute in the same thread that the Servlet.service method?I wonder if the answer is always 'yes'. And I hope it will. I've been reading the specs but found nothing related.I think it's an important issue because this way you can take advantage and share data ...

Datatable in JSF

146 byte By archana_tcsa at 2007-11-27 10:48:27
<p>Hi to all,</p><p>i have a dataTable with 40 columns,so i need a horizontal scroller for that datatable,any one can help me</p><p> thank you</p>

how to implement "Remember Login " in jsp

209 byte By gyan_softa at 2007-11-27 10:48:33
<p>Hi everyone, </p><p>i want to implement remember Login for login page using java / jsp / struts / javascript. </p><p> please, anyone suggest me some way for its implementation. </p><p> Thanx in advance.</p>

How to customize the NavigationMenuItem class

839 byte By Sruthi.ma at 2007-11-27 10:48:38
Hello, I have a requirement where I should create a 3 - level menu from database.For that I am asked to customize the NavigationMenuItem or jscookMenu tag so that it would take the tablename and then get details from database and create.I cant use a backing bean as I should take tablename from the ...

passing request to a second jsp

934 byte By Ryion69a at 2007-11-27 10:48:39
Hi Guys I have a jsp (search.jsp) that deals with a request from a web form and shows the results in the browser. Im then trying to pass this request to a second jsp (export.jsp) to put the info into an xls file. I can create an xls file on its own by setting the contentType but i cant show the ...

how to call a managed bean when a button in clicked

117 byte By javamnr948a at 2007-11-27 10:49:16
<p>hi,</p><p>I have a jsf page with one button of graphic image.how can i call managed bean when that is clicked.</p>

java mail

140 byte By JavaIQa at 2007-11-27 10:49:23
<p>Hello, </p><p> Pls can any one tell me how to send email using javaMail,</p><p> I'm using ADF/JSF.</p><p>Thanks in advance, </p><p>M</p>

Struts - Redirect to start by accessing jsp-file?

413 byte By nomaxa at 2007-11-27 10:49:25
Hello,Right to the point:Is there a way to redirect an user right back to the start ( login-page) if he tries to directly access a jsp-site? I prevented it by moving all jsp-files into a subfolder of WEB-INF.Its not pretty but it works.... But id rather use another aproach.. - including the ...

Too Many Connections / Connection Pooling

1648 byte By mon.goosea at 2007-11-27 10:49:26
Hi,I have a JSF application that is using hibernate to persist data to a MySQL database, but after doing a few small operations in the application I get the error:com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: ...

Serializing MimeMessage

800 byte By prabhu.ramadasa at 2007-11-27 10:49:30
Hi all,I have a requirement wherein I need to enqueue a MimeMessage into a JMS queue. Now MimeMessage is not serializable! And I wonder why!Now here is the problem. I want to invoke the message.getContent() method only after I dequeue from the queue. Which means I will need the entire MimeMessage ...

Ajax actions and Form Beans

522 byte By timhuya at 2007-11-27 10:49:35
Normally, we can execute a Struts actions thru Ajax like the following Javascript lines var url = "myStrutActions.do?parm1=parrm1val&parm2=parm2val&.."loadURL(url, AjaxTriggerFunction);where loadURL is the Ajax function to execute the Struts actions.My question is instead of passing literal ...

Execute Struts actions within Struts actions

303 byte By timhuya at 2007-11-27 10:49:38
Let say we have Actions A and B.In Actions B, I will execute some business logic and execute the same business logic I coded in Actions A.Is it possbile that in Actions B I can execute Actions A, thus avoid having the same code in 2 different placesPlease let me know. ...

Scheduling Email Notifications

421 byte By codebooka at 2007-11-27 10:49:48
I'm fairly new to EE development, so forgive me if the answer to this question should be obvious to me.I want to be able to schedule a task to start at a predetermined time. Basically, I need the Java EE equivalent of the cron service on Unix systems. One example: I need to run a few DB queries ...

MDB and Session bean with DB

404 byte By kstanirajia at 2007-11-27 10:49:54
Hi...I have a different problem.. that isI have a MDB that is interacting with the DB through the result set and statementAnd I have Session bean interacting with the DB through the result set and statement. When both (sometimes) interact with DB . I have a problem.. ( Object closed )i would be ...

selectOneListbox problem after upgrading to jsf 1.2

586 byte By tombatorea at 2007-11-27 10:49:55
Hi all,I'm currently converting a project from jsf 1.1 to jsf 1.2 on tomcat 6. Unfortunately two selectOneListboxes that use a converter-for-class do not work anymore now.I checked in my converter and it really gets called upon changing the selectbox just like it should. So far so good. However, ...

Page reload in commandlink

639 byte By kal132a at 2007-11-27 10:50:09
Hi,I have a commandlink in my jsf and in that i have following code- <h:commandLink onclick="getClarify(#{clarifyDetRep.ticketNumber})" id="showTicketDet"><h:outputText value="#{clarifyDetRep.ticketNumber}" id="column1"/></h:commandLink>Where getClarify is a javascipt that opens new window ...

Referencing Database from Context.xml

1206 byte By JasonMcAuleya at 2007-11-27 10:50:14
In the Context.xml file, I have reference to the database I am using for the application. Here is the Context.xml code.<?xml version="1.0" encoding="UTF-8"?><Context path="ABATE" reloadable="true" docBase="C:\Documents and Settings\koconnor\EclipseWorkspace\ABATE" workDir="C:\Documents and ...

Information Related

314 byte By javashisha at 2007-11-27 10:50:15
Hi,Recently, got sometime to take a look at JSF 1.2 specs, excited me about the approach taken. I then started looking at the available framework but there are plethora of frameworks available so got kinda confused. Appreciate if anyone suggest the best framework to start off with JSF ...

get webapp root

393 byte By orribla at 2007-11-27 10:50:21
Hi,I wonder how I can get the rootpath of my application.I have a jsf & spring application and want to place a xml-file under the application root (e.g. in the WEB-INF). But when I want to load the xml file in the code I don't know how to get the directory (absolute or relative) so I can load ...

Require Information Related to JSF

314 byte By javashisha at 2007-11-27 10:50:25
Hi,Recently, got sometime to take a look at JSF 1.2 specs, excited me about the approach taken. I then started looking at the available framework but there are plethora of frameworks available so got kinda confused. Appreciate if anyone suggest the best framework to start off with JSF ...

Getting return value using a POST request (document.forms[0].submit)

382 byte By arulanandspa at 2007-11-27 10:50:32
Hi,I am submitting a form using document.forms[0].submit. The form has 5 paramteres and the servlet inserts a record into the table using the form values. After successful insertion the servlet will return a boolean value based on the success or failure.How to get the boolean value in the jsp and ...

ActionListener, restoreState issue

888 byte By Troubya at 2007-11-27 10:50:42
Hello,I have a commandbutton with an actionListener tag set,in the method that is invoked within the actionListener, I am trying to restore some other ui components on the view as follows:UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();UIComponent comp = ...

A beginner:Need your help experts

324 byte By Adi1000a at 2007-11-27 10:51:02
Dear experts,I had been using J2EE 1.3 quite long ago.Recently i shifted to latest version of J2EE and despite a Quick start guide,i am unable tofollow how to deploy a simple entity bean.I have coding for home interface,remote interface and the beanclass itself.Plz ...

JSP - Count Text Box User Attempt - Session Terminate

484 byte By linkinpark2007a at 2007-11-27 10:51:12
Hi,I have a form which has a Text box in which I require user to input some numeric value and press SUBMIT button.I want to keep a check that if user Submits 5 incorrect values in the Text box, it should terminate that page or redirect him to some other page and he should not be allowed to enter ...

Servlets basics

388 byte By princerozarioa at 2007-11-27 10:51:13
Hello allI have wrote the code for a servlet. But I am having difficulties in compiling it. It comes up with "class not found". I am very sure I have set all path correctly. I have set the path to jdk and jre. Could some tell me how to get this to work. I have been trying for two days to compile a ...

Container-Managed Transaction Type Attributes not working as expected

973 byte By aacaina at 2007-11-27 10:51:19
I am having a problem with the container-managed transactions not working as expected. I have 2 methods that work as follows:MethodA{for(a lot)call MethodB;}@Transaction Type = RequiresNewMethodB{ EntityManager Persist to database}I want the code in MethodB to be committed to the database when ...

MessageRemovedIOException?

1290 byte By dnwiebea at 2007-11-27 10:51:32
I'm writing a website that occasionally sends emails--in this case, as part of a new-user registration process. The relevant code looks like this:Message msg = new MimeMessage (session);When I deploy my application in Glassfish, this works wonderfully.But when I run this code in an automated unit ...

java EE tutorial's problem with jsp

577 byte By Octaviana at 2007-11-27 10:52:18
Hi,I have some experience with JSP, however, I discovered that it's limited to scripting in JSP . I started reading the java 5 EE tutorial and went through fine with the servlet part. Once I got to the jsp part however, it just jumps into tags and JSTL in a way that assumes I have sufficient ...

Program to read Mx records

134 byte By Godspeed08a at 2007-11-27 10:52:25
<p>Hi</p><p>Can anybody post the sample code or provide a URL for how to read MX records using java.</p><p>Regards,</p><p>Godspeed</p>

JSTL single quotes embedded in double quotes issue

755 byte By kumar007a at 2007-11-27 10:52:30
I am using JSTL to render the following radio button:<input type="radio" value="${nextObject.garbledID}"onclick="executeSelection('${nextObject.garbledID}')" />The radio button is rendered correctly with the resolved value of nextObject.garbledID for onclick on Windows/Linux. On AIX, the value ...