Home Tutorialhelp Comment Hi everyone, I use the code above in Liferay Po

 
 

Comment

Sean
Hi everyone, I use the code above in Liferay Po,
January 23, 2007 at 12:57 AM

Hi everyone,

I use the code above in Liferay Portal and I got
java.lang.NullPointerException error. Which points to the myFile = null. My jsp looks like this
<tr>
<td>File Name: </td>
<td><input type="file" name="theFile" size="50" value=""></td>
</tr>
Notice that value="", I think that is the problem. Any help would be appreciated.

Thanks,
Sean
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Struts Questions

migration of struts with liferay - Struts
migration of struts with liferay  hi,somebody please help me how to migrate a struts application with liferay 

Framework Questions

bedework integration wih liferay - Framework
in advance Regards poola  Hi poola Im using liferay 436 .i... with liferay,my client needs it . Im using liferay 436 .i downloaded...bedework integration wih liferay  Hi all im integrating bedework 

Struts Questions

Hi
Hi  Hi All, I am new to roseindia. I want to learn struts. I do not know anything in struts. What exactly is struts and where do we use it. Please help me. Thanks in advance. Regards, Deepak 

Struts Questions

Hi - Struts
://www.roseindia.net/struts/ Thanks.  Hi Soniya, We can use oracle too in struts...Hi  Hi friends, must for struts in mysql or not necessary... very urgent....   Hi friend, I am sending you a link 

Struts Questions

Hi... - Struts
Hi...  Hi, If i am using hibernet with struts then require... of this installation  Hi friend, Hibernate is Object-Oriented mapping tool... more information,tutorials and examples on Struts with Hibernate visit 

Java Beginners

Liferay Portlet Development
Liferay Portlet Development  in portlet development one functionality to build service builder, this builder generate so many classes. but, i am... and each package for it's use? also, which class is customize 

Hibernate Questions

Hibernate in liferay
Hibernate in liferay  How to use hibernate in liferay jsf portlet? Can you illustate it with an example 

Hibernate Questions

Hibernate in liferay
Hibernate in liferay  How to use hibernate in liferay jsf portlet? Can you illustate it with an example 

JDBC Questions

hi, Everyone ,i'm learning jdbc, i got an nullpointerexception when execute this program.
hi, Everyone ,i'm learning jdbc, i got an nullpointerexception when execute this program.   ConnectionProvider.java import java.util.*; import java.io.*; import java.sql.*; class ConnectionProvider { static Properties prop 

JSP Servlet Questions

hi
hi   on clicking on button on 1st jsp page i want to display following options like friends,family,doctor etc.on next jsp page and also i want link... databases like the above i.e friends,family,etc pls can any one tell how can i do 

JSP Servlet Questions

hi
hi   on clicking on button on 1st jsp page i want to display following options like friends,family,doctor etc.on next jsp page and also i want link... databases like the above i.e friends,family,etc pls can any one tell how can i do 

Struts Questions

Hi.. - Struts
Hi..   Hi Friends, I am new in hibernate please tell me.....if i am using hibernet with struts any database pkg is required or not.....without... me  Hi Soniya, I am sending you a link. I hope that, this link 

Java Beginners

hi
hi  what is the code for printing stars as follows * * * * * * * * * *print("code sample");   Hi Friend, Try... num=4; int p = num; int q = 0; for (int i = 0; i <= num; i++) { for (int j 

Struts Questions

Hi - Struts
Hi  Hi Friends, I am new in Struts please help me starting of struts and accept my request also..please send its very urgent.... I ahve jdk1.4,Tomcat4.1,and eclipse3.2 please let me know how to run struts using tomcat 

Java Beginners

hi
hi  i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db to html dropdown list...and when user selects perticular country it should go 2 db n 

Java Beginners

hi
hi  i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db to html dropdown list...and when user selects perticular country it should go 2 db n 

Java Beginners

hi
hi  i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db to html dropdown list...and when user selects perticular country it should go 2 db n 

Java Beginners

hi
hi  i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db to html dropdown list...and when user selects perticular country it should go 2 db n 

Struts Questions

Hi.. - Struts
Hi..  Hi, I am new in struts please help me what data write in this file ans necessary also... struts-tiles.tld,struts-beans.tld,struts........its very urgent  Hi Soniya, I am sending you a link. This link 

Java Beginners

Hi
Hi   I need some help I've got my java code and am having difficulty to spot what errors there are is someone able to help import java.util.Scanner; public class Post { public static void main(String[] args) { Scanner sc 

Development process Questions

hi
hi   i want to develop a online bit by bit examination process as part of my project in this i am stuck at how to store multiple choice questions options and correct option for the question.this is the first project i am doing 

Java Beginners

Hi
Hi   I have got this code but am not totally understanding what the errors. Could someone Please help. Thanks in advance! import java.util.Random; import java.util.Scanner; private static int nextInt() { public class 

JSP Servlet Questions

Hi
Hi  The thing is I tried this by seeing this code itself.But I;m facing a problem with the code.Please help me in solving me the issue. HTTP Status 500 - type Exception report message description The server encountered 

Java Beginners

hi.......
){ } } can anyone tell wts wrong with this code??   Hi, Check it: import...hi.......  import java.awt.; import java.sql.*; import javax.swing.... from bank where branch='kannur'"); Statement st=con.createStatement(); int i 

Struts Questions

use of Struts - Struts
use of Struts  Hi, can anybody tell me what is the importance of sturts? why we are using it? Hitendra  Hi, I am sending... example. http://www.roseindia.net/struts/ Thanks 

Struts Questions

hi... - Struts
hi...  Hi Friends, I am installed tomcat5.5 and open the browser and type the command http://localhost:8080 but this is not run please let me... also its very urgent  Hi Soniya, I am sending you a link. I hope 

Struts Questions

Hi... - Struts
Hi...  Hello Friends, installation is successfully I am instaling jdk1.5 and not setting the classpth in enviroment variable please write the classpath and send classpath command   Hi, you set path = C 

Struts Questions

Hi - Struts
Hi  Hi Friends, Thanks to ur nice responce I have sub package in the .java file please let me know how it comnpile in window xp please give the command to compile 

Struts Questions

Hi - Struts
Hi  Hi Friends, I want to installed tomcat5.0 version please help me i already visit ur site then i can't understood that why i installed please give some idea for installed tomcat version 5 i have already tomcat 4.1 

Struts Questions

Hi... - Struts
Hi...  Hello, I want to chat facility in roseindia java expert please tell me the process and when available experts please tell me  Firstly you open the browser and type the following url in the address bar 

Struts Questions

How to use Token Interceptor - Struts
How to use Token Interceptor  Hi, Iam a beginner in struts. I tried to implement Token Interceptor to prevent double submission, I search internet but didnt find examples to do that in Struts2 I tried below code 

Struts Questions

struts - Struts
struts  Hi, I am new to struts.Please send the sample code for login... the code immediately. Please its urgent. Regards, Valarmathi  Hi Friend...://www.roseindia.net/struts/hibernate-spring/index.shtml Hope that the above links 

Development process Questions

liferay
liferay  what is liferay ,how it works,what is its lifecycle 

Struts Questions

struts
struts  <p>hi here is my code in struts i want to validate my form fields but it couldn't work can you fix what mistakes i have done</p>... }//execute }//class struts-config.xml &lt;struts 

Struts Questions

Struts Code - Struts
Struts Code  Hi I executed "select * from example" query and stored all the values using bean . I displayed all the records stored in the jsp using struts . I am placing two links Update and Delete beside each record . Now I 

Struts Questions

struts code - Struts
struts code  Hi all, i am writing one simple application using struts framework. In this application i thought to bring the different menus of my... in a item its subitem get expanded including "plus sign" as prefix.In the same way i 

Struts Questions

problem:struts code - Struts
problem:struts code  Hi, Am using struts1.2.I wrote a form... the action class,in action class i gave forward to same form,the problem is if i forward to same page the form displayed with previous fields.if i press refresh 

Ajax Questions

hi - Ajax
,it is not retrivind the data from database.can you please send the above servlet code in jsp...(result); } } The above servlet is executing properly but in ajax only problem.if I select pirticular country display the all the states of that country.In 

Struts Questions

Struts - Struts
Struts  hi can anyone tell me how can i implement session tracking in struts? please it,s urgent...........  session tracking? you mean session management? we can maintain using class HttpSession. the code follows 

Struts Questions

Struts + HTML:Button not workin - Struts
Struts + HTML:Button not workin  Hi, I am new to struts. So pls bare with me if my question is fundamental. I am trying to add 2 Submit buttons... needs to be corrected. OR Should i use 2 HTML TAG BUTTON's here instead of 2 

Java Beginners

i want code for these programs
i want code for these programs   Advances in operating... with that upper limit. Rewrite above program such that the processes instead of threads.... The program should make use of kernel timer to measure and print the real time, processor 

Struts Questions

Hi i am new to J2ee Technology and struts - Struts
Hi i am new to J2ee Technology and struts  what exatly will happen when we hit the Login button? Once we enter in to the application, what will happen. How the UserID and Password validations will done. Can any one help 

Struts Questions

Struts Example - Struts
Struts Example  Hi Deepak My name is dendi i want some good example in struts framework with sample code , hw to add and delete insert and update data into database by using sql, nw i am learning java struts u can help me 

Struts Questions

can we use include files in struts.....? - Struts
can we use include files in struts.....?  hi, i have a doubt... include r jsp:include directives. I heard that it is violation of struts rules if we........  Hi friend 

SQL Question

how do i use sql like query in my jsp page
how do i use sql like query in my jsp page  how do i use sql like query in my jsp page   Hi Friend, Try the following code: <%@ page...;br>"); } %> The above code will display all the names from the database 

Struts Questions

struts titles - Struts
Use Struts Titles in Web Applications  hi i want to use titles in my web project please help me . in my project i have four titles such as banner, menu , content and footer . please provide any example code 

Struts Questions

How to Use Struts 2 token tag - Struts
How to Use Struts 2 token tag  Hi , I want to stop re-submiiting the page by pressing F5, or click 'back n press submit' button again, i want to use... page, or do i need to map anything on my struts.xml file ? I am using struts

Java Beginners

Hi... - Java Beginners
Hi...  Hello Friend I want to some code please write and me I want to add dynamic row value in onChange event created dynamic is successfully then i face problem in adding two value please write the code 

Java Beginners

Hi.... - Java Beginners
Hi....   Hi Friends, Thanks for reply can send me sample of code using ur idea... First part i have completed but i want to how to go in next page in 1st page i will give the continue button.....1st i click contiue 

Struts Questions

Struts - Struts
Struts  hi, I am new in struts concept.so, please explain example login application in struts web based application with source code...://www.roseindia.net/struts/struts-login-form.shtml I hope that, this link will help you 

Struts Questions

Code Problem - Struts
Code Problem  Sir, am using struts for my application.i want to uses... value.but i anm unable to use userid... to function.ex.when i login into page,i will welcome with corresponding user homepage 

Struts Questions

struts
struts   <p>hi here is my code can you please help me to solve...; <h1></h1> <p>struts-config.xml</p> <p>...;&lt;struts-config&gt; &lt;form-beans&gt; &lt;form-bean name 

Java Beginners

hi - Java Beginners
hi  hi sir,i want to use the variable in 1 class to another class,how we use the 1 class variable in another class, Thanq  Hi Friend, Try the following code: class ABC { public int i=10; } public 

Struts Questions

Doubt in struts - Struts
Doubt in struts  I am new to Struts, Can anybody say how to retrieve data from database and display it in jsp. Some said to use beans but i dont... with code?  Hi friend, Please visit the link to solve the problem 

Java Interview Questions

Hi
Hi  Hi How to implement I18N concept in struts 1.3? Please reply to me 

Struts Questions

I have a doubt regarding action - Struts
I have a doubt regarding action   hi, I have doubt regarding struts,I got response through jsp and once again it redirecting to action. If anybody knows pls respond me. with regards, Teju  Hi friend 

Java Beginners

hi - Java Beginners
to be declared final i want to be use this variable in another class,what i am do sir,plz tell me.if i am declare a variable is a final,then there is no way to change this,plz tell me for my problem  Hi Friend, Declare 

Java Beginners

hi - Java Beginners
){ System.out.println(e); } }}---------------------------------run the given above code. I hope...;)); writer.write("Before shorting :\n"); for(int i=0; i < 5 ; i++) { writer.write(words[i] + " "); } java.util.Arrays.sort(words 

Java Beginners

Hi... - Java Beginners
Hi...  Hi, I want make a date fields means user click date... code; if any one need just mail me: fightclub_ceo@sify.com   Hi... then please relpy me with coding.. Thanks  Gudiya use JavaScript 

Struts Questions

Struts - Jboss - I-Report - Struts
Struts - Jboss - I-Report  Hi i am a beginner in Java programming and in my application i wanted to generate a report (based on database) using Struts, Jboss , I Report 

Java Beginners

Hi i want java code that diaplays server scren at the client side
Hi i want java code that diaplays server scren at the client side  Hi I'm Shivaprasad i want java socket code that shows the server side screen when client gets connected with the server. Please help me   Please visit 

Struts Questions

Struts file uploading - Struts
Struts file uploading   Hi all, My application I am uploading files using Struts FormFile. Below is the code. NewDocumentForm... when required. I could not use the Struts API FormFile since 

Struts Questions

struts - Struts
struts  Hi, I need the example programs for shopping cart using struts with my sql. Please send the examples code as soon as possible. please send it immediately. Regards, Valarmathi   Hi Friend, Please 

Struts Questions

Struts - Struts
Struts  Hello I like to make a registration form in struts inwhich... compelete code. thanks  Hi friend, Please give details with full source code to solve the problem. Mention the technology you have used 

Java Beginners

hi - Java Beginners
hi   hi sir,thanks for providing the datepicker program but i want to create a datepicker class in my package and i want to use that datepicker class when i am want,in that type of flexibility plz provide the program sir,in my 

Struts Questions

code problem - Struts
code problem  hi friends i have 1 doubt regarding how to write the code of opensheet in action class i have done it as the action class code...(); System.out.println(conn); //Code to generate new sheet i.e login time IS NULL 

Struts Questions

How to write the code for date in swings - Struts
How to write the code for date in swings  Hi Friends, I want to code for display the calendar.......technologies use only swing and core java also how to display calendar like that popup window.....please write and send me 

Struts Questions

Struts - Struts
Struts  Hello I have 2 java pages and 2 jsp pages in struts... with source code to solve the problem. For read more information on Struts visit... for getting registration successfully Now I want that Success.jsp should display 

Ajax Questions

HI.
HI.  hi,plz send me the code for me using search button bind the data from data base in dropdownlist 

Java Beginners

hi....
hi....  plzz sent me d code for counting vowels in a string... gui programme 

Java Beginners

hi,
hi,  print("code sample");how to display all elements in 2d array usin any one loop 

Struts Questions

struts <html:select> - Struts
struts   i am new to struts.when i execute the following code i am...=db.getDbConnection(); PreparedStatement ps=con.prepareStatement("select Dealer_Code from op... DealerForm[30]; int i=0; while(rs.next()) { DealerForm dform=new 

Struts Questions

struts code for scan the file while uploading - Struts
struts code for scan the file while uploading  Hi, I want the file to be scanned with anti-virus while uploading into server. can provide me help in this regard. Thanks in Advance.   For this you need third 

JDBC Questions

hi
hi   I have connected mysql with jsp in linux and i have used JDBC connectivity but when i run the program, its not working the program is displaying 

Date Calendar

hi - Date Calendar
ThanQ  Hi Friend, Try the following code...hi  sir,i am do the project on swings,i want a datepicker in java,how to use datepicker in my swings application,plz provide a example for to use 

Java Beginners

Hi
Hi  I want import txt fayl java.please say me...   Hi, Please clarify your problem! Thanks 

Java Beginners

hi
hi   'print("code sample");`class example(){ public.static.void.main(); system.out.println("this is first pro");}   class example{ public static void main(String[]args){ System.out.println("this is first pro 

Java Beginners

Hi..
Hi..  what are the steps mandatory to develop a simple java program?   To develop a Java program following steps must be followed by a Java... can use the windows default editor "notepad" if working on windows environment 

Struts Questions

Struts code - Struts
Struts code   Hi Friend, Is backward redirection possible in struts.If so plz explain me 

XML Questions

hi
online multiple choice examination  hi i am developing online multiple choice examination for that i want to store questions,four options,correct answer in a xml file using jsp or java?can any one help me?   Please 

Struts Questions

Multiple file upload - Struts
files uploaded Thanks  HI The code above will work...;-------------------------------------------------------------------------------- HI all, I have found the solution.the code is given below...Multiple file upload  HI all, I m trying to upload multiple files 

Java Beginners

hi!
hi!  how can i write aprogram in java by using scanner when asking... to to enter, like(int,double,float,String,....) thanx for answering....   Hi...); System.out.print("Enter integer: "); int i=input.nextInt 

Struts Questions

struts code - Struts
struts code   In STRUTS FRAMEWORK we have a login form...?  Hi Friend, Please visit the following links: http://www.roseindia.net/struts/struts-login-form.shtml http://www.roseindia.net/struts/ Thanks 

Struts Questions

struts - Struts
struts  Hi, i want to develop a struts application,iam using eclipse... for struts ,its well and good by the way one point i should say you can put... files where i have to keep them,and war files.(tell me the list of jar&war files 

JavaScript Questions

hi
selections. B/modify the application in the Exercise above (a) so that if the user 

Java Server Faces Questions

hi
hi  sir i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter 

Java Beginners

hi
hi  sir i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter 

Struts Questions

Struts - Struts
Struts  Dear Sir , I am very new in Struts and want... validation and one of custom validation program, may be i can understand.Plz provide the that examples zip. Thanks and regards Sanjeev.   Hi friend 

Java Beginners

hi.......
hi.......  i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i 

Java Beginners

hi
hi  add any two numbers using bitwise operatorsprint("code sample 

Java Beginners

hi
hi  add any two numbers using bitwise operatorsprint("code sample 

Java Beginners

hi
hi  add any two numbers using bitwise operatorsprint("code sample 

JSP Servlet Questions

hi
hi  how i get answer of my question which is asked by me for few minutes ago.....rply 

JDBC Questions

hi!
hi!  public NewJFrame() { initComponents(); try { Class.forName("java.sql.Driver"); con=DriverManager.getConnection("jdbc...(); } catch(Exception e) { e.printStackTrace(); } guysss ds s d code 

Development process Questions

hi
storing data in xml file using jsp  hi i am storing data in xml file using jsp.in this when i enter data into xml file i am getting xml declaration for each specified data?can any one help me to prevent this?   < 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

Advertisements Advertisements
 

 

 

DMCA.com