1244 byte By
lucasma at 2007-11-27 9:08:12
I implement a converter to put on select one boxes witch will translate ids to complex bean types.This convertes works fine with JSF 1.1 Myfaces implementation.Now i am using JSF 1.2 and i am facing the folowing problem.The converter successfully converts the Id to my bean but it returns a ...
1054 byte By
Solraca at 2007-11-27 9:08:13
Hi all, I have a question respect to a EJB3.0 JPA Transactions work.if i have the folowing code inside EJB container:In a Generic DAO:public Object mergeEntity(Object entity) {return em.merge(entity);}public Object persistEntity(Object entity) {em.persist(entity);return entity;}In a ...
Hi, I am trying to set JMSMessageID using Message_id="5555";tmessage.setJMSMessageID(MESSAGE_ID); statement. but i could set that id. the EMS server is setting some id by default. is there any possibliity to change that id and give user definied id? if so let me know how to do that. the below ...
784 byte By
STFa at 2007-11-27 9:08:52
HelloHow to make a reference to stateless session bean from one of the helper classes of a servlet WITHOUT using any of these:* dependency injection (like @EJB) - I think this is not supported in this kind of class, EJB references can be injected only to servlets themselves or some other things ...
340 byte By
ILANGOa at 2007-11-27 9:09:07
Friends,Can any one help on "How to validate a composite unique key" with hibernate. Lets say table "MyTable" has columnsIDAmountParentIDTypeHere ParentID & Type are composite unique. How do I enforce this rule via hibernate? OR is there any work around. Please ...
1001 byte By
jco1323a at 2007-11-27 9:09:10
Hi,In researching ways to prevent direct access to pages in a jsf application, I came across a filter made by oracle. It seems to be a good filter so I decided to use it. It checks to see if the request is GET because, with the exception of redirect, JSF navigation is all POST and a GET request ...
I have an applet that is trying to send an email through an SMTP server. It works just fine 1.6 but on 1.5 it blows up and I'm kind of at the end of my rope. Any help here would be great.I've had to set up the DummySSLSocketFactory as described in the JavaMail readme but still no luck on ...
Does anybody have any pointers on how to eliminate external dependencies on schema within XML configuration files? For example, my web.xml starts out like:<web-app version="2.5" xmlns=" http://java.sun.com/xml/ns/javaee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" ...
2125 byte By
deroka at 2007-11-27 9:09:35
Hi,I am programming a Products sale.I am working with this variable "pricevar" which represents a price in a table, and a submit button that everytime is pressed, it adds this price with a product description.There is also a select> <option so the user could choose the quantity of the ...
549 byte By
karenJJa at 2007-11-27 9:10:01
Hi,I want to pass an array from servlet to JSP page. in the servlet: stringArray[0]= "string1"; stringArray[1]= "string2"; stringArray[2]= "string3";session.setAttribute("stringarray", stringArray);in the jsp:String[] stringArray=session.getAttribute("stringarray");but it seems that ...
549 byte By
karenJJa at 2007-11-27 9:10:03
Hi,I want to pass an array from servlet to JSP page. in the servlet: stringArray[0]= "string1"; stringArray[1]= "string2"; stringArray[2]= "string3";session.setAttribute("stringarray", stringArray);in the jsp:String[] stringArray=session.getAttribute("stringarray");but it seems that ...
Hey everyone,I have a JDom document and I'm trying to visit all the nodes and print their path. How do I do the printing?This is what I have (from javaalmanac):// This method visits all the nodes in a DOM treepublic static void visit(Node node, int level) {// Process node// If there are any ...
I'm looking for a better solution to a page refresh problem I've encountered.I am working with a POJO managed bean in Session scope which displays data for one of my domain objects. When I navigate to the page, I would like it to re-load the data for this domain object from the database and ...
363 byte By
ysh78NJa at 2007-11-27 9:10:48
Hi All, Suppose I have an xml fragment within a valid xml file which is like "<input name='test'>". When doing DocumentBuilder.parse(xmlString), is it possible to preserve the space after 'test' and before '>'? Right now when I print the document the whitespace is stripped. I'm ...
742 byte By
stricksa at 2007-11-27 9:10:50
Hello, I'm trying to do the following. When a user submits a form, several validations are done. The last validation needs to gather information from a database.I don't want to put all the connectivity code and such in my JSP (trying to keep logic out or display).I would rather not use an ...
949 byte By
Solraca at 2007-11-27 9:11:06
Hi all, I have a developed a application using Oracle ADF Faces, good, have some pitfails but OK.Now its necessary i develop a new application to system 24*7 Critic Mission, what of this frameworks i Use ?Ajax4Jsf and RichFaces one or two projects ? What diferences ?Apache tinidad, MyFaces and ...
HI,What i want to do is through a Hyperlink go to next page and on that page i want to get values from database .Example:suppose we have a page like this FormidDepartmentNameViewDetailsand after clicking that Hyperlink it shows the values from the databasehow can i do that ...
We use JSF, Spring, HibernateWe are having problems updating associated objectsLet say if Parent object ( in my case DeviceType) is associated with 3 records of Child object ( in my case Role) . During update, if i add or delete a Role from User Interface, i have observed the default behaviour ...
1556 byte By
MrReddya at 2007-11-27 9:11:35
Hi,I searched a bit on <global-forwards> and my understanding is that in the Action class, the ActionMapping object will try to look for the local forward defined in the <action-mappings> tag, if it is not found in that, it will then look for the <global-forwards> ...
help i cant get my JSP page to refresh..it keeps on displaying the old page even if i have edited the old one.im using tomcat 6.0 can someone help me please?
379 byte By
CPGuptea at 2007-11-27 9:12:01
I have a masterbean (placed in appl;ication scope as mb) holding collection of various data which is populated when application starts up.In the page when I try to use the html:select tag it gives an errorThe tag is <html:select property="city"><html:optionCollection ...
I'm trying to create a drop down box with a list of security levels for a user. The problem I'm having is my selectOneMenu box is creating a Conversion Error when I submit the form (to create a new user).I've been reading a lot of different posts about this problem and tried their ...
Hai all,i have a JSF page having simple form, username, password field and submit button, so on submit the form i want to get the data from the request object in next page without using a bean.How can i get it? I am looking for this problem for quite a long time, so can anyone help ...
Hi,I have 3 radio buttons on my jsp page and I would like the value of the radio button that has been selected, to be alerted in a pop-up message.This is my code:JSP,[CODE]<h:form id='msForm'>function ...
Hi,I have 3 radio buttons on my jsp page and I would like the value of the radio button that has been selected, to be alerted in a pop-up message.This is my code:JSP,<h:form id='msForm'>function ...
I have a PhaseListener which has a phaseId = PhaseId.RESTORE_VIEW. However in the afterPhase() is there a reason that the UIViewRoot object is not populated with UIComponents? Or is my understanding not right? I need to access UIComponents asap from the viewRoot!!
134 byte By
Suri.ya at 2007-11-27 9:12:34
I am having a JSP page from this jsp page on clicking the file name I want to open that ".tif " file is there any way for that?
hi,guys i know how to mail and all that stuff.My present situation is to mail the jsp output page(that is the last page in my application)so thanks in advance.
Hi all I am a beginer. I have to do a jsp project I installed tomcat 6.how can i change the work directory to D:/JSP
hello,I want info about unit testing(manual & automated).actually what are things developers has to perform while unit testing?
1034 byte By
Aharona at 2007-11-27 9:12:57
Hi I'm new to web development so I'm sure this problem has a really easy solution (although its bugged me for days now).I have created a simple web application with eclipse and tomcat consisting of an html page (index.html) with a link to a jsp page (testpage.jsp) my test page calls a class ...
hi,my situation is to mail the ouput jsp page(last of my app) .i know how to send the mail.so the problem is i need to capture the jsp page so that i can mail it.thanks
Hello,i'm struggling with JSF.inside the jsp page there is list of client types, if the user selects some value, then in output fields have to be shown details of this client ...
Hi, thereI'm newbie, can any one tell me what is advantage and disadvantage of servlet compare to JSP?Thanks for advance
Hi Lovables,Today i Posted a new Topic for u.. what i done successfully, Helping Hands is better than Praying Lips Thats my PrincipleProgram by : d.r. vijaykumaremail : drvijayy2k2@yahoo.co.in , drvijayy2k2@gmail.comph : hyd 09912877343 , tn 09842088860Plese Feedback Here is an example for How ...
Scenario:I have the main page with floating button. While scroll throw the page, this button will move in the right side of the page (nearer to scroll bar). While clicking this button, I am calling the pop-up (using iframe for pop up and calling through java script). Here I want to dim the ...
1327 byte By
avnera at 2007-11-27 9:14:13
HiI have a requirement to validate the mandatory fields only when the submit button is pressed....if some other button is pressed or some how the form is submitted the validations should not be performed....I have used required="#{MyBB.somecondition}" for all the mandatory fields...the method ...
i want to trim leading and trailing whitespaces from input boxes. i dont want to do that manually becuase there are quite number of controls in the application, i used PhaseListener with phaseID as UPDATE_MODEL_VALUES for this purpose, but the problem i am getting is that the input boxes inside ...
Hi,I am setting a value in session in java file and want to get that value in JSF JSP side in java script code since I am doing some action handling based on the value passed in session.But anyhow I am not able to do the same. Can anyone help me in doing this.?Thanks in ...
423 byte By
Sharifa at 2007-11-27 9:14:32
Dear Friends, I am using displaytag 1.1. I wish to use the string on the moving pages (ie First/Prev Next/Last) as a localized in italian. I have created two displaytag properties files (displaytag.properties and displaytag_it.properties) I have put the above files in WEB-INF/classes under ...
I want to run weblogic8.1 server ... so any body can u help me? I need urgently so kindly pls sent immediately......Thanking you
Hi all,pls help me with setting the focus on a html:text box using a javascript function where i have validated the value of that text box. document.formName.textName.focus () is not working .Thanks in advance
185 byte By
burchika at 2007-11-27 9:14:46
How to decode text like this: ?koi8-r?Q?=FD=C5=CC=CB=D5=CE=CF=D7_=ED=C9=C8=C1=C9=CC?= with the help of Java, of course?P.S. Do not send me to Java Mail FAQ, I've read it.
3307 byte By
Taigoa at 2007-11-27 9:15:11
hi!i need to transform a xml file into html file using docbook styleseheets, my java is:import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.parsers.DocumentBuilder;import javax.xml.transform.TransformerFactory;import javax.xml.transform.Transformer;import ...
796 byte By
Sri_Sria at 2007-11-27 9:15:15
Dear Friends,i am developing online banking project,using J2EE serverIn this just checking the customer transaction status only that is status of(withdraw,loan,account info). In this what type of enterprise bean is needed ? my idea is Session bean is selected,in this i am selecting stateless ...
I am familiar with the process of creating localized .property files for my JSF pages. What I would like to do however, is segment the file into multiple ones so that the messages stored in the request scope for each page is only the ones it needs, NOT the entire application's messages. To ...
I am using EJB 3.0 and SJSAS 9.0 --deployed with moduleid = EmployeeEntity[TopLink Config]: 2007.06.29 06:14:14.760--ServerSession(11110670)--The alias name for the entity class [class employeeentity.entity.Employess] is being defaulted to: Employess.[TopLink Config]: 2007.06.29 ...
Hello ,How can I run a batch job (java class) that will update my jsp page with newly added entries from table in database.In short, i want to run a batch job which updates drop down list in jsp page every time any update happens in my table in database.Can anyone help with sample ...
8173 byte By
mokopaa at 2007-11-27 9:15:54
You need 4 files.1. a jsp page (index.jsp)2. A servlet (myPackage.ImageMaker)3. A supplier class (myPackage.PluggableSupplier)4. web.xml (your IDE should supply this)From the jsp page you're calling the servlet with an <img> tag, and passing it some parameters.The servlet obtains a ...
Hi,I am trying to write an EL expression, in a JSF page, that grabs a specific item in a list. Something like:#{ vendor.addresses[0].street }but this doesn't work. How do I get an item from a list by its index?Thanks