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 = ...
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 ...
I try to display an error message for user to see.Please help me on that to develop the servlet program. Thanks
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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,
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 ...
I'm trying to insert record into table using servlet. Can you please show me the statement and syntax of how to use it?
[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 ...
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 ...
When do we opt GenericServlet?When do we opt HttpServlet(i know if protocol is HTTP, any other reasons)?
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 ... ...
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 ...
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 ...
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" ...
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" ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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
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[] ...
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 ...
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 ...
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 ...
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 ?
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; ...
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 ...
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 ...
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 ...
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
how can i return a LinkedList<Object> from Server to Client suppose that i have in Client already Object-class
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...