In father class here is the annotation:@Entity@Table(name = "CONTENT_MEDIA")@Inheritance(strategy=javax.persistence.InheritanceType.JOINED)@DiscriminatorColumn(name="CONTENT_TYPE", discriminatorType=javax.persistence.DiscriminatorType.INTEGER)@DiscriminatorValue("4")In son class here is the ...
514 byte By
thanua at 2007-11-27 8:07:36
Hi,In my application user selects the file path using html file select and saves it. Other users should be able to open that file by just clicking that saved file path (i display it as a link). Now the problem is user maps the shared folder in network as x: or Z: etc. so when he choose the file ...
684 byte By
caesara at 2007-11-27 8:07:57
Hi all,Just tap into web service technology recently. I google around and found out that there is MTOM. But if by default, without MTOM enabled, how does JAX-WS handle binary transmission by default?for example: one of my web method@webmethodpublic void upload(byte[] ...
hi....I want to create a file form my servlet in my virtual directory..my directory name ia vpsit cconatin vps -> WEB-INF -> classes-> servTest servTest is servlet....and i want to create file from servTest in vps directory..actually i am trying to create file but it by default saved ...
334 byte By
A222a at 2007-11-27 8:08:05
Hi everybodyI am using sun java application server 9.1 and I am getting this warning message when I start the serverjava.util.MissingResourceException: Can't find bundle for base name com.sun.enterprise.jbi.serviceengine.core.LocalStrings, locale fr_FRCan someone help me ...
Hi,I want to invoke a remote object ( exposed by RMI on a different host ) from my EJB container. Is there some preferred way or design pattern for doing this, or should I directly lookup the RMI registry and invoke the methods.
Dear friendi have a problem in a JSF page, the page contains two commandLinks invoking two different action methods in two different managed beans i want a way to submit the same data to any one of those beans regardless of which action i submit.please if any one know any thing about this its ...
I've two jsps say j1.jsp and j2.jspIn j1.jsp there is a combobox. From j1.jsp, I move to j2.jsp with jsp forward. Here I've passed some parameters and the values are available in j2.jsp.Again I move from j2.jsp to j1.jsp with jsp forward and pass back some values and one value is combobox ...
I have a managed bean that has a request scope and i have a backing bean that sets and gets a string value,, i am able to set the string but everytime i try to get it , it turns out null..any idea why and how i can solve it?
Hello everybody,i'm relatively new with jsf and have a question about using many instances of the same bean in a jsp page.I explain my case:i have bean1 which extends another bean2.in a jsp page i include 4 other jsp pages. each of this 4 pages is binded with 4 instances of the same bean1 ...
Hello! First of all i'm sorry for my english level, it is not my native language.I'm new in the world of JSF, and i have this situation. I'm trying to make a wizard, so i have a back button and next button. I have no problems with the next button, but my problem is the back button. I'd like ...
Good day,Please help me with my problem.The problem is:I use this http://myfaces.apache.org/tomahawk/panelNavigation2 to make a menu on my site. Component renered perfect: I can open submenu items, click on them, todo some actions and so on. But if I will be redirected to another page the view ...
Do any one help me in creaing the managed bean instance in JSF using Spring framework?
167 byte By
Viplava at 2007-11-27 8:08:35
hi all,where does the statefull session store the state in between multiple methods invocations of the client.In which format it will store
Hi All,I am having a problem in evaluating a tag library within a c:set tag.<c:set var="encryptedInitial"><c:out value='<encrypt:encrypt data="${initials}"/>'/></c:set>Here <encrypt:encrypt> is a custom tag library.If I execute the above tag, the variable ...
I have a set of data which is dynamic.i.e the no. of rows is unpredictable.So, I want to use a <xsl:for-each . My code looks like:><xsl:for-each select="parent::EC-REPORT/TITLE-HEADER"><fo:block line-height="19pt" font-weight="bold" font-size="10pt" keep-together="always" ...
Hi Guys,I just wanted to know if I have a servlet running on one container which gets a request from a client. Now it processes this request and sends a response which in my case is a multipart post fileupload to another client. Can a servlet upload to another servlet running on anohter web ...
1209 byte By
iggya at 2007-11-27 8:09:16
Hi!I need to forward a SOAP request from a a servlet to a web service, I do it using response.sendRedirect but I notice that the header information is being moidfied thus preventing the service from answering properly, why is that? How should I do it?Thanks,A.Servlet requestHEADER NAME ...
Hi,How are you doing? I am just try to find a better data structure for my XML Document. My XML Document is typically contains one-2-many nodes with in elements. Check a sample below. <task id="Task1" type="Type1" Name="SomeName"><sub-task id="SomeTask"><action id="SomeAction" ...
I have a JSP page that i want to display a live display of the servers date and time (hours minute seconds)what would be the best way about doing this?thanks kindlyTom
155 byte By
JSF4Alla at 2007-11-27 8:09:25
Hi,Can anyone send me some relevant links that gives me an overview and idea about how to use Common Services in JSF.Thanks in advance
Hi Friends,When i try to load my home page am getting this exception :Root cause of ServletExceptionjavax.servlet.jsp.JspException: Cannot find bean null in any scopeat org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938)at ...
270 byte By
Sowja at 2007-11-27 8:09:46
Hi,I have written an onclick function on each row and passing the primary key of the table to the javascript function. I want the value which I have passed to the javascript back in the jsp to delete the particular row. How can I achieve this.Thanks
2123 byte By
StuDeva at 2007-11-27 8:09:48
Hi,I'm using JavaMail for the first time.My SMTP server has a user Id and password so im usingtransport.connect("esmtp.unwired.com.au","name@unwired.com.au","password");But when I send I get the following exception (i have change the email addres but the one I use is valid):-Exception in ...
I want to know how to retrieve values from the below xml.Because the firstname and the lastName are dynamically populated from the jsp?<c:case><c:data>name<c:party type="personName">firstName<c:rule>none</c:rule></c:party><c:party ...
Hi I am trying to validate an xml against the schema..and i get the following error : Attribute 'maxOccurs' cannot appear in element 'element'where my xsd is :<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs=" http://www.w3.org/2001/XMLSchema" ...
371 byte By
newbeana at 2007-11-27 8:10:10
I want to clear previous text content of text field before accessing page again, I had made a search page and when i enter a name in text page and then go to next page but when i do the search again, the name text box still has the previous name there,i want to clear that previous value before ...
HiI have some front end design of a report in jsp...it has tables and images. Is it possible that the response can be sent as a pdf file.....
HiI am trying to send the response from a jsp as a word file by setting the header information in the jsp file. there are 2 problems that are being faced:1>the images are not able to be seen in the word file once it opens in the client machine. in place of the images on a X symbol is being ...
I have a login page which I enter my username and password and click submit. It goes to validate.jsp as shown below. When this is invoked i get a strange error as shown beow the code<html><body><%@ page errorPage="errorpage.jsp" language="java" import="java.sql.*" ...
975 byte By
gokala at 2007-11-27 8:10:23
Hi, I am having a problem inserting a system date into a table. I am currently using Mysql. Please find code below.ins1="INSERT INTO USERS VALUES("+ "'" + g_user_name + "'" + ","+ "'" + g_user_password + "'" + ","+ "'" + g_user_email + "'" + ","+ "'" + g_user_phone + "'" + ","+ "'" + ...
Hello,We're developing a large JSF-based app with custom .tag on glassfishV1/AS9.0.1 and our team is having an extremely hard time dealing with JspException: Component ID has already been used in the view.They seem to pop-up randomly and even if we go through the trouble of setting an id for ...
My searching has led me to believe that you cannot call methods from in the jsp 2.0 tags. Is this correct? Here is what I am trying to do. I have an object that keeps track of various ui information (i.e. tab order, whether or not to stripe the current row and stuff like that). I am trying out ...
619 byte By
Doga at 2007-11-27 8:10:55
As new to JSF, I want to know , can I use script tag to define function in the head section similear to HTML or there is any other location to do this.I am using following .I have defined following in head section.<script language="javaScript>function test(){alert("Have you check the ...
692 byte By
jco1323a at 2007-11-27 8:11:02
Hi all,I made a jenia popupframe component. I have been testing my program in firefox and have neglected to test it in other browsers. I just tried my program in IE6 and when I clicked the link to the popup, it opened the popup but displayed the source code for it. I find this especially weird ...
272 byte By
Doga at 2007-11-27 8:11:21
As there is no id for input text and I have to validate the input text.I have looked some where onblur="test(this);" but don't know what "this" is in the argument in the test() and how can I use it in the script to validate input.Thanks.Roshan
642 byte By
nemcovaa at 2007-11-27 8:11:30
Hi,I have initialized a couple of HashMaps in the servletcontext object in one of my servlets init methods which is then loaded at startup. I have tried to access the HashMaps in my filter using config.getServletContext() but I always get NULL values. When I try to access the HashMaps from ...
Hi there!I created a simple app using JSF and used "JSF Html" (Exadel Studio in Eclipse) components. When the HTML is created, I ran it through a validator at http://www.validome.org/ and got a number of errors.Why doesn't JSF create nicer HTML that is compliant with Web 2.0? Or do I just need ...
Greetings,I am writing a simple service client using Java WSDP 2.0. I already created a Web Service that is a STAND-ALONE executable. It is listening on a port.I created this service with gSoap (C++). I HAVE created and successfully tested a gSOAP client for this (of course).However, now I am ...
998 byte By
fab3a at 2007-11-27 8:12:07
I had my jsp and displaybean working and displaying contents properly. Now I just added a new field for displaybean and I am getting an javax.servlet.jsp.JspException: No getter method for property: "lRating" of bean: "URLDisplayBean"I added this field "lRating" and proper setter and getter ...
Hello,I have a jsf portlet and facing a small problem.I have 3 views for my functionality. When I am on 3rd view, there is a button that takes me outside of jsf navigation to some other portal page.I do it with this snippet:facesContext.getExternalContext().redirect("<url to some portal ...
233 byte By
Anuj_Sa at 2007-11-27 8:12:21
Hi,I want to Impliment Single selection of check box to maintain mutual exclusion , by this i mean to say user can only select single check box .If user want to select second one then previous one get deselected.
354 byte By
Anuj_Sa at 2007-11-27 8:12:22
I want to hide a datatable at the time of rendering This datatable will be only visible if we have some data in it.so for implimenting this i tried to use <hx:jspPanel id="jspPanel1" >tag but trinidad dosn't support this tagcan u guide me to some other tag as replacement for this for my ...
HelloI am fairly new to JSPs. I basically have a simple page in which i will have bunch of checkboxes. user can select some checkboxes and click delete. once delete button is called i am going to a back end java code. How, in my java code, can I get which checkboxes were selected? can I get all ...
I am new to EJB, I am trying to understand the concepts. I am trying to understand example posted on https://glassfish.dev.java.net/javaee5/ejb/examples/Sful.html.What I don't understand is how Standalone Java Client is doing the lookup and against what is it doing the lookup. Is it just ...
9192 byte By
burferda at 2007-11-27 8:12:52
I know what is happening, but I do not know how to isolate the component so I can give it a unique ID.I am generating a fairly complex form and somewhere along the line, it creates a duplicate component ID. (see error below).The problem is that I do not know how to identify the component that ...
991 byte By
deeRama at 2007-11-27 8:13:13
Hi,I am trying to run a simple Hello World jsp page on jboss server 4.05.I have a web.xml as shown below in the WEB-INF directory which I created in the HelloWorld folder. I created a war file of the Helloworld project and deployed it in theRoot.war directory. ...
Hello Java People,I have a problem that is starting to frustrate me greatly and anyone抯 help would be very appreciated.My problem is that initially, a website site was developed wholly though servlets. I know this was wrong but hey, its what I have to live with.I have a main servlet ...
Hello,I am curious how I can pass XML string arguments to POJO methods and also get return strings in XML. It seems that POJO at least in Axis is not handling well!I am looking for simple ways to do this without using attachement methods.regards.
250 byte By
listboxa at 2007-11-27 8:13:55
have two listboxs and I populate the second accordingly to the selected items in the first listbox.And the method loading items in the second is called after a click which is fired by a command button.anyone have an idea how to do this?