servlet in a jsf application

273 byte By tombatorea at 2007-11-27 8:45:46
All,I'm trying to build a download servet to protect file access. I am however doing this in a JSF application and therefore I'd like to know if it is possible to access my session / application managed-beans from out the servlet?Thanks,Steven

Urgent--Sun application server will not start

194031 byte By Scientist2a at 2007-11-27 8:45:47
I am having problems starting the sun application server 9. I get the following message:C:\Users\samuel\Exercise2\nbproject\build-impl.xml:440: Deployment error:The Sun Java System Application Server could not start.The server log is below Pleasssssssssssse help ...

WSDoAllReceiver: Request does not contain required Security header

3321 byte By maxpadea at 2007-11-27 8:46:16
hi all,i have a webservice connection which was using wss to creae a signature. Now i dont want to sign my webservice so i deleted all what initiate a signature. after deleting now im getting following error when sending a messageWSDoAllReceiver: Request does not contain required Security ...

tomcat 4.0.6 web.xml

2093 byte By Sourav123a at 2007-11-27 8:46:31
Hi,I have a tomcat 4.0.6 server running on a production environment. My web.xml doesn't seem to be working fine with that. Can any one give me a sample web.xml thats accepted by 4.0.6 tomcat server? However my web.xml is as under.<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE ...

Tab layout using html in JSP

256 byte By nsahooa at 2007-11-27 8:46:43
Hi,I need to display different contents using tab layout. So, the user selects any tab it will show different contents depending on his selects.Can anybody post any sample for this? I need this in simple html using in jsp.Thanks

How to set a list from code?

790 byte By bbqfritoa at 2007-11-27 8:46:53
I just started teaching myself JSTL and I really do not know what to search for, so I will just explain what I am trying to accomplish.I have a class with static methods that retrieves objects from a pooled database connection and I simply want to iterate over the list using JSTL.<c:set ...

disabiling a button after the click in JSF

424 byte By pmohanana at 2007-11-27 8:47:04
Hi...,For one of the screen, the request takes some time for to complete & redirect the user to a new page. What we don't want is for the user to click on the button multiple time . When we use the onClick event on the button to disable , it works fine, but then the request is not ...

War-File without jsf-library

473 byte By Argonista at 2007-11-27 8:47:11
Hello,I am using to pack the jar-files (myface-apl.jar, myface-impl.jar, common-*.jar,....) in WEB-INF/lib of War-file. It makes the large file, but I want to reduce the size of War-file. I want to separat the jar-files from War-file, because there are the jar-files in the Path ...

dynamic CSS and JS includes

222 byte By spiderworma at 2007-11-27 8:47:13
Hello,Using JSF here at work and am wondering how to go about adding dynamic content to included .js and .css files. It seems to want to force those types of files to be static only.Thanks,David

jsp, store values from database.

1533 byte By deroka at 2007-11-27 8:47:15
Hi everyone,I have a table in a database in microsoft Access and this table has a column which has two rows:Price (name of column)324what I want is that each number, in this case:32 and 4gets stored in a respectively variable for each number,for example:2 in a variable like: String a;59 in a ...

panelGrid - css border attribute being ignored

477 byte By ray.vaneperena at 2007-11-27 8:47:22
I have a panelGrid as follows:<h:panelGrid id="datasetManagementGrid" columns="1" styleClass="pageContentArea" >the css is as follows:.pageContentArea { width:568; border:1px solid #cdcdcd; }The html is rendered as such:<table id="_id0:datasetManagementGrid" border="0" ...

jstl code in javascript

592 byte By bhaarat_javaa at 2007-11-27 8:47:37
Helloi am converting jsp pages with java snippet code with these tags <%%> TO jstl tags. in our old page we have a JS function like this..<script language="JavaScript">var cal5<%=i%><%=provNum%> ....</script>but when i replace <% tags wtih <c:out in that ...

Finding files via the servlet container.

1030 byte By abuga at 2007-11-27 8:47:46
We are currently developing a web application on Tomcat. We have several XML files that are deployed with our application which are parsed on startup. Currently we do this by retrieving the InputStream of each file via the ...

Reading a text file

1412 byte By tofuwithcoffeea at 2007-11-27 8:48:00
Hello:I have the following simple JSP that just reads a file and responds with the file contents. The first two lines of the file contents are:>> 280. 575. 0. 26. 1670 687 256 1738 26>> 74.1000061 74.4000092 74.7000046 75.0000076 75.3000031 75.6000061...excluding the ">>" ...

Sorting some information?

3691 byte By jspvoipa at 2007-11-27 8:48:03
Hey,I've been hammering this Cisco written JSP file for Call Manager for a few days now. I'm learning a little each day but I've run into something I need some serious help with.The program basically talks to the server and pulls off speed dial information then displays it on the phone so ...

jsp--if condition

1437 byte By deroka at 2007-11-27 8:48:07
<%while(resultset.next()){for (int i=1; i<=1; i++) {String re =resultset.getString(i); if(username.equals(re) ){out.write("That username already exists.<br>Enter another.");}else if(username != re){out.write("Hi new user");}} }%>Hi,I have this table with a column in a database, ...

Simple Java Question - How to Overwrite Set

493 byte By mail2bansia at 2007-11-27 8:48:13
After working so much in Java, wondering how do i overwrite java.util.Set My pojo is Set of associated object. For exampleclass Parent{....private Set child = new HashSet(0);....public Set getChild() {return this.child;}..........}I wanna overwrite set of child objects in pojo with the set ...

Request Attributes

1128 byte By slenno02a at 2007-11-27 8:48:49
Hi,I'm having a problem locating a request attribute. My understanding is that the request attributes should be available at all stages of the request.I set an account object as a request attribute in the first jsp page like so;<h:commandLink action="#{accounts.transactionsAction}" ...

Regarding beanness in case of 'afterCompletion' method

638 byte By NareshAnkuskania at 2007-11-27 8:48:50
In EJB 2.0 Spec Pg 81, it is said that Pt 1:Invoking the getCallerPrincipal and isCallerInRole methods is disallowed in the session bean methods for which the Container does not have a client security context.Pt 2:"Accessing resource managers and enterprise beans is disallowed in the session ...

Exception report

2603 byte By Fatima_qua at 2007-11-27 8:49:06
hi all,I'm trying to run jsp page but whenever i run it I get the error messageHTTP Status 500 - --type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: ...

FileAttachment using Servlets And Jsp's

3278 byte By AruruCodingScreena at 2007-11-27 8:49:07
[nobr]HI AllIam using the following code in jsp to attach file through Servlet,But iam getting only one file attach.But i want Multiple files Attachment Please Help me Give me reply quicklyVery urgent please.....KiranJsp:<html><FORM ENCTYPE='multipart/form-data' method='POST' ...

java+xml

209 byte By BhavanamRa at 2007-11-27 8:49:13
aim : java program Input:xml file for a java program which contains japanese/arabic. output: printing those arabic/japanese characters to consolehello can any body help me please...

Handling Bounced Mails

626 byte By Venkysa at 2007-11-27 8:49:16
Dear friends,I am facing a problem. I have to develop a program to handle the Bounced mails. Actually, I am having a DB of thousands of Email IDs. I am sending Newsletters and announcements to these IDs periodically. If there is any problem with the IDs, the mails will be bounced back. Now, I ...

quoted-printable transfer encoding producing a single dot on a line

2222 byte By hauser@acm.orga at 2007-11-27 8:49:28
Subject: javamail breaking signatures - "mail.mime.cachemultipart" notalways working?Attachments: result.eml.zip; jottMini.eml.zipHi Bill,The below example reads a mime message from a file and constructs a new one from the bodyparts.Unfortunately, when writing the newly created mail to an ...

Validation error

770 byte By CH.Sanixa at 2007-11-27 8:49:29
I always get validation errors in the following component:<h:selectOneMenu converter="javax.faces.Integer" id="test"value="#{SourceSearchBean.reportedRecordsComp}" styleClass="smallSelect"><f:selectItem itemLabel=">" itemValue="0" /><f:selectItem itemLabel="<" itemValue="1" ...

How I can view the content of a message which is inside the quque?

135 byte By Legolas.wa at 2007-11-27 8:49:53
HiThank you for reading my postIs there any way to view content of message which is inside the queue?Thanks

move n delete a file in JSP

297 byte By cSk@nG5a at 2007-11-27 8:49:54
hi, i am fresher in using JSP. i am trying to create a function that can move a file from a folder to another folder, once done, delete the file from original folder. Likeoriginal file: C:\folderA\fileA.zipmove to i) C:\folderB\fileA(add today date and

About abstract interface and it's method

408 byte By Anshu123a at 2007-11-27 8:50:03
Hi !!HttpSession session = request.getSession();getSession() is the Method of HttpSession and it is the abstract interface..right ?so how can we call the abstract method and ..here... request is the object of HttpServletRequest which is abstract interface so how can we make an Object of this ...

Problem in API

454 byte By wes68a at 2007-11-27 8:50:10
I have facing some problem during running this script, any idea with the error show ::Exception in thread "main" java.lang.NullPointerExceptionat com.side.ofac.API.LoginLoader.Load(LoginLoader.java:63)at com.side.ofac.API.SideApi.SoLogin(SideApi.java:225)at ...

[Exception] JSP JSTL

3725 byte By Esil2008a at 2007-11-27 8:50:31
Hi,I have this exceptionorg.apache.jasper.JasperException: Exception in JSP: /WEB-INF/vues/edit.jsp:6461: <td>Mari?lt;/td>62: <td>63: <c:choose>64: <c:when test="${personne.marie}">65: <input type="radio" name="marie" value="true" checked>Oui66: <input ...

To get the proxy address

99 byte By Sharon_Homea at 2007-11-27 8:50:33
Hi Is there any api in jdk1.4 to get the proxy address.. RegardsSharon

Posting List in backing bean ?

599 byte By tfindlaya at 2007-11-27 8:50:43
Hi,I'm new to JSF, and have been just stumbling around so far. I've got data coming from an EJB into my managed bean, then storing that in a ListDataModel which I iterate over in the page.Now I've got a command button to call a method in my backing bean, and I want to pick up all the rows ...

Dynamic values in checkbox

574 byte By farag_ahmed@yahoo.coma at 2007-11-27 8:50:56
Hello,I have a servlet where I submit the value of check box to other servlet and print them there. out.println("<input type=\"checkbox\" name=\"option2\" value=\"2\" checked>"); out.println(word+"");for this check box no problem as the value is static and always =2I tryed to make the ...

resultset getLong

448 byte By davide.angela at 2007-11-27 8:51:02
Hi,I have a problem with Long fields.I execute a query on a db oracle 9i and im using struts.-my example table on db:id- numbergenId - numbername - varchar(255 byte)-when i do:Long test = rs.getLong("genId")This function give me 0 but on db the true value is "NULL", i want get NULL and not 0. I ...

Checking OR , AND conditions in <logic:equal> tag?

369 byte By AnanthJavaa at 2007-11-27 8:51:14
Hi,How to check both OR , AND condition using a <logic:equal> tag?For eg, When i try to give like this..It is not working..<logic:equal name="status" value="1 || 2">//do whatever-- <logic:equal>Evn.. u can help me in this scenario...Expecting the ...

xml to pdf example

132 byte By Taigoa at 2007-11-27 8:51:15
hi!i need a java program to transform xml to pdf with fo.xsl file and i don't use apache libraries. is this possible?

Swing over JSP/Tomcat

364 byte By galandiliasa at 2007-11-27 8:51:26
Hi,I'm new here and I want to ask if there is a way to construct a Swing-based GUI over JSP/Tomcat? Currently I have an applet which has sophisticated Swing GUI/jfreechart, jcommon xerces etc./ but it loads slowly - and I want to move the execution on the server side - is there a way to do it ...

Navigation problem at serverside

1298 byte By pimbhaa at 2007-11-27 8:51:33
Hi,I am new to JSF. below is my flow i have main.jsp in that if i enter "1" in input text field and press enter then navigate to Employees page and 2 then go to departments page.... like that main.jsp:<h:outputText id="TEXT105" value="1.Employees"style="text-align:left;"/> ...

Autocomplete

33623 byte By thanua at 2007-11-27 8:51:41
Hi all,In my application i have displayed project names in a combo which i fetch from database. It is more difficult for the user to select a project from the combo. So i have used javascript autocomplete. It is working fine.When i used combo to populate i used to fetch both project name and ...

Recieving formatted mails

410 byte By Subramanyaa at 2007-11-27 8:51:50
Hi friends,I am developing a mail client using Jakarta Struts. I am stuck up in a problem. I'm not able to recieve formatted text mails. Can anyone tell me the solution on how to go about this The content type it gave is "content type==>text/plain; charset=ISO-8859-1; format=flowed"But it ...

Automatic generation of JavaScript in JSP prints quote in ASCII inside html

575 byte By saracgia at 2007-11-27 8:51:57
Hi,I generate a string in Struts Action class. For eg like this. String var ="var a = new Array(["A", "B"]);" ; and pass this string in request object. The string is properly escaped and generated perfectly. and in JSP use <script type="text/javascript" language="javascript"><c:out ...

How to increment using TableGenerator?

690 byte By CJ_125a at 2007-11-27 8:52:01
Hi all,I have a simple program which is customer entry. I use the TableGenerator which to increment the number of entry? i am using netbeans 5.5.Here is the error.javax.ejb.EJBException: javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server ...

Using JDOM and JAXP v1.1 to validate XML

740 byte By C.R.Crena at 2007-11-27 8:52:10
I have a JDOM Document object which is constructed by my program. I need to validate the Document object against an XML schema on the fly (i.e. without saving the XML doc to the file system). I thought it might work to print the Document to standard output and have XMLReader parse ...

Why have doGet or doPost in HTTP Servlet ?

391 byte By addvermaa at 2007-11-27 8:52:11
GenericServlet provides a service method, which is invoked every time a HTTP request is received by the HTTPServlet. Now the service method is not thread safe, but can be made thread safe. So why were the two methods "doGet" and "doPost" provided? Why not have developers implement their logic ...

Multi threading

299 byte By want2knowabt_javaa at 2007-11-27 8:52:15
Hi allMy doubt is I studied that in the concept of multithreading we either need to implement Runnable Interface or extend Thread Class.Is that true?If so...........why r two methods introduced ,if any one we can do the process?Pls let me

javax.naming.NameNotFoundException: service not bound

5569 byte By patel123a at 2007-11-27 8:52:16
hii am trying to access web services using JNDI lookup.this is my client code snippetctx=new InitialContext();//customerSessionRemote remote=(customerSessionRemote)ctx.lookup("customer/remote");Service service=(Service)ctx.lookup("java:comp/env/service/CustomerRegisteration");try { ...

BeanUtils.copyProperties Problem in Sturs

348 byte By Jayesh_Java_J2EEa at 2007-11-27 8:52:48
hi frineds,i am getting problem in formbean to valuobject.empForm(formbean) in String joinDate and empVO(value object) in java.sql.Date joinDate.when i am using BeanUtil.copyPropeerties method that time i am getting error. Convert problem in date.so any body know about that then please reply ...

Asynchronous Web Services

1106 byte By Guy_Hudaraa at 2007-11-27 8:52:56
Hi,I would like to implement an asynchronous web service. Here is my plan:1. Client call the web service with some input and a URL for reporting2. Web service check the input, and returns an error (synchroniusly) to the client if needed. If there is no error, it will start a new thread and ...

[ Submit ] nothing occurs when i send the information

6312 byte By Esila at 2007-11-27 8:53:00
[nobr]Hi,I have a JSP 揺dit.jsp?which is used to save the fields of the form in a Mysql data base (also for update). I use Hibernate for the mapping and the acess to the data base and Spring manage all that. My problem: when I click on the button send (submit) nothing occurs. i want to now your ...

displaying query result in JSP

1342 byte By draganma at 2007-11-27 8:53:05
hi all I have a problem how to display result in jsp page using JSTLin my JSP page goes like this: <table border="1" align="center"><tr><c:forEach var="items" items="${lista}" begin="0" end="100"><td> <c:out ...