using hyperlink to pass parameter

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

How to retain request parameter values.......

794 byte By chahalkhushwindera at 2007-11-27 9:43:27
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 ...

Exception got in deployment of EJB3 .ear

6384 byte By Rocker007a at 2007-11-27 9:43:29
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 ...

getting a problem with an servlet execution

2722 byte By hanimichi@sun.javaa at 2007-11-27 9:43:49
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, ...

getting url parameter through javascript

212 byte By ali_hammada at 2007-11-27 9:43:50
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

How to use EJB ?

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

exclude http headers from reponse?

1240 byte By worapoj@gmail.coma at 2007-11-27 9:43:53
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 = ...

Where to put keys(Struts)?

262 byte By javaExceptiona at 2007-11-27 9:43:59
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

Binding attribute

108 byte By Gagan_Sabharwala at 2007-11-27 9:44:01
Can somebody please explain me the significance of binding property.Please illustrate with an example

Java and Microsoft Exchange 2007

4970 byte By craig1980a at 2007-11-27 9:44:10
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 ...

please solve this error HTTP-500 internal error

1983 byte By sreedhar.vlsi@gmail.coma at 2007-11-27 9:44:19
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 ...

JavaScript Inside JSF

161 byte By eng_abdelhaleema at 2007-11-27 9:44:31
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

Related JSPs

664 byte By Raaj_Rock_n_Rulesa at 2007-11-27 9:44:48
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 ...

Tomcat specific question (JSP not refreshing)

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

Need a best practice for showing a list with different objects in it.

600 byte By Cogos.dk_Olea at 2007-11-27 9:44:55
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 ...

Circular Dependency - Local EJB Lookups

4730 byte By SandyShah-Indiaa at 2007-11-27 9:44:59
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 ...

use of <jsp-file> in web.xml

150 byte By sunvenkata at 2007-11-27 9:45:00
hellocan anybody explain about , when we need <jsp-file> in web.xmland why we use this tag in place of <url-pattern>?

javascript+setting anchor href

617 byte By ali_hammada at 2007-11-27 9:45:07
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 ...

sending mail programatically

4994 byte By Java_Aspiranta at 2007-11-27 9:45:27
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 ...

Create and write XML

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

Message box contains three buttons "Yes" "No" and "Cancel"

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

How can i include java script within java servlets

1414 byte By muthu2007a at 2007-11-27 9:45:39
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 ...

Iterating through an ArrayList of HashMaps?

157 byte By joebassila at 2007-11-27 9:45:44
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

newbie question - servlets and JMS

10134 byte By mlynch147a at 2007-11-27 9:45:49
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 ...

About Web Service

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

JTA problem - class not found exception after database operation.

946 byte By dev_viveka at 2007-11-27 9:45:57
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 ...

Webservice Endpoint URL

186 byte By TouringBMWa at 2007-11-27 9:46:02
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

balusc I need your help

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

Creating datatable through backing bean

612 byte By navneet.chauhana at 2007-11-27 9:46:06
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" ...

how to store file path name in database

175 byte By senthil_yogaa at 2007-11-27 9:46:16
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...

JSP 2 <sql tag>

1177 byte By MatthewWeilera at 2007-11-27 9:46:35
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 ...

Custom HandleNavigation

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

resize the drop down list in jsp

56 byte By RaviKumar.Avulaa at 2007-11-27 9:46:50
can any one tell how to resize the drop down list

What directory to put bean classes on application server PE9

545 byte By robert_t_stonea at 2007-11-27 9:47:07
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 ...

Render a JSP page into HTML in a String

995 byte By icordobaa at 2007-11-27 9:47:08
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 ...

how to display some contents under a link on same page

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?

java.lang.ClassNotFoundException: com.ncr.teradata.TeraDriver

746 byte By ASH_2007a at 2007-11-27 9:47:23
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 ...

rendered attribute and actions

320 byte By johnpeeba at 2007-11-27 9:47:47
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 ...

Can anyone help me get these JSP pages to work?

7575 byte By Nogravitia at 2007-11-27 9:47:50
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 ...

javabean in jsp

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

Howto skip Form validation for a Reload

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

include html content in jsp

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

PageContext.include methods

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

html:link action html:link on results page null

5933 byte By Swingnbluea at 2007-11-27 9:48:47
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 ...

Message display in JSF

376 byte By vwuvancouvera at 2007-11-27 9:48:58
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 ...

How to connect to Oracle from jsp page in eclipse

509 byte By Sudipthaa at 2007-11-27 9:49:34
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 ...

Merge Two XML Files -> without using document() method of xsl

1588 byte By sat_83a at 2007-11-27 9:49:38
Hi,I have 2 xml files as shown ...

@EJB Injection use or not ? Portable or not ?

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

Unable to Set Focus on the First Row of the Data Table

1379 byte By jiapei_jena at 2007-11-27 9:49:40
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 ...

Accessing view-ids

803 byte By tonyhaubera at 2007-11-27 9:49:42
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. ...