URL problem in ajax

1808 byte By ubarua123a at 2007-11-27 10:29:08
hiI m using ajax to retrieve data from a database. I know the syntax for the .open() function is httpreq.open("GET",url,true);//httpreq is my variablenow in the data retrieving part, it goes into a status 404 that means file has not been found. var ...

JSF and JSTL

268 byte By Ksushaa at 2007-11-27 10:29:35
<p>Hello!!</p><p>We are currently working on a project with jsf. We are using XHTML and templates. I was wondering - can I use JSTL tags on XHTML files (JSTL tags dont seem to compile actually on XHTML)?</p><p>If yes - what setting should I add?</p><p>Thanks a lot</p>

Custom component: include a JavaScript file once

1648 byte By mwinandya at 2007-11-27 10:29:36
Hello,I'm developing a custom component. At the moment my renderer includes with every instance of my component JavaScript code in the body.Example (Pseudocode):JSF:<html><body><my:component /><my:component /></body></html>Current rendered HTML:<html><body><input ...

Disabling Multiple login of a user

1818 byte By saurabh.mathura at 2007-11-27 10:29:41
I have an application where in a user Id should not be used by more than one person to log in at the same time.What I mean is that at any given point of time, if a person is logged in to the application, with say user id "myself002", then another person should not be able to log in using the same ...

Push messages from business logic into backing bean

1125 byte By sebp78a at 2007-11-27 10:29:45
In my simple web application a table with the contents of a database table is shown to the client. Now I want this table in the browser to be updated each time the db table is updated. In my business logic a jms message is fired to a specified topic each time the db table is updated. The reverse ...

Problem with JSF RI Sandbox ContextMenu Component...

962 byte By hainejoya at 2007-11-27 10:29:55
I tried the code on the official site : https://javaserverfaces.dev.java.net/sandbox/components/contextMenu.html<h:outputText id="text" value="This should have a context menu!"><risb:contextMenu width="225px"><risb:menuItem value="Test!" ...

access value of one page from a popup

516 byte By ali_hammada at 2007-11-27 10:29:57
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 ...

Problem with JSTL Core: JspTranslationException

558 byte By DJ_Vikinga at 2007-11-27 10:30:21
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 ...

How to Put a downloadable link on jsp

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

Using Frames in JSF

177 byte By pauster007a at 2007-11-27 10:30:45
<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>

Problem in disabling Text Boxes

282 byte By harinibiligiria at 2007-11-27 10:30:46
<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>

jstl problem

933 byte By hardcodera at 2007-11-27 10:30:55
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" ...

user sessions get mixed together !!!

442 byte By markos_da at 2007-11-27 10:31:12
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 ...

example on navigationmenuitem and tree/tree2

208 byte By naveenkomarv@gmail.coma at 2007-11-27 10:31:25
<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>

Why cant I do the following...

1118 byte By DontKnowJacka at 2007-11-27 10:31:48
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 ...

How to pass array in the url of the servlet

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

Using session attribute as Managed Bean Value

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

In IE7 servlet generated html loses CSS formatting

1730 byte By bat-thinka at 2007-11-27 10:32:39
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 ...

JSP Quiz page problem

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

need help in javascript

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>

Working with ActionListener

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

hello Tutorial Questions

695 byte By BrianLeonarda at 2007-11-27 10:34:02
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 ...

redirection JSP not working in IE

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

Problem in check box

446 byte By aniketh_parmara at 2007-11-27 10:34:16
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 ...

how to enable javascript at client side when it is disable

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>

can not send form parameters to a javascript function window.open()

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

value from javascript to my jsp page

273 byte By java@mania at 2007-11-27 10:35:05
<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>

replacement of history.go(-1)

415 byte By RaviKumar.Avulaa at 2007-11-27 10:35:06
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 ...

Modify the contents in Dynamic HTML

309 byte By SIVA_SUBRAHMANYAMa at 2007-11-27 10:35:12
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 ...

JSF mapping missing. ExtensionsFilter not correctly configured.

2551 byte By learningjava5a at 2007-11-27 10:35:18
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 = ...

access parent elements from child in jsf

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

Navigation Between JSP's

246 byte By PraveenDudea at 2007-11-27 10:35:32
<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>

jsp in load on startup

543 byte By raghuveer_vellankia at 2007-11-27 10:35:39
what change i need to make the below code to work on any application server.What i need to replace for ...

request parameters

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

Arranging components automatically

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

jsp - export to excel via link

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

Checking for the uniqueness of that record ...

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

passing url paramters

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

Hosting free with jsp support?

88 byte By leonard_shelbya at 2007-11-27 10:38:25
<p>I'm going to find a hosting free with jsp support?</p><p>does someone know that?</p>

Struts Global Action Forward passing Parameter

497 byte By jain_rajana at 2007-11-27 10:38:31
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 ...

How to put multiple rows of checkboxes of the same property?

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

basic jsp and servlet question (JSP Model 2)

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

Can i get a sample application from any kind readers?

310 byte By Wheelerz05a at 2007-11-27 10:39:14
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 ...

how do I pass input values from a html page to a jsf page

367 byte By javamnr948a at 2007-11-27 10:39:19
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 ...

problem with Applet Servlet communication

687 byte By Mr.VijayDesai@OPSPLa at 2007-11-27 10:39:24
Hi All,i am very new to java and servlets......i am using a applet to call a servlet whose .class file is stored in WEB_INF/classes directory of tomcat..so what URL address i should use in the new URL( ) constructor ?presently i have done in this manner..URL urlServlet = new ...

problem with Applet Servlet communication

856 byte By Mr.VijayDesai@OPSPLa at 2007-11-27 10:39:26
Hi All,i am very new to java and servlets......i am using a applet to call a servlet whose .class file is stored in WEB_INF/classes directory of tomcat..so what URL address i should use in the new URL( ) constructor ?presently i have done in this manner..URL urlServlet = new ...

How to get Backing bean class?

216 byte By jimmy6a at 2007-11-27 10:39:37
<p>How to get the backing bean class. I know it can be retrieved in FacesContext.getCurrentInstance().getExternalContext().getSessionMap()? I do not want to initialise the bean, i just want the class of the bean.</p>

info about internationlizaion.....................

181 byte By anu_pawara at 2007-11-27 10:39:43
<p>hello,</p><p> i want info about internationlizaion...............that means how should i implement on jsp platform........is it suitable for larger applicaion................</p>

Regarding JSP,Struts

3445 byte By chowdampraveena at 2007-11-27 10:39:44
Hello , Pls reply Urgent ,This is my code , struts-config.xml-<form-bean name="studentForm" type="com.ltc.forms.StudentForm"></form-bean> <action path="/userAction" type="com.ltc.actions.StudentMaintananceAction" name="studentForm" scope="session" validate="true" input="/jsp/homePage.jsp" ...

Jsp - arraylist

1477 byte By ripita at 2007-11-27 10:39:47
Hi,I have a page where I can add properites to a project and when i write in some textfields and then click more properties I don't want what I just wrote to be written to the database I wan't it saved in an arraylist until I click save and then all properties from the arraylist will be saved to ...