Re: Reporting Tools

2005-11-20 Thread Raghu Kanchustambham
You can try Jasper reports...
Havent used it a lot myself .. but looks like a decent open source tool for
generating reports with support for PDF, excel etc...
 ~raghu

 On 11/20/05, Rivka Shisman <[EMAIL PROTECTED]> wrote:
>
> Hi friends
>
>
>
> Can you recommend me a reporting tool that works nicely with Struts?
>
> Does someone use Crystal Reports?
>
>
>
> Thanks
>
> Rivka
>
>


Validator framework with indexed properties

2005-11-20 Thread Raghu Kanchustambham
Hi,
I was hoping that the following should work ... but I guess I am missing
something somewhere.. validation with other properties is working fine.. but
not with the indexed properties.
  Struts-config.xml:
 



























 validation.xml: I am trying to validate the indexed property of the
completionDate of educationDetails. I have all the following entries in my
validation.xml in the hope that atleast one of it will work... but none
seems to...

 

datePattern
dd/MM/yy




datePattern
dd/MM/yy




datePattern
dd/MM/yy




datePattern
dd/MM/yy




datePattern
dd/MM/yy




datePattern
dd/MM/yy




datePattern
dd/MM/yy



 Note that I am successfully able to validate other fields on this form like
studentEnquiry.firstName etc it is not validating only the indexed
properties.

If it matters... I am using struts 1.1.

 Please let me know what I am doing wrong.

Thanks much.

Regards,

Raghu


help for changing the language, locale

2005-11-20 Thread Miren Urkijo
HEllo y havo one struts aplicaicon.
if into the borwser i change the locale, into the browser properties, my 
application load the properties files well.
i am thinking for making onw struts action for changing the language, thelocale 
but i dont knows how to change it.
can anybody says me how must i make it?
thanks

Re: Reporting Tools

2005-11-20 Thread Larry Meadors
It depends on what you are looking for.

I have used both, and think they both suck. :-D

Jasper has the advantage that it is free, but usability is crappy.

Crystal has the advantage that it usually works, but requires a
windows PC to modify the reports.

Choose the evil you prefer. ;-)

On a side note, if you are looking to support something more printable
than html, the jexcelapi project provides a decent and easy to use
excel format. I tried FOP to create PDF files several years ago, but
at that time it was a massive CPU/memory hog...it may be better now.

A google search on "java pdf creation" will also turn up a TON of info...

Larry


On 11/20/05, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote:
> You can try Jasper reports...
> Havent used it a lot myself .. but looks like a decent open source tool for
> generating reports with support for PDF, excel etc...
>  ~raghu
>
>  On 11/20/05, Rivka Shisman <[EMAIL PROTECTED]> wrote:
> >
> > Hi friends
> >
> >
> >
> > Can you recommend me a reporting tool that works nicely with Struts?
> >
> > Does someone use Crystal Reports?
> >
> >
> >
> > Thanks
> >
> > Rivka
> >
> >
>
>

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



Re: help for changing the language, locale

2005-11-20 Thread Danny Lee

Well,

that's really easy, just do:

"request.getSession().setAttribute(Globals.LOCALE_KEY, new 
locale(languageCode));"


in your action, where languageCode is the locale you wish to use.

Cheers

Danny



Miren Urkijo schrieb:

HEllo y havo one struts aplicaicon.
if into the borwser i change the locale, into the browser properties, my 
application load the properties files well.
i am thinking for making onw struts action for changing the language, thelocale 
but i dont knows how to change it.
can anybody says me how must i make it?
thanks



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



Re: help for changing the language, locale

2005-11-20 Thread Frank W. Zammetti
Note that there is a LocaleAction specifically for doing this, so you 
don't even have to remember how :)  It appears in 1.2.4 at least, but 
I'm not sure when it was first introduced.


Frank

Danny Lee wrote:

Well,

that's really easy, just do:

"request.getSession().setAttribute(Globals.LOCALE_KEY, new 
locale(languageCode));"


in your action, where languageCode is the locale you wish to use.

Cheers

Danny



Miren Urkijo schrieb:


HEllo y havo one struts aplicaicon.
if into the borwser i change the locale, into the browser properties, 
my application load the properties files well.
i am thinking for making onw struts action for changing the language, 
thelocale but i dont knows how to change it.

can anybody says me how must i make it?
thanks




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



.



--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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



Re: Reporting Tools

2005-11-20 Thread Frank W. Zammetti

Datavision is another decent choice: http://datavision.sourceforge.net/

On the home page there is a link to an article I wrote about using it in 
a webapp (straight servlets).  I've used it in Struts apps too, it's 
trivial if you use the article (and the accompanying sample code) as a 
starting point.


It's not quite as feature-rich as Jasper or Crystal, but it gets the job 
done pretty well, can output to a number of formats (HTML, PDF, etc.) is 
free and is extremely easy to work with.


Frank

Larry Meadors wrote:

It depends on what you are looking for.

I have used both, and think they both suck. :-D

Jasper has the advantage that it is free, but usability is crappy.

Crystal has the advantage that it usually works, but requires a
windows PC to modify the reports.

Choose the evil you prefer. ;-)

On a side note, if you are looking to support something more printable
than html, the jexcelapi project provides a decent and easy to use
excel format. I tried FOP to create PDF files several years ago, but
at that time it was a massive CPU/memory hog...it may be better now.

A google search on "java pdf creation" will also turn up a TON of info...

Larry


On 11/20/05, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote:


You can try Jasper reports...
Havent used it a lot myself .. but looks like a decent open source tool for
generating reports with support for PDF, excel etc...
~raghu

On 11/20/05, Rivka Shisman <[EMAIL PROTECTED]> wrote:


Hi friends



Can you recommend me a reporting tool that works nicely with Struts?

Does someone use Crystal Reports?



Thanks

Rivka







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






--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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



Re: help for changing the language, locale

2005-11-20 Thread Simons Kevin
I don't know how you could do this. But perhaps you can create a struts 
action that loads the correct locale properties file. Just an opinion.


regards,
- Original Message - 
From: "Miren Urkijo" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Sunday, November 20, 2005 11:36 AM
Subject: help for changing the language, locale


HEllo y havo one struts aplicaicon.
if into the borwser i change the locale, into the browser properties, my 
application load the properties files well.
i am thinking for making onw struts action for changing the language, 
thelocale but i dont knows how to change it.

can anybody says me how must i make it?
thanks





No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.4/175 - Release Date: 18/11/2005



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.4/175 - Release Date: 18/11/2005


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



Re: jaas authorization with struts

2005-11-20 Thread Raghu Kanchustambham
On the first cut this looks like authentication/authorization for Spring
framework. Do I need to get struts co-exist with spring for this to work ?
And how much of an effort would that be?
 But yes.. this looks quite a powerful and neat concept.
 Thanks for refering it.
 Regards,
Raghu


 On 11/20/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> Take a look at the Acegi Security project. It provides *extremely*
> powerful declarative security capabilities, upto and including filtering
> database query results to exclude things the current user shouldn't be
> able to see. It might be exactly what you're looking for.
>
> L.
>
> Raghu Kanchustambham wrote:
> > Hi,
> > I could successfully place my authentication scheme in place using the
> > article at
> > http://www.jroller.com/comments/tomdz?anchor=using_jaas_with_struts_a
> > I also could place "resource" level authorization in place. However the
> > definition of resource is the "traditional" action mapping. However I
> have a
> > requirement which goes beyond that. I have a centre based roles. Let us
> say
> > my application could be used by administrators at three centres. The
> trick
> > is that all of them can view the set of "resources"... but in a
> particular
> > JSP they are authorized to use only certain values for some of the
> fields.
> > For example, a Hyderabad administrator can view reports pertaining to
> > Hyderabad only and should not be allowed to see reports of Bangalore
> centre.
> > Which let us say in UI terms would translate to a dropdown of cities ..
> for
> > the Bangalore administrator... he probably can see the dropdown populate
> > with Bangalore... the Hyderabad admin sees it populated only with
> Hyderabad
> > and a HeadOffice admin sees all the cities in the cities dropdown.
> > What is the best way to achieve this?
> > One approach is to create a separate role for each centre user. For
> > example... have a role called Bangalore_Admin and Hyderabad_Admin etc.
> But
> > obvious drawback is that this approach won't scale well with the
> increase in
> > the number of centres.
> > The other approach I was thinking is writing code myself. Introduce a
> > column for centre in the user table. From the
> > request.getUserPrincipal().getName()
> > funcion I determine the user... hit the database to determine the centre
> and
> > then filter the cities based on the city and the role.
> > I don't like this approach because I have lost the advantages of a
> > declarative style of defining security permissions. Also, now my
> > authorization code would be mixed allover and would be difficult to
> change
> > the authorization policies on a later date.
> > The third approach is similar to the second one. Instead of defining a
> > centre at the user level, I could do it at the user_role mapping level.
> > User1 is the administrator of Hyderabad centre. He could be a regular
> user
> > for another centre (say Bangalore). Slightly better than second approach
> but
> > suffers from similar problems.
> > Is there a way that my getUserPrincipal() can be made to give me this
> extra
> > piece of information about the centre? That would make my code look lot
> > cleaner. I dont have to hit back the database just to find the centre.
> > Please comment.
> > Thanks much.
> > Regards,
> > Raghu
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: help for changing the language, locale

2005-11-20 Thread Miren Urkijo

it runsbut i have one problem.
in my struts pages i am working with fmt and jstl and this doesn't run with 
these (jstl, fmt).

which is the solution?
can anybody helps me?
thanks
- Original Message - 
From: "Danny Lee" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, November 20, 2005 2:24 PM
Subject: Re: help for changing the language, locale



Well,

that's really easy, just do:

"request.getSession().setAttribute(Globals.LOCALE_KEY, new 
locale(languageCode));"


in your action, where languageCode is the locale you wish to use.

Cheers

Danny



Miren Urkijo schrieb:

HEllo y havo one struts aplicaicon.
if into the borwser i change the locale, into the browser properties, my 
application load the properties files well.
i am thinking for making onw struts action for changing the language, 
thelocale but i dont knows how to change it.

can anybody says me how must i make it?
thanks



-
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: jaas authorization with struts

2005-11-20 Thread Adam Hardy

Hi Raghu, Laurie,

I did a project recently which used the Acegi security project which 
comes bundled with Spring, and although I was never involved in the 
implementation of it myself, I heard that it was effective.


Am I correct in assuming though that it does not offer the alternative 
that Raghu was looking for, despite the fact that he(you) seems very 
positive about it?


I can't see how such a security requirement can be implemented in any 
other way than via the database. It is simply a question of data 
visibility, in other words, who the data is visible to and to whom it is 
not visible. The best you can do as far as I can see is to optimise the 
caching, especially if the relationships are relatively stable.


Or is this perhaps a pattern that I am not aware of?


Adam



Raghu Kanchustambham on 20/11/05 16:50, wrote:

On the first cut this looks like authentication/authorization for Spring
framework. Do I need to get struts co-exist with spring for this to work ?
And how much of an effort would that be?
 But yes.. this looks quite a powerful and neat concept.
 Thanks for refering it.
 Regards,
Raghu


 On 11/20/05, Laurie Harper <[EMAIL PROTECTED]> wrote:


Take a look at the Acegi Security project. It provides *extremely*
powerful declarative security capabilities, upto and including filtering
database query results to exclude things the current user shouldn't be
able to see. It might be exactly what you're looking for.

L.

Raghu Kanchustambham wrote:


Hi,
I could successfully place my authentication scheme in place using the
article at
http://www.jroller.com/comments/tomdz?anchor=using_jaas_with_struts_a
I also could place "resource" level authorization in place. However the
definition of resource is the "traditional" action mapping. However I


have a


requirement which goes beyond that. I have a centre based roles. Let us


say


my application could be used by administrators at three centres. The


trick


is that all of them can view the set of "resources"... but in a


particular


JSP they are authorized to use only certain values for some of the


fields.


For example, a Hyderabad administrator can view reports pertaining to
Hyderabad only and should not be allowed to see reports of Bangalore


centre.


Which let us say in UI terms would translate to a dropdown of cities ..


for


the Bangalore administrator... he probably can see the dropdown populate
with Bangalore... the Hyderabad admin sees it populated only with


Hyderabad


and a HeadOffice admin sees all the cities in the cities dropdown.
What is the best way to achieve this?
One approach is to create a separate role for each centre user. For
example... have a role called Bangalore_Admin and Hyderabad_Admin etc.


But


obvious drawback is that this approach won't scale well with the


increase in


the number of centres.
The other approach I was thinking is writing code myself. Introduce a
column for centre in the user table. From the
request.getUserPrincipal().getName()
funcion I determine the user... hit the database to determine the centre


and


then filter the cities based on the city and the role.
I don't like this approach because I have lost the advantages of a
declarative style of defining security permissions. Also, now my
authorization code would be mixed allover and would be difficult to


change


the authorization policies on a later date.
The third approach is similar to the second one. Instead of defining a
centre at the user level, I could do it at the user_role mapping level.
User1 is the administrator of Hyderabad centre. He could be a regular


user


for another centre (say Bangalore). Slightly better than second approach


but


suffers from similar problems.
Is there a way that my getUserPrincipal() can be made to give me this


extra


piece of information about the centre? That would make my code look lot
cleaner. I dont have to hit back the database just to find the centre.
Please comment.


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



Re: help for changing the language, locale

2005-11-20 Thread Danny Lee

You have to do a getLocale() in your ActionForm and then
use:

 in your JSP ;)

Then you gonna be lucky ;)

Cheers,

Danny


Miren Urkijo schrieb:

it runsbut i have one problem.
in my struts pages i am working with fmt and jstl and this doesn't run 
with these (jstl, fmt).

which is the solution?
can anybody helps me?
thanks



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



session.invalidate doesnt log me out...

2005-11-20 Thread Raghu Kanchustambham
Hi,
Shouldnt session.invalidate() log me out?
  request.getSession().invalidate();
try {
response.sendRedirect("home.jsp");
} catch (IOException e) {
e.printStackTrace();
}
 I am using JAAS Basic authentication on tomcat. When the above code is
executed and the redirection happens back, i expected that login box will
pop up again asking me my user id and password. But nothing of this sort is
happening.
 When I first time hit the home.jsp .. the box pops up and authenticates me.
Should I not expect the same behavior from the above code. which first
invalidates my present session and then sends a redirect to the home.jsppage?
 Can someone throw some light on what is happening?
 Thanks.
Raghu


Accessing logincontext and other useful information in action classes?

2005-11-20 Thread Raghu Kanchustambham
Hi,
what is the best way to access authentication/authorization related
information in my action class?
 I configured the BASIC JAAS authentication with my tomcat. The
authentication goes fine.. but in case I want to know some information about
the roles... how can I get the "LoginContext" in my action class?
 Thanks.
Raghu


(OT) taglib

2005-11-20 Thread Ray Madigan
I know this is not a topic for this forum, I have posted this to the taglib
mailing list with no response.  In one week only a couple of posts were
made.  I am trying to use the 


...




...





...


I have tried usins setBundle as the top level Bundle and get the same
result.
I would very much appreciate any ideas

Thanks in advance
Ray Madigan


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



RE: help for changing the language, locale

2005-11-20 Thread Ray Madigan
You change the language using

 for English.
then you need the resource bundles for resource_en.properties that fmt looks
up

For example


needs file Foo_en.properties in the WEB-INF/classes directory of your
webapp.

For your application you would use a mailto:[EMAIL PROTECTED]
Sent: Sunday, November 20, 2005 9:19 AM
To: Struts Users Mailing List
Subject: Re: help for changing the language, locale


it runsbut i have one problem.
in my struts pages i am working with fmt and jstl and this doesn't run with
these (jstl, fmt).
which is the solution?
can anybody helps me?
thanks
- Original Message -
From: "Danny Lee" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, November 20, 2005 2:24 PM
Subject: Re: help for changing the language, locale


> Well,
>
> that's really easy, just do:
>
> "request.getSession().setAttribute(Globals.LOCALE_KEY, new
> locale(languageCode));"
>
> in your action, where languageCode is the locale you wish to use.
>
> Cheers
>
> Danny
>
>
>
> Miren Urkijo schrieb:
>> HEllo y havo one struts aplicaicon.
>> if into the borwser i change the locale, into the browser properties, my
>> application load the properties files well.
>> i am thinking for making onw struts action for changing the language,
>> thelocale but i dont knows how to change it.
>> can anybody says me how must i make it?
>> thanks
>
>
> -
> 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: session.invalidate doesnt log me out...

2005-11-20 Thread Martin Gainty

Good Afternoon-
Scrounging the jaas mail -lists I found this from Jan Bertel

you haven't specified a
 element in the  element of your web.xml file.

So, if you want to avoid the exception, you can just specify a
 that is the same as your jboss-web.xml 
element minus the java:jaas prefix.

(excerpted from Jan Bertel reply to exceptions enountered during logout.jsp)
http://www.servlets.com/archive/servlet/ReadMsg?msgId=483429&listName=jetty-discuss

HTH,
Martin-
- Original Message - 
From: "Raghu Kanchustambham" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Sunday, November 20, 2005 1:44 PM
Subject: session.invalidate doesnt log me out...


Hi,
Shouldnt session.invalidate() log me out?
 request.getSession().invalidate();
try {
response.sendRedirect("home.jsp");
} catch (IOException e) {
e.printStackTrace();
}
I am using JAAS Basic authentication on tomcat. When the above code is
executed and the redirection happens back, i expected that login box will
pop up again asking me my user id and password. But nothing of this sort is
happening.
When I first time hit the home.jsp .. the box pops up and authenticates me.
Should I not expect the same behavior from the above code. which first
invalidates my present session and then sends a redirect to the 
home.jsppage?

Can someone throw some light on what is happening?
Thanks.
Raghu

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



Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread ogjunk-taglib
Hello,

I just upgraded my servlet container and went from Servlet 2.3 to
Servlet 2.4 API, and now I'm getting errors from Struts' html-el
taglib:

/WEB-INF/component/LoginBox.jsp(22,16) According to TLD or attribute
directive in tag file, attribute value does not accept any expressions'
org.apache.jasper.JasperException:
...

This is the line that the error comes from:

  

So, the error says that the "value" attribute does not accept any
expressions.  That's not true, though, as this worked with servlet 2.3,
and the whole point of "html-el" is to allow EL expressions.

Am I supposed to change the way I use html-el when I use it in the
Servlet 2.4 container?  Am I supposed to get some new TLD files or Jars
when going from servlet 2.3 -> 2.4 under Struts 1.1?

I have "html-el" defined at the top of my JSP as:

<%@ taglib uri="/WEB-INF/struts-html-el.tld"   prefix="html-el"  %>

I am using Struts 1.1.

Do I need to use some newever version of Struts and/or Struts html-el
taglib if I want to use a servlet con?

Any help would be very much appreciated.

Thanks,
Otis

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/ -- Find it. Tag it. Share it.

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



Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread Wendy Smoak
On 11/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> I just upgraded my servlet container and went from Servlet 2.3 to
> Servlet 2.4 API, and now I'm getting errors from Struts' html-el
> taglib:

You should not be using Struts-EL with Servlet 2.4/JSP 2.0.

Go back to the original Struts tags, and use a JSTL 1.1 implementation
with them... the container will evaluate the expressions, you no
longer need Struts EL to do it for you.

--
Wendy

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



Re: struts & javascript question

2005-11-20 Thread Laurie Harper
You can use Struts Validator via validation.xml. In that case, validator 
already supplies the validation code; you would only need to write your 
own validation for things validator can't check for you.


If you want to do your validation on the server not the client, the 
validation would be written in Java. validator supports producing 
Javascript for client side validation, but there's nothing in base 
Struts to execute Javascript on the server. You'd need to look into 
something like BSF or something if you really want to write Javascript 
but run it server side.


L.

Srinivas Jadcharla wrote:

Iam sorry i have no idea abt DynaAction forms.

On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote:


using dynaactionforms. would prefer using the the validator xml for this.
thanks for your response.




From: Srinivas Jadcharla <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: struts & javascript question
Date: Fri, 18 Nov 2005 11:05:29 -0500

Look for examples in the net or you can use validate method in the form


it


is easier.

On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote:


write your own Validator


do you mean in Validator.xml right?

can I right a javascript in there that does this?
where can I find an example that does such stuff?

Thanks.




From: Srinivas Jadcharla <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: struts & javascript question
Date: Fri, 18 Nov 2005 10:57:36 -0500

Use Validate method in the Action Form or write your own Validator.

On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote:


In my JSP
have a checkbox. When it is checked by user have to make sure 2 of


the


entries are enteried.

i.e
chkBox1 -- checkbox --- checked
txtfield1 --- Should have entered value.
txtfield2  Should have entered value.

Also, have a 2 radio buttons. When selected one of them by the use


would


like to display a message.


Do not want to use client side java script. what is the best way


to


do


this?

thanks.

_
Express yourself instantly with MSN Messenger! Download today -


it's


FREE!


http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





-


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





--
Thanks & Regards

Srinivas
732-648-9421(Cell)


_
FREE pop-up blocking with the new MSN Toolbar â€" get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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





--
Thanks & Regards

Srinivas
732-648-9421(Cell)


_
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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






--
Thanks & Regards

Srinivas
732-648-9421(Cell)




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



Re: Form Bean Array / Check box how to

2005-11-20 Thread Laurie Harper

Troy Bull wrote:

I have a form with multiple "rows" on it say it has columns a b c chk hid

I have javascript to set hid to Y or N based on someone clicking chk

Then in my form bean I have

String[] a;
String[] b;
String[] c;
String[] hid;


My question is how can I make my check box set the correct hid (if I 
have ten rows for example how do I have it set the hid that goes with 
the chk that was checked)?



If I can't find a solution I will have to take chk off and make hid a 
regular text box and have people type in Y or N (not nice).


Why do you need the 'hid' field at all? If all it contains is a 'Y' or 
'N' corresponding to the state of the checkbox, why don't you just get 
rid of it and use the checkbox value directly?


L.


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



Re: making a "real" full 1.3 ... help on ajax pick?

2005-11-20 Thread netsql

Self reply:

Has anyone used Rico or Dojo or DWR and or Frank's thing made it to 
production? comments? Urls?

Rico demo looks cool.

.V


netsql wrote:

I re-read it.
This looks great:
http://dojotoolkit.org/archive/dojo-2005-11-07/demos/widget/

.V




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



Re: Action - redirect to same page with GET method

2005-11-20 Thread Kuba Królikowski

Laurie Harper napisał(a):

Jakub Królikowski wrote:


Hello!

I'm new in Struts.

I don't know how to write such code using Struts (version in html):



Simple Forward


  You can rename the source html file and it allways will works!!!
  
  

type a text and type "Enter" : 
  



You can put it into any .html file and named it as you want - it will 
allways works.


I want to use Struts Action and Struts Form - I want to handle form 
values in action servlet. I don't know how to forward in action to 
input page, when I don't know its name? After that I need all form 
parameters to be printed in url - like in my example which simply uses 
GET submit method. How to do it with Struts Action?



I'm not sure I followed all that. To answer the question I can see:

- to forward to the input page in an action, use code like the following:

return mapping.getInputForward();

You define what the 'input page' is with the 'input' attribute of your 
action mapping in struts-config.xml. By default, this will do a 
server-side redirect, so the browser's location bar will keep whatever 
URL it had to invoke your action.


L..




But the input page in struts-config.xml cannot be set dynamicaly. I don't
know the name of input page. It could be whatever, it will change. Any
idea?

K.

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



Re: making a "real" full 1.3 ... help on ajax pick?

2005-11-20 Thread Frank W. Zammetti
I've heard of a few people using AjaxTags (from Java Web Parts) in 
production, or at least getting ready to move to production, and they 
have had great success with it.  I am myself preparing to use it in prod 
for the first time in the next month or so.  It does *appear* to be 
pretty stable at this point.


Frank

netsql wrote:

Self reply:

Has anyone used Rico or Dojo or DWR and or Frank's thing made it to 
production? comments? Urls?

Rico demo looks cool.

.V


netsql wrote:


I re-read it.
This looks great:
http://dojotoolkit.org/archive/dojo-2005-11-07/demos/widget/

.V




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



.



--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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



Dynamically altering struts configuration

2005-11-20 Thread Benjamin Lerman
 Hi all,

 Let say I have a line like this one in my struts-config.xml:



 Can I change dynamically the type associated to fooForm ?

 Thanks

Benjamin

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



Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread ogjunk-taglib
Hi,

Thanks for the pointers, but I've got some more questions.

--- Wendy Smoak <[EMAIL PROTECTED]> wrote:

> On 11/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> > I just upgraded my servlet container and went from Servlet 2.3 to
> > Servlet 2.4 API, and now I'm getting errors from Struts' html-el
> > taglib:
> 
> You should not be using Struts-EL with Servlet 2.4/JSP 2.0.

Are you saying I should get some other version of Struts that is
Servlet 2.4/JSP 2.0-aware?  Is there a Struts 1.1 version that is
2.4/2.0-aware?

Since I have Struts 1.1, I looked at
http://archive.apache.org/dist/struts/struts-1.1/ to see if there is
something for Servlet 2.4/JSP 2.0, but it doesn't look like there is
such a version here am I looking at the wrong place?

I do have struts-el.jar (must be a jar corresponding to
contrib/struts-el).  I just removed it, which resulted in:

Unable to load tag handler class
"org.apache.strutsel.taglib.html.ELFormTag" for tag "html-el:form"

Makes sense, html-el can't find the Java classes it needs.

> Go back to the original Struts tags, and use a JSTL 1.1
> implementation
> with them... the container will evaluate the expressions, you no
> longer need Struts EL to do it for you.

Not sure what you mean by "original Struts tags" and "use a JSTL 1.1
implementation with them".  
I believe I have the regular, Struts 1.1 taglibs and the JSTL 1.1
taglibs I have (c:out & friends) are working fine in servlet 2.4/JSP
2.0 container.

Thanks,
Otis

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/ -- Find it. Tag it. Share it.

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



Ich bin im Urlaub

2005-11-20 Thread bednarz
Sehr geehrte Damen und Herren,

in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte 
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder 
telefonisch an: 0511 / 93 62 28 22


Mit freundlichen Grüßen

Andreas Bednarz
...
ID.on GmbH
DESIGN and BUSINESS INTELLIGENCE
...
Wagenerstraße 3 | 30169 Hannover
Fon +49(0) 511.93 62 28 - 22
Fax +49 (0)511.93 62 28 - 28
E-Mail [EMAIL PROTECTED]
...
http://www.id-on.de
http://www.e-konfigurator.de



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



Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread Wendy Smoak
On 11/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> > You should not be using Struts-EL with Servlet 2.4/JSP 2.0.
>
> Are you saying I should get some other version of Struts that is
> Servlet 2.4/JSP 2.0-aware?  Is there a Struts 1.1 version that is
> 2.4/2.0-aware?

Since the container will evaluat the expressions before the Struts
tags ever see them, the tags don't need to be JSP 2.0 aware.  Just use
the non-EL versions of the Struts 1.1 tags.

> Not sure what you mean by "original Struts tags" and "use a JSTL 1.1
> implementation with them".
> I believe I have the regular, Struts 1.1 taglibs and the JSTL 1.1
> taglibs I have (c:out & friends) are working fine in servlet 2.4/JSP
> 2.0 container.

You're almost there... just get rid of Struts-EL entirely, you only
need what's in struts.jar.

What's in your <@% taglib ... %> directives at the top of your JSPs? 
I don't know the right URI offhand, but you're probably still using
the EL version.  Post what you've got and we'll edit from there.

--
Wendy

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



Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread ogjunk-taglib
Hi,

--- Wendy Smoak <[EMAIL PROTECTED]> wrote:

> On 11/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> > > You should not be using Struts-EL with Servlet 2.4/JSP 2.0.
> >
> > Are you saying I should get some other version of Struts that is
> > Servlet 2.4/JSP 2.0-aware?  Is there a Struts 1.1 version that is
> > 2.4/2.0-aware?
> 
> Since the container will evaluat the expressions before the Struts
> tags ever see them, the tags don't need to be JSP 2.0 aware.  Just
> use
> the non-EL versions of the Struts 1.1 tags.
> 
> > Not sure what you mean by "original Struts tags" and "use a JSTL
> 1.1
> > implementation with them".
> > I believe I have the regular, Struts 1.1 taglibs and the JSTL 1.1
> > taglibs I have (c:out & friends) are working fine in servlet
> 2.4/JSP
> > 2.0 container.
> 
> You're almost there... just get rid of Struts-EL entirely, you only
> need what's in struts.jar.
> 
> What's in your <@% taglib ... %> directives at the top of your JSPs? 
> I don't know the right URI offhand, but you're probably still using
> the EL version.  Post what you've got and we'll edit from there.

Aha, I see what you mean now.
I had this:
<%@ taglib uri="/WEB-INF/struts-html-el.tld"   prefix="html-el"  %>

Changed it to this:
<%@ taglib uri="/WEB-INF/struts-html.tld"   prefix="html-el"  %>

And now things seem to work.

Thank you very much for your help!

Otis

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/ -- Find it. Tag it. Share it.

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



Re: jaas authorization with struts

2005-11-20 Thread Laurie Harper
Actually, Acegi does offer what Raghu was looking for (or at least one 
possible route to achieving it). One of the things it can do is 
automatically filter collections to remove items the current user 
shouldn't be allowed to see, so you don't have to bury that kind of 
business logic in your database. Since it lets you do this 
declaratively, it's easy to change with changing business requirements.


L.

Adam Hardy wrote:

Hi Raghu, Laurie,

I did a project recently which used the Acegi security project which 
comes bundled with Spring, and although I was never involved in the 
implementation of it myself, I heard that it was effective.


Am I correct in assuming though that it does not offer the alternative 
that Raghu was looking for, despite the fact that he(you) seems very 
positive about it?


I can't see how such a security requirement can be implemented in any 
other way than via the database. It is simply a question of data 
visibility, in other words, who the data is visible to and to whom it is 
not visible. The best you can do as far as I can see is to optimise the 
caching, especially if the relationships are relatively stable.


Or is this perhaps a pattern that I am not aware of?


Adam



Raghu Kanchustambham on 20/11/05 16:50, wrote:


On the first cut this looks like authentication/authorization for Spring
framework. Do I need to get struts co-exist with spring for this to 
work ?

And how much of an effort would that be?
 But yes.. this looks quite a powerful and neat concept.
 Thanks for refering it.
 Regards,
Raghu


 On 11/20/05, Laurie Harper <[EMAIL PROTECTED]> wrote:


Take a look at the Acegi Security project. It provides *extremely*
powerful declarative security capabilities, upto and including filtering
database query results to exclude things the current user shouldn't be
able to see. It might be exactly what you're looking for.

L.

Raghu Kanchustambham wrote:


Hi,
I could successfully place my authentication scheme in place using the
article at
http://www.jroller.com/comments/tomdz?anchor=using_jaas_with_struts_a
I also could place "resource" level authorization in place. However the
definition of resource is the "traditional" action mapping. However I



have a


requirement which goes beyond that. I have a centre based roles. Let us



say


my application could be used by administrators at three centres. The



trick


is that all of them can view the set of "resources"... but in a



particular


JSP they are authorized to use only certain values for some of the



fields.


For example, a Hyderabad administrator can view reports pertaining to
Hyderabad only and should not be allowed to see reports of Bangalore



centre.


Which let us say in UI terms would translate to a dropdown of cities ..



for

the Bangalore administrator... he probably can see the dropdown 
populate

with Bangalore... the Hyderabad admin sees it populated only with



Hyderabad


and a HeadOffice admin sees all the cities in the cities dropdown.
What is the best way to achieve this?
One approach is to create a separate role for each centre user. For
example... have a role called Bangalore_Admin and Hyderabad_Admin etc.



But


obvious drawback is that this approach won't scale well with the



increase in


the number of centres.
The other approach I was thinking is writing code myself. Introduce a
column for centre in the user table. From the
request.getUserPrincipal().getName()
funcion I determine the user... hit the database to determine the 
centre



and


then filter the cities based on the city and the role.
I don't like this approach because I have lost the advantages of a
declarative style of defining security permissions. Also, now my
authorization code would be mixed allover and would be difficult to



change


the authorization policies on a later date.
The third approach is similar to the second one. Instead of defining a
centre at the user level, I could do it at the user_role mapping level.
User1 is the administrator of Hyderabad centre. He could be a regular



user

for another centre (say Bangalore). Slightly better than second 
approach



but


suffers from similar problems.
Is there a way that my getUserPrincipal() can be made to give me this



extra


piece of information about the centre? That would make my code look lot
cleaner. I dont have to hit back the database just to find the centre.
Please comment.



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



Re: jaas authorization with struts

2005-11-20 Thread Laurie Harper
It does rely on Spring, yes, but getting Spring to co-exist with Struts 
is trivial; you don't need to change any existing code to do that, 
though once you have Spring available you may well find yourself wanting 
to take advantage of it ;-)


L.

Raghu Kanchustambham wrote:

On the first cut this looks like authentication/authorization for Spring
framework. Do I need to get struts co-exist with spring for this to work ?
And how much of an effort would that be?
 But yes.. this looks quite a powerful and neat concept.
 Thanks for refering it.
 Regards,
Raghu


 On 11/20/05, Laurie Harper <[EMAIL PROTECTED]> wrote:


Take a look at the Acegi Security project. It provides *extremely*
powerful declarative security capabilities, upto and including filtering
database query results to exclude things the current user shouldn't be
able to see. It might be exactly what you're looking for.

L.

Raghu Kanchustambham wrote:


Hi,
I could successfully place my authentication scheme in place using the
article at
http://www.jroller.com/comments/tomdz?anchor=using_jaas_with_struts_a
I also could place "resource" level authorization in place. However the
definition of resource is the "traditional" action mapping. However I


have a


requirement which goes beyond that. I have a centre based roles. Let us


say


my application could be used by administrators at three centres. The


trick


is that all of them can view the set of "resources"... but in a


particular


JSP they are authorized to use only certain values for some of the


fields.


For example, a Hyderabad administrator can view reports pertaining to
Hyderabad only and should not be allowed to see reports of Bangalore


centre.


Which let us say in UI terms would translate to a dropdown of cities ..


for


the Bangalore administrator... he probably can see the dropdown populate
with Bangalore... the Hyderabad admin sees it populated only with


Hyderabad


and a HeadOffice admin sees all the cities in the cities dropdown.
What is the best way to achieve this?
One approach is to create a separate role for each centre user. For
example... have a role called Bangalore_Admin and Hyderabad_Admin etc.


But


obvious drawback is that this approach won't scale well with the


increase in


the number of centres.
The other approach I was thinking is writing code myself. Introduce a
column for centre in the user table. From the
request.getUserPrincipal().getName()
funcion I determine the user... hit the database to determine the centre


and


then filter the cities based on the city and the role.
I don't like this approach because I have lost the advantages of a
declarative style of defining security permissions. Also, now my
authorization code would be mixed allover and would be difficult to


change


the authorization policies on a later date.
The third approach is similar to the second one. Instead of defining a
centre at the user level, I could do it at the user_role mapping level.
User1 is the administrator of Hyderabad centre. He could be a regular


user


for another centre (say Bangalore). Slightly better than second approach


but


suffers from similar problems.
Is there a way that my getUserPrincipal() can be made to give me this


extra


piece of information about the centre? That would make my code look lot
cleaner. I dont have to hit back the database just to find the centre.
Please comment.
Thanks much.
Regards,
Raghu




-
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: jaas authorization with struts

2005-11-20 Thread Adam Hardy
Something that removes items from collections according to data 
visibility constraints declaratively must be quite complex.


Presumably the collections are declared in a Spring-style context factory?

And then you would have to declare which property of the item provides 
the IDs, and you also declare a set of IDs which each role has 
visibility of? Can you provide an object reference in Acegi config with 
a callable method that will return the IDs required?


Or am I wide of the mark here?

rgds

Adam

Laurie Harper on 20/11/05 23:38, wrote:
Actually, Acegi does offer what Raghu was looking for (or at least one 
possible route to achieving it). One of the things it can do is 
automatically filter collections to remove items the current user 
shouldn't be allowed to see, so you don't have to bury that kind of 
business logic in your database. Since it lets you do this 
declaratively, it's easy to change with changing business requirements.


L.

Adam Hardy wrote:


Hi Raghu, Laurie,

I did a project recently which used the Acegi security project which 
comes bundled with Spring, and although I was never involved in the 
implementation of it myself, I heard that it was effective.


Am I correct in assuming though that it does not offer the alternative 
that Raghu was looking for, despite the fact that he(you) seems very 
positive about it?


I can't see how such a security requirement can be implemented in any 
other way than via the database. It is simply a question of data 
visibility, in other words, who the data is visible to and to whom it 
is not visible. The best you can do as far as I can see is to optimise 
the caching, especially if the relationships are relatively stable.


Or is this perhaps a pattern that I am not aware of?


Adam



Raghu Kanchustambham on 20/11/05 16:50, wrote:


On the first cut this looks like authentication/authorization for Spring
framework. Do I need to get struts co-exist with spring for this to 
work ?

And how much of an effort would that be?
 But yes.. this looks quite a powerful and neat concept.
 Thanks for refering it.
 Regards,
Raghu




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



Re: session.invalidate doesnt log me out...

2005-11-20 Thread Laurie Harper

Raghu Kanchustambham wrote:

Hi,
Shouldnt session.invalidate() log me out?
  request.getSession().invalidate();
try {
response.sendRedirect("home.jsp");
} catch (IOException e) {
e.printStackTrace();
}
 I am using JAAS Basic authentication on tomcat. When the above code is
executed and the redirection happens back, i expected that login box will
pop up again asking me my user id and password. But nothing of this sort is
happening.
 When I first time hit the home.jsp .. the box pops up and authenticates me.
Should I not expect the same behavior from the above code. which first
invalidates my present session and then sends a redirect to the home.jsppage?
 Can someone throw some light on what is happening?
 Thanks.
Raghu


The problem is that there's no way to tell the browser to relinquish 
HTTP authentication info, so when you redirect your app sends an 
authentication challenge and the browser automatically responds with the 
credentials you supplied the first time. There's no way to force 
browsers to prompt again. That's one of the drawbacks of using HTTP 
authentication.


L.


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



Re: Action - redirect to same page with GET method

2005-11-20 Thread Laurie Harper

Kuba Królikowski wrote:

Laurie Harper napisał(a):


Jakub Królikowski wrote:


Hello!

I'm new in Struts.

I don't know how to write such code using Struts (version in html):



Simple Forward


  You can rename the source html file and it allways will works!!!
  
  

type a text and type "Enter" : 
  



You can put it into any .html file and named it as you want - it will 
allways works.


I want to use Struts Action and Struts Form - I want to handle form 
values in action servlet. I don't know how to forward in action to 
input page, when I don't know its name? After that I need all form 
parameters to be printed in url - like in my example which simply 
uses GET submit method. How to do it with Struts Action?




I'm not sure I followed all that. To answer the question I can see:

- to forward to the input page in an action, use code like the following:

return mapping.getInputForward();

You define what the 'input page' is with the 'input' attribute of your 
action mapping in struts-config.xml. By default, this will do a 
server-side redirect, so the browser's location bar will keep whatever 
URL it had to invoke your action.


L..




But the input page in struts-config.xml cannot be set dynamicaly. I don't
know the name of input page. It could be whatever, it will change. Any
idea?


There's no reliable way to find out what page you were on before the 
current page, unfortunately. You have to track that somehow yourself.


L.


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



Re: jaas authorization with struts

2005-11-20 Thread Laurie Harper
I'm not sure of the specifics, this isn't a capability I've used; I just 
know it's there ;-)


L.

Adam Hardy wrote:
Something that removes items from collections according to data 
visibility constraints declaratively must be quite complex.


Presumably the collections are declared in a Spring-style context factory?

And then you would have to declare which property of the item provides 
the IDs, and you also declare a set of IDs which each role has 
visibility of? Can you provide an object reference in Acegi config with 
a callable method that will return the IDs required?


Or am I wide of the mark here?

rgds

Adam

Laurie Harper on 20/11/05 23:38, wrote:

Actually, Acegi does offer what Raghu was looking for (or at least one 
possible route to achieving it). One of the things it can do is 
automatically filter collections to remove items the current user 
shouldn't be allowed to see, so you don't have to bury that kind of 
business logic in your database. Since it lets you do this 
declaratively, it's easy to change with changing business requirements.


L.

Adam Hardy wrote:


Hi Raghu, Laurie,

I did a project recently which used the Acegi security project which 
comes bundled with Spring, and although I was never involved in the 
implementation of it myself, I heard that it was effective.


Am I correct in assuming though that it does not offer the 
alternative that Raghu was looking for, despite the fact that he(you) 
seems very positive about it?


I can't see how such a security requirement can be implemented in any 
other way than via the database. It is simply a question of data 
visibility, in other words, who the data is visible to and to whom it 
is not visible. The best you can do as far as I can see is to 
optimise the caching, especially if the relationships are relatively 
stable.


Or is this perhaps a pattern that I am not aware of?


Adam



Raghu Kanchustambham on 20/11/05 16:50, wrote:

On the first cut this looks like authentication/authorization for 
Spring
framework. Do I need to get struts co-exist with spring for this to 
work ?

And how much of an effort would that be?
 But yes.. this looks quite a powerful and neat concept.
 Thanks for refering it.
 Regards,
Raghu




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



Re: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread Wendy Smoak
On 11/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> Aha, I see what you mean now.
> I had this:
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"   prefix="html-el"  %>
>
> Changed it to this:
> <%@ taglib uri="/WEB-INF/struts-html.tld"   prefix="html-el"  %>
>
> And now things seem to work.

That's it, though I would suggest removing the tlds from WEB-INF and
using the URI which I think is: http://struts.apache.org/tags-html

(Check struts.jar and make sure the tlds are in there -- they are in 1.2.7.)

--
Wendy

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



RE: Reporting Tools

2005-11-20 Thread Meenakshi Singh
Jasper Reports is a powerful open source tool. U can have a look at it at
http://jasperreports.sourceforge.net

I have used it in my project & m satisfied with the results.

Regards,
Meenakshi.


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



Sync session across webapps

2005-11-20 Thread Mathew Joseph
Hi,

In my web application there are 2 webapps and single login for both.
And in UI we are given links to different modules of both webapps. 
Actually the end user is not (should not be) aware of 2 webapps.

The problem what I am facing is, If someone try to work/use continuously 
in one webapps and try to click a link from other webapp and if it exceeds 
the session timeout period then user is forced to login again. Is there anyway 
to avoid this OR is there any way to synchronize session across webapps ?

I am using Tomcat 5.5.7 and Struts Framework 1.1.

Thanks in advance...
Mathew


RE: Help: html-el taglib in servlet 2.4 container

2005-11-20 Thread Karr, David
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> 
> On 11/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> > Aha, I see what you mean now.
> > I had this:
> > <%@ taglib uri="/WEB-INF/struts-html-el.tld"   prefix="html-el"  %>
> >
> > Changed it to this:
> > <%@ taglib uri="/WEB-INF/struts-html.tld"   prefix="html-el"  %>
> >
> > And now things seem to work.
> 
> That's it, though I would suggest removing the tlds from 
> WEB-INF and using the URI which I think is: 
> http://struts.apache.org/tags-html
> 
> (Check struts.jar and make sure the tlds are in there -- they 
> are in 1.2.7.)

And also remove the corresponding "taglib" directive from your web.xml
file.

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