[Mav-user] webwork, maverick and 24x7

2004-08-13 Thread Taavi Tiirik

Hi,

I have two webapps using Webwork, Maverick, Tomcat 4.1,
Hibernate, JSP views (but switching to freemarker soon).

These web applications have to be available 7 days a week,
24 hours a day but the problem is they need new features
almoust every day. But I am kind of tired of deploying new
releases duering night when there is less users.

So I am trying to find a best way how to deploy changes
into working system. If this is possible at all.

Please be so kind and share your experiences.

Oh, and I am not so tied to tomcat after all...

thank you in advance,
taavi



---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
[INVALID FOOTER]


[Mav-user] Re: [OS-webwork] webwork, maverick and 24x7

2004-08-13 Thread Taavi Tiirik

Thank you all so far for these thoughs. Additional node
and load balancer would be good solution of course
and is definitely the right way to go.

The only problem is that there is not too much load
to balance :)

I now feel that our users can live with the fact that the
site is down for five minutes or so. But there is a lot of
time consuming filling in data input forms going on
in these applications. So I have to make sure that if
I stop a webapp (the container itself remains running)
then the application in root context will take over,
persist all the form data and give an easy to
understand explanation of what is going on. And once
the new version of the webapp is deployed and is up
and running again the user should be able to continue
like nothing evere happened.

This is just an idea and I dont know if this kind of
solution is reliable. And would it work with different
containers? With Tomcat it kind of works. The only
worrying thing is that if I hit reload button heavily
duering the startup of webapp then I have seen
error messages.

So it all depends on an implementation of a container
and this can make things very vulnerable.

taavi

- Original Message - 
From: Rickard Öberg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 13, 2004 4:09 PM
Subject: Re: [OS-webwork] webwork, maverick and 24x7


 Taavi Tiirik wrote:
  I have two webapps using Webwork, Maverick, Tomcat 4.1,
  Hibernate, JSP views (but switching to freemarker soon).
 
  These web applications have to be available 7 days a week,
  24 hours a day but the problem is they need new features
  almoust every day. But I am kind of tired of deploying new
  releases duering night when there is less users.
 
  So I am trying to find a best way how to deploy changes
  into working system. If this is possible at all.
 
  Please be so kind and share your experiences.

 Yeah, we have the same problem and currently we try to find low-usage
 hours to do it. We'll be looking more at the 2-node cluster strategy
 Jason mentioned in the future.

 If you have the luxury of having static output you could always generate
 the HTML and shove them onto an Apache server. Then you can upgrade the
 dynamic stuff behind the covers.

 /Rickard


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




---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
[INVALID FOOTER]


[Mav-user] HttpServletRequestWrapper

2004-08-10 Thread Taavi Tiirik
Hi,

I am using Throwaway2 type controllers and would like to
plug in my own HttpServletRequestWrapper.

What is the best way to do that in Maverick or should it
be done outside Maverick with javax.servlet.Filter instead?

many thanks,
taavi



---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
[INVALID FOOTER]


[Mav-user] hot to pass objects to include page

2003-10-06 Thread Taavi Tiirik

Hello,

This is not entirely maverick specific but I am trying to find a
solution to this in maverick environment hence the question.

I am currently using jstl as a view technology but if this can
be achieved with velocity and not with jstl then I am quite
ready to switch. Prefer to find a quick jstl solution though.

I would like to make my views more modular and reuse
common components as much as possible. For example
if I iterate over some sort of collection I would rather
include a component that knows how to render this
object instead of having similar rendering code in so
many places.

So instead of this:
c:forEach items=${model.projects} var=p
c:out value=${p.name}/, etc.
/c:forEach

I would like to have something like this: (does not work like this though)
c:forEach items=${model.projects} var=p
c:import url=/components/output-project.jsp
  c:param name=project value=${p}/
/c:import
/c:forEach

and something like this in output-project.jsp:
c:out value=${param.project.name}/, etc.

This kind of approach works as far as I only pass simpe strings
but not with beans, etc. I need beans :)

So please tell me how do you do this?

best regards,
Taavi



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]


Re: [Mav-user] Login with dynamic redirect

2003-08-02 Thread Taavi Tiirik
 Scenario 2,

 User types http://host/app/protectedCommand.m?p1=v1p2=v2p3=v3

 Same idea, user is redirected to login and then if login is successfull
they
 should be redirected through to initially selected command, only this time
 there are a number of URL paramters that I wish to have set, Does anyone
 have a simple way of acheiving this functionality.

David,

I dont know if you find it simple or elegant. My feeling is that it is not.
Anywhay
this is what I do:

in authentication-form.jsp I populate hidden fields into login form like
this:

 c:forEach items=${paramValues} var=paramValue
  c:forEach items=${paramValue.value} var=v
   c:if test=${paramValue.key != 'loginName'  paramValue.key !=
'loginPassword'}
input type=hidden name=c:out value=${paramValue.key}/
value=c:out value=${v}//
   /c:if
  /c:forEach
 /c:forEach

This code filters out loginName and loginPassword since they are defined as
an
ordinary input fields.

I have this working with registration too. Ie. the user may happen to our
site, submit a
search form (not being logged in yet), find out that registration is needed,
register, and
then get search results. It really is necessary to remember these get or
post parameters
especially if session expires and user has filled in an input form and does
not want to
retype everything again.

with best wishes,
Taavi



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
[INVALID FOOTER]


[Mav-user] additional configuration for commands

2003-02-12 Thread Taavi Tiirik

Please enlighten me :-)

I would like to specify some additional configuration
parameters for my maverick commands in maverick.xml.
Something like this is what I came up with:

command name=orgunit
controller class=ee.tvi.eris.ctl.orgunit.Orgunit
param name=required-roles value=role1/
/controller

...
/command

This required-roles specifies that user must be
authenticated and have role1 assigned to his/her
account.

Now this works but if I use views of type=redirect
then this required-roles becomes an url parameter.

Ie. if I define input view for this command like this:

view name=input type=redirect path=orgunit-search.m/

then request to orgunit.m is redirected to:

 orgunit-search.m?required-roles=role1


I do not need this required-roles to go along with
the redirect. Is there a better way to specify
configuration parameters for a command. I do not
want to have any additional config files, etc.

with best wishes,
Taavi


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
[INVALID FOOTER]



[Mav-user] more dynamic LanguageShuntFactory

2003-01-14 Thread Taavi Tiirik
Hello, All!

There is this LanguageShuntFactory that is just great for
this kind of web applications where user never ever
needs to switch between different languages. I have
this feeling (maybe I am over-designing something here :)
that in real world it needs some additional features...

What I have in mind is a way how to override language
selection that is made based on Accept-Language
header.

LanguageShunt.getView could just see if there is a
session attribute (named language, etc.) defined.
If there is, then it would first try to find a view for
this particular language.

Does it make sense? Do you think you would like
this feature as well or is it only me?

with best wishes,
Taavi :-)

Good I ran into Maverick. It looks very very promising!



---
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
[INVALID FOOTER]