I have a jsp page, in which a popup window open when a button is clicked through javascript like this...<a href="javascript:window.showPopup(<%=SUBJECT_ID_FK%>,<%=SEVERITY_ID_FK%>,<%= HELPDESK_ID %>)" ><img src='blahblah'>....Now I want to get the value of text area which is on the ...
I have included the JSTL core tag<%@ taglib uri=" http://java.sun.com/jstl/core prefix="c" %>Somehow the <c:if test="${not empty variable.something}"></c:if> does not work. Neither does c:forEachBut I can get at output of ${variable.something}The error message I get on c:if and c:forEach is ...
389 byte By
SecfGuya at 2007-11-27 10:30:34
Hi All,I need to put a link on a jsp.By cliking on that link user should be displayed with file download dialog to download an excel sheet.I tried using <a href="path of excel">Download</a>.When i click on this link the content of the file is getting parsed into browser itself(in binaru ...
i am uploading multiple file without FormFile.through java scripting i wrote coding..i wrote the coding correctly but when some one accessing my server to upload file means it take 0 bytes file nothing in the attachment .but its working correctly in my system.if some one accessing my system its ...
<p>Hi all,</p><p> I am trying to send mail on gmail using java mail API.</p><p> It need to authenticate first, can anybody explain why it need to </p><p> authenticate .</p><p> Please Reply</p><p> Thanks in advance.</p><p> Amit</p>
<p>Can anyone provide an example on how to use frames inside JSF? I don't know how to define the framesets inside the jsf file. A simple example will go a long way. Thanks.</p>
<p>If I disable a text button, I'm not able to copy the value to the database field. What cud be the reason?</p><p>The value where the textbox is diabled is being displayed on the screen and all other text fields values(Which r not disabled), I can copy them to database fields</p>
i am using netbeans 5.5.1.. it came with tomcat 5 and jstl1.1.. i have added the jstl jars to the library. my jsp page contains<%@ taglib prefix="c" uri=" http://java.sun.com/jsp/jstl/core" %>and my web.xml has<?xml version="1.0" encoding="UTF-8"?><web-app version="2.4" ...
Suppose we have 2 users, A and B.User A logs on first and after a while user B logs on.There is a good case that after a while user A will be seeing on his browser the name of user B and will have his privilleges *** well.I am not sure of how to express this problem and as a result I can't find ...
<p>Hello this is navin,</p><p>Can anybody give some sample examples on JSF UIComponents for the tags t:jsCookMenu and t:tree/t:tree2. So that i can custom these and add new features for the existing ones.</p>
<p>Hi All,</p><p>Could any one suggest me how implement mail delivery failure using java mail API.I have used TransportListener but its giving the successful delivery always.</p><p>A</p>
Hello!I'm working on a POP3 mail fetcher: a program which downloads messages from a POP3 server and delivers them to an SMTP one.I found a problem trying to send the message I get from a POP3 folder, like:Message[] messages = folder.getMessages();for(Message message : ...
I'm trying to set a variable with the value of the error message from the session object. <c:set var="reason" value="<%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>"></c:set><c:choose><c:when ...
<p>Hi all,</p><p>has anybody any experience on using the Advanced Message Queue Protocol (AMQP) [1] with JBI/ESB technology (i.e. Mule)?</p><p>I haven't seen any AMQP connector available: is there any plan for that?</p><p>Thanks,</p><p>Michele</p><p>[1] http://www.amqp.org/</p>
906 byte By
java80a at 2007-11-27 10:31:53
Hi Friends,How can i pass an array in the URL that calls a servlet. For instance,I have this in my servlet rite now:MyClass obj = new MyClass();String[] args = {"-opt1","-opt2","file1","file2","file3"};obj.main(args);I want that the "args" should come in the URL call,because some php application ...
386 byte By
reichana at 2007-11-27 10:32:23
Hi all,i am trying to realize a web services with Jax-ws technology that returns a created complex Object from me and that the client can interpret through the wsdl. How I must set up annotations of Jax-ws? you have of the examples from being able to me to show or of the link that they can help me ...
488 byte By
SLDykea at 2007-11-27 10:32:32
How can I use a session attribute value in the following code?<managed-bean> <managed-bean-name>nameBean</managed-bean-name> <managed-bean-class>demo.NameBean</managed-bean-class> <managed-bean-scope>request</managed-bean-scope> ...
Hi.I am generating html within my servlet and building a string containing html - a few <TD> tags with dynamic database data in them(shown below). When using firefox this generated html works perfectly and inherits the css formatting from the calling JSP page. However with IE7 the formatting is ...
1756 byte By
restevesa at 2007-11-27 10:32:41
Hi,We're developing a set of applications that communicate via web services.The company decided that to do this we should use jax-ws 2.1.Everything is going ok, its really easy to use, except for a web method that returns a java.util.Hashtable. In the endpoint there's no problem, it compiles and ...
6915 byte By
lrngjavaa at 2007-11-27 10:32:45
[nobr]I am trying to create a quiz page where users are able to pick the correct choice for the correct answer.Everything works fine but i got 2 problems. 1) i tried this statement Just incase if a user does not select any option i still wanted to display the correct result ...
170 byte By
satyaba at 2007-11-27 10:32:57
<p>Hi all,</p><p>in my application i need to provide help, i.e. when onmouseover on Help text need to display textdata.How should i implement this?Can anyone help me?</p>
1428 byte By
Subbhua at 2007-11-27 10:33:19
i am working with a complex structured application where i have to invoke the ActionListener.processAction() before the PROCESS_VALIDATIONS phase.i have a set of code which is public class MyActionListener implements ActionListener{public PhaseId getPhaseId() {return ...
Hi,I went through https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html page to understand the difference between application client and java client. Still I don't seem to understand how is it different. It's not being deployed in Application server then it means we run this as stand alone ...
I'm trying to produce the hello tutorial as documented here: http://developers.sun.com/docs/web/swdp/r2/tutorial/doc/p36.htmlIn NetBeans 6.0 M10, the editor finds the annotation classes just fine, but what do I need to do to process them when I build.In NetBeans 5.5.1, the editor does not find the ...
828 byte By
karenJJa at 2007-11-27 10:34:03
Hi all,I have a servlet with the following part of the code to redirect to an jsp page. When I enter the correct username and password, and click "submit", it should redirect to my index.jsp page. It works fine with firefox, but in Interworks fine with firefox. But in Internet Explorer(IE), if I ...
I have four check box.When ever we select any check box all previous check box must be selected.for example, if we select 3rd check box then 1 and 2 must be automatically selected.DOes any one have Idea how to implement in java script.I did it in JSP but for that I have to submit page once which I ...
250 byte By
69901a at 2007-11-27 10:34:38
<p>Hi All,</p><p>Please help me in this topic.......</p><p>if the user disable the javascript in his browser then we can't do the client side validation.how can we enable that javascript explicitly at the client browser.</p><p>Thanks in Advance.</p>
4280 byte By
Dhuygua at 2007-11-27 10:35:01
[nobr]<form id="form1" name="form1" method="post" action=""> <td width="30"><input type="radio" name="icon" value="1"/></td><td width="53"><img src="<%=SiteManager.getRootURL()%>/resimler/icon1.gif" alt="" width="35" height="30" /></td><td width="41"> <input ...
<p>hi friends,</p><p>I have a submit button and its onclick event I have called a javascript.</p><p>this javascript have a prompt and the user will enter the value in it.</p><p>i want this value into a hidden input field,which is there in jsp page.</p><p>please help me</p>
i have 2 screens. in the second screent i put history.go(-1) then it comes to first screen. But if you do any operations in the first screen means selecting any option etc. if you go to second screen and if you click back button(put history.go(-1)) it is coming to 2 screens back. Means it is coming ...
Hi friends,I want to modify the contents in a HTML page. This page is dynamically generated from some JSP. First of all, is it possible to modify the content in a HTML page that was generated at run time. If so, Pls. give me an example of the same.Tons of thanks in ...
I am new to JSF's and using JBoss 4.2.0 application server.I trying to use <t:panelTabbedPane> and <t:panelTab> in my page like this:<%@ taglib uri=" http://myfaces.apache.org/tomahawk" prefix="t"%><t:panelTabbedPane id= "tbParticipant" selectedIndex = "0"><t:panelTab id = ...
1346 byte By
veerjaa at 2007-11-27 10:35:29
parent jap <h:form id="form1"><h:inputText id="xxx" value="xxxxxxx"/><h:commandLink onmousedown="window.open('/my_child.jsp')"><h:outputText value="viewImage"/></h:commandLink>my chiled jsp<head>function updateParent(){var xname = window.parent ;alert (" Parent" + xname);var ...
<p>Hi </p><p>I have JSP1,JSP2. I want to navigate between JSP1 to JSP2 using a servlet say Controller.java . What should i specify in the web.xml file and what is the directory structure to be followed?</p><p>Thanks in Advance,</p><p>Praveen.</p>
what change i need to make the below code to work on any application server.What i need to replace for ...
1140 byte By
mgrommeta at 2007-11-27 10:36:01
I've got a url being generated out of some javascript:addnewitem.jsp?parentID=999addnewitem.jsp has a backing bean with a parentID attribute.The addnewitem.jsp takes some user input, and submits back to the FacesServletI'd like to set the backing bean parentID attribute with the value from the ...
I have to map a legacy database to JPA enity beans.The legacy database has to following tables:BaseComponent:integer basecomp_id (PK)... more fieldsBasePac:integer basepac_id (PK)... more fieldsComponent:integer basecomp_id (FK and 1. part of PK)integer basepac_id (FK and 2. part of PK... more ...
1481 byte By
xyzta at 2007-11-27 10:37:27
HelloI have a JSF page which includes a Group Panel and four HyperLinks in it. When one of the links' rendered property is set to false, the others doesn't arrange automatically.The unrendered link's place seems empty. I want the other links to locate themselves up.Here's my ...
1178 byte By
Ryion69a at 2007-11-27 10:37:31
Hi EveryoneThis is my first post but ive done a lot of reading of the forums.I'm working on a project where a user will enter data into a web form and a sql database will be searched and results displayed in tables in the browser. I have recently been asked to provide a function to export the ...
448 byte By
xyzta at 2007-11-27 10:37:35
Hello,I created a User table and created Entity Class for it and prepared a controller class for user bean. there is a "create" method in the controller class which persists the user bean to the database and returns an action string for the nagivation. but I think I should check for the uniqueness ...
I have a servlet that can process a request and send a response. Needing to process many simultaneous requests, I started using a LinkedBlockingQueue in a separate thread to take requests and process them. The problem comes when I have finished processing and want to send a response to the client. ...
714 byte By
kev9023a at 2007-11-27 10:38:13
Hello,I have a session scope managed bean to which I would like to pass a url parameter. I have the following in ...
<p>I'm going to find a hosting free with jsp support?</p><p>does someone know that?</p>
I am new to struts and I need to pass paramter with the global action forward. SImply I need to pass parameters like http://xxx:9080/yy/a.jsp?disp=1I have defined a global forward for a.jsp as follows:<html:link forward="ABC">Click Me</html:link>In struts-config.xml, I have defined ...
660 byte By
Gene123a at 2007-11-27 10:38:41
It could be the simple question, but I can't figure it out. I used <h:selectmanyCheckbox> It has layout="pageDirection/lineDirection" values. But now I have a requirement to display 6 checkboxes of US states 2 states x 3 rows. If I had 1 vertical row of states I would put ...
1262 byte By
CbbLea at 2007-11-27 10:38:43
HiI want to make an website where i use JSP Model 2 architecture. However I got a basic question1. I need to separate business logic from presentation with the use of jsp and servlets. Meaning I want no html code in the servlet. Can you give a simple example of how this can be done? If I map my ...
275 byte By
p-_pa at 2007-11-27 10:38:49
<p>Hi,</p><p>When i try to receive the data from the external system in the form of xml through JMS i am getting an exception like "JMS Exception Sending to queue null". Can somebody help me with this in resolving the issue. </p><p>Thanks & Regards,</p><p>P.Prasanna.</p>
8717 byte By
Rob_Ha at 2007-11-27 10:39:09
So I started looking at JavaMail today and came up with this.import java.util.Properties;import java.security.Security;import javax.mail.Message;import javax.mail.MessagingException;import javax.mail.PasswordAuthentication;import javax.mail.Session;import javax.mail.Transport;import ...
Is it possible if I could get any sample applications using JSF components and Sun Java System Application Server 9.0 from any Java experts out there?It could do so much help to me as I have troubles in creating a login page as well...Please......Looking forward to your ...
hi, In my project,for front view we have used html pages.how can I get input values from that html page into my jsf page.for back end purpose we have used EJB3.0how can I write jsf managed bean for accessing these entities.we have used session facade design pattern and the IDE is ...