Re: using struts2 i want to upload image but nullpointerexception occur

2012-04-23 Thread Maurizio Cucchiara
I'm pretty sure that logoName is always null in the following code line. File(filePath, imageDetailBean.getLogoName()); According with the docs [1], you should change your setter from setLogoName to set setLogoFileName [1] http://struts.apache.org/2.x/docs/file-upload.html Twitter     :http://w

Connection between Struts Application and DB.

2012-04-23 Thread Anjib Mulepati
Hi All, I have my DB and web application running in different machine. And whenever my DB machine restart my application fail since it can't connect to the DB. I have to restart my application every time my DB start. I am using Struts Plug-in to load connection information from web.xml file a

Re: using struts2 i want to upload image but nullpointerexception occur

2012-04-23 Thread Dave Newton
What does your debugger tell you is null? On Mon, Apr 23, 2012 at 10:32 AM, rahul bhalla wrote: > Hello Every one > I m new Struts 2 and i m trying to upload a image on server with the help > of struts 2 but i was unable > to do that i m pasting my co

Re: dynamic textfield

2012-04-23 Thread rahul bhalla
I means that i want to create textfield every time when i click the add button or remove it when i click delete button and that button is link with the database too On Mon, Apr 23, 2012 at 2:56 PM, Eamonn Kearns wrote: > What do you mean by a dynamic text box? > > Wing > > On 23 Apr 2012, at 04:5

Re: Reuse of Actions trough s:action. Objectives and inconveniences.

2012-04-23 Thread Josep García
I think you can specify the inteceptor list at action level in struts.xml. Cheers, Josep El 23 de abril de 2012 10:05, JOSE L MARTINEZ-AVIAL escribió: > Hi, > We are developing an web application that uses Struts2 + Tiles + JSP, > plus Dojo for the UI. The application uses the JSON plugin, sinc

Re: dynamic textfield

2012-04-23 Thread Eamonn Kearns
What do you mean by a dynamic text box? Wing On 23 Apr 2012, at 04:59, rahul bhalla wrote: > hello > I m rahul and i want to create dynamic text box using struts2 > > please suggest some direction so that i can proceed and one more thing is > that, i m using key/value then how can i set the val

Reuse of Actions trough s:action. Objectives and inconveniences.

2012-04-23 Thread JOSE L MARTINEZ-AVIAL
Hi, We are developing an web application that uses Struts2 + Tiles + JSP, plus Dojo for the UI. The application uses the JSON plugin, since we do a lot of interactions through AJAX calls using JSON. We are also building a thick client that will only uses JSON to communicate with the server. It wi