RE: Struts and cocoon

2002-10-18 Thread Madhavi Thottempudi
I thought stxx doesn't support WML!
Do U mean that we can do it by writing our own output transformer/renderer 
sort of things??

-M

At 13:35 17/10/2002 +0200, you wrote:
That's what I believe too. I believe you can do all kinds of
transformations with stxx, including WML.

Stef.

-Original Message-
From: V. Cekvenich [mailto:vicc@;users.sourceforge.net]
Sent: Donnerstag, 17. Oktober 2002 12:16
To: [EMAIL PROTECTED]
Subject: Re: Struts and cocoon

Cocon to me is meant to replace Apache static content.
Struts is for dynamc content.
I strore XML content in DB (in basicPortal) and render it using JSTL X
transform tag.
If you read a bit about FOP, you can render anything.

Cocon I think is also semi-parked.

Dynamic!

.V

Madhavi Thottempudi wrote:
> But, I see that the possible outputs supported by stxx are only html,
> pdf and svg.
> Whereas cocoon also supports WML, RTF apart from HTML, PDF& SVG.
> Isn't that an advantage of cocoon over stxx??
>
>
>
> At 10:45 17/10/2002 +0200, you wrote:
>
>> Stxx was designed to work with struts, so it probably has a few
>> advantages over cocoon.
>>
>> Stef.
>>
>> -Original Message-
>> From: Madhavi Thottempudi [mailto:madhavi@;caret.cam.ac.uk]
>> Sent: Donnerstag, 17. Oktober 2002 10:30
>> To: Struts Users Mailing List
>> Subject: Re: Struts and cocoon
>>
>> Hi!
>> I appreciate UR input on this topic. this really clears my mind about
>> doubts like -
>> Is anybody working on both Struts & cocoon or would the
configurations
>> conflict??, etc...etc.
>> And, I am even glad to have choice - Cocoon or stxx
>>
>> Thanks chaps!
>> -madhavi
>>
>>
>>
>> >Hello
>> >
>> >I've solved the problem of session lost, setting the path of any
cookie
>> to
>> >"/".
>> >A convenient method to avoid path related problems is make every
access
>> to
>> >the server root child, using mappings (servlets and filters in the
>> web.xml
>> >&
>> >actions in the struts.xml)
>> >
>> >EG:
>> >
>> >http://host:port/webappname/MyServlet
>> >http://host:port/webappname/MyUseCase_Keep.do
>> >
>> >Of course, the web pages can being distributed in any directory
layout;
>> >the browser ignores this, and believes that the resource is based on
>> the
>> >same directory (the name of your webapp).
>> >in this way browsers not invalidates the cookies and the previous
>> >stablished session is valid.
>> >
>> >good lucky
>> >Bernardo
>> >
>> > > Hello,
>> > >
>> > > I'm working in an application which combines Struts and Cocoon.
>> > > My unique problem for instance it's that I  must do redirection
>> instead
>> > > of forwards.
>> > > This is a problem because then the request and the session are
lost
>> at
>> > > each redirection.
>> > > I solve it passing arguments in the URL.
>> > > Tell me how you do.
>> > >
>> > > Iris
>> > >
>> > > Madhavi Thottempudi wrote:
>> > >
>> > >> Hi!
>> > >> Is anybody out there working with Apache cocoon and Struts
>> framework
>> > >> together??
>> > >> We are building a struts application and one of our requirement
is
>> > >> "Transformations".
>> > >> I am quite interested to know if anybody has worked on this
>> > >> combination, as I am wondering if it's possible to do that at
all.
>> Any
>> > >> comments/suggestions on this would be really helpful.
>> > >>
>> > >> Cheers
>> > >> -Madhavi
>> > >>
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > > To unsubscribe, e-mail:
>> > > <mailto:struts-user-unsubscribe@;jakarta.apache.org> For
additional
>> > > commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>
>> >
>> >
>> >
>> >
>> >--
>> >To unsubscribe, e-mail:
>> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
>> >For additional commands, e-mail:
>> <mailto:struts-user-help@;jakarta.apache.org>
>>
>> Madhavi T
>> E-Learning Systems Group
>> CARET, University of Cambridge
>> 16 Mill Lane
>> Cambridge CB2 1SB
>>
>> Tel: +44 (0) 1223 765382
>> [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
>> For additional commands, e-mail:
>> <mailto:struts-user-help@;jakarta.apache.org>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
>> For additional commands, e-mail:
>> <mailto:struts-user-help@;jakarta.apache.org>
>
>
> Madhavi T
> E-Learning Systems Group
> CARET, University of Cambridge
> 16 Mill Lane
> Cambridge CB2 1SB
>
> Tel: +44 (0) 1223 765382
> [EMAIL PROTECTED]




--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: Struts and cocoon and stxx and wap / wml

2002-10-18 Thread Madhavi Thottempudi
Thanks for that Stefan!
I am gonna start on modifying the client side of my application (using 
stxx) from tomorrow itself :)
I really appreciate UR suggestions.

cheers
-Madhavi

At 17:45 17/10/2002 +0200, you wrote:
I had to check it make sure, but of course you can transform xml into
wml using jaxp (from documentation of jaxp and xalan):

JAXP includes two implementations of XSLT, an interpreting version
(Xalan) and a compiling version (XSLTC) that lets you save pre- compiled
versions of desired transformations as translets, for the most efficient
runtime processing later on.

Xalan-Java is an XSLT processor for transforming XML documents into
HTML, text, or other XML document types. It implements the W3C
Recommendations for XSL Transformations (XSLT) and the XML Path Language
(XPath). It can be used from the command line, in an applet or a
servlet, or as a module in other program.

And yes ... WAP is an xml document type (wap pages should(have to)
include a ref to a DTD) e.g. :


http://www.wapforum.org/DTD/wml_1.1.xml";>










That's it .. no more cocoon!



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Struts and cocoon

2002-10-18 Thread Madhavi Thottempudi
Hi Stefan!


Actually I'm looking into this issue myself (new project that was
launched this morning). Will get back to you when I know what is
possible.


That would be really great, if U can give me some input about it.
Good luck with UR new project!

Thanks
-madhavi




Stef.
-Original Message-
From: Madhavi Thottempudi [mailto:madhavi@;caret.cam.ac.uk]
Sent: Donnerstag, 17. Oktober 2002 13:59
To: Struts Users Mailing List
Subject: RE: Struts and cocoon

I thought stxx doesn't support WML!
Do U mean that we can do it by writing our own output
transformer/renderer
sort of things??

-M

At 13:35 17/10/2002 +0200, you wrote:
>That's what I believe too. I believe you can do all kinds of
>transformations with stxx, including WML.
>
>Stef.
>
>-Original Message-
>From: V. Cekvenich [mailto:vicc@;users.sourceforge.net]
>Sent: Donnerstag, 17. Oktober 2002 12:16
>To: [EMAIL PROTECTED]
>Subject: Re: Struts and cocoon
>
>Cocon to me is meant to replace Apache static content.
>Struts is for dynamc content.
>I strore XML content in DB (in basicPortal) and render it using JSTL X
>transform tag.
>If you read a bit about FOP, you can render anything.
>
>Cocon I think is also semi-parked.
>
>Dynamic!
>
>.V
>
>Madhavi Thottempudi wrote:
> > But, I see that the possible outputs supported by stxx are only
html,
> > pdf and svg.
> > Whereas cocoon also supports WML, RTF apart from HTML, PDF& SVG.
> > Isn't that an advantage of cocoon over stxx??
> >
> >
> >
> > At 10:45 17/10/2002 +0200, you wrote:
> >
> >> Stxx was designed to work with struts, so it probably has a few
> >> advantages over cocoon.
> >>
> >> Stef.
> >>
> >> -Original Message-
> >> From: Madhavi Thottempudi [mailto:madhavi@;caret.cam.ac.uk]
> >> Sent: Donnerstag, 17. Oktober 2002 10:30
> >> To: Struts Users Mailing List
> >> Subject: Re: Struts and cocoon
> >>
> >> Hi!
> >> I appreciate UR input on this topic. this really clears my mind
about
> >> doubts like -
> >> Is anybody working on both Struts & cocoon or would the
>configurations
> >> conflict??, etc...etc.
> >> And, I am even glad to have choice - Cocoon or stxx
> >>
> >> Thanks chaps!
> >> -madhavi
> >>
> >>
> >>
> >> >Hello
> >> >
> >> >I've solved the problem of session lost, setting the path of any
>cookie
> >> to
> >> >"/".
> >> >A convenient method to avoid path related problems is make every
>access
> >> to
> >> >the server root child, using mappings (servlets and filters in the
> >> web.xml
> >> >&
> >> >actions in the struts.xml)
> >> >
> >> >EG:
> >> >
> >> >http://host:port/webappname/MyServlet
> >> >http://host:port/webappname/MyUseCase_Keep.do
> >> >
> >> >Of course, the web pages can being distributed in any directory
>layout;
> >> >the browser ignores this, and believes that the resource is based
on
> >> the
> >> >same directory (the name of your webapp).
> >> >in this way browsers not invalidates the cookies and the previous
> >> >stablished session is valid.
> >> >
> >> >good lucky
> >> >Bernardo
> >> >
> >> > > Hello,
> >> > >
> >> > > I'm working in an application which combines Struts and Cocoon.
> >> > > My unique problem for instance it's that I  must do redirection
> >> instead
> >> > > of forwards.
> >> > > This is a problem because then the request and the session are
>lost
> >> at
> >> > > each redirection.
> >> > > I solve it passing arguments in the URL.
> >> > > Tell me how you do.
> >> > >
> >> > > Iris
> >> > >
> >> > > Madhavi Thottempudi wrote:
> >> > >
> >> > >> Hi!
> >> > >> Is anybody out there working with Apache cocoon and Struts
> >> framework
> >> > >> together??
> >> > >> We are building a struts application and one of our
requirement
>is
> >> > >> "Transformations".
> >> > >> I am quite interested to know if anybody has worked on this
> >> > >> combination, as I am wondering if it's possible to do that at
>all.
> >> Any
> >> > >

RE: Struts and cocoon

2002-10-17 Thread Madhavi Thottempudi

But, I see that the possible outputs supported by stxx are only html, pdf 
and svg.
Whereas cocoon also supports WML, RTF apart from HTML, PDF& SVG.
Isn't that an advantage of cocoon over stxx??



At 10:45 17/10/2002 +0200, you wrote:
>Stxx was designed to work with struts, so it probably has a few
>advantages over cocoon.
>
>Stef.
>
>-Original Message-
>From: Madhavi Thottempudi [mailto:[EMAIL PROTECTED]]
>Sent: Donnerstag, 17. Oktober 2002 10:30
>To: Struts Users Mailing List
>Subject: Re: Struts and cocoon
>
>Hi!
>I appreciate UR input on this topic. this really clears my mind about
>doubts like -
>Is anybody working on both Struts & cocoon or would the configurations
>conflict??, etc...etc.
>And, I am even glad to have choice - Cocoon or stxx
>
>Thanks chaps!
>-madhavi
>
>
>
> >Hello
> >
> >I've solved the problem of session lost, setting the path of any cookie
>to
> >"/".
> >A convenient method to avoid path related problems is make every access
>to
> >the server root child, using mappings (servlets and filters in the
>web.xml
> >&
> >actions in the struts.xml)
> >
> >EG:
> >
> >http://host:port/webappname/MyServlet
> >http://host:port/webappname/MyUseCase_Keep.do
> >
> >Of course, the web pages can being distributed in any directory layout;
> >the browser ignores this, and believes that the resource is based on
>the
> >same directory (the name of your webapp).
> >in this way browsers not invalidates the cookies and the previous
> >stablished session is valid.
> >
> >good lucky
> >Bernardo
> >
> > > Hello,
> > >
> > > I'm working in an application which combines Struts and Cocoon.
> > > My unique problem for instance it's that I  must do redirection
>instead
> > > of forwards.
> > > This is a problem because then the request and the session are lost
>at
> > > each redirection.
> > > I solve it passing arguments in the URL.
> > > Tell me how you do.
> > >
> > > Iris
> > >
> > > Madhavi Thottempudi wrote:
> > >
> > >> Hi!
> > >> Is anybody out there working with Apache cocoon and Struts
>framework
> > >> together??
> > >> We are building a struts application and one of our requirement is
> > >> "Transformations".
> > >> I am quite interested to know if anybody has worked on this
> > >> combination, as I am wondering if it's possible to do that at all.
>Any
> > >> comments/suggestions on this would be really helpful.
> > >>
> > >> Cheers
> > >> -Madhavi
> > >>
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]> For additional
> > > commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>Madhavi T
>E-Learning Systems Group
>CARET, University of Cambridge
>16 Mill Lane
>Cambridge CB2 1SB
>
>Tel: +44 (0) 1223 765382
>[EMAIL PROTECTED]
>
>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





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




Re: Struts and cocoon

2002-10-17 Thread Madhavi Thottempudi

Hi!
I appreciate UR input on this topic. this really clears my mind about 
doubts like -
Is anybody working on both Struts & cocoon or would the configurations 
conflict??, etc...etc.
And, I am even glad to have choice - Cocoon or stxx

Thanks chaps!
-madhavi



>Hello
>
>I've solved the problem of session lost, setting the path of any cookie to
>"/".
>A convenient method to avoid path related problems is make every access to
>the server root child, using mappings (servlets and filters in the web.xml
>&
>actions in the struts.xml)
>
>EG:
>
>http://host:port/webappname/MyServlet
>http://host:port/webappname/MyUseCase_Keep.do
>
>Of course, the web pages can being distributed in any directory layout;
>the browser ignores this, and believes that the resource is based on the
>same directory (the name of your webapp).
>in this way browsers not invalidates the cookies and the previous
>stablished session is valid.
>
>good lucky
>Bernardo
>
> > Hello,
> >
> > I'm working in an application which combines Struts and Cocoon.
> > My unique problem for instance it's that I  must do redirection instead
> > of forwards.
> > This is a problem because then the request and the session are lost at
> > each redirection.
> > I solve it passing arguments in the URL.
> > Tell me how you do.
> >
> > Iris
> >
> > Madhavi Thottempudi wrote:
> >
> >> Hi!
> >> Is anybody out there working with Apache cocoon and Struts framework
> >> together??
> >> We are building a struts application and one of our requirement is
> >> "Transformations".
> >> I am quite interested to know if anybody has worked on this
> >> combination, as I am wondering if it's possible to do that at all. Any
> >> comments/suggestions on this would be really helpful.
> >>
> >> Cheers
> >> -Madhavi
> >>
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]> For additional
> > commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





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




Struts and cocoon

2002-10-16 Thread Madhavi Thottempudi

Hi!
Is anybody out there working with Apache cocoon and Struts framework together??
We are building a struts application and one of our requirement is 
"Transformations".
I am quite interested to know if anybody has worked on this combination, as 
I am wondering if it's possible to do that at all.
Any comments/suggestions on this would be really helpful.

Cheers
-Madhavi



Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: global variables-update

2002-10-04 Thread Madhavi Thottempudi

Thanks for the explanation Mark! I understand it better now.
-M

At 07:50 04/10/2002 -0400, you wrote:
>It's not a bean; it's a helper (Action) class that is passed the servlet
>request and response objects, getting a "handle" on the servlet and can
>access the context in which the servlet resides.  The context is the
>global/application scope; the context object is like the central switching
>office to every object that lives within the application.
>
>Mark
>
>-Original Message-
>From: Madhavi Thottempudi [mailto:[EMAIL PROTECTED]]
>Sent: Friday, October 04, 2002 7:41 AM
>To: Struts Users Mailing List
>Subject: RE: global variables-update
>
>
>Hi Divakar!
>Thanks for the suggestion.
>
>I am still confused with one thing
>In the example provided by struts (struts-example), I found that they are
>calling getServletContext from the Action bean to get a global/application
>scope attribute,
>but I felt it strange as there is no servlet passed to the Action Bean.
>
>The code is as follows:
>public final class SaveRegistrationAction extends Action {
>
>public ActionForward perform(ActionMapping mapping,
>   ActionForm form,
>   HttpServletRequest request,
>   HttpServletResponse response)
>  throws IOException, ServletException {
>
>  // Extract attributes and parameters we will need
>  Locale locale = getLocale(request);
>  .
>  ..
>  Hashtable database = (Hashtable)
>servlet.getServletContext().getAttribute(Constants.DATABASE_KEY);
>  if (servlet.getDebug() >= 1)
>  servlet.log("SaveRegistrationAction:  Processing " + action +
>  " action");
>  
>  .
>}
>}
>
>Any idea where this servlet is coming from???
>
>regards
>-M
>
>
>
>At 17:00 04/10/2002 +0530, you wrote:
> >Madhavi ,
> >
> >   You can look at the users guide available at the struts site. You can
>make
> >use of request.setAttribute( ) for setting up global variables.
> >Refer 2.2 JavaBeans and Scope of user doc
> >
> >http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_model.html
> >Regards,
> >Divakar
> >
> >
> > > -Original Message-
> > > From: Madhavi Thottempudi [SMTP:[EMAIL PROTECTED]]
> > > Sent: Friday, October 04, 2002 4:46 PM
> > > To:   Struts Users Mailing List
> > > Subject:  Re: global variables-update
> > >
> > > I mean setting application scope variables - using setServletContext or
> > > something like that and getting them back. Any ideas??
> > >
> > > Thanks again
> > > -M
> > >
> > > At 11:34 04/10/2002 +0100, you wrote:
> > > >Hi!
> > > >Where can I set global variables and get them back in Struts. Because I
> > > >see that Action beans extending struts Action bean doesn't get servlet
>in
> > >
> > > >their perform method.
> > > >
> > > >public ActionForward perform(ActionMapping mapping,
> > > > ActionForm form,
> > > > HttpServletRequest request,
> > > > HttpServletResponse response)
> > > >
> > > >Any suggestions???
> > > >
> > > >Thanks
> > > >-M
> > > >
> > > >
> > > >--
> > > >To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >
> > >
> > > Madhavi T
> > > E-Learning Systems Group
> > > CARET, University of Cambridge
> > > 16 Mill Lane
> > > Cambridge CB2 1SB
> > >
> > > Tel: +44 (0) 1223 765382
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >DISCLAIMER: Information contained and transmitted by this E-MAIL is
> >proprietary to Mascot Systems Limited and is intended for use only by the
> >individual or entity to which it is addressed, and may contain informat

RE: global variables-update

2002-10-04 Thread Madhavi Thottempudi

Hi Divakar!
Thanks for the suggestion.

I am still confused with one thing
In the example provided by struts (struts-example), I found that they are 
calling getServletContext from the Action bean to get a global/application 
scope attribute,
but I felt it strange as there is no servlet passed to the Action Bean.

The code is as follows:
public final class SaveRegistrationAction extends Action {

public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
 throws IOException, ServletException {

 // Extract attributes and parameters we will need
 Locale locale = getLocale(request);
 .
 ..
 Hashtable database = (Hashtable)
   servlet.getServletContext().getAttribute(Constants.DATABASE_KEY);
 if (servlet.getDebug() >= 1)
 servlet.log("SaveRegistrationAction:  Processing " + action +
 " action");
 
 .
}
}

Any idea where this servlet is coming from???

regards
-M



At 17:00 04/10/2002 +0530, you wrote:
>Madhavi ,
>
>   You can look at the users guide available at the struts site. You can make
>use of request.setAttribute( ) for setting up global variables.
>Refer 2.2 JavaBeans and Scope of user doc
>
>http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_model.html
>Regards,
>Divakar
>
>
> > -Original Message-
> > From: Madhavi Thottempudi [SMTP:[EMAIL PROTECTED]]
> > Sent: Friday, October 04, 2002 4:46 PM
> > To:   Struts Users Mailing List
> > Subject:  Re: global variables-update
> >
> > I mean setting application scope variables - using setServletContext or
> > something like that and getting them back. Any ideas??
> >
> > Thanks again
> > -M
> >
> > At 11:34 04/10/2002 +0100, you wrote:
> > >Hi!
> > >Where can I set global variables and get them back in Struts. Because I
> > >see that Action beans extending struts Action bean doesn't get servlet in
> >
> > >their perform method.
> > >
> > >public ActionForward perform(ActionMapping mapping,
> > > ActionForm form,
> > > HttpServletRequest request,
> > > HttpServletResponse response)
> > >
> > >Any suggestions???
> > >
> > >Thanks
> > >-M
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> >
> > Madhavi T
> > E-Learning Systems Group
> > CARET, University of Cambridge
> > 16 Mill Lane
> > Cambridge CB2 1SB
> >
> > Tel: +44 (0) 1223 765382
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
>DISCLAIMER: Information contained and transmitted by this E-MAIL is
>proprietary to Mascot Systems Limited and is intended for use only by the
>individual or entity to which it is addressed, and may contain information
>that is privileged, confidential or exempt from disclosure under applicable
>law. If this is a forwarded message, the content of this E-MAIL may not have
>been sent with the authority of the Company. If you are not the intended
>recipient, an agent of the intended recipient or a person responsible for
>delivering the information to the named recipient, you are notified that any
>use, distribution, transmission, printing, copying or dissemination of this
>information in any way or in any manner is strictly prohibited. If you have
>received this communication in error, please delete this mail & notify us
>immediately at [EMAIL PROTECTED] Before opening attachments,
>please scan for viruses.
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





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




Re: global variables-update

2002-10-04 Thread Madhavi Thottempudi

I mean setting application scope variables - using setServletContext or 
something like that and getting them back. Any ideas??

Thanks again
-M

At 11:34 04/10/2002 +0100, you wrote:
>Hi!
>Where can I set global variables and get them back in Struts. Because I 
>see that Action beans extending struts Action bean doesn't get servlet in 
>their perform method.
>
>public ActionForward perform(ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
>
>Any suggestions???
>
>Thanks
>-M
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>

Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




global variables

2002-10-04 Thread Madhavi Thottempudi

Hi!
Where can I set global variables and get them back in Struts. Because I see 
that Action beans extending struts Action bean doesn't get servlet in their 
perform method.

public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)

Any suggestions???

Thanks
-M


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Moving from MVC architecture to STRUTS

2002-09-24 Thread Madhavi Thottempudi

Thanks for the reply Cliff. That really helped me.

At 12:49 24/09/2002 +0100, you wrote:
> >1. From what I understood, at the Controller end - the
> >Controller servlet
> >and the mapping of the actions is provided by the framework.
> >But when I saw the example struts application, I got bit
> >confused with the
> >structure of struts - when it comes to session & entity beans.
> >In user guide it's mentioned that "the design is not good" or
> >"considered a
> >bug in the design" as business logic is embedded in actions - this
> >statement implies I can have my entity beans as usual. But can
> >I maintain
> >some session scope beans too or is there any alternative
> >structure in the
> >Struts framework??? I mean is the design of session and entity
> >beans left
> >to us??
>
>Struts is just a framework to support web applications, its not a
>persistence or business logic oriented solution - you're free to use
>whatever you like to supply the business functionality of your
>application, whether that is EJB or not - but yes, you have to implement
>that yourself.  If you have common, resuable functionality then you can
>obviously account for that in your design.
>
> >2. For the View - is there any functionality in struts to
> >switch between
> >different views depending upon what client (viewer) U have -
> >desktop, Palm,
> >mobile, etc
>
>Not directly, that I'm aware of - but there are several approches you
>can take to achieve this.  For example, you could use servlet filters to
>intercept your request or response and deal with it that way.  If you
>return null from an action, Struts will take it as read that you require
>nothing else from it, and will not attempt to render a view - you can
>then take care of that yourself.  I'm pretty sure this has been dealt
>with a few times on this list, you might find something of use in the
>archives (www.mail-archive.com)
>
> >3. Can I use Access database at the back-end. I have seen few
> >examples but
> >they were using Mysql.
>
>You can use anything you like :)  Like I said, Struts isn't a
>persistence solution, its just the framework to support your web based
>application.
>
> >
> >I really appreciate any suggestions or input. Thanks.
> >
> >-Madhavi
> >
> >
> >--
> >To unsubscribe, e-mail:
> >[EMAIL PROTECTED]>
> >For
> >additional commands,
> >e-mail: 
> >
> >
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 

Madhavi T
E-Learning Systems Group
CARET, University of Cambridge
16 Mill Lane
Cambridge CB2 1SB

Tel: +44 (0) 1223 765382
[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Moving from MVC architecture to STRUTS

2002-09-24 Thread Madhavi Thottempudi

Hi there!
I am new to Struts technology and I have few doubts to clarify from U 
experienced people
I am considering to move our web-application which is now based on MVC 
architecture to Struts and as a first step I'm doing some research on it 
and got stuck with few things.

My doubts are -

1. From what I understood, at the Controller end - the Controller servlet 
and the mapping of the actions is provided by the framework.
But when I saw the example struts application, I got bit confused with the 
structure of struts - when it comes to session & entity beans.
In user guide it's mentioned that "the design is not good" or "considered a 
bug in the design" as business logic is embedded in actions - this 
statement implies I can have my entity beans as usual. But can I maintain 
some session scope beans too or is there any alternative structure in the 
Struts framework??? I mean is the design of session and entity beans left 
to us??

2. For the View - is there any functionality in struts to switch between 
different views depending upon what client (viewer) U have - desktop, Palm, 
mobile, etc

3. Can I use Access database at the back-end. I have seen few examples but 
they were using Mysql.

I really appreciate any suggestions or input. Thanks.

-Madhavi


--
To unsubscribe, e-mail:   
For additional commands, e-mail: