1232 byte By
krodmana at 2007-11-27 11:34:46
Hi all. I have developed a web application based on Struts 1.3.8 and the application is deployed on JBoss 4.0.5.GA.I have four application configuration parameters that I need to access in different areas of my application. My solution has been to create a configuration object that is a singleton ...
1291 byte By
jposthuma at 2007-11-27 11:35:08
Hi,When I shut down tomcat, tomcat shuts down but the console window stays open and the system.out.prinln text from my class using Thread still shows.Can I sense in my class if tomcat is still running? Or maby I call a method when tomcat stops to kill my thread?In my web.xml I have the following ...
Hi,I am using a servlet to output an html page. This page calls on a .js file.out.println("</title><SCRIPT LANGUAGE=javascript src=\""+request.getContextPath()+"/script.js\"></SCRIPT></head>when i call the javascript functions they work in ie7 but nothing happens in firefox and no ...
Hi,I am new to JSP and am trying to get this bit of code to work that I know is fine in a normal java classArrays.sort(fields, new Comparator<String[]>() { etc...It does not seem to like running it and I think its because of the <String[]> part...Any ideas.. reading other topics; do I have to ...
Hi, I have a question. I am a beginner of JSF. I am trying to deploy a very simple tree using <t:tree> in my local tomcat server, similar to the following one: http://www.irian.at/myfaces/tree.jsfThe result is that the tree is properly displayed, but I cannot expand the nodes when I click on the ...
838 byte By
jha42a at 2007-11-27 11:36:13
When I click one of many commandlinks in a datatable, all the links are showing as visited.Within each row of a datatable we have commandlinks that all point to the same page. That page uses the selected row to retrieve data based on specific fields within that selected row. The problem is that ...
2179 byte By
Intel3a at 2007-11-27 11:36:39
Here is my codeJava Bea:public class Tester implements ValueChangeListener {private String name = "Heyhey";private boolean selected = false;private String[] items;private UISelectItem[] myValue;public Tester(){}public String[] getItems() {return items;}public void setItems(String[] newItems) {items ...
Hi All,I am just started learning JSF [ 3 days old in JSF]. i was trying to do validation,it was giving me the follwing error.Conversion Error setting value '' for 'null Converter'.My JSP Code- <h:message for="inputText1" styleClass="warning"/><h:inputText id="inputText1" ...
2:52 PM 7/24/2007by Nirav AssarOverviewIt was discovered that with the component h:commandButton, JSF does not work when you embed an f:param and try and pass it through the request. However this does work with h:commandLink. The reason for this lies in how the Renderer classes in JSF vary when ...
Hi,I got a parameter which changes all the time (in my jsp) as followse.gparam1_12-1_value and next time it will be param1_13-2_value the middle part changesI have a request.getParameter("xxxx"); in my server side code.Is it possible to have regular expression for xxxx? What is the best way to ...
Hi , I have a popup wher ei search for city thru a text box.If that searched string(city) is not found i need to display error msg inside that same popup window itself. Now i am giving it in main jsp from where popup is displayed.Can anybody help me ?Thanks in ...
668 byte By
Sowja at 2007-11-27 11:37:45
Hi all,I am using struts, here I have opened a new window using javascript:openWindow for adding the contact details of the person into the database. Every thing works fine, but my problem over here is that when I submit the form and if I open again I have the previous entered values. I tried using ...
1390 byte By
lin_javaa at 2007-11-27 11:38:01
Hello Friends, I am a JSF newbie, I need a little help to solve the problem explained below. I have table t:dataTable which display the details of the authors, one column inthe table is defined as <t:column><h:commandLink action="#{authorList.listWorks}" value="Add Important ...
508 byte By
JHyenaa at 2007-11-27 11:38:06
Hi all,I have a struts form on which there are number of text boxes present. When the user enters a wrong value in any of the text boxes and when the validation fails then the error message is displayed on the page. Along with that I have to bring he focus to the text box where the problem is ...
569 byte By
divinea at 2007-11-27 11:38:07
HiI am working on a jsp page (sendmail.jsp) that submits the information relating to sending an email. The page is pop window that is opened when I click on a button. Now I want to post this data to another popup window which is itself a jsp page (mailsent.jsp) and have code to send the mail using ...
Hai all,I get the following problem when i try to call a jsp in my browser.javax.servlet.ServletException: org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer.<init>(Lorg/eclipse/jdt/internal/compiler/env/IBinaryType;Lorg/eclipse/jdt/internal/compiler/env/AccessRestriction;)VThis problem ...
<p>hello </p><p> I want to insert the data in to oracle through jsp using standard sql tags of jstl please help me</p>
I am performance tuning my JSP/Struts web-application deployed over jboss.. I have not got success yet.During performance/load testing of my web application with apache jmeter.It is OK up to 1400 request per minute..But if i increase the load , i get followingIssue: from 1800 requests sent to the ...
Hi all, can any one please help me..i am retrieving records from database based on date range.the browser works well with in an hour it can displays with small date range.if i give 5 years range it will take more time and the browser displays page conn't find after an hour.my application runs well ...
<p>hello </p><p>I'm using<b> jmaki dojo.dropdown datepicker</b> for my application but to insert the date value into database i want to take into some string variable. Can anybody please help me how to use for my application.</p>
hi to all..i'm new to oc4j .. i used to work on tomcat..i deployed the war file and all i have to do is to run the app. but i guess oc4j has different way in this ..you may say google for it, or read the oc4j tutorial i read it before but i just can't understand it..somebody pls can expalin the ...
173 byte By
Husama at 2007-11-27 11:38:52
<p>dear All ,</p><p>where i can find a good articals and tutorials for AJAX and Servlet </p><p>If anu one have links to web site or PDF it will appreciated </p><p>Thanks</p>
309 byte By
JayKVa at 2007-11-27 11:38:57
Hi all,On click of a <h:commandButton> i want to display a new window which is containing datatable. Is there any possible way to do this with out using javaScript? Is there any possible way of doing it inside bean?If javascript is the only way tell me how to do that. ...
My Tomcat is running good when i am runnning as http://localhost:8080but my first webapplication is not running but producing an error as "HTTP Status 404 - /biplab/hello.jsp and The requested resource (/biplab/hello.jsp) is not available" what can i do ? biplab is my webapplication ...
<p>How to save and retrieve data to a textarea using jsp and jdbc connection....</p><p>For other input types like text there is value attribute which is entered as <%=value%> </p><p>But how is it done for textarea and comboboxes?</p>
In the web.xml file I have made this entry under <web-app>:<context-param><param-name>Option1</param-name><param-value>India</param-value></context-param><context-param><param-name>Option2</param-name><param-value>Global</param-value></context-param>In the JSP ...
<p>can any one please help me with the code for user registration with photo upload using jsp</p>
2297 byte By
nomaxa at 2007-11-27 11:39:30
Hello, I am building a small LoginForm with the Validator PlugIn ( struts 1.3.8 - tomcat 5.0).The Problem is: The first page validates perfectly. I get the proper error-messages and the right forwarding.But the second page is trouble: Its displayed correctly, but if I push the login button it kicks ...
Hi,In my application, i want to check for some external website.e.g. i have my own application and in that there is a link of some different website i.e. www.yahoo.com. I click that link and in case of 404 error, we should get some customized error page instead of "The page cannot be ...
Hi,I'm using a Filter.In the doFilter() method, I call chain.doFilter(request, reponse) at the end.I use request.getSession() to retrieve the Session for checking existing session data.Problem:-Only in the IE browser, when I open it the 1st time, the doFilter() method gets invoked about 5 times. ...
1100 byte By
cnandisha at 2007-11-27 11:39:45
Hi,I require to implement a functionality of a timer when a page loads up.I created a PhaseListener where a thread is created in the afterPhase() method when the Phase is RenderResponse.I created another thread in the same method which waits for the first thread to complete.Both the threads are ...
449 byte By
vinjavaa at 2007-11-27 11:40:03
Hi,I have a problem in my project. Here, when the user performs different operations in single window then every thing works fine .... but if the user opens a new window by clicking on ctrl+N or file->new Window, then a different window wil open but the session will be same. This is creating ...
<p>how does post and get requests look like?</p>
<html><head><title> jsp code..</title><body><% String temp=have a nice day; %>// in my project at Runtime i will assign data to temp<h1>output in the textbox</h1><input type="text" name="a1" value=<%=temp%> />// here the data in temp should be displayed in this ...
hi All,i m developing one application in which i have to create one packageand import tht in JSP bt i gives package XYZ does not exist. and if i m using tht package with java application it runs perfectlyi dnt understand y this is heppning.plz help.Thanks in ...
Hello gurus,In my JSF application i used session managed beans. So when the user navigates out/in to the page it remembers all his/her previous values in the form.I need to reset the from whenever the user navigates out of the screen.Can anybody help?Thank ...
1391 byte By
StijnGa at 2007-11-27 11:40:53
hi,I've written a pretty simple custom tag on which a boolean value can be set:public class TabTag extends HtmlEscapingAwareTag{private boolean active;public void setActive(boolean active){this.active = active;}}if I call the tag like this (hardcoded boolean) it works fine:<cust:tab ...
I'm using SQL server 2000(Standard) on Microsoft windows 2003 machine. I'm using Tomcat server 4.1 and I use the following string to connectClass.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");String str="jdbc:microsoft:sqlserver://10.11.1.216:1433;SelectMethod=cursor;DatabaseName=GH"; ...
I have a simple JSP file, code is below. I'm trying to run a batch file that simply contains the line :java -ss262144 -oss819200 -classpath Topics.jar Buildingbut having no luck. Any ideas?<%@ page language="java" import="java.io.*" %><%try {Runtime rt = Runtime.getRuntime();Process p = ...
really i am appreciating your feedback soon Why is it happening ?i got exception in my application Exception is javax.servlet.ServletException: Error allocating a servlet instanceRoot Causejava.lang.NoClassDefFoundError: LoginAction (wrong name: ...
430 byte By
beejuma at 2007-11-27 11:41:32
Hi,I have my init parameters and Jsp configured in web.xml <servlet><servlet-name>TestJsp</servlet-name><jsp-file>/Test.jsp</jsp-file><init-param><param-name>username</param-name><param-value>Balboa</param-value></init-param></servlet>How do I access 'username' ...
Hi all,I have list of items for which i have to CREATE,UPDATE and DELETE.Is it advisible to have 3 different jsp files of the each of above or manipulate all the operation in a single jsp.If i do adapt the later, would it hamper the performance.Which is the best ...
5942 byte By
Asesea at 2007-11-27 11:41:36
Hi all!I start working with JSF and Ajax4jsf technology a few weeks ago and i've reach a problem that I can't fix.I can't understand or control why my application calls to the "setters" a second time, ignoring the value that i've set before that second call.Here is an example:JSP page:<%@ ...
Hi All,I am trying to upload a file in struts, When I hit submit button I get the below exception. Please helpjavax.servlet.ServletException: Servlet execution threw an exceptionat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)at ...
624 byte By
KY8a at 2007-11-27 11:42:25
Hi,I have a javascript function that returns an array of information. From this Array, I want to plug the information into a drop-down list inside a table. How can I do this. function myfunction(){ Array a = new Array();//more codes... return a;}<HTML> <BODY><TABLE><TR><TD>Please ...
4061 byte By
Meepa at 2007-11-27 11:42:27
The drop list is supposed to be populated by a form before the user enters the jsp page. The error is - "Failed to obtain specified collection". I think it is a servlet call or the logic of javascript and JSP whichever either process first. I'm trying to do the droplist, then I'll be doing the ...
how do i do this using jstl, since there's no while tag?CaseStudy myCase = CaseStudyManager.getCaseStudy(caseStudyId);...do{...myCase = myCase.getPriorCase();}while (myCase != ...
<p>Hi,</p><p>I tried set an ID on the <h:column> but it is not working, can someone please tell me what am I missing?</p><p><h:column id="hello"></p><p> <h:outputText value="someText" /></p><p></h:column></p><p>thanks a lot!!</p>
<p>Hi,</p><p>I am looking for an expandable collapsible menu which can be integrated into a jsp as a tile. I googled it but only came up with handful and even those are not free to use. </p><p>Regards,</p>
How do i solve this. I have imported java.sql.* and javax.sql.* using page directive. Still it is not able to resolve the driver. The same code works in a normal java file but not in jsp pageAn error occurred at line: 12 in the jsp file: ...