Archive in Java

238 byte By art84a at 2007-11-27 8:53:09
hi,in one of my application, i want to access the archive concept through java.if we have any API's for accessing that or it's possible in java.any one can suggest me regarding this.Regards,Bala

format-pretty-print doesn't work

845 byte By Eric-the-Ka at 2007-11-27 8:53:19
According to http://java.sun.com/j2se/1.5.0/docs/api/ I should be able to use the followingDOMImplementationLS domImplementationLS = (DOMImplementationLS) doc.getImplementation();LSSerializer lsSerializer = ...

using local interfaces for EJB (session bean)

878 byte By javaguy2007a at 2007-11-27 8:53:22
Hi,I抳e a question regarding when to use the Local interfaces(EJBLocal and EJBLocalHome) of a enterprise bean. I understand that calls to enterprise bean can be made locally if the client which is invoking is in the same JVM as that of EJB. I抳e written a web client (servlet) which is packaged in ...

How to prevent outOfMemoryErrors when performing XSLT transformations

2657 byte By balteoa at 2007-11-27 8:53:24
Hello,We frequently have out of memory errors when our XSLT transformations run depending on the size of our source xml documents. Here is the code that causes the above error to occur:System.out.println("XSLT transformation running...");TransformerFactory tFactory = ...

User Authentication

634 byte By sgshankara at 2007-11-27 8:53:39
hi all,i am working on servlets and i would like to set up authentication for the pages ppl view.i have used the following code to display that the page that people are viewing needs authenticationresponse.setStatus(res.SC_UNAUTHORIZED);response.setHeader("WWW-Authenticate","NTLM");it pops up a ...

rendered componet with two values

217 byte By sivasaia at 2007-11-27 8:53:40
HI,I am rendered for compare two values rendered="#{myBean.type == 'desc' && myBean.showField == 'name}"the above code showing.can any one help me

How to ?applet URLConnection ?to the same HttpServlet session.

434 byte By jahansoza at 2007-11-27 8:53:56
Hi my applet needs to upload some data to be appended to previous uploads every few minutes.I tried with session = request.getSession (true);sessionId = session.getId ()pass sessionId to applet and On the applet sideURL url = new URL (serverURL +"?JSESSIONID="+sessionId);orURL url = new URL ...

jscreator + mysql + java

619 byte By Terramotoa at 2007-11-27 8:53:57
sorry if this is the wrong place to post this but im new here and new to java...so i found the jscreator and now im trying to build a website with mysql access (login auth) i "installed" the mysql-connector-java-5.0.6-bin.jar to access the mysql db and now i wanted to do a login_validation but ...

determine mouse click position on jps page

170 byte By AMR_QURAa at 2007-11-27 8:54:19
hi ........ i'm developing registration web application using Jsp and want to determine the user mouse click position on frame.......... how can i do it using jps

help regarding books..

339 byte By martiana at 2007-11-27 8:54:25
hi,i need some help regarding the books on advanced java ..the topics i am going to cover are :J2EE application modelJSPStrutsEJBIntro. to HTML and XMLPlease suggest the books which help me to have a good grip on these ...

help regarding books..

339 byte By martiana at 2007-11-27 8:54:26
hi,i need some help regarding the books on advanced java ..the topics i am going to cover are :J2EE application modelJSPStrutsEJBIntro. to HTML and XMLPlease suggest the books which help me to have a good grip on these ...

Optional return value from JSP custom tag?

2590 byte By simpsoraa at 2007-11-27 8:54:47
Hi,I'm writing JSP custom tags, and I want to be able to optionally provide a variable name for a return value (like several core tags, including :url and :import).It works fine if I require the return value variable, but I cannot seem to make it optional.Here is the relevant part of working ...

Error found in component h:selectOneMenu

9126 byte By PieterPareita at 2007-11-27 8:54:56
Hi,I think i found an error in in JSF1.2_04-b16-P02 (tomcat 6.0.13)-- class persistent beanpublic abstract class PersistentBean<T extends PersistentBean> implements Serializable {private long id;public long getId() {return id;}public void setId(long id) {this.id = id;}public boolean ...

HTML break in string from java bean

810 byte By mon.goosea at 2007-11-27 8:55:09
[nobr]I have a JSP page which uses a datatable to show the properties of a number of objects that are passed from an array. Is it possible for a string property in an object to have a line break which will appear as a break on the interpreted HTML?Say I have a string:String str = "WORD";and I ...

JSP expressions <% %> to get remoteUser

396 byte By murbaina at 2007-11-27 8:55:10
Hello, I tryed to get the domain username of the user who called my web application. I succeed to get it in a simple JSP page but IceFaces don't support JSP expression. Do you know another solution to get the remote userName or the remote ip address.?I think to get the username by calling the ...

Download functionality from JSP screen

407 byte By ILANGOa at 2007-11-27 8:55:11
Hello experts,I am new to J2EE and I need help on "Adding download functionality on a screen that will downlaod the screen info to MS-Excel". The application is built using Struts,Hybernate,Tiles&Spring. Please provide some sample code which will fit into this framework. I highly appreciate ...

Facelets with Tomahawk

641 byte By ivlad10a at 2007-11-27 8:55:29
I'm confused.In the copy of tomahawk.taglib.xml file I have all tags pointed to org.apache.mayfaces package, All is working.I was trying to point them to org.apache.myfaces.component.html.ext package and got this:javax.faces.FacesException: Undefined component type ...

jsp & java bean

586 byte By deroka at 2007-11-27 8:55:30
Hi, i am using a java bean in my jsp,<jsp:useBean id="car" scope="session" class="car.Myclass" />I am using Blazix Web Server.everything works fine,The problem is when i run the jsp in another computer, it sends me the error: "cannot find bean Myclass", but I really don't know why i'm ...

How to list queue subscribers

180 byte By avirana at 2007-11-27 8:55:36
Hi all,I'm trying to find a way to find out how many clients/subscribers a specific queue has. Is there a way to find out (using java API)Thanks,Aviran

JSF and XML propertie File instead DOTpropertie File

560 byte By @esiona at 2007-11-27 8:55:45
HelloI'll would like to load resources in JSF (<f:loadBundle>) Coming out by a xml File instead a .propertie File.I've got no problem get resources stored in .properties I try to change the files. Al I get is a exception throw byorg.apache.myfaces.taglib.core.LoadBundleTag ...

Adding columns to dynamic datable after first render....urgent!!!

6241 byte By AndresGonzaleza at 2007-11-27 8:55:51
(sorry about my english...still learning)I have an application wich consists of three frames: a header, a menu(left frame) and the content frame.One of the menu options redirect the app to a jsf with a dynamic datatable and it is rendered perfectly.Then, i go to other menu option where i can ...

[HELP] Search engine

654 byte By Marcoriesa at 2007-11-27 8:56:42
Hi all, I have just joined this forum.I am currently writing on my thesis about implementing NLP (natural language processing) for an intelligent search engine. The fact turns to be the NLP in Java is not available yet, so in conclussion of my thesis i want to demo the search engine using Java ...

Calling class method in JSP

2108 byte By kensingtona at 2007-11-27 8:56:43
I am trying to call a helper class in my JSP where I am checking to see if a record exists. Please advise how I can get this to work because it wont call the class method and gives me blank output.JSP<%@ page import="package.classA %>String name = request.getParameter("name"); //value ...

Image Prblem on linux server

875 byte By AP_javaa at 2007-11-27 8:57:04
Hi,In my project i want to display images present on server(linux). I am not getting how can i give path for that image to display it in jsp page.Previously i given path of folder where actual image is present(on linux).and then by getAbsolutePath() for that image.But not succeed. I tried ...

Session Timeout

936 byte By Ram.Madireddya at 2007-11-27 8:57:08
Its a JSF-based application where i have got series of .xhtml pages. Assume that i worked with four pages in it and after few minutes(15 mins) if i am trying to proceed to the next page its getting hanged, no exception too. We are using managed beans for these pages which are in session scope, ...

To put expiry date into the sql table.

662 byte By java@mania at 2007-11-27 8:57:12
Hi all,I have registration table that stores all the values that are specified into the registartion.jsp page.the table also contains 2 coloumns more other than the fields specified into the database.the 2 column are logindate that will take the system date and store it when inert query is ...

unscribe

156 byte By ElisaCappaa at 2007-11-27 8:57:28
I'm sorry but I need tu be unscribede from the email. I have already triede to unscribe but still receive mail. How can I do this?Help

help with struts and a dynamic JSP

446 byte By praneeth_ma at 2007-11-27 8:57:35
There is a JSP that has a add button, which when clicked adds a row of text boxes to the screen.When the save button is clicked all that information has to be captured and stored in the action class.How can such dynamic jsp form information be captured? all the information coming from the jsp ...

generating error page(in jsp) when session expires....

120 byte By anu_pawara at 2007-11-27 8:57:45
hello,i want to generate error page(in jsp) when session get expires...plz help me out.............

jsp and bean problem

2315 byte By a1ba at 2007-11-27 8:57:48
[nobr]<HTML><HEAD><TITLE>Calling a Private Method</TITLE></HEAD><BODY><H1>Calling a Private Method</H1><jsp:useBean id="bean1" class="beans.Message" />The message is: <jsp:getProperty name="bean1" property="message" /> ...

Purpose File Data Source

548 byte By oasis.deserta at 2007-11-27 8:58:11
FileDataSource filedatasource = new FileDataSource(filename); messagebodypart2.setDataHandler(new DataHandler(filedatasource)); messagebodypart2.setFileName(filedatasource.getName ()); Multipart multipart = new MimeMultipart(); multipart.addBodyPart(messagebodypart1); ...

Reloading JSP page

337 byte By ananymous123a at 2007-11-27 8:58:17
hi,I am currently working on a struts project. I am not able to reload the JSP page. When I click on submit button it displays me the error regarding the text boxes but the text boxes r not getting refreshed. The previous values r still displayed on the screen. Plz reply as sson as ...

Professional opinions on web development platforms

1171 byte By noroutea at 2007-11-27 8:58:20
Dear JEE developers,I'm currently part of a research team at the Free University of Berlin, looking into the ways in which the major web development platforms differ. In addition to our work with the Plat_Forms contest, we're now looking for actual professional opinions.If you have practical ...

Retrieving data using jstl

180 byte By want2knowabt_javaa at 2007-11-27 8:58:35
Hi allWhich JSTL tag should be used in order to retrieve data frm databaseusing servlet and display it on a jsp page.Pls provide some code.Thanku

find exactly jboss

769 byte By ferysasubekti@gmail.coma at 2007-11-27 8:58:42
i use oracle jdeveloper version 10.1.3.2.0, i have followed adfbc tutorial and then deploy to jboss. of course that jdev contains : JavaServer FacesSpecification-Version: 1.1Implementation-Title: 'jsf-api': JavaServer Faces API Reference Impl.Implementation-Version: 1.1_02-b08 and ...

JSF Parameter Bassing

966 byte By bdillona at 2007-11-27 8:58:56
Hi,Given the following scenario;Page A (SearchPage) can navigate to two possible pages Page B (ViewPage) and Page C (EditPage).I wish to pass information such as a persons details from the SearchPage to the View or Edit Pages. As I understand this can be done either of two ways;1. As request ...

How to go to previous page in JSP

710 byte By Atmaling_Kshirsagara at 2007-11-27 8:59:23
I have designed a page with database in JSP,I am having 3 textboxes on the form where user can enter ID,name and address. Suppose user enters values such as ID="xyz" name="atm" address="ksh". Then it should prompt "Enter numerical values" and it should remain on the same page. I tried this with ...

good GUI for the project SQL injection attack prevention tool

170 byte By shirish02a at 2007-11-27 8:59:24
wants a good GUI for project SQL injection attack prevention tool using static and dynamic analysis.....Any help will be appreciated....thanksShirish

client authentication via active directory

570 byte By Sunneke31a at 2007-11-27 8:59:39
hi all, I received a webapplication, created in JSF.It runs on tomcat, and users should be able to access it via their webbrowser.At this moment anyone can access the webapplication.Now this is my part of the task: there10 users are configured in active directory. When accessing the ...

Can I send large data as a stream in request or response

459 byte By .@_a at 2007-11-27 8:59:43
I have to send a large amount of string data as a part of request to the web service provider. I cant send it as a simple string object as it will lead to OutOfMemory error. Is there any way so that i can send the data as a stream to the web service provider? I couldn't find anything in web ...

File copy

4446 byte By thanua at 2007-11-27 8:59:55
Hi,Following is a program to copy directory and files. Program works fine if i copy the directory (subdirectories and files inside are also copied). But if the source is a file instead of directory i get the following error:java.io.FileNotFoundException: D:\Thanuja\test (Access is denied)at ...

getting sql exception when using EJB 3.0 with Java Persistence API

1969 byte By pantulaa at 2007-11-27 8:59:56
Hi,On my PC when I run the sample applications in Java EE tutorial I don't get any errors. But, when I try to run my own code, then I get the SQL exception. I paste the exception stacktrace below.The exception says that the column is not present. But, the column is actually present. The named ...

j2ee connector

554 byte By xleybaa at 2007-11-27 9:00:05
HiI'磛e a package that allow applications connect to an IBM host using sockets and 3270 telnet protocol.I want to isolate and standarize such layer using JCA to run it as a resource adapter in an application server.I'm new to jca and reading specification is drivin me a little bit confused. ...

JSP, JavaBenas and Struts problem :(

4237 byte By jini4javaa at 2007-11-27 9:00:22
Hi All,Well i have tried several approachs...but I am not able to get properties of a bean object on a jsp page.The situation is, I am creating a new java bean instances for every row in the result set. I am storing those bean objects into an ArrayList. Then I am setting that arraylist object ...

setLocale with value from bean-function

1686 byte By HaukeGa at 2007-11-27 9:00:27
[nobr]Hello,hopefully my english is good enough for my problem.I'm playing around with jsp's for a couple of weeks now, and so I am not really good now. Most of the problems I found out by myself, but this time I am over my head.index.jsp:...<%@taglib uri=" http://java.sun.com/jstl/fmt" ...

value not resolved in html:text tag at weblogic

570 byte By Inukaa at 2007-11-27 9:00:36
I've a jsp working fine at tomcat, but after i migrate it to weblogic, some of the html:text tags are not working properly.eg. <html:text property="dispParamValue" styleClass="formFill1line" value="${sysvarList[rowCount].dispParamValue}" />Instead of display the value of ...

un highlight check box value

460 byte By farag_ahmed@yahoo.coma at 2007-11-27 9:00:39
hello, I want to un highlight check box value , that i can see but i can't click. i used :out.println("<input type=\"checkbox\" name=\"option\" value=\"" + query + "\" checked disabled=\"true\" >");but the problem that when i try to read the option value it is null. when i remove ...

Tomcat 5.5.9 sendRedirect() issue...

2463 byte By ANJa at 2007-11-27 9:00:52
Hi All,This seems to be a common issue, but I have tried most of the tips given on the forum. Still, I couldn't get it to work. Below is the code snippet. The same works for Tomcat4.x, but not with Tomcat5.5.9 Any advice would be appreciated.My webcontext is under: webapps/PackageStationIn ...

Session holding in login JSF component

248 byte By Georg4a at 2007-11-27 9:01:08
I made a login component using JSF and I need to hold a session so that the user only has to login once per session. So it can be like "save Password" function on some forum.Could you help me with this stuff?I need it very much

send information from webpage to an email

179 byte By JavaAftaba at 2007-11-27 9:01:09
i am new to Java & Programming , i am creating a webpage & i Need to send information from webpage to an email without using the database, please help me out