Wrong order of xml tags created while writing xml to a file

4719 byte By AkramChotua at 2007-11-27 8:37:28
I am trying to write xml to a file using below code:......DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();Document doc = builder.newDocument();// Insert the root element nodeElement element = ...

JSF data table error

5115 byte By tru1djf_dfa at 2007-11-27 8:37:29
I'm trying to test JSF code developed on NB 5.5 on Sun Application Server and getting strange error. Here is the full stack trace. I'd appreciate any input solving this ...

How to display message in Servlet

125 byte By wesleygcha at 2007-11-27 8:37:44
I try to display an error message for user to see.Please help me on that to develop the servlet program. Thanks

jsp & select from database

1661 byte By deroka at 2007-11-27 8:37:55
Hi everyone,I am making a connection in jsp, and i am making a query from a database(Microsoft Access) like this:"Select * from table";the query is executed correctly and i get the values from the database like this:out.println("<TABLE Border=10 ...

setting attributes in many to many relations

766 byte By bakr_awada at 2007-11-27 8:38:04
in my problem i have two entities A , B they have many to many relationpesodo codeclass A{ //Code .... Set<B> bs;}class B{ //Code .... Set<A> as;}Session Bean:-A a = new A();Set<B> bs = new Set<B>();bs.add();a.setBs(B);entityManager.persist(a);this is not a real code!!!i ...

jsp-microsoft accessimage

565 byte By deroka at 2007-11-27 8:38:06
Hi everyone,I am trying to save an image in a Microsoft Access database, so i can make a query to that image using jsp, and display the image in the .jsp.The problem is that I don't know what data type to declare in "access" when i am creating the table.I have tried with OLE Object type, and ...

java struts2 xml

551 byte By tonetonea at 2007-11-27 8:38:10
hi mates, Plese give me some clues for some of my questions.I stored xml file data as xmlType in oracle database.I am also using struts 2 for the project.I wanna retrieve that whole xml file in the form of string and send them to the client html table. How can I catch that whole string xml file ...

help

330 byte By loleetaa at 2007-11-27 8:38:21
hii have a problem,i'm trying to make a marks form in order the teacher can submit students marks, the problem is that i'm using many text fields in one form and those fields must have the same name so that i can read all the marks in array and moving to the databse...could u please tell me ...

J2E and multi-threading

569 byte By f.visticota at 2007-11-27 8:38:27
I know that multi threading is not permited in J2E applications.BUT my pb is as following:My J2E application is using a scheduler (Quartz). This scheduler reads a file witch contains commands to be inserted in database.If i make a classical loop with a for instruction, the performance are not ...

Linking Files in same page with Portlets

771 byte By saisria at 2007-11-27 8:39:05
I am developing a portlet application and I have the need to create options like < a href=# class="selectedTab">login</a><a href=# >logout</a><a href=#>admin</a>these 3 are in same tab.my problem is invoking logout screen in same page.while linking the out ...

Issues in looking up a ejb deployed on glassfish from tomcat.

3508 byte By JamesSelvakumara at 2007-11-27 8:39:15
Hi all,I have followed the steps mentioned in the EJB FAQ in the glassfish site and was able to lookup a remote ejb deployed in glassfish from a standalone client.In case of standalone client, i set the appropriate jndi properties in the initial context as mentioned in the FAQ and added the 4 ...

Open source File Uploading and downloading module

189 byte By CSDevelopera at 2007-11-27 8:39:19
Hi,I want an open source file uploading and downloading module implemented in JSP or Servlets technology.If any one can help me , plz reply to me quickly.thanks,

Wrong Navigation problem

2483 byte By QOLYa at 2007-11-27 8:39:20
I have a simple facelet page which display user information on the top and user agenda list on the bottom of page.In the agenda list user clicks on an agenda and should go to agenda edit page,but instead of going to agenda edit page it returns to user profile page with empty values!My ...

What's the syntax for Insert statement in Servlet?

127 byte By wesleygcha at 2007-11-27 8:39:48
I'm trying to insert record into table using servlet. Can you please show me the statement and syntax of how to use it?

<h:selectOneListbox> does't work with a custume class type

5553 byte By mohammad.gha at 2007-11-27 8:39:55
[nobr]hi allI want to use <h:selectOneListbox> with a custume c Class type "Foo", as its value but it doesn't work and doesn't throw an exception too.please, look at the example below !!!I created an object of "Foo" classs and stored in fval attribute,it just doesn't work.it work only ...

Dynamic binding of jsf component to html on client side?

587 byte By apurvam101a at 2007-11-27 8:39:58
Hi,I am developing a CRUD JSF page, which would allow user to create (add) rows of data (or delete/cancel the data added) without server hit. I am using some Javascript that would allow to create/delete inputs (right now simple html input text component) all on client side. However, I dont know ...

GenericServlet Vs HttpServlet

111 byte By kalpanava at 2007-11-27 8:40:09
When do we opt GenericServlet?When do we opt HttpServlet(i know if protocol is HTTP, any other reasons)?

client uploaded files in servlets

388 byte By Kernel_77a at 2007-11-27 8:40:10
hi , i save the file to config.getServletContext().getRealPath("/");but when i try to jsp:include it adds the /applicationName before it to it's the wrong dir allso the file is saved to the plugin's metadata dir i reckon it'll be ok when deployed to the server ... ...

how to access LDAP?

337 byte By PaviEluri20a at 2007-11-27 8:40:24
Hi,I have a requirement based on following constraints:-1. All users should be authenticated using LDAP username and password.2. If they are authenticated a session must be created for them and it should be maintained.Please tell me how to do it in detail as I am a newbie to ...

Few Java EE questions

3951 byte By atl3kgta at 2007-11-27 8:40:29
Hey guysI am writing my first EE application and running into a few problems and would appreciate any help i can getoverviewAt the moment the application consists of an enterprise module and a windows client application.Web module will be done laterSQL server 2005 is the database being ...

h:commandLink problem

3706 byte By makadosa at 2007-11-27 8:40:42
i have to files, header.jsp and menu.jsp--header.jsp--<f:subview id="header"><h:form id="headerForm"><h:commandButton value="commandButton2" image="/images/logo.gif" action="home" "/><h:commandButton value="commandButton1"image="/images/button.gif" ...

pass value from jsp to struts action

922 byte By djordjewa at 2007-11-27 8:40:55
Hi, I need to pass one value from jsp to my struts action. Code below is used to show orders on one jsp, and my idea was to have button in each row which will redirect me to another page with order details. <logic:iterate id="lineItem" indexId="index" name="adminForm" ...

Tomat 4 not accepting user name/password

262 byte By AshiKhuranaa at 2007-11-27 8:41:10
Hey guys I am running tomcat 4. I've created a login.jsp page and a login-error.jsp page. Even though i am putting right user name and password it is still directing me to login-error.jsp page. Any ideas whats wrong with it?ThanksAsh

Connection pooling in JSF

302 byte By Ananth.duraia at 2007-11-27 8:41:17
Hi Guys, Is it possible to do connection pooling using JSF XML configuration files(Like using<data-sources> tag in struts though it was depricated in struts 1.3.5) or is there any alternative way to do connection pooling in JSF. could any one suggest me ...

Unable to locate bean class in Tomcat 6.0

2168 byte By Darienda at 2007-11-27 8:41:22
I'm sorry if this has been answered before but any topic I found related to this would not provide an answer that would work for me.This is the error I received:org.apache.jasper.JasperException: /dariend/web/SaveName.jsp(1,1) The value for the useBean class attribute user.UserData is ...

how to pass value through <s:checkbox>

1413 byte By anonyma at 2007-11-27 8:41:33
hello,plz help me with this.i've saved my object in a session variable named list. it has name,size, componentId attributes.i want that when user click the submit button, componentId (its of BigInteger type) values will be passed to my action class.here is my jsp snippet for doing ...

Named query in Entity Bean - Problem with embedded class

6420 byte By _Morpheus_a at 2007-11-27 8:41:46
Hello Forum,I'm trying to set up a named query in my Entity Bean and I'm unable to getit up and running for an embedded class object.The class hierarchy is as follows: @MappedSuperclass AbstractSapResultData (contains dayOfAggregation field)^|@MappedSuperclassAbstractSapUserData (contains the ...

Live chat window in jsp page...............

302 byte By ravi-kumar-123a at 2007-11-27 8:41:52
HI friends.....my requirement like this...am generating one jsp page.. in that it should have live chat window,mean the people who are all using that window,can chat or pass the informations... so how can i do this... URGENT PLEASE HELP me...THAKX in ...

Want to learn JWSD

164 byte By OnlyForJavaa at 2007-11-27 8:41:58
HI ,allI am intrested in jwsdp package. I want to study about that.So which book is best for studing ?Also suggest best online resources

list problem

1170 byte By listboxa at 2007-11-27 8:41:59
i have a list of user in my databaseMichaelAnthonyJohnand my interface have two listboxes component.below is my coding:PropertyInfo pInfo = PropertyInfoDAO.loadPropertyInfoByORMID(this.getSessionBean1().getPropertyID()); User[] userList = UserDAO.listUserByQuery(null,null);Option[] ...

Backing beans in JSF

702 byte By klsa at 2007-11-27 8:42:17
hi there...i'm a newbie to JSF..I quite confused with backing beans..currently i used netbeans as my IDE...Everytimes i create a new jsp page, Netbeans will automatically create java page,i.e i create home.jsp then i will also got home.java...my point is : Is that home.java file is a backing ...

Struts - Solutions for creating Wizards

772 byte By Larry_Vanzyaka at 2007-11-27 8:42:41
Hello everybody!Let's discuss, what solutions do you prefer for creating Wizards. The main requirements are:1. Chain of mappings with navigation buttons - Next, Previous.2. All data in one transaction (rollback on Cancel or exception, commit on Finish).3. Javascript Forms validation.We were ...

URL encoding problem

386 byte By Arch_Bytesa at 2007-11-27 8:42:51
I seem to have a problem about URL encoding.. You see my users are allowed to upload files and until now there has been no problem with uploading and downloading them..When the file name has sort of a special character in IE it says the that file cannot be found, while in Mozilla, it doesn't ...

How can i create new text boxes by pressing addtask(submit) button

192 byte By rayees1234a at 2007-11-27 8:43:05
HI All, In a page there having a text box in a row and a add task button , while pressing the add task button, need to create a one more text box ......... any one can help me ?

jsp with javascript

2270 byte By rayees1234a at 2007-11-27 8:43:21
I have page which contion a row (3 text boxes) and a addtask (submit) button , if i press the add task button need to create a new raw with 3 more text boxes . getting some error can u help mepls see the code<html><head><meta http-equiv="Content-Type" content="text/html; ...

Unable to Send mail.

10755 byte By Java-Helpa at 2007-11-27 8:43:39
I am not able to send the mail with this code. It is giving the following error.javax.mail.SendFailedException: Sending failed; nested exception is:javax.mail.SendFailedException: Invalid Addresses; nested exception is:javax.mail.SendFailedException: 554 SPAM-Relay detectedPlease help ...

getParameter() from METHOD=Post vs HREF

1230 byte By CarelDuToita at 2007-11-27 8:43:40
HiI've got a jsp that checks for parameters from a calling HTML.When the calling HTML uses the <FORM> tag with METHOD="POST"and <INPUT type="text" name="email" value=""><form action="logon.jsp" method="post"><table><tr><td>E-mail<td><INPUT ...

Jsp:inserting expiry date in datatable from another table datevalue.

753 byte By java@mania at 2007-11-27 8:43:59
Hi all,i have 2 tables in sql db.one is registration and other is jobposting.in registration table there is one column datetime which store system date.(for checking when user registered him self)now there is another table jobposting which have one column for the login date and expiry ...

am NEW to JMS..

239 byte By ravi-kumar-123a at 2007-11-27 8:44:01
Hi evey one...........am new JMS.. i need JMS service one of my project..i have to start from scrach.. so please any one can help about JMS...its urgent.. waiting for ur replies..Thankx ravi

return LinkedList<Object>

123 byte By cuongdeutsch2@yahoo.coma at 2007-11-27 8:44:11
how can i return a LinkedList<Object> from Server to Client suppose that i have in Client already Object-class

Using Collection to accept values of JSF form

497 byte By islandhopea at 2007-11-27 8:44:15
I want to accept all values of a JSF form in a List. There might be varius tags such as inputText, selectOneMenu, inputTextArea etc. tags in the form. But my aim is to accept it to List of bean not to individual bean property for each tag. I can't decide how'll I write the List in bean so ...

Accessing Microsoft Active Directory in Java

608 byte By art84a at 2007-11-27 8:44:21
hi,in one of my application, i want to access the MicroSoft Active Directory for login authentication and also to retreive some values from that.it's newly to me,how can access it thru java.i am using the Spring to develop this application.Can any one suggest me to solve this problem..Note:I ...

adfbc tutorial contains jsf

2099 byte By ferysasubekti@gmail.coma at 2007-11-27 8:44:25
i followed adfbc tutorial use jdeveloper. i deploy with choice item war file. and then right click the deploy result choice delpoyto>new connection. in the list connection type i fill jboss. the automatically ear file on the <jboss-home>/server/default/deploy.can anyone explain me why ...

<jsp:useBean ... /> class attribute invalid

2468 byte By dimitara at 2007-11-27 8:44:26
Hi. I get this error and i'm freaking out. I found a lot of threads of this error on this forum and on other forums and I tried every solution but I still get the error.I use Tomcat 6.0 and jdk1.6.0.Test.javapackage dime;import java.io.*;public class Test implements Serializable{private String ...

RMI @ WebSphere

413 byte By 1337facea at 2007-11-27 8:45:01
Hello everyone,I've got an RMI application (it expose it's methods through RMI) and I need application to run at application server, namely IBM WebSphere / WebSphere CE. But I don't know how. I tried make servlet which instantialize RMI methods to expose them. But it doesn't work and in ...

web service client should use jndi look up or service factory

215 byte By patel123a at 2007-11-27 8:45:03
hi java folks,i am very new to web services.i want to know, client (servlet or jsp) that access web service should use JNDi lookup or serviceFctory to access web servicethanks in advance.

Forward to a faces jsp page doesn't work via servlet

619 byte By slata at 2007-11-27 8:45:14
I get Null pointer exception when I am trying to forward to a faces jsp page from a servlet. In the servlet, I am using RequestDispatcher methodRequestDispatcher rd;rd = getServletContext().getRequestDispatcher("/Test.jsp");rd.forward(req, res);First I forwarded to a jsp page which had content ...

javascript to call hidden link

864 byte By jco1323a at 2007-11-27 8:45:22
Hi all,I wanted to use a jenia popup frame with the t:jscookmenu. I tried multiple ways to imbed the popup link inside the menu but none of them worked. Therefore, I decided the best way to go about it would be to add a hidden popup link and use the navigationMenuItem to "click" it. The two ...

JSF navigation - servlet parameters

1957 byte By longaira at 2007-11-27 8:45:34
I have an existing JSP based system which uses a 'controller' servlet to process my requests, e.g. 'controller?action=login' to display the login page and pad it out using request attributes.When I make the login page into a jsf...1. how do I make the jsf load via the servlet again when the ...

Got problem in tomcat while read xml file..

1567 byte By hudoqa at 2007-11-27 8:45:40
hi' i just wondering, why i always got his exception, i just want to read this filejava.io.FileNotFoundException: C:\Program Files\netbeans-5.5\enterprise3\apache-tomcat-5.5.17\bin\dbconfig.xml (The system cannot find the file specified)at java.io.FileInputStream.open(Native Method)......How ...