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;
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]
Excuse me, I sent last message to a wrong list!!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
:-))
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
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
- 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
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
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
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
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
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
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
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 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]
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
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
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(
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/
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
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:
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.
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:
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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.
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
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/
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
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
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
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:
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
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
46 matches
Mail list logo