ServletContext NullPointerException

2005-12-27 Thread Stanislav
This is my code: import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.text.NumberFormat; import java.text.ParseException; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.HashMap; import java.text.DateFormat; import java.util.Date;

El gran dia

2005-12-27 Thread Aldo Vadillo Batista
Bueno, a las 21.00 en la fuente luminosa ¿no? ¿Leerá Eduardo el correo? ¿Habrá que avisarlo? ¿Conservará el móvil? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: El gran dia

2005-12-27 Thread Aldo Vadillo Batista
Excuse me, I sent last message to a wrong list!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: ServletContext NullPointerException

2005-12-27 Thread Rakesh.Bhat
Hi, Check your code: Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services  business from i-flex - Add Value Reduce Risk www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : (080) 5759-6873 Email :  Rakesh.Bhat@ iflexsolutions.com

RE: ServletContext NullPointerException

2005-12-27 Thread Stanislav
:-)) I presume that my code is wrong, but i don't know what part :-( Can you help me? Tnx, Stanislav Hi, Check your code: Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - Add Value Reduce Risk

RE: ServletContext NullPointerException

2005-12-27 Thread Rakesh.Bhat
Hi, you can check your code I marked with arrows. Any way I will explain here also. See you have created a Connection obj called con and initialized it with null.however you are inside creating one more object on Connection called conn2 and intilaiting it with method getConnection. And calling

Fwd: RE: ServletContext NullPointerException

2005-12-27 Thread Stanislav
- Message Forwarded on 27/12/05 10:45 - From: Stanislav [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: ServletContext NullPointerException Date: Tue, 27 Dec 2005 10:44:00 +0100 I'm sorry :-(( I didn't see you code comments. I changed my code i still get nullpointerexp in the line

Re: Addressformat For Different Countries

2005-12-27 Thread Shiva Narayana
Thanks all for you giving valuble solutions On 12/9/05, Srinivas Jadcharla [EMAIL PROTECTED] wrote: You are correct garner , with 3 pages its easy to maintain and understand. On 12/8/05, Garner, Shawn [EMAIL PROTECTED] wrote: single JSP with logic tags If you do this you will get

Re: ServletContext NullPointerException

2005-12-27 Thread Shiva Narayana
Hi All, Need Info about WBI(Websphere Business Integration). Basically I am a struts developer. I have to use WBI tool to get the data from mainframes servers and has to display the data on webpages using struts. Please give me any suggestion or reference materials or guidence. Thanks in

Struts using WBI(Websphere Business Integration)

2005-12-27 Thread Shiva Narayana
Hi All, Need Info about WBI(Websphere Business Integration). Basically I am a struts developer. I have to use WBI tool to get the data from mainframes servers and has to display the data on webpages using struts. Please give me any suggestion or reference materials or guidence. Thanks in

Re: Struts using WBI(Websphere Business Integration)

2005-12-27 Thread Pazhanikanthan Periasamy
Hello Shiva Narayana , Please find some Information which I could find out from IBM website: IBM supports a lot of JCA-compatible WebSphere Application Adapters (for NDPL requirement): --- WebSphere Adapter for SAP Software --- IBM Websphere® Business Integration Adapter for SAP Exchange

RE: RE: ServletContext NullPointerException

2005-12-27 Thread Rakesh.Bhat
Hi, Use ServletContext sc = GenericServlet.this.getServletContext(); // as this is a method of GenericServlet. ServletContext sc = this.getServletContext(); This means no need to give servlet. getServletContext(); I am surprise why are u using servlet.get* Kind regards, Rakesh Bhat

ServletContext NullPointerException

2005-12-27 Thread Stanislav
I found out what is wrong :-) In non servlet class you need to pass context from servlet class if you want to have context there :-) Stanislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: ServletContext NullPointerException

2005-12-27 Thread ganesh kannusamy
Hi Stanislav, Use these lines to avoid the NullPointerException import javax.servlet.ServletContext; import javax.servlet.http.HttpSession; HttpSession ses = request.getSession(); ServletContext cfg = ses.getServletContext(); Hope this piece of code helps you, Thanks Bye,

How to retrieve inside action class as it is in jsp?

2005-12-27 Thread PC Leung
How to retrieve message text inside action class as it is in jsp? bean:message key=${functionProgram.message_key}/ Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ServletContext NullPointerException

2005-12-27 Thread Stanislav
Tnx! It works just fine :-) Hi Stanislav, Use these lines to avoid the NullPointerException import javax.servlet.ServletContext; import javax.servlet.http.HttpSession; HttpSession ses = request.getSession(); ServletContext cfg = ses.getServletContext(); Hope this

Re: How to retrieve inside action class as it is in jsp?

2005-12-27 Thread ganesh kannusamy
Hi *Leung,* * The* code for accessing the message from a properties file in Action Class is, ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage( view.success.totrash)); Thanks, Ganesh.K

Re: How to retrieve inside action class as it is in jsp?

2005-12-27 Thread PC Leung
thnx On 12/27/05, ganesh kannusamy [EMAIL PROTECTED] wrote: Hi *Leung,* * The* code for accessing the message from a properties file in Action Class is, ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(

validwhen problem in combination with RadioButton

2005-12-27 Thread niels
Hi, I want to validate a form: company field may only be filled if the selected (by radiobutton) addresstype is equal to CN I try to do this via: form-validation formset form name=addressForm field property=company depends=validwhen arg0 key=error.company/

Re: pre-populating form fields when called in edit mode.

2005-12-27 Thread Frank W. Zammetti
Paul Benedict wrote: But that of course doesn't make the list persist. Most frameworks heavily rely on the user session and I am now a strong believer that's the better way of doing things. Just as a relevant side-note... I suggest working in a distributed environment for a while and see if

Re: Discussion forum software -- open source

2005-12-27 Thread slam dunk
phpbb is the most popular discussion forum software. Its php/mysql based, no java/struts in it. On 12/27/05, Vikrama Sanjeeva [EMAIL PROTECTED] wrote:

html:multibox reset?

2005-12-27 Thread fea jabi
I am using html:multibox in my jsp. I am not sure when the reset method is needed. Not sure if I have to use it. I have declared my formbeans in config file itself. If I have to use how to use that? I am having the below code now to display a group of checkboxes in a column of a table.

RE: Discussion forum software -- open source

2005-12-27 Thread Daniel Blumenthal
A couple of years ago someone suggested PMachine, but again - it's PHP-based. I'm not sure why, but most (all?) of the discussion forum packages out there seem to be in PHP. -Original Message- From: slam dunk [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005 12:33 PM To:

RE: [OT] customizing JSF view management (was [shale][struts-face s] structured URLs with JSF (reprised))

2005-12-27 Thread Garner, Shawn
Is there a way to get the view as in the name of the jsp page within the code? Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Thursday, December 22, 2005 11:24 PM To: Struts Users Mailing List Subject: Re: [OT] customizing

[Application pattern] Advice

2005-12-27 Thread Xavier Vanderstukken
I need your help to design my web application using struts and hibernate. I have several classes to save/delete/update (like user, category, project,...). I dont know what is the best pattern to use : - 1action per object and all the operations(save,update,delete) in the same action - only

RE: [OT] customizing JSF view management (was [shale][struts-faces] structured URLs with JSF (reprised))

2005-12-27 Thread Daniel Blumenthal
You can get it from the HttpServletRequest object. bean:page id=req property=request/ Here's the javadoc page: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest. html Daniel -Original Message- From: Garner, Shawn [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: Discussion forum software -- open source

2005-12-27 Thread Jonnalagadda, Sumithra
Thanks Daniel and Vikram for your responses. I have never used a open source in a commercial application till now. If I plan to use say phpBB in a commercial application is there anything I need to take of legally?. Thanks -Original Message- From: Daniel Blumenthal [mailto:[EMAIL

Upload File

2005-12-27 Thread Flávio Maldonado
Hello I'm having a problem to upload a file using struts... I search for the error at Google... but I didn't solve my problem yet. I have this JSP: html:form action=/foto enctype=multipart/form-data tr td table cellpadding=0 cellspacing=15 width=100% tr td width=50% align=righthtml:file

RE: [OT] customizing JSF view management (was [shale][struts-faces] structured URLs with JSF (reprised))

2005-12-27 Thread Gary VanMatre
You might take a look at the Shale Clay view handler if you are trying to override the generated viewid. http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandler.java?view=markup I found some strange inconsistencies in the behavior of

RE: Upload File

2005-12-27 Thread Daniel Blumenthal
This probably won't help, but (you never know) - you might want to specify method=POST. So: html:form action=/foto enctype=multipart/form-data method=POST Just a thought. Daniel -Original Message- From: Flávio Maldonado [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005

Right way to handle compilcated form

2005-12-27 Thread Konrad Billewicz
Hello, I have a complicated form with mulit-level menu (several select's with onchange='submit()' ). I'm not sure how I should organize my Actions. Currently I have PrepareEditXYZAction which handles the JSP page. Form in the JSP page routes back to PrepareEditXYZAction. Inside

processActionPerform question

2005-12-27 Thread Jim Reynolds
I am creating a dynamic 'CrumbTrail' and have a question. A tactic I came up with is to clone the ActionForm, and store it. Later on when a crumb is clicked, I pull out the cloned ActionForm, and call, return super.processValidate(request, response, form, mapping); from my extended

Fw: Right way to handle compilcated form

2005-12-27 Thread Martin Gainty
Dobry Wieczór Konrad- Here is an example of a multiple DynaActionForm using field names based on Part Number (PartNumber1, PartNumber2) http://www.developer.com/java/ejb/article.php/2233591 take a look at the JSP html:text property TDhtml:text property=partNumber1//TD which have

Re: processActionPerform question

2005-12-27 Thread Michael Jouravlev
ActionForm is referred to via a scoped variable, this is what form-bean name = ... / is about. I don't know what did you change in your custom RequestProcessor, but default behavior for request-scoped ActionForms is that they are disposed when response is sent to the browser, and a new instance is

Re: pre-populating form fields when called in edit mode.

2005-12-27 Thread Rick R
Vikrama Sanjeeva wrote: Having separate Actions for insert, update and delete is better. Why? Do you make separate DAO objects? ie UpdateDao, InsertDao, RetrieveDao? I'm guessing you don't. So, it would help if you backed up your claim that separate Actions are better than a Dispatch

Re: Regarding Log4j

2005-12-27 Thread Pazhanikanthan Periasamy
log4j.properties --- # An example log4j configuration file that outputs to System.out. The # output information consists of relative time, log level, thread # name, logger name, nested diagnostic context and the message in that # order. # For the general syntax of property

RE: Regarding Log4j

2005-12-27 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
1.Download log4j.jar from here http://jakarta.apache.org/log4j/docs/download.html Put the jar in web-inf/lib 2.Create log4j.xml in your WEB-INF/classes directory. ++ sample log4j.xml + *** ?xml version=1.0

Newest member !

2005-12-27 Thread Jitendra Kumar
Hello everyone, I am newest to this mailing group and to Struts framework. I am migrating from ASP based web application to J2EE. Its appearing little difficult in the beginning but i am sure with your help i will be able to learn and deliver. Please accept me as a part of this group.

Re: serving binary files

2005-12-27 Thread Laurie Harper
Daniel Blumenthal wrote: Hi there, and happy holidays! I have an application in which there are certain files which are only accessible by certain users. So, when a request comes to my GetFile Action, I first verify that they have the correct permissions, then send the file by opening the

Re: validwhen problem in combination with RadioButton

2005-12-27 Thread Laurie Harper
niels wrote: Hi, I want to validate a form: company field may only be filled if the selected (by radiobutton) addresstype is equal to CN I try to do this via: form-validation formset form name=addressForm field property=company depends=validwhen arg0 key=error.company/

Re: html:multibox reset?

2005-12-27 Thread Laurie Harper
fea jabi wrote: I am using html:multibox in my jsp. I am not sure when the reset method is needed. Not sure if I have to use it. I have declared my formbeans in config file itself. If I have to use how to use that? Multibox is just another way of managing checkboxes, so the same caveats

Re: Right way to handle compilcated form

2005-12-27 Thread Laurie Harper
Konrad Billewicz wrote: Hello, I have a complicated form with mulit-level menu (several select's with onchange='submit()' ). I'm not sure how I should organize my Actions. Currently I have PrepareEditXYZAction which handles the JSP page. Form in the JSP page routes back to

Re: Upload File

2005-12-27 Thread Laurie Harper
Flávio Maldonado wrote: Hello I'm having a problem to upload a file using struts... I search for the error at Google... but I didn't solve my problem yet. I have this JSP: html:form action=/foto enctype=multipart/form-data tr td table cellpadding=0 cellspacing=15 width=100% tr td

Re: [OT] customizing JSF view management (was [shale][struts-face s] structured URLs with JSF (reprised))

2005-12-27 Thread Laurie Harper
Is FaceesContext.getViewRoot().getViewId() what you're looking for? L. Garner, Shawn wrote: Is there a way to get the view as in the name of the jsp page within the code? Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent:

Re: Right way to handle compilcated form

2005-12-27 Thread Konrad Billewicz
Sounds like you have some broken flow control there... I would expect that PrepareEditXYZAction would forward to a JSP, and that the JSP would have a form that submits to EditXYZAction. EditXYZAction would have 'intput' set to point to PrepareEditXYZAction which would mean that on

Re: pre-populating form fields when called in edit mode.

2005-12-27 Thread Vikrama Sanjeeva
Hi, Well, i said better due to sake of simplicity. Keeping all the logic in Dispactch action seems complex to me. And right now I've implemented more or less same technique (not exactly Dispatch action) and the code is bit complex to me. Again for JSP's, I don't want to make code complex by