Hi All,i am very new to java and servlets......i am using a applet to call a servlet whose .class file is stored in WEB_INF/classes directory of tomcat..so what URL address i should use in the new URL( ) constructor ?presently i have done in this manner..URL urlServlet = new ...
Hi All,i am very new to java and servlets......i am using a applet to call a servlet whose .class file is stored in WEB_INF/classes directory of tomcat..so what URL address i should use in the new URL( ) constructor ?presently i have done in this manner..URL urlServlet = new ...
216 byte By
jimmy6a at 2007-11-27 10:39:37
<p>How to get the backing bean class. I know it can be retrieved in FacesContext.getCurrentInstance().getExternalContext().getSessionMap()? I do not want to initialise the bean, i just want the class of the bean.</p>
<p>hello,</p><p> i want info about internationlizaion...............that means how should i implement on jsp platform........is it suitable for larger applicaion................</p>
Hello , Pls reply Urgent ,This is my code , struts-config.xml-<form-bean name="studentForm" type="com.ltc.forms.StudentForm"></form-bean> <action path="/userAction" type="com.ltc.actions.StudentMaintananceAction" name="studentForm" scope="session" validate="true" input="/jsp/homePage.jsp" ...
1477 byte By
ripita at 2007-11-27 10:39:47
Hi,I have a page where I can add properites to a project and when i write in some textfields and then click more properties I don't want what I just wrote to be written to the database I wan't it saved in an arraylist until I click save and then all properties from the arraylist will be saved to ...
Scenario:A list page with pagination enabled on the dataTable. Each entity has 3 links 'EDIT', 'DELETE' and 'START/STOP'. On clicking EDIT , the detail of that row is taken and a details page is displayed for editing. On click of DELETE, a confirmation is asked and proceeds to delete the ...
Hello.Just started working on a jsf project. I have made a template which includes a stylesheet. But if I create a jsf page in a different folder than the defaultfolder and I make it extend the template with ../layout/template.xhtml my template cant find the css file. Is there a workaround for that ...
589 byte By
siri85a at 2007-11-27 10:40:11
Hi All,I am learning Jsf and facelets.Please tell me how to write one facelet with example using jsf.I have downloaded one example on facelets.and when I am trying to run that example it is showing the errors that are related to <ui:composite>tag,do i need to copy any tld files in WEB-INF ...
Hi all,I am developing a website which requires to render big images on every page. The problem is...it takes ages to load.So is there any technique or special processing in HTML mark up / JSP to make it faster? Few lines of code would be useful...And can I use flash instead of HTML for this ...
185 byte By
jimmy6a at 2007-11-27 10:40:27
<p>How to avoid jsf Validator bypass empty string? I am doing hibernate annotation validation. i found that if the textbox is empty it will not reach to javax.faces.validator phase.</p>
115 byte By
JavaIQa at 2007-11-27 10:40:33
<p>Dear All,</p><p> Any one know how to remove ToolBar in IE and Firefox,</p><p>Thanks in Advance,</p><p>Manssi</p>
976 byte By
xyzta at 2007-11-27 10:40:38
Hello,I created a Netbeans Visual Web application. I added an Entity Class from a database table. A resource is added into Server Resources part. when I look at its properties, I see that it's JNDI name is set to "bitkiwiki" and I check the Sun Application Server's JDBC Resources and I see ...
Hi All,Could pls throw some light on the following design.Currenty, We have more than 100 queues and for each there is a different MDB to receive the message.Now, somehow we made a single instance of same MDB listen to all these queues by looking at the input message. The requiement now is, is it ...
Hi,Can anybody provide solution for the following scenarion with respect to search opertion.scenario 1:I have one dropdown list and textbox with find button, if i change anything in the dropdown list it will give me the records based on the selected value in the dropdown list. scenarion 2: If i ...
HelloI have a form with 2 fields : 1) User Name 2) PasswordBoth are inside a managed bean.I tried to add validator to the password field in order to check if password is legal.The problem is that inside the validator , i can see only the password (by the 'object ' which has been sent to the ...
15741 byte By
forumaica at 2007-11-27 10:41:17
I am writing an ASP.NET application and using javascript DateTime Picker code (I have found it on the Internet):<script type="text/javascript">// <!-- <![CDATA[// Code begin...// Set the initial date.var ds_i_date = new Date();ds_c_month = ds_i_date.getMonth() + 1;ds_c_year = ...
199 byte By
uandmea at 2007-11-27 10:41:31
<p>Hi!</p><p>Is there anyway to place WEB-INF folder somewhere in the system(not in the app base path) and specify that path in web.xml or server.xml file? Pls help..</p><p>with rgds</p><p>Anvar.</p>
262 byte By
SecfGuya at 2007-11-27 10:41:44
<p>Hi all,</p><p>How can i read a file which is located inside the web application in servlet,.I have used getServletContext().getRealPath() but it is returning null when i deploy the application through war file,.</p><p>Please suggest me a work around here.</p>
918 byte By
Troilusa at 2007-11-27 10:41:46
Hi,I am trying to build a simple web app to get deeper into the basic of jsp/servlet programming.Until now I only used the JSF framework but I want to know some basics :)For this little project I have 2 JSP Views with forms which will be send to the Controllerservlet where the servlet could access ...
hi frndsi need to read a csv file, display its field names on jsp againest field names fetched from database.. the user will map fields from csv to that of db... and data from csv wil be transferred to database... can anyone help me in how to approach this ...
<p>hi,</p><p>In html,we have table,tr,td tags.what are the jsf tags for these three.</p>
Hi All,I have a basic question on EJB Session Facade design pattern.What is the extra code we write in normal Session Bean, to make it as Session Facade.I never involve in EJB coding, but i know the coding and bit curious to know about it. I see Normal Session Bean coding and also seen Session ...
I have a file of very very maximum no of mail so i am sending I have a servlet page. Using this servlete page, if I want to send the file to a jsp then between these time taking process i want to show something progress is going on but i dont like to use progressbar just i want to create threading ...
Hello everyone, I have already read the documentation but there is one point still unclear to me.I want to write a messenger on jms basis so that people using clients can chat with each other. There will be topics that single users can subscribe to and direct chat sessions between two users.So my ...
<p>hi,</p><p>what is the difference between panelGrid tag and dataTable tag in jsf</p>
591 byte By
oftskya at 2007-11-27 10:42:28
hi, guys,i have a problem with myfaces 1.1.1. myfaces-all.jar used.it is totally ok, can write the right date in DB, but the date readd from DB will be shown a day before the date of DB.a litte funny. for example, i choosed 2.1.2001 , correct write into db 1.1.2001, but if u read this from db, will ...
Hello frndsAm a newbie to JavaServer Faces, I want to use JSF for creating a toolbar in my application. Now my question is can I have a class that creates components dynamically and also have the components actionlistener method in it?Well I want to have a plugin kind of a toolbar, that talks to an ...
<p>How do u register/define servlet to be used in tomcat?</p>
<p>Why patterns r useful in describing application architecture?</p>
Hi all,My quetion is:When a push on a button in my *.jsf page I generate a event, this event is manage by a backingbean java class, as far OK.After process the request in my backingbean, I want to open a new browser, how can i do that?Message was edited by: ...
522 byte By
Jay3205a at 2007-11-27 10:42:59
I am working on a JSF page that I want to automatically submit without any input from the user. However, I can't figure out how to make it auto submit. I currently have a javascript that just presses a form button to submit...document.getElementById("mainForm:submitButton").click();However, it ...
907 byte By
vAaka at 2007-11-27 10:43:03
Hi,I'm developing an application in which both my EJB's and my application client make use of some general classes. To avoid duplication, I thought it was a good idea to create a Java Class Library project (myLibrary) in NetBeans and let the two other projects (ejb and app-client) access them by ...
<p>Hi,</p><p>Hows does a Filter work in terms of its object instantiation and destroy. Is it a singleton class? Or is there a new instance of a Filter created for each client accessing the page ?</p><p>I couldnt find any information on this.</p><p>Please help</p><p>thanks</p><p>Riz</p>
Hi Everyone,I have one text box in jsp page. I ask user to type in one article then using one servlet to check out the typo. I pass the article back to jsp and highlight the typo. My question is 1. how do i pass the article ? In ListArray or String?2. then, it would come out the 2nd question how do ...
3488 byte By
kagaraa at 2007-11-27 10:43:23
I created a file using iReport and have been trying to execute it with no success. I want to call the report template in xml and display it on a browser. My problem is that, it returns nothings or never prompts me to download<%@ page import = "java.sql.*"%><%@ page import = ...
Hello All,I have the JS function which i connect to a .dll's and get back XML String. I want to pass this xml to my java/jsp. I am guessing that i can do it with AJAX.here is what i am trying to do:<script language="javascript" type="text/javascript">var xmlHttp;function createXMLHttpRequest() ...
276 byte By
rnDa at 2007-11-27 10:43:42
<p>Hello,</p><p>I need a help. I have a requirement, where I have to change the image of a label from "Tradeable" to "Non tradeable" after 15 seconds.</p><p>Can anyone please tell me how can I implement it. I am using JSF in my screen.</p><p>Thanks & Regards,</p><p>RD</p>
681 byte By
sivasaia at 2007-11-27 10:44:00
hi,how to set default to radion button.my code <h:selectOneRadio id="searchTypeId" value="#{Bean.searchType}" onclick="submit()" valueChangeListener="#{Bean.searchChange}"immediate="true"><f:selectItem itemValue="app" itemLabel="Search 1"/><f:selectItem itemValue="Invst" ...
460 byte By
KY8a at 2007-11-27 10:44:02
I have a form made up of a table. In one row I have a date picker. Unfortunately, I need to hide this row before the page load up. When a radio is picked, then this date picker row will show. However, when the row shows, the date picker does not appear. Why is this and how can I get around this ...
Hi all,I have an issue of renderring jspf's dynamically in an jspf. I have three JSPF's and the order is dependent on backend, so the order can be of any sort . I need to use the string in the name property of <jsp:include name = str ></jsp:include>, here the str is determined during ...
<p>Hi all,</p><p>I wrote a servlet which queries a database and returs the results to the calling client. Now I want to enable the client to cancel long-running queries. Is it possible to catch an event in the servlet e.g. if the client-user hits a "cancel" button? </p><p>Thank you!</p><p>Benni</p>
[nobr]Hi, I am a Beginner of learning Tomcat & JSP. According tutorial, I follow the code and found it can't work,I place the BasicServlet.java into C:\jakarta-tomcat-5.0.28\webapps\ROOT\import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.util.*;public class ...
[nobr]Hi, I am a Beginner of learning Tomcat & JSP. According tutorial, I follow the code and found it can't work,I place the BasicServlet.java into C:\jakarta-tomcat-5.0.28\webapps\ROOT\import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.util.*;public class ...
1006 byte By
Huija at 2007-11-27 10:45:14
I am trying to detect whether a radio button was selected before submitting the formI want a popup alert saying "Please make a selection" if none of the radio buttons were selected.heres what i have so far (i only created one button to see if it works):<script type="text/JavaScript">function ...
<p>I'm new to parsing. I have separate XML and DTD txt files and I'm using SAX. Can anyone indicate why I get this error?</p><p>"Problem starting XML processor com.ibm.xml.parser.XMLReader#read: Invalid UTF-8 code. (bytes: 0x93 0x57)"</p>
13151 byte By
losheaa at 2007-11-27 10:45:27
All,I have written a custom component, but am having trouble getting it to work. When i place it in a jsp or jspx and try to run the application using this control, i get compilation errors:org.apache.jasper.JasperException: Unable to compile class for JSPGenerated servlet error:[javac] ...
1148 byte By
Troilusa at 2007-11-27 10:45:29
Hi,I am trying to realise the PRG Pattern in a simple example web app. Do you think i "solve" this pattern with this approach?-->I have got a register.jsp file with a form which submits data per POST to a servlet. This servlet (Controller) "call" the Model to save the data into the DB and ...
I recently installed Java SE 6 and want to know how to use the web services that come with it with Tomcat 5.5.Searching the internet yields no answers.Specifically, I need to know what needs to go into the web.xml file to publish the web service, whether another xml file is needed, whether Tomcat ...
I notice that "use a Filter" is the common response for securing Java web apps. We posted a short how-to for using the built-in web app security tools. It's easy to use and it can interface easily with a user database and require SSL encryption, but the configuration can be ...