struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Brown <mr...@twdata.org>
Subject RE: Struts and Cocoon Integration
Date Fri, 07 Mar 2003 18:42:17 GMT
Exactly.  When performance is key, you can have Struts use JSP directly.
Of course, with how the plugin is now, the request will still be sent to
Cocoon which would reject it.  As for the processing time it takes for
Cocoon to reject it, I don't know.  My guess is it would depend on whether
Cocoon was using compiled sitemaps or not.

Again, of course you could rewrite the plugin so it only processes
requests ending with "coc", but then you couldn't wrap existing struts
applications without modifying all the forwards in struts-config.xml.

Don

On 7 Mar 2003, Dave Patton wrote:

> But if performance is a concern, shouldnt I user Struts as the front end
> and then provide a mapping for all *.xml (or whatever other pattern I
> use) requests to the cocoon servlets?  This way I only incur the cocoon
> performance penalty on those requests which absolutely require cocoon?
> Im sure there are more ways to skin this cat.
>
> Dave Patton
>
> On Fri, 2003-03-07 at 01:36, ROSSEL Olivier wrote:
>
> > > There are at least two ways to handle the forwards:
> > > explicitly using some
> > > sort of suffix/prefix (e.g. all paths that end in ".coc" will
> > > be handled
> > > by the cocoon plugin) or simply pass all the request first to
> > > cocoon and
> > > if cocoon doesn't handle it, process it normally.  The stxx plugin
> > > (http://sf.net/projects/stxx) uses the former while I chose
> > > the latter.
> > > In my implementation, if you don't create a pipeline to match
> > > the forward,
> > > it is processed by Struts normally.  It is trival to write code to use
> > > either method.
> > >
> > > Hope that helps.
> >
> > Cocoon has an impressive URl management system (for example, it can trigger
> > not on the URL but on some combination of request parameters if you want :-)
> > So Cocoon as the front-end is the best, IMHO.
> >
> > This e-mail is intended only for the above addressee. It may contain
> > privileged information. If you are not the addressee you must not copy,
> > distribute, disclose or use any of the information in it. If you have
> > received it in error please delete it and immediately notify the sender.
> > Security Notice: all e-mail, sent to or from this address, may be
> > accessed by someone other than the recipient, for system management and
> > security reasons. This access is controlled under Regulation of
> > Investigatory Powers Act 2000, Lawful Business Practises.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
> _________________________________
> David H. Patton
> dave@mymobile.info
> (202) 276-8998 - pcs
>
> -----BEGIN PGP PUBLIC KEY BLOCK-----
>
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> mQENBDui6osBCADP9OqVftQ2qxZz2fsxEf6GT6V2Fu0c2iIIMeWGyc5Pwl+xXe2w
> 3wx2pmNkLy3Zjp2/5q4nhvJd/GVn5gRR9OVTKgAz4o+xcOcAVIbgz3xFICbLozKa
> 2aZOUDtOu0TuYGhI9iIeGuPjnMjsS38EfZQ2DWwd+p5UW6wnsSuG7xniUT372v8w
> YrtUwnKQwjRUGUlZoX1zwvJj50xEzipyyHosMuzjoHme+d+MEECRhAK81p0487kl
> X0UMXBehnsFK1mjbtQgfy2fdk0KT4NxKSD5s8ojoSdJ7R5CMwvh1UM4v2aAEqKvE
> CYaCWrAfZ7+TQGHXu75ejJz1iIuUno1fVsgLABEBAAG0IkRhdmUgUGF0dG9uIDxk
> cGF0dG9uQG52ZW50dXJlLmNvbT6JAS4EEAECABgFAjui6osICwMJCAcCAQoCGQEF
> GwMAAAAACgkQ5ZDkPqeKwH9Xswf/aP2WGiAU+HFxV136uKW5oDtZtSvm0YuW69Ra
> A2dPKFPp6E7v+w2c7yEV4+ZkVxbfk+VOh3p1MpXR367nQl9C+jMAD7MvPU6/KI+T
> 5WDzzKEGsyxOI+GYeGRKO0ZAYITG9HxevvKa1GMHBwRYNr2Qv62ckkHTy5rdmzZe
> PFM/am8B9maH5gKg6oIqzJwfmvb+ll8DRbhfI25trLqzggifrFcZHkOwTVGLNfdM
> cPWK/Yu4dOLAKCow06q0G/tDmXNkcyx12R6Z4Y/cQ5Qyvt1WP+eQAM/HBJI8rR9c
> cxS80pEorJIx4a7x9EsiwmB8milqBrXqHN2GRe/PnZSM9czBK7kBDQQ7ouqNAQgA
> sWO4lchFwK6leJClCpdaCjL4oUGjiZorW+XG2YKtQW6a+oYlplcHFkMSibkTN6Jc
> RdPEkarRvJ7sj+UgsUfkj4//EtqARuHTXhnMlsjqISTXlS2l61fQFg1d0iwvinyV
> sq6lVDtrr7UBe2b5TOuoRe13CzGWyhNQafV1gMcpBx9KxNi24UowJiT+cJpnxMCu
> +DNElC2AmG7phPagSFL8F4f++dGL2l8kAkxCSCl3Kr+8HUlFmOwwZ1PGSSM83pM/
> NNZKDAdGUiBRKqC32oOhKacxb6cf4ta1kZ6GDZcqVo+5qlz4OtUKbRLtW5Y8tiFc
> PwkDePX/F1490V3YWgHVzwARAQABiQEiBBgBAgAMBQI7ouqNBRsMAAAAAAoJEOWQ
> 5D6nisB/8xsIAJLNUQC8SOQF5txBrO22W7uAJ9xU9RK66Pyf9a+KjdNf4rE6vK4n
> vhbSGmtoPB4bzOQ9RKpo8ihBQp1cY9mLnwuJDKSuzpkaOK5pd+bifwY20tweULR6
> 4rtU8uLL1H0eom2IBjSXhf4n8DEdyrGKKHYNO/GRLx/UHHcLEFvz+4buHrCPoiBP
> JwjS/Ifg5xc3nTJnZmG2HzapoRwgXxGitbNTArUZWkqHYLygA1/ilmnFs8POj/s+
> TD4wSuDlrwE2CE2O8XbRuRVPryzn8mXXdZ1pSwrrvZjRU5rnDRAOqhHZQQbudVd3
> XvnDDBDoURSqwDqnwOkoOSTC95aj+vy5WW0=
> =/zoc
>
> -----END PGP PUBLIC KEY BLOCK-----
>


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


Mime
View raw message