RE: Front Controller?

2004-06-07 Thread Chaikin, Yaakov Y (US SSA)
 Model 2 / MVC / Front Controller are all the same thing. 

Hmm... No, they are not. Front Controller and MVC are similar, but are
NOT the same design patterns! Front Controller is used for a sequence of
predefined steps (like a check out on amazon). MVC is used for
separation of Model (data handling), View (presentation handling),
Conroller (where to go). Whatever it is, those 2 design patterns are not
the same.

 In Struts the
 Front Controller is the ActionServlet, it
 receives/handles/dispatches every single request that comes into your
 web app. You write actions that are like units of functionality, then
 specify in a mapping file the relationship between URLs and the
Action,
 then depending on where the user is going, the ActionServlet will call
 the appropriate Action at the appropriate time to handle the user's
request.

Are you suggesting that Struts gives you the ability to specify a
sequence of actions? If so, I am not following how one would do that. 

From what I understand Struts would give you the ability to specify
where each action ends up, and in that sense you ARE specifying a
sequence of actions. Is that what you mean?

Thanks,
Yaakov.



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



RE: Front Controller?

2004-06-07 Thread Chaikin, Yaakov Y (US SSA)
 Struts contains a Front Controller implementation!

Could you point me to a particular class? Or are you saying that the
default class is already following Front Controller?

Thanks,
Yaakov.


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



Newbie question

2004-05-19 Thread Chaikin, Yaakov Y (US SSA)
Hi,

How do you get at ServletContext object inside an Action?

Thanks.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 


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



getResource(path)

2004-05-19 Thread Chaikin, Yaakov Y (US SSA)
I just read in SCWCD exam prep book about this method:

You can not pass a URL of any active resource -- for example, a JSP
page or servlet -- to this method.

I thought you could serve up your JSP pages, i.e., their actual JSP code
using this method. What does the above statement mean? 

Thanks.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 


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



JSP 2.0?

2004-05-10 Thread Chaikin, Yaakov Y (US SSA)
Hi,

I keep seeing people mention JSP EL in their posts. That's from JSP 2.0
spec. Question is: how many servers support that? Just looked up
Weblogic 8.1 and it doesn't support it. I know Tomcat 5.x supports it...

Are there a lot of people using JSP 2.0 out there?

Thanks.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 


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



RE: [OT]JSP Precompile in JBOSS

2004-05-04 Thread Chaikin, Yaakov Y (US SSA)
It's http://...?jsp_precompile=true

HTH.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 

 -Original Message-
 From: Paul McCulloch [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 04, 2004 12:00 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT]JSP Precompile in JBOSS
 
 I've done this in the past using wget to try and retrieve each page
with the
 special jsp_recompile (or something - see the JSP spec) argument.
 
 The problem I found with JBOSS-Tomcat is that JBOSS would remove all
the
 compiled jsps on shutdown. If this is the root of your problem (it was
with
 me) then you can turn this beahviour off by adding
 
 attribute name=DeleteWorkDirsfalse/attribute
 
 to jbossweb-tomcat41.sar\META-INF\jboss-service.xml. You need to add
this
 before attribute name=Config
 
 HTH
 
 Paul
 
  -Original Message-
  From: Ramadoss Chinnakuzhandai
[mailto:[EMAIL PROTECTED]
  Sent: Tuesday, May 04, 2004 4:47 PM
  To: [EMAIL PROTECTED]
  Subject: [OT]JSP Precompile in JBOSS
 
 
  Hi,
  Is there anyway I can configure JSP precompile in
  JBOSS startup? if so can you help me how to configure the same.
 
  Any help would be appreciated.
 
  Thank you in advance,
 
  Warm Regards,
  Ramadoss
 
 
 
-
  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: [OT]JSP Precompile in JBOSS

2004-05-04 Thread Chaikin, Yaakov Y (US SSA)
Complete link to what? The  http://...?jsp_precompile=true; was
just an example to point out jsp_precompile instead of jsp_recompile.

If you are talking about the JBoss forum links, here they are again. If
this doesn't work as a link, just copy and paste it into your browser.

http://www.jboss.org/index.html?module=bbop=viewtopict=48970

http://www.jboss.org/index.html?module=bbop=viewtopict=44455

HTH.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 

 -Original Message-
 From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 04, 2004 1:18 PM
 To: Struts Users Mailing List
 Subject: RE: [OT]JSP Precompile in JBOSS
 
 can you post the complete link...look like link not working.
 
 -Ramadoss
 
 
 -Original Message-
 From: Chaikin, Yaakov Y (US SSA)
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 04, 2004 12:05 PM
 To: Struts Users Mailing List
 Subject: RE: [OT]JSP Precompile in JBOSS
 
 
 It's http://...?jsp_precompile=true
 
 HTH.
 
 Yaakov Chaikin
 Software Engineer
 BAE SYSTEMS
 301-838-6899 (ph)
 301-838-6802 (fax)
 
 
  -Original Message-
  From: Paul McCulloch [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, May 04, 2004 12:00 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [OT]JSP Precompile in JBOSS
 
  I've done this in the past using wget to try and retrieve each page
 with the
  special jsp_recompile (or something - see the JSP spec) argument.
 
  The problem I found with JBOSS-Tomcat is that JBOSS would remove all
 the
  compiled jsps on shutdown. If this is the root of your problem (it
was
 with
  me) then you can turn this beahviour off by adding
 
  attribute name=DeleteWorkDirsfalse/attribute
 
  to jbossweb-tomcat41.sar\META-INF\jboss-service.xml. You need to add
 this
  before attribute name=Config
 
  HTH
 
  Paul
 
   -Original Message-
   From: Ramadoss Chinnakuzhandai
 [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, May 04, 2004 4:47 PM
   To: [EMAIL PROTECTED]
   Subject: [OT]JSP Precompile in JBOSS
  
  
   Hi,
   Is there anyway I can configure JSP precompile in
   JBOSS startup? if so can you help me how to configure the same.
  
   Any help would be appreciated.
  
   Thank you in advance,
  
   Warm Regards,
   Ramadoss
  
  
  
 -
   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]