RE: [FRIDAY] YA Stuts In Action / JUnit in Action Trivia Quiz

2004-02-07 Thread Prabhat Kumar (IT)
I wont bother to participate in this quiz because it will run only till Thursday, 
January 15, 2004, 23:59:59. And I don't yet own a time machine. :-)

Seriously though, the contest has not gone stale. I love the questions even though 
they are hard.

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 07, 2004 2:16 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] YA Stuts In Action / JUnit in Action Trivia Quiz


Hi Ted,

it's not gone stale, the questions are just getting hard! The best bit 
is waiting to see how long it will be before someone posts the answer to 
the list! And then seeing what their reaction is once they realise what 
they did!

Actually Brian Higdon's answer (to try to 'recall' his mail) was a bit 
of a disappointment. Are you still out there Brian? Gotta have a 
grovelling apology!

Actually I have more fun trying to find something that is a good Quiz 
but hard to google, because generally I don't have a clue what the 
answers to your quizzes are - at least for 15 minutes before someone 
posts the answer. :)

Adam


On 02/07/2004 05:04 PM Ted Husted wrote:
 Last time, we asked contestants to name for a popular science fiction series that 
 featured a psi cop named after a science fiction author 
 
 1 The series (Babylon 5)
 
 2 The character (Alfred Bester)
 
 3 The actor who played the character (Walter Koenig)
 
 4 The character this actor played in another famous science fiction series (Chekov)
 
 *OR* to list the twelve core practices of Extreme Programming.
 
 
 
 Turn out was low for this contest, so either the questions were hard, or this bit is 
 getting stale :) 
 
 Anyway, last week's winner is: 
 
 * MELISSA L KELLEY 
 
 (Melissa, please send your surface mail address to [EMAIL PROTECTED], and indicate 
 whether you would like JUnit in Action or Struts in Action)
 
 
 
 NEXT: 
 
 To play, correctly answer  -- directly to me at [EMAIL PROTECTED] -- one or both of 
 these questions.
 
 In The Demolished Man by Alfred Bester, a character used a jingle to help keep 
 himself from being scanned. 
 
   1 The first word of the chant is Tenser. How does the rest of it go?
 
 In Dune by Frank Herbert, a character used a litany to help him through a time of 
 stress.
 
   2 The first word of the chant is Fear. How does the rest of it go?
 
 *OR* 
 
   + Name your two favorite changes, improvements, or new additions to the Struts 
 Nightly Build since 1.1 was released. Hint: 
 http://jakarta.apache.org/struts/userGuide/release-notes.html. One more addition, 
 currently in progress, is to add a module parameters to several tags to allow 
 linking between modules. [Yes, 1.2.0 will be along shortly :)] 
 
 
 
 Contestants sending -- directly to me at [EMAIL PROTECTED] -- correct answers to the 
 to the bonus question *OR* the SF question to me will be eligible for the next 
 drawing. (the correct answers being the ones I expect). Prior winners excluded (but 
 feel free to play anyway).
 
 The contest will run until Thursday, January 15, 2004, 23:59:59, so everyone has a 
 chance to participate.
 
 The lucky winner selected from the correct responses will receive their choice of 
 either a signed copy of Struts in Action *OR* JUnit in Action.
 
 (Signed only by me, I'm afraid, my co-authors are scattered across the globe -- 
 gotta love the Internet!)
 
 PLEASE be sure to reply to [EMAIL PROTECTED]
 
 If you have an interesting science fiction or computer science question that is 
 hard, or at least fun, to google, please send it to me. The first to suggest a 
 question that we use also wins!
 
 -Ted.
 
 PLEASE be sure to reply to [EMAIL PROTECTED]
 
 
 --
 Ted Husted,
Junit in Action  - http://www.manning.com/massol/,
Struts in Action - http://husted.com/struts/book.html,
JSP Site Design  - http://www.amazon.com/exec/obidos/ISBN=1861005512.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] IE problem. stumped

2003-12-05 Thread Prabhat Kumar (IT)
I'm wondering if anyone has come across this.

We have this struts application that is about to be deployed and it works fine, shows 
all the HTML pages as expected in IE 6.0.

As part of our final tests, we began testing the application on IE 5.01 SP1. This is 
where the application gets all messed up. Text gets displayed all over the page very 
randomly. We used HTML tables to layout pages and format content.

Thoughts?

Thanks, Prabhat.


RE: [OT] IE problem. stumped

2003-12-05 Thread Prabhat Kumar (IT)
I just ran the validator as was suggested by Jarnot... The HTML validates fine.

What happens is sometimes, a heading from the middle of the page for some reason 
shifts to the top. And it is very random. Text beside a check-box doesn't show... and 
then when that region is highlighted it magically shows up.

-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 2:47 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] IE problem. stumped


IE 5.X and 6.0 are very different beasts. 6.0 in some ways is *less*
compliant with the specs then 5.2.

 -Original Message-
 From: Jarnot Voytek Contr AU HQ/SC 
 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, December 05, 2003 1:59 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] IE problem. stumped
 
 
  -Original Message-
  From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED]
  Sent: Friday, December 05, 2003 12:57 PM
  To: [EMAIL PROTECTED]
  Subject: [OT] IE problem. stumped
  
  I'm wondering if anyone has come across this.
  
  We have this struts application that is about to be deployed
  and it works fine, shows all the HTML pages as expected in IE 6.0.
  
  As part of our final tests, we began testing the application
  on IE 5.01 SP1. This is where the application gets all messed 
  up. Text gets displayed all over the page very randomly. We 
  used HTML tables to layout pages and format content.
  
  Thoughts?
  
 
 Two thoughts, try this: http://validator.w3.org/ and do this 
 sort of testing earlier in your lifecycle...
 
 --
 Voytek Jarnot
 Quantum materiae materietur marmota monax si marmota monax 
 materiam possit materiari?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Scheduler

2003-12-02 Thread Prabhat Kumar (IT)
jcrontab is misspelled as jcontab.

http://jcrontab.sourceforge.net/index.shtml

-Original Message-
From: Markus [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 8:28 AM
To: Struts Users Mailing List
Subject: RE: Scheduler


Hi,

I've tried to find Jcontab on but it doesn't exist!
Could you correct the address, please.

Regards,
Markus
 There are also Jcontab - jcontab.sf.net
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 02, 2003 8:02 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Scheduler
 
 
 
 We are using an open source project called Quartz, available on source
 forge, for this kind of thing. It has been working really well here. We
 register classes with a cron style timer and at the given times the
 registered class is called back.
 
 There is also mention in the documentation about how this works in
 containers and how the specs are not violated.
 
 regrds
 IV
 
 
   from:Gurpreet Dhanoa [EMAIL PROTECTED]
   date:Tue, 02 Dec 2003 12:15:16
   to:  [EMAIL PROTECTED]
   subject: Re: Scheduler
  
  Hi HG
  
  I will surely share the sucess after sucessfully implementing it.
  Understand the value of this mailing list.
  Dont wory dude.
  
  Thanks for help
  
  Cheers
  gary
  
  
  
  
  
  
  
  - Original Message -
  From: HG [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Tuesday, December 02, 2003 5:38 PM
  Subject: Re: Scheduler
  
  
   Please share your success with the rest of us...
  
   I am in need of similar functionality...very soon...
  
   - Original Message -
   From: Gurpreet Dhanoa [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Tuesday, December 02, 2003 1:04 PM
   Subject: Re: Scheduler
  
  
hi HG
   
Thanks for the thought i have found the path tomove on. Hope it may
 work
out. Anyway thread problem is related to EJB Container as such strut
   allows
one to use Thread
   
Thanks
Gary
- Original Message -
From: HG [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 5:26 PM
Subject: Re: Scheduler
   
   
 Hi Gurpreet

 I haven't tried this...but it came across my mind as I need
 something
 similar very soon.

 You could write a Struts plugin... init() method called on start
 of
   webapp
 and destroy() method called on shutdown of webapp.

 In the init() method you could start a thread that wakes up at
   specified
 interval, say each minute, to check if there is some tasks that
 need
  to
   be
 done, eg sending mails, cleaning up, make some coffee (;-))

 In the destroy method you could stop the thread again

 I don't know if this violates with the J2EE spec...I remember
 reading
 something about threads...but that might be for EJBs only...Anyone
 can
shed
 some light on this issue?

 Regards

 Henrik

 - Original Message -
 From: Gurpreet Dhanoa [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, December 02, 2003 12:47 PM
 Subject: Scheduler


 hi All


 I want to implement a scheduler program something at the starting
 of
  the
 application or at the starting of tomcat.

 Basically i need one of my program to track all of the reminders i
  have
set
 in an web-application.

 Say if i have set a reminder to send an email to client at 1400
 hrs
  then
it
 should send that email at that time without the need of signing
 into
  the
 account.



 Any help will be of great use.


 Thanks
 Gary




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]

   
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 

http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placemen
 t=home_multi.gifsite=amazon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: Workaround for IE streamer bug?

2003-10-30 Thread Prabhat Kumar (IT)
I guess this is a known problem with IE. I can't remember but I think we had the same 
problem with IE, and we came across a suggestion somewhere to end the pdf requesting 
URL with a .pdf (something like 
http://servername/xyz/something.do?your-param=xyzdummy=.pdf) 


-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 12:59 PM
To: Struts Users Mailing List
Subject: Re: Workaround for IE streamer bug?


Well, I have tried both inline and attachment, the only difference is
that when using attachment I get question of where to save the file on
all the other browsers instead of just opening (as expected), and IE
still doesn't work. In fact, using attachment is worse for IE...

Any more suggestions are appreciated...

BTJ

On Thu, 2003-10-30 at 15:19, [EMAIL PROTECTED] wrote:
 This header currently works for me in a similar case. Try changing your 
 code:
 
 response.setHeader(Content-Disposition, attachment; filename=\ + 
 filename + \);
 
 HTH.
  
 Atenciosamente,
 Bruno Arantes de Andrade Bueno
 Webdeveloper Pleno
 
 Fone: +55 (34) 3231-1073
 Solution WEB - Soluções Para Internet!
 www.solutionweb.com.br
 
 
 
 
 
 Bjørn T Johansen [EMAIL PROTECTED]
 10/30/2003 07:05 AM
 Please respond to Struts Users Mailing List
 
  
 To: Struts Users Mailing List [EMAIL PROTECTED]
 cc: 
 Subject:Workaround for IE streamer bug?
 
 
 I have a little problem. I am using the following code to stream pdf
 files to the browser..:
 
 fis = new FileInputStream(filename);
   byte[] buf = new byte[fis.available()];
 
   response.setHeader(Content-Disposition, inline;filename= +
 filename + ;);
   response.setContentType(application/pdf);
   response.setHeader(Connection, keep-alive);
   response.setContentLength(buf.length);
   response.getOutputStream().write(buf,0,fis.read(buf));
   response.getOutputStream().flush();
   response.getOutputStream().close();
   fis.close();
 
 This works ok in all browsers except for IE. When using IE, a dialog box
 asking the user for which application to open the file in, is always
 displayed. Why? And is there a workaround for this?
 
 
 Thanks...
 
 BTJ
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Workaround for IE streamer bug?

2003-10-30 Thread Prabhat Kumar (IT)
JavaScript?

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 1:36 PM
To: Struts Users Mailing List
Subject: RE: Workaround for IE streamer bug?


Oki, that sounds like an idea :)
But how do I add a querystring to my url when submitting a form?

BTJ

On Thu, 2003-10-30 at 19:05, Prabhat Kumar (IT) wrote:
 I guess this is a known problem with IE. I can't remember but I think we had the 
 same problem with IE, and we came across a suggestion somewhere to end the pdf 
 requesting URL with a .pdf (something like 
 http://servername/xyz/something.do?your-param=xyzdummy=.pdf) 
 
 
 -Original Message-
 From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 30, 2003 12:59 PM
 To: Struts Users Mailing List
 Subject: Re: Workaround for IE streamer bug?
 
 
 Well, I have tried both inline and attachment, the only difference is
 that when using attachment I get question of where to save the file on
 all the other browsers instead of just opening (as expected), and IE
 still doesn't work. In fact, using attachment is worse for IE...
 
 Any more suggestions are appreciated...
 
 BTJ
 
 On Thu, 2003-10-30 at 15:19, [EMAIL PROTECTED] wrote:
  This header currently works for me in a similar case. Try changing your 
  code:
  
  response.setHeader(Content-Disposition, attachment; filename=\ + 
  filename + \);
  
  HTH.
   
  Atenciosamente,
  Bruno Arantes de Andrade Bueno
  Webdeveloper Pleno
  
  Fone: +55 (34) 3231-1073
  Solution WEB - Soluções Para Internet!
  www.solutionweb.com.br
  
  
  
  
  
  Bjørn T Johansen [EMAIL PROTECTED]
  10/30/2003 07:05 AM
  Please respond to Struts Users Mailing List
  
   
  To: Struts Users Mailing List [EMAIL PROTECTED]
  cc: 
  Subject:Workaround for IE streamer bug?
  
  
  I have a little problem. I am using the following code to stream pdf
  files to the browser..:
  
  fis = new FileInputStream(filename);
byte[] buf = new byte[fis.available()];
  
response.setHeader(Content-Disposition, inline;filename= +
  filename + ;);
response.setContentType(application/pdf);
response.setHeader(Connection, keep-alive);
response.setContentLength(buf.length);
response.getOutputStream().write(buf,0,fis.read(buf));
response.getOutputStream().flush();
response.getOutputStream().close();
fis.close();
  
  This works ok in all browsers except for IE. When using IE, a dialog box
  asking the user for which application to open the file in, is always
  displayed. Why? And is there a workaround for this?
  
  
  Thanks...
  
  BTJ
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Object-oriented encapsulation in Struts - merging Actions and ActionForms

2003-06-24 Thread Prabhat Kumar (IT)
I've never used it but I believe that the WebWork framework 
(http://sourceforge.net/projects/opensymphony) is designed in just this way. The 
action is basically just a JavaBean with an additional execute method.

-Original Message-
From: Dan Jacobs [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 8:22 AM
To: [EMAIL PROTECTED]
Subject: Object-oriented encapsulation in Struts - merging Actions and
ActionForms


[ potentially controversial topic ]
Hi all,
I have noticed that most of my Struts applications end up being
implemented like dismembered objects.

I design the controller parts of my Struts applications using
object-oriented design techniques, but then I have to transform my
designs into an awkward, non-object-oriented form:

* What was originally encapsulated object state has to be extracted
  and isolated as ActionForms.

* What were originally methods that acted on encapsulated object state
  have to become stateless processors in the form of Actions.

* The Struts servlet acts like another method-turned-C-function when
  it resets and assigns property-values in the ActionForms.

I can translate in the other direction too.  If I take someone else's
Struts application, I can derive an effective object model from the
relationships between the Actions and ActionForms described in the
struts-config.xml file.  That's really useful for figuring out what's
going on.

There's no problem getting all of this to work, and the Struts servlet
and framework do some very useful things.  But the separation of the
Actions from the ActionForms makes it harder to maintain the integrity
of the original object-oriented designs.

What I'd really like to see is a truly object-oriented approach to the
controller, where the state of the web-application is encapsulated as
instances of real classes (not just the equivalent of C struts) that
are acted on by methods.  The methods would be invoked just like
Actions are currently invoked, but rather than pass behavior-less data
to data-less functions, we could have methods acting on encapsulated
object state.  Who knows - maybe someday we could even have subclasses
and inheritance and constructors and methods with method parameters.

If action-mappings could map to methods invoked on named instances,
Actions and ActionForms could be merged into real objects, and the
object-oriented character of controller designs could be maintained.

Is there any compelling reason that this shouldn't be done?


I can get the object-oriented behavior I want using JPlates, but I
don't want to have to duplicate all of the other contributions that
Struts offers for web-applications.  I use JPlates with Struts, but
I'd be happier with a more object-oriented version of Struts.

Dan Jacobs
JPlates Inc.
http://www.jplates.com




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]