Get row id after EJB create method.

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 ...

Parameter is not sent to my method from jsf

1266 byte By Cogos.dk_Olea at 2007-11-27 11:25:03
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 ...

?en_US.errors.required? instead of fileds names

2719 byte By natoskiiia at 2007-11-27 11:25:08
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 ...

webservice disappear when I restart the weblogic 8.1 server

590 byte By itrahulsonia at 2007-11-27 11:25:09
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 ...

How to pop up a jsp page from a grp of radio buttons?

2284 byte By PaviEluri20a at 2007-11-27 11:25:12
*******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 ...

getting exception-optionaldata exception

1087 byte By arindamdhara at 2007-11-27 11:25:13
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 = ...

How to do h:selectManyCheckbox for each of rows in h:dataTable

976 byte By red-ariesa at 2007-11-27 11:25:16
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 ...

Reg redirection

645 byte By Sangeetha.Ka at 2007-11-27 11:25:22
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 ...

Losing session attribute

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. ...

JSSF what you say about this security lib for JSF?

200 byte By necromancer15a at 2007-11-27 11:25:45
<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>

openESB and Axis2 BC

17785 byte By michele81a at 2007-11-27 11:26:06
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 ...

displaying a part of the jsp page based on an item selected from drop down

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 ...

clear session

215 byte By roger5089a at 2007-11-27 11:26:10
<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>

How to assign >> to attribute value of <h:commandButton>

306 byte By learningjava5a at 2007-11-27 11:26:13
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 ...

Best approach to using command link from within a custom component

2303 byte By thatricharda at 2007-11-27 11:26:28
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 ...

Query Result

3561 byte By Delmonico02a at 2007-11-27 11:26:31
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 ...

Backing bean with parameter in method called in JSF selectOneMenu

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 ...

How to add rows to a UIData datable without persisting to the DAO?

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 ...

selectOneMenu

197 byte By bill_bartleya at 2007-11-27 11:27:20
<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>

alernative to <bean:write> in JSTL

988 byte By pingu143a at 2007-11-27 11:27:21
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" ...

form bean output

114 byte By pingu143a at 2007-11-27 11:27:22
<p>how to output a form bean object which has List as a property.</p><p>Message was edited by: </p><p>pingu143</p>

One question for struts2-How to get action

1549 byte By Gonewiththewinda at 2007-11-27 11:27:29
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 ...

XMLStreamReader byte location missmatch

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 ...

Using a returned SOAP array

2296 byte By Scott_Sauyeta at 2007-11-27 11:27:45
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 ...

Deleting an array

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>

NO data after a page is loaded

592 byte By jsf_ajax_usera at 2007-11-27 11:27:52
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 ...

Cant undeploy faultly app without AppServer but cnat start AppServer

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 ...

Session variable null in jsp after some hrs

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 ...

Can weblogic client takes empty arrays being returned.

6308 byte By jadeite100a at 2007-11-27 11:28:21
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" ...

Accessing DataSources via JNDI remotely or from out-of-container vm's

343 byte By Andres_Gleza at 2007-11-27 11:28:24
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 ...

ArrayList output from database

1907 byte By Evergreana at 2007-11-27 11:28:50
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 ...

inputStream.available();

2734 byte By r19850420@yahoo.com.cna at 2007-11-27 11:28:52
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 ...

Wrap all code paths within AccessController.doPrivileged() block

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 ...

how to Deploy Servlet in web logic 8.1?

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>

Custom tag library - some attributes working, others not

1912 byte By jeff_chisma at 2007-11-27 11:29:22
[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 ...

retriving data from sql server and producing it as statistical graph

204 byte By raghavjavaa at 2007-11-27 11:30:02
<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>

list box

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>

calling JSP from java using URL class and pass object in query string

643 byte By rahul_yadava at 2007-11-27 11:30:15
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 = ...

J2EE API download

139 byte By java4sivakumara at 2007-11-27 11:30:17
<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>

how to upload a web app to a site

423 byte By QussayNajjara at 2007-11-27 11:30:22
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 ...

javax.mail.SendFailedException: Sending failed

7579 byte By yogeshjoshijia at 2007-11-27 11:30:24
[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 ...

Help me on this error...?

741 byte By sure_2912a at 2007-11-27 11:30:47
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: ...

Where to get javax.jms package..?

282 byte By Deepak2001a at 2007-11-27 11:30:48
<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>

session

114 byte By jotnartaa at 2007-11-27 11:30:55
<p>Hi All</p><p>How can i access session object within a servlet?, specifically within doPost()</p><p> method?</p>

List of Countries, cities

536 byte By ibn_aziza at 2007-11-27 11:30:57
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 ...

Ctrl N

180 byte By sumeshzzza at 2007-11-27 11:31:11
<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>

Illegal Start of Expression

213 byte By febykadera at 2007-11-27 11:31:21
<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>

prompt user

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>

response.sendRedirect() and jsp:forward()

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 ...

JSF Unit testing along with JUnit

306 byte By vng_javaa at 2007-11-27 11:32:00
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 ...