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 ...
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 ...
<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>
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 ...
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 ...
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 ...
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" ...
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 ...
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 ...
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 ...
<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>
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>
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>
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 ...
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" ...
<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>
<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>
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) ...
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>
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>
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 ...
<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>
<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>
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 ...
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 ...
<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>
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>
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 ...
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: ...
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 ...
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 ...
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. ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 = ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
<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>
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 ...