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
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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
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 ...
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" ...
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 ...
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 ...
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 ">>" ...
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 ...
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, ...
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 ...
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}" ...
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 ...
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: ...
[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' ...
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...
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 ...
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 ...
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" ...
HiThank you for reading my postIs there any way to view content of message which is inside the queue?Thanks
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
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 ...
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 ...
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 ...
Hi Is there any api in jdk1.4 to get the proxy address.. RegardsSharon
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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;"/> ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 { ...
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 ...
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 ...
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 ...
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 ...