360 byte By
JAntona at 2007-11-27 11:25:00
Hi,does any one know how to get an id of new created by CMP ejb row? When I create new object it's id is 0, when i call ejb create it creates new row in DB and crates new ID by increasing the old one, but how can I get this new ID after create has finished?Now I have to look equals by some fields ...
Hi.On my jsf page I have this.<h:dataTable value="#{surveys}" id="surveys" var="surveyxx" styleClass="dvdtable" headerClass="dvdtablehead"rowClasses="results"columnClasses="dvdtablecol"><h:column><f:facet name="header"><h:outputText value="navn" /></f:facet><s:link ...
Hi,I'm using the validator framework with struts, in order to validate the user data. And I wanted to get the error messages from the MessageResources_en.properties file. But instead it writes ?en_US.errors.required? instead of fileds namesI don't think that there's a problem with my message ...
Hi,AllTools I have Used:web-logic Application Server 8.1 ,Eclipse 3.2 with the WTP2.0 plug-in ,Axis-1.4 I have developed one web service for soap with attachments as well as client to retrieve these attachment and it is working fine, but the problem is that when I deploy the web service on the ...
*******URGENT HELP REQUIRED*********THIS IS NOT A YADA YADA POST......Here is my code. I want to pop up a jsp page if user clicks on one radio button. <html> <title>Radio Button Validation</title> <body bgcolor="#FFFFFF"> <script language="JavaScript"> <!-- function ...
Hi,I am trying to read data from a table which is being populated by JMS.Following is the code I have written to extract the data from the column which is of blob datatype. StringBuffer blob = new StringBuffer("select messageblob from jms_messages");Connectioncon= null;String className= null; con = ...
I've tried to find out how I can make h:dataTable with one (selectBooleanCheckbox) or more chechboxes (selectManyCheckbox) for each of table row.my Bean is:private DataModel userModel = new ListDataModel();private User user = new User();public void setUser(User u) {this.user = u;}public User ...
Hi,I have two servlets which is running on two different web applications. When i hit a servlet it has to forward to another servlet which is running on different web application. i tried request.getRequestDispatcher and servletContext.getRequestDispatcher but both takes as relative URL and appends ...
814 byte By
dr.jgha at 2007-11-27 11:25:23
Hi ,I have a servlet acting as a front controller which uses a JSP via request.getRequestDispatcher(main.jsp) to handle the display.The JSP uses a servlet to handle the display of some hyperlinks.I set an attribute in the controller servlet to true but in the servlet displaying links remains null. ...
<p>JSSF - Java Server Security Faces it's framework for security layer. With JSP tags and pages/resource access control. Support MyFaces and Sun RI JSF</p><p> http://sourceforge.net/projects/jssf/</p>
I all,Petals ESB [1] provides a binding component for Apache Axis2, but I can't deploy it in openESB because of the error below which is related with the addressing module (in axis2 this is typically a classpath error). I don't know whether it is because this BC internally uses it's own servlet ...
326 byte By
sam_wiza at 2007-11-27 11:26:08
Hi, I am developing an application using struts i need to display a part of the form (eg details of the item selected ) depending upon what is selected from a drop down in the form, can you please help me regarding this. iam running short of time , would highly appreciate quick replys thanx ...
<p>HI ALL </p><p>i wuould like to ask everybody wheni use session.setAttributte("a","a");</p><p>this method to set session on. and then after use this session variable i want to remove it . how can make it work?</p>
I am trying to use ">>" as a label of <h:commandButton>like this:<h:commandButton id="cmdNext" value=">>"></h:commandButton>Seems like JSF page validator doesnot like the way i assign >> to its value attribute.How can I assign >> to value of ...
I have created a navigation component "Menu" , used as follows:<custom:menu />The contents of menu are stored in an xml file and the Menu component delegates the rendering to a custom renderer, which basicaly writes out html links. (Actually, the component does a lot more, but I'm simplifying ...
This is what I want my user final page to look like.CID is 222Container_type is DVDContainer_size is 4gbContainer_desc is Western Digital External Hard Drive. S/N: 86973648396Project_ID is 118I have written code to get just one category from database and display on page.What code can write to ...
2150 byte By
Boozlea at 2007-11-27 11:26:47
Hi,The title sounds a little bit weird, sorry for that,but I don't know how to describe it with a less of characters. Let me explain my problem. I have a <h:selectOneMenu> tag that gets it <f:selectItems> through a backing bean. The selectOneMenu is then filled with a list of categories one ...
1103 byte By
xoxotaa at 2007-11-27 11:26:53
Here's a brain-twister. I'm using JSF for the following:I have a "main" page that lists Tasks. The user is able to click on a task to navigate to a Task Editor page, where they can edit information. Each Task has a list of Task Administrator emails, and the Task Editor page displays them in an ...
<p>Is there some way to have the dropdown portion of the selectOneMenu expand to be wide enough to show selections that are actually wider than the size of the control (in the non-select state)</p>
Hi All,I have a struts form bean - comForm and it has a property comArticle - which is a List of objects(bean objects). again each bean object has some more properties e.g articleSummary.I am using JSTL to print the articleSummary. <c:forEach items="${comForm.comArticle}" var="article" ...
<p>how to output a form bean object which has List as a property.</p><p>Message was edited by: </p><p>pingu143</p>
My jsp fold structure:Webcontent-index.html login -login.jsp me-me.jspmy java fold : src-login-Login.java me-QuestionSubmit.javaFirst I login successfully,and go to me.jsp pageI submit a form in me page,my jsp code:<form name="frmQuestion" method="post" action="SubmitQues">,but I get 404 error ...
1402 byte By
Flossya at 2007-11-27 11:27:35
Hello,I am trying to parse a XML file and want to store the byte positions of start and closing tags so I can later use RandomAccessFile to get a particular xml element. This should be used to access very big xml files. I want to be able to pull out a arbitrary xml element given only the xpath ...
This feels like a ridiculous question, but Google is not being any help.How do I actually use a value returned as an instance of a subclass oforg.xmlsoap.schemas.soap.encoding.Array? I am trying to use XFire for the client code calling another system. I have the code generating properly from the ...
241 byte By
mark07a at 2007-11-27 11:27:50
<p>I'm using 3 arrays in a program but i repeat the program once becuase i have to do 2 different websites so i don't want to have to write a whole nother set of code is there anyway i can just delete the whole array and use it again ?</p>
Hello Freinds,I am new to jsf. I have a jsf page containing a data table.One of the columns has a command link. When the user clicks on the command link, a action method is invoked and the page is redirected to a new page containing another datatable using a navigation-caseOn the click action ...
358 byte By
bob-upa at 2007-11-27 11:28:07
I missed a step in setting up Petstore. This has resulted in me deploying a faulty application. It seems that I cannot undeploy the application without starting the Application Server 9. But I cannot start AS 9 without doing something about the faulty application.I guess I need to manually remove ...
2142 byte By
kkorea at 2007-11-27 11:28:09
Hi All,I am facing problem with session variable in JSP. For 6/8 hours application is running fine then session variable on JSP become as null. Values of NAME_LIST are coming from database. When we are storing in DAO and Action we are getting NAME_LIST properly. But when control is forwarded to ...
Hi All:I am using weblogic 9.2 to generate the web service client code.Here is my build.xml file to build the java client code:[QUOTE]<project name="webservices-TEST" default="client"> <taskdef name="clientgen"classname="weblogic.wsee.tools.anttasks.ClientGenTask" /> <target name="client" ...
Hi.Jboss allows making its DataSources available for JNDI remote access: http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSourcesGlassfish also: http://javahowto.blogspot.com/2006/08/access-glassfish-datasource-remotely.htmlThe specs says anything about this? Is this ...
I have an output that I get from my Oracle database where it takes parameters from form entries and queries the database.It list the records where it works with an ArrayList to get the output.Everything works great but was wondering if there is a more efficient way to do this?ArrayList ...
This is what I'm trying to do,I want to send image byte[] from a J2ME client to a servlet.But there is no correct length returned.Is there any way can get through this?I heard some one use Printwriter works,but still not work in my case.on servlet side--String type=request.getContentType();int ...
1379 byte By
aj.a at 2007-11-27 11:29:12
Folks,We are migrating from an JSP based UI to JSF. In our old application we used to have a single servlet base class that would wrap all the invocations of servlet subclasses within a AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext).I'm looking for an suitable ...
151 byte By
rajtwa at 2007-11-27 11:29:14
<p>Hi all,</p><p>i need information that how to deploy servlete in web logic servler8.1?/</p><p>and what are the steps to be followed?</p><p>thanks</p>
[nobr]I have a custom tag library that I am trying to pass a parameter to. Some parameters can be passed but others can not. This is a really simplified example:<%@ taglib uri="/taglib/blah.tld" prefix="blah" %><blah:simple selectid="<%=new Date().toGMTString()%>"/>returns23 Jul 2007 ...
<p>Hi,</p><p>how to retrive data from sql server and produce it as statistical graph as output </p><p>which concept will be easy to implement?...</p><p>Please reply......</p><p>Regards,</p><p>Raghavan</p>
268 byte By
relnaa at 2007-11-27 11:30:03
<p>we have a list box with some values...</p><p>the selected value is inserted into the database</p><p>later,after retrieving the same String from result set ,we want it to be set as "selected" in the list box...( for modification purpose)</p><p>how will we do it?</p>
Hi all, i have scenario,where i need to send a http request to web application from core java application and send a object with request.URL url = new URL(" http://localhost:6060/EVIPPOC1/first.jsp?invokehandler=this&ccxmlsessionid="+ccxmlid.toString());URLConnection conn = ...
<p>plz anybody tell me where i can find the link to download the j2ee api and for the jsp api</p><p>my mail id:mailtosivakumar@sify.com</p>
Hi to all java mania ...just a simple question - i don't know if it's simple - i wonder if any body can help me in telling me the way of uploading a web app on the neti've just finished my project and all i have to do now is to upload it one the company site,, and i have no idea at all, not the ...
[nobr]when i execute my code given below it works fine on my machine but when i execute same code on different machine i got exception:->javax.mail.SendFailedException: Sending failed; nested exception is:javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first ...
Hi,In my project i am using Tomcat server . When ever i am accessing my files in another folder it says org.apache.jasper.JasperException. It is working well in localhost. When ever i am placing code in mysite it says error.org.apache.jasper.JasperException: Exception in JSP: ...
<p>HI, i am not seeing javax.jms package neither in Java API 1.4 nor in Java API 1.5. But when i googled i found this package to be part of Java API 1.3. Well, what should i do to make this package available.</p><p>Please also refer good books on JMS.</p><p>Thanks,</p><p>Deepak</p>
<p>Hi All</p><p>How can i access session object within a servlet?, specifically within doPost()</p><p> method?</p>
Hi,I would appreciate any help that I can receive, basically I need to be able to generate a list of cities (maybe even towns, if possible) along with the respective countries to provide as selectable options in an application.I am aware that Java provides the 'Locale' API, but unfortunately this ...
<p>I have a web page opened. When I press Ctrl N, it opens the same page in another window. Are these 2 pages in the same session, or it is a new session...Can anybody explain?</p>
<p>Pls help</p><p>I get an error on my jsp page as this when I try to retrieve datavalues</p><p>action_jsp.java:397: illegal start of expression</p><p>out.print(subject_ar=);</p><p>^</p><p>What does this mean?</p>
231 byte By
relnaa at 2007-11-27 11:31:41
<p>i have a jsp page with some check boxes and one "update" button.......... i want to post the data in to another jsp page along with the input from a user prompt........</p><p>how can i do it.........</p><p>please help.......</p>
1364 byte By
Zorama at 2007-11-27 11:31:47
Sir, I want to pass the variable 'transfer' to 3.jsp. What should I do?. And how?By using both the option like jsp:forward and response.sendRedirect(), its not working. Why? Can't I do it like this?Here's my code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 ...
I want to know that which framework or tool is best for web application unit testing along with the JUnit. Can I know the differences between various framework like Cactus , Selenium and Shale. Can anyone suggest me that which one is best to use long with JUnit For JSF application and why is it ...