2053 byte By
rameshra at 2007-11-27 9:43:13
Hi everyone,pls someone try to help me to solve this problem.We are designing an application that will let the users download the files from the webpage in which each file internally has a fileid. Now based on that fileid some updations must be done in the database.The file is dispalyed to the ...
Hi AllI am not able to find the solution of the following problem :I have to buttons on a jsp page, one is working as back button and other is working as a next button, According to their name , when we click on these buttons they are retrieving records from the database(by sending new request ...
Hi All ,I am using ejb3 along with JBoss 4.2.0 , Java5 and Oracle Toplink as the persistence provider and Oracle 10g . After having deployed my datasource successfully , when I deploy my ear file , I get this error :Please help me out .11:17:51,078 WARN [ServiceController] Problem creating ...
hi i created an servlet under eclipse and i got an error message.The archive: /CATALINA_HOME/bin/bootstrap.jar which is referenced by the classpath, does not exist.i configure web.xml like that. <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, ...
i want to access a url parameter from javascript .. how can i do it.for example: url= abc.jsp?param=1i want to get the value of param in javascriptYour help will be greatly appreciated
229 byte By
Vansha at 2007-11-27 9:43:51
Hi to all,I m new in EJB i want to how to create first ejb program n how to deploy it on weblogic server also how to run it ? please send me good link for EJB.Expecting for favorable reply Vansh
Hi all,I post data to a server and get response[in xml] back like thisSocket theSock = new Socket(serverhost,80);PrintStream ps = new PrintStream(theSock.getOutputStream()); ps.println("POST /url HTTP/1.0");..SAXBuilder builder = new SAXBuilder(); //==<< get reponseDocument doc = ...
If I can't use resource files like ApplicationResources.properties and I need to set two keys:button.add=Add Recordbutton.delete=Delete RecordCan this be done in some other file, like in the JSP page or struts-config.xml?/Matt
Can somebody please explain me the significance of binding property.Please illustrate with an example
Hi.I'm trying to connect to microsoft Exchange 2007 by using javamail on IMAP.I'm using this code:import java.util.Properties;import javax.mail.Session;import javax.mail.Store;import javax.mail.event.ConnectionEvent;public class MailHandler {/** * @param args */public static void ...
hi, i am using tomcat 5.0 while running the jsp i am getting the internal error as follows.HTTP Status 500 - --type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Wrapper ...
i want to add javascript Calendar inside JSF , can any one give me advice about where to get it and how i embed it inside JSF ?Thanks for everybody
hello allI have created a web application and it contains a jsp named abc.jsp.I am calling a java program myjava.java from within abc.jsp.Now myjava.java class extends another class extended.java.This extended.java class is inside a jar file named myjar.jar.The abc.jsp is compiled fine but at ...
565 byte By
d11wtqa at 2007-11-27 9:44:49
I've been working with Tomcat for the past 4 days without any problems but for some reason today, there's one particular JSP file it's just refusing to see changes for :( I've cleared my browser cache, removed everything from the 'work' directory, double checked the file, deleted the file ...
Hello.From my database layer I get a list with objects that all extend the same super object but every object in the list could be different. I need the jsf page to show each object in its own way depending on what type of class it is.First I thought of coding the whole thing in the object it ...
Hi all, In My Enterprise Application I have two EJBs with Local Interafaces.Both the beans are packaged within same EAR.For some functional reason both the beans are dependent on each other i.e. circular dependency.While deployment It shows me following error:Error loading deployment ...
hellocan anybody explain about , when we need <jsp-file> in web.xmland why we use this tag in place of <url-pattern>?
i've tried every thing but this doesnt work<aonclick="javascript:changeLang(this)" >function changeLang(obj){obj.href="changeLang.jsp?lang=2";}in this article... http://www.devx.com/tips/Tip/5498.. . some one tells to use href="javascript:changeLang(this) instead of ...
hI GUYSThis is sri, i need to have done an application to send mails programatically, below is the code, can any one fix the bug or give me the code which works fine?Any help will be appreciable!!!!!!Thanks & Regards,Sri.CODEimport java.util.*;import java.sql.*;import javax.mail.*;import ...
363 byte By
txatia at 2007-11-27 9:45:33
Hi,my app has to output an XML file with the results of the process, so I need to create the XML and write it to file.It will be a small XML, and I' ve got the DTD syntax.I use jdk 1.4, and only included libraries.My question is, should I use SAX or DOM? JAXP? how to link with the DTD?Examples ...
206 byte By
2569a at 2007-11-27 9:45:37
Hai,I want to include one pop up message box in a jsp page which contains three buttons "Yes" "No" and "Cancel" . Is it possible to do the same using javascript ?Thanking u ,Kris
Hi guysI had one doubtwhether we had write java script with in servletsI just write this code but it will not work?Any one can solve the problempublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {StringBuffer ...
Hi All, I'm wondering if someone could provide me with an example of how to iterate through an ArrayList of HashMaps using JSTL? Thanks
Hi GuysIm trying to write a servlet that receives a File and then sends it using JMS.... i have some basic code in place (from examples ive fouond) ...Ive written 2 classes 1) a servlet that receives the file2) a requester that sends the data to the JMS QueueBut there is a couple of things im ...
172 byte By
GYANa at 2007-11-27 9:45:53
Hello to All For creating web service i know abt wsdl , axis not anything elseplz give me some guide line and steps to creating web service from eclips
Hi folks,I am using Kodo for persistence in weblogic 10.0.For data source with (configuration Non-XA , two-phase commit, Global transaction),when enabling transaction Required for my MDBs, i am gettinga class not found exception for my entity class, after all operations.Entity persistence is ...
Hello,I have developed a Webservice Client in Netbeans 5.5 It al works perfect, but how do i change the URL for the ENDpoint or the URL from the webservice?Greetings
2878 byte By
rameshra at 2007-11-27 9:46:04
Pls dont mistake me for calling your name directly in my posting since I need helpNow I am using AJAX to pass the parametersbelow is the code that i am using to download a file using a hyperlink<tr><td><a href="<%=totaldisplayfileName%>" ...
I am working on a creating components such as HtmlOutputLabel and so on through the backing bean. I add the HtmlOutputLabel to a panel grid in the bean. Then I create an object of UIComponent in the bean an assign it to the panel grid. In the jsp i write<h:panelGrid id="panelgridtest21" ...
Dear everyone,how can i store the the file into folder and the file path in the MySql databasereally urgent...any one please give ur suggestions...
I need help linking to my mySQL DB through the web.xml file.Currently I am using this code in each JSP:<sql:setDataSource var="myconn" url="jdbc:mysql://localhost/drinksDB" user="USERNAME" password="PASSWORD" driver="com.mysql.jdbc.Driver" />How can I add the reference into my web.xml ...
1815 byte By
bhomiaa at 2007-11-27 9:46:40
Hi,I am new to JSF and i have one requirement which needs to be fulfilled. Here is the scenario:Whenever a user submits a URL, i want to follow my custom navigation handling mechanism (This mechanism is based on Spring WebFlow). For which I have a xml which states how the flow should ...
can any one tell how to resize the drop down list
Hello Everyone,I am new to Java EE and I am in need of a little assistance. I am in the middle of a JSP tutorial and it is teaching how to apply the <jsp:useBean> tag however I am unsure of where to put my complied bean classes on the server so that it can find them. Is there a special ...
I am using a mail template system that gets templates as JSP pages placed in /WEB-INF/mailtemplates/I want to internally parse JSPs as if they were real JSPs in my tomcat but:- Get get them using getResourceAsStream (or any other way)- make JSP engine translate JSP into HTML into a String ...
185 byte By
KY8a at 2007-11-27 9:47:11
I have a webpage of links on the top. When I click on a link, I want to display the content of what the link references under the link on the same page. How can I do this in JSF?
Could someone help me with this error as soon as possible.I am trying it from last 2 days,but can't solve it.I tried intiliazing driver,but didn't work.Driver driver = null;try{driver = (Driver)Class.forName(applicationproperties.getProperty("TD_T4_DRIVER")).newInstance();}even if I try w/o ...
If a component has rendered set to false, can it still perform an action? In other words, if I have a button which does something which I don't render for unauthenticated users, is there any way they will be able to save the html to disk, and modify the various form elements to perform that ...
Hello All,I am trying to learn about Beans in Java, after creating a two JSP pages and a "User" bean. When I try to run the first JSP page (handoff1.jsp), I keep receiving this error in Tomcat(see below).org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at ...
2115 byte By
secmaska at 2007-11-27 9:47:54
hi all, i have i small javabean like this : package web; public class Student { private String name; private int birth; public Student() { name= "hahiho"; birth = 1900; } public String getName(){ return name; } public int getBirth(){ return birth; } public void setName(String name){ this.name = ...
3919 byte By
zzza at 2007-11-27 9:47:57
Hi,we have a simple page where i can edit my applications users.The users are listet by a datatable and every row holds a radiobutton with the users id. After clicking on one of this buttons the selected users data should be loaded into my form. All worked well ... until i introduced validation ...
405 byte By
bregotya at 2007-11-27 9:48:05
Hi , I have the html data and need to include in the jsp .eg :String htmldata = " <html><body>testdata </body></html>"; how can i display this htmldata in the jsp . I mean I need this data in html format ( testdata ) and should not see all html tags in the ...
315 byte By
STFa at 2007-11-27 9:48:11
HelloAre the resources included by javax.servlet.jsp.PageContext include(...) methods always included synchronously? That is, is it true that when this method returns the target resource is already completely processed on current request object and the result is already appended to ...
I am sure that this is something simple and small but I have been banging my head against this problem for a while now.I am using the <html:link> tag on my index.jsp page activates an action, retrieves a result and forwards to the homePage.jsp. The home page has a tiles layout and the ...
In my message properties file, I have some likegender.f= Femalegender.m= MaleThe gender attribute of my user class store the gender information as f or m.How I display the gender with a JSF tag? I know it can be done with JSTL with the fmt tag.Thanks for your inputs in advance.Message was ...
Hello All,I am having a webapplication that uses jsp as front end and oracle as the backend. I am using Eclipse as my development platform with Tomcat as the App Server. My Jsp works fine. I need to connect to the Oracle database installed locally in my system. What are the steps that need to ...
1588 byte By
sat_83a at 2007-11-27 9:49:38
Hi,I have 2 xml files as shown ...
1316 byte By
Solraca at 2007-11-27 9:49:39
I test a simple EJB in OC4J and JBoss, both have problems to use dependecy Injection with EJB. I test dependency injection in a JSF managed bean and.The @EJB(name="application/EJBX/local")run in JBoss and the address of EJB is "application/EJBX/remote or local"To return this object by lookup ...
I have a web page coded in JSF. The web page has one input field and one table.I have rendered both input field and table (using h:dataTabe tag) without problem.I have also highlighted the first row of that table when the web page is loaded. No problem.And I have also figured out JavaScript ...
I would like to make a component for which when a command component is clicked everything should remain the same except the inner content of the component should be changed based on the outcome of the action spawned byt the clicking of the command component. this need not be ajaxical either. ...