NullPointerException with RequestDispatcher

1408 byte By Jonno1985a at 2007-11-27 11:50:50
Hi all,I'm developing a login servlet but have a recurring problem with the RequestDispatcher throwing up a NullPointerException. I call the RequestDispatcher using this method:RequestDispatcher dispatcher = null;if (dbpass.equals(password)){session = ...

Facing problems configuring tomahawk

5326 byte By SirGenerala at 2007-11-27 11:50:58
I am trying to configure tomahawk with Sun's JSF RI. I have added all the necessary jar files to the class path and still getting the following error while starting the server:java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. ...

Struts support for Eclipse 3.x

180 byte By SirGenerala at 2007-11-27 11:51:55
<p>I am using Eclipse 3.3. Can some one please let me know if there exists any opensource plugin that provides struts support, mainly tag libraries support for JSPs.</p><p>SirG</p>

Checking if database is available in JSP

1694 byte By florida41a at 2007-11-27 11:52:25
I have a JSP that shows a JavaBean value that is fetched from my Oracle database.The bean class uses a helper Database connection class (DbConnClass) to connect to the database. Everything is working where the bean fetches the database info and I use the Getter and Setter methods to show the ...

SQL Server 2005 Jdbc connection

1050 byte By mgt83a at 2007-11-27 11:52:45
I just have a small question and I was wondering if you could help me out with it? I'm using a JSP page to connect up to the database on the server. I have the JDBC driver and am trying to connect from my machine to SQL Server 2005 on our server. The thing is I'm having a little trouble with the ...

java.lang.IllegalStateException: getOutputStream() has already been called

1641 byte By raghuveer_vellankia at 2007-11-27 11:52:46
Could anyone suggest what would be the problem in belo code in JSP page.I am working on MVC1 JSP application.I have request processing code in jsp before <HTML> tags.I have functionality of downloading file by hyperlink "download file".In click of this file fiel is downloading without any ...

How to create Session Object?

474 byte By roamera at 2007-11-27 11:52:57
I am writing a file which will be treated as Servlet or JavaBean in different situation. As a servlet we have the doPost method:doPost(HttpServletRequest request, HttpServletResponse response)so that I can get the session object in this way:HttpSession session = request.getSession();But in other ...

Specification

279 byte By asif_need_javaa at 2007-11-27 11:53:04
<p>I use eclipse-SDK-3.2.1-win32, jdk 1.6 (J2SE). Anything need more?</p><p>Do I need to download and install J2EE (1.5)?</p><p>Do I need to download and install GEF?</p><p>Do I need to download and install EclipseHTMLEditor?</p><p>Do I need to download and install FacesIDE?</p>

Opening new window without using javascript..

290 byte By JayKVa at 2007-11-27 11:53:05
<p>Hi,</p><p>This is the second time iam posting this question. I didnt get satisfactory answer to my previous post..</p><p>Is there any possibility of displaying a new window on button click using only JSF and without using javascript? if yes please tell me how to do..</p><p>Thanks...</p>

servlet file download works in IE7 and FireFox but not IE 6

971 byte By JK2004a at 2007-11-27 11:53:20
We have a table with export button. When user clicks on export link, we download table content as csv file. It is working correctly in IE7. In IE6, It is not working. When user clicks export button, I am gettting the folloiwng informationFile Download box reports Name: GridAction.action Type: ...

Authentication failed Exception.... please help....

2943 byte By Santosh_Gadagojua at 2007-11-27 11:53:25
i am new to javamail.....this is my first application in javamail....sendingmail.javaimport javax.mail.*;import javax.mail.internet.*;import java.util.*;public class sendingmail{public static void main(String s[])throws Exception{Properties p=System.getProperties();p.put("mail.smtp.host", ...

Why httpCookie expired faster at IE and according to time at Firefox?

371 byte By desmondtancka at 2007-11-27 11:53:38
I've stored info in cookie at JSPs, and i found that if i set one minute like cookie.setMaxAge(60); it will be expired less than a minute, that's at Internet explorer, but when i do the same thing at Firefox, it is still valid until a minute.any idea why is that? did anyone experience ...

Fetching the number of Unread messages from the gmail

129 byte By pratqba at 2007-11-27 11:53:41
<p>Is it possible to fetch the number of unread messages from the gmail server? If yes kindly tell how? Expect fast responses</p>

thin drive

160 byte By sathishkumar64a at 2007-11-27 11:53:44
<p>hi..</p><p>may i know ,how to use java thin drive,then how to create database connection in oracle..</p><p>reply me..</p><p>sathishkuamr.vasu@yahoo.co.in</p>

Decimal point to comma

437 byte By PieterPareita at 2007-11-27 11:53:45
Hi,I have a JSF application (1.2), hibernate 3, tomcat 6.0.13, MySQL5 application.All my decimals are seperated with a point (123.45), is there an easy way to change them in a comma like (123,45). I know it can be done with converter on each form field, but this is a huge job.Btw, my locale on my ...

answer this first...

573 byte By JaganMa at 2007-11-27 11:53:47
Hi everyone... am having a servlet appliaction which is running under tomcat 5.0.28 and its working fine.. but now my problem is while the page hits increases i mean while the users increased then the performance decreased a lot and the system become very very slow... so only one thing i need to ...

Decimal point to comma

437 byte By PieterPareita at 2007-11-27 11:53:49
Hi,I have a JSF application (1.2), hibernate 3, tomcat 6.0.13, MySQL5 application.All my decimals are seperated with a point (123.45), is there an easy way to change them in a comma like (123,45). I know it can be done with converter on each form field, but this is a huge job.Btw, my locale on my ...

Problem setting value for <h:selectBooleanCheckBox>

764 byte By jayantkdasa at 2007-11-27 11:54:15
Hi All,This problem has been discussed earlier as well but since I did not get any concrete answer of resolving it, hence am posting the same expecting a solution to this from you all.I have a <h:selectBooleanCheckBox> component on my page whose value is backed as :<h:selectBooleanCheckbox ...

can an applet call one of the methods of servlet?

387 byte By Mr.VijayDesai@OPSPLa at 2007-11-27 11:54:47
hi everyone...i m very new servlet and applet programming and i have come accross a problem....i m using a applet which establishes connection with the servlet(residing on server)..i want to use few of the methods of the servlet....now is it possible tfor me to call the methods of this servlet ...

Precompile JSP

389 byte By Vel-Indiaa at 2007-11-27 11:54:54
Hi,Is there any option to Pre-Compile JSP files?In my project, i am using struts-tiles. Each page contains five distinct JSPs. When first request made to the page, it will take too much time to display, because it will compile all the five JSPs and generate class files.. Is there any way to compile ...

Content Type and dispatcher.forward()

663 byte By Ivan_Milaraa at 2007-11-27 11:54:57
Hello, I return a xhtml web page as a response of a servlet request. However, due to client issues I need that for some clients the header type is text/xhtml and for others is application/xhtml+xml. I make a response.setContentType(type) and then I do a dispatcher.forward to the xhtml page. ...

how to configure for servlets

99 byte By sid25a at 2007-11-27 11:54:58
<p>i m new to servlets. can any body plz tell me what and how to do configurations for servlets</p>

Got problems with sun server version 8

18005 byte By Azizi9090a at 2007-11-27 11:54:59
Hi guys. Currently I work on JSF project. I use tomcat web server and everything works fine. When I deploy my project to sun java system application server version 8, in one page, my save button doesn't work. Can anybody help me.Below is the code for button may be somebody can help me. I try to ...

Problem with refreshing JSF forms

1947 byte By Nico.Collarda at 2007-11-27 11:55:03
Hi,I have some problems with refreshing my forms. I'm using the tag <h:dataTable> to show the entries of my list in <h:inputText> and <h:inputTextarea>-fields. The special situation is now, that you may change the entries and save them.In the backing-bean this functionality works fine - ...

Need books or online tutorials

218 byte By venkat2007a at 2007-11-27 11:55:07
<p>Hi All</p><p>i am working on Struts frame work..</p><p>i want to get Grip on servlets and jsp concepts in deep.</p><p>Can any one help me.</p><p>Thanks in Advance..</p><p>Message was edited by: </p><p>venkat2007</p>

how to select one row from the datatable

355 byte By javamnr948a at 2007-11-27 11:55:49
hi,I have a data table which displays the employee list .the table contains 4 columns which represents the employee code,address,status like that.when we click on particular row,the row must be selected and the total details of the employee will be displayed on the same page below the datatable.how ...

tomahawk , panelTabbedPane problem...

1045 byte By narayanasgsa at 2007-11-27 11:55:50
Hi,i am working with tabbedpane control of tomahawk, when i am including a plain jsp page like ....<t:panelTabbedPane serverSideTabSwitch="false"><t:panelTab id="tab1" label="TabbedPanel1"> <f:verbatim><jsp:include page="profile.jsp"/> </f:verbatim></t:panelTab> it is working ...

as

9 byte By allavudeen_screena at 2007-11-27 11:55:52
<p>as</p>

Writing Filters to intercept request.

330 byte By liangtehza at 2007-11-27 11:56:09
Ok, I am writing a filter to intercept all request to jsp, servlets to check if the user has login.But I have a problem, I wanted a better control like if this user is not allow to go servlet A. the filter will intercept him. But based on /* mapping. I can't control which servlet the user wish to ...

http and www - different session objects?

587 byte By lgmana at 2007-11-27 11:56:12
Hello,imagine we have page1.jsp, in which we save a name in the session:session.setAttribute("theName", "Abel");now we move to page2.jsp and print it outout.println("The name is:"+(String)session.getAttribute("theName"));this works fine, the output is 'The name is: Abel'.BUT:what, if page1.jsp is ...

downloading a file in csv format from a jsp

332 byte By subramanis_javaa at 2007-11-27 11:56:17
hi , I have written a jsp which will paint the data from the database and gives the option to download the file in xls format. I need ur help to do the same for csv format , currently if i view the downloaded file using notepad it shows all the html coding , but i need to view all the data in csv ...

How to output formatted html String get from Bean

1794 byte By TouDicka at 2007-11-27 11:56:18
Hi, I need to put some formatted html string into jsp. But everything I tried was not working. Have anyone some ideas?Details:I have following jsf code...:in place of [?] I want to "inject" content of variable #{model} (which is html string i.e. "<div id="1"> some text</div>")<t:dataTable ...

JSF1.2 is working with Tomcat5.0 & jboss 4.0.4GA or not...

219 byte By SoftwareSolutionsa at 2007-11-27 11:56:41
<p>Hi,</p><p>please tell me whether jsf1.2 is working fine with jboss4.0.4GA or not?</p><p>how to integrate jsf1.2 with jboss4.0.4GA & Tomcat5.0</p><p>thanks</p><p>Message was edited by: </p><p>SoftwareSolutions</p>

window closing javascript in javabean reporting error

938 byte By SoftwareSolutionsa at 2007-11-27 11:56:55
Hi,i want to closed jsf page on button clicked, i am using the that code in javabean my code is like this.public void closeWindowClicked(ActionEvent event) {try{FacesContext facesContext = FacesContext.getCurrentInstance();String javaScriptText = "window.close();";// Add the Javascript to the ...

How to lookup EJB 3 session bean from servlet?

917 byte By maximuszena at 2007-11-27 11:57:01
public class Test extends HttpServlet {private static final long serialVersionUID = -1L;@EJBprivate T2Facade t2fl;public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {T2 t2 = new T2("hello");t2fl.save(t2);LogUtil.log("t2.getId() = ...

Open source Servlet

226 byte By Husama at 2007-11-27 11:57:14
<p>where i can Find Open Source MIS Application like Task Sheets human resource or any simple application that are not so sophisticated and based on servlet technology</p><p>Thanks</p><p>Message was edited by: </p><p>Husam</p>

UTF-8 encoded char array?

370 byte By justinlawlera at 2007-11-27 11:57:21
Hi,I have to save a string with UTF-8 encoding (using the sax handler ContentHandler.characters()) method. This takes a char array as a parameter. If I have a string and get the characters from it using:str.toCharArray()this won't return a UTF-8 encoded char array, will it? And how do I get a ...

how to display substring in UIColumn expands the string on click

441 byte By whitesox12a at 2007-11-27 11:57:24
How to display a substring in UIColumn of datatable component that expands the string on click. For example, in a datatable column there is only 20 characters space reserved for a particular column. If my data is longer than that, I'd like to show the first 20 characters and allow the user to ...

Javamail from Tomcat

934 byte By Paranoid_Fabioa at 2007-11-27 11:57:27
Hello. I have a servlet that must send an email after some data has been processed.I'm my method sendMail(....) i send this mail.The method sendMail works perfectly. If I test the method in isolation everything works fine and the mail is sent.The problem that, in the servlet, the method simply ...

Jax B converts 'r' into '\n'

326 byte By prasadkumbharea at 2007-11-27 11:58:10
Greetings,My xml file contains special chars such as '\r'.JAXB converts \'r' chars into '\n' while reading xml file.I am reading the values into String variables.How can Prevent that.Do I need to change the variable type in my XSD.Your help is ...

JAXB Validation without a Schema

416 byte By shelleyLa at 2007-11-27 11:58:13
Part of the benefit of JAXB is that a schema is not required; annotating Java classes alone allows for XML serialization/deserialization. With the deprecation of the Unmarshaller.setValidating() in favor of the unmarshaller.setSchema() method, however, it seems that validation is only available ...

Renaming uploaded images

2692 byte By Me_mea at 2007-11-27 11:58:14
Hi I have uploaded images to my server using common.FileUpload. Which works fine, I m uploading multiple images. My code is below.1) Can anyone post some code snipets or where by I can change the name of images before it gets saved to the server? So that I could add that to my code.2) in my form ...

Validate a Date in JSP

570 byte By GaramJavaa at 2007-11-27 11:58:34
I am trying to Validate a Date entered by the user in JSP. the code that I already have has a checkform function where I am not able to put my piece of java code. My question is,1. Where can I place my Java code that return a boolean in the JSP2. How do I retrieve this boolean value to use it in my ...

Does WebLogic 8.1 support SUN RI 1.1 and above?

248 byte By Doga at 2007-11-27 11:58:42
<p>Hello friends,</p><p>I want to know whether the Bea Weblogic 8.1support Sun RI 1.1 or above.</p><p>It will really appriciated If you can provide me the information, where I can find this, as I could not find it through the net.</p><p>Thanks.</p>

Session in the servlet

688 byte By matheszabia at 2007-11-27 11:58:55
Hi!A Netbeans web application use some servlets, not jsp, and tomcat, and postgre sql.The big problem is executing some querry after the jdbc connection was closed, or can't open a new jdbc connection because too many are open, for example. And the session in some situations lost who is the ...

JSF issue, open second window, need to send message to first

436 byte By rxalexaa at 2007-11-27 11:58:58
Hi,I'm new to JSF.I have a JSF file that opens a second window by using the target="newWindow" option on a h:commandLink tag. The problem is that I need to send an error message to the first window but both windows are backed by the same bean and once the second widow is open, that bean only talks ...

f:converDateTime pattern="MM/dd/yy".

311 byte By tbehkfhkea at 2007-11-27 11:59:19
When i use f:converDateTime with pattern MM/dd/yy and if user entersdate as '01/01/07', converter is converting it to 01/01/0007. While expected behaviour is '01/01/2007'.Can some body please give solution on it?Thanks.Vipul Dave.Cignex Tech Inc,San Jose, ...

validation and action problem

1060 byte By alex-gera at 2007-11-27 11:59:20
[nobr]Hello,i've got a little problem.i developed a test-application with page where you can fill in an e-mail address.<h:form> <h:inputText id="email" value="#{selberValidierenBean.email}" required="true" maxlength="50"> <f:validator validatorId="MailValidator"/> </h:inputText> ...

javascript vars into jsp

538 byte By largomana at 2007-11-27 11:59:26
I have a select control with an onclick event. This event fires a js function that gets the selected value as a js var. Now i want to set the value of this js var into my jsp as say a page scoped property so that it can be used in the page after the selection is made.I've tried setting the value ...

Button Actions stop working when I use #{param.variable}

644 byte By Annua at 2007-11-27 11:59:30
Hello friends,Here is my problem...... I created a jsp page in Studio Creator, having some fields and 2 buttons (for processing). This example was working fine.As I wanted to pass values to my jsp page from DOS(or browser's address bar directly),, I changed jsp coding a bit. I used ...