Working with dates in Struts
Hi , I have a requirement using Struts where i need to show in the JSP if the * paymentDate* is between *fromDate *and *toDate* Only.All Dates are * java.util.Date* .Is there any way we can implement in Struts based JSPs.Wecan implement it using java code but we don't want to do that.Some one please advice me.Its very urgent(Production Issue). Thanks In Advance Priya
[OT]Query and update LDAP
Hi There, As per the requirement in my project i need to access(Query and update) LDAP from my web application.Is there any way to do this using Struts??Any other suggestions and advices are highly appreciable. Thanks Priya
[OT]LDAP
Hi There, As per the requirement in my project i need to access(Query and update) LDAP from my web application.Is there any way to do this using Struts??Any other suggestions and advices are highly appreciable. Thanks Proya
Re: problem with example code at StrutsCatalogLazyList
Thanks for your response Rick.Sorry for not specifying the problem clearly.Ijust copied and pasted the the code in JSP.I missed the following code in my JSP *<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested"; prefix="nested"%>* ** Now it works. One more thing iam a big fan of your Struts Tutorials.I always refer your tutorials to my friends.Thanks again for your response. Priya On 12/29/05, Rick R <[EMAIL PROTECTED]> wrote: > > Priya Saloni wrote: > > Hi Rick, > > > > Iam getting problem while iam trying to use the following code in my JSP > > > > > > > > > > > > I got that code from the article > > > > http://wiki.apache.org/struts/StrutsCatalogLazyList > > > > Priya, I created this as a new message since it really doesn't belong in > that other thread you replied to. > > You are going to have to provide more information than just saying > > "I am getting problem while iam trying to use the following code" > > How about "What kind of problem?" > > Is there an error? > > Struts apps have a lot of moving parts so you need to be more specific. > > -- > Rick > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )
Hi Rick, Iam getting problem while iam trying to use the following code in my JSP I got that code from the article http://wiki.apache.org/struts/StrutsCatalogLazyList Priya On 12/29/05, Rick R <[EMAIL PROTECTED]> wrote: > > Frank W. Zammetti wrote: > > > > I'm still though thinking about your question regarding how I would do > > it... I've never used LazyList, although I can see why you did. Using > the > > reset() method in this way has been nagging me though because I > typically > > would never use it except when dealing with checkboxes... something is > > bugging me about it and I'm not entirely sure what it is at this point, > > just kind of a gut feeling with nothing to back it up :) > > Try it without using a LazyList and you'll see the headaches:) I think > you'll soon see there is no clean way to do it without one (at least > none that I'm aware of). Either way, you will have to 'something' in the > reset method for Lists (assuming you want to be a good camper and use > request scoped ActionForms:) > > -- > Rick > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )
Thanks Geeta, I have Commons-Collections 2.1.1.Now no problem. On 12/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Priya Saloni <[EMAIL PROTECTED]> wrote on 12/29/2005 02:50:06 PM: > > > Sorry for the dumb question but i have to ask ..from where i can get > this > > class org.apache.commons.collections.list.LazyList.. > > > > from this url > > http://jakarta.apache.org/commons/collections/apidocs- > > COLLECTIONS_3_1/org/apache/commons/collections/list/LazyList.html > > > > I found out that its part of Commons Collections 3.0 ,but how can i add > it > > to my class path? from where i need to download it? > > Download from here: > http://jakarta.apache.org/commons/collections/ > > > > > Iam getting the Beanutils problem when iam working in request scope and > it > > works fine in session scope. > > > > Thanks In Advance > > > > Priya > > > > Geeta > > >
Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )
Sorry for the dumb question but i have to ask ..from where i can get this class org.apache.commons.collections.list.LazyList.. from this url http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_1/org/apache/commons/collections/list/LazyList.html I found out that its part of Commons Collections 3.0 ,but how can i add it to my class path? from where i need to download it? Iam getting the Beanutils problem when iam working in request scope and it works fine in session scope. Thanks In Advance Priya On 12/29/05, Rick R <[EMAIL PROTECTED]> wrote: > > Frank W. Zammetti wrote: > > > > I'm still though thinking about your question regarding how I would do > > it... I've never used LazyList, although I can see why you did. Using > the > > reset() method in this way has been nagging me though because I > typically > > would never use it except when dealing with checkboxes... something is > > bugging me about it and I'm not entirely sure what it is at this point, > > just kind of a gut feeling with nothing to back it up :) > > Try it without using a LazyList and you'll see the headaches:) I think > you'll soon see there is no clean way to do it without one (at least > none that I'm aware of). Either way, you will have to 'something' in the > reset method for Lists (assuming you want to be a good camper and use > request scoped ActionForms:) > > -- > Rick > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
How to remember usernames?
Hi there, I have a requirement like this where i need to remember the user names for a computer.Can some one suggest me how to implement this using struts based framework.. Example: *Username: * *Password: * Remember my BCP username. Thanks In Advance Priya
Re: Back Button Problem..
Hi Marcelo, //You solve this issue with a redirtect-after-post hack on the logoff //action. Thats what iam doing in the following code.. request.getSession().removeAttribute("sessionState"); request.getSession().invalidate(); response.sendRedirect("/BMS/logout_success.jsp"); //This you solve by putting nocache=true in the element in //the struts configuration file here is the code i added into my struts-config.xml file //Different Actions.. Iam Still Getting the same problem.In IE i have to hit back button severel times continuously to to the secured pages after logout.But in Firefox its displaying with Single hit to Back Button. Thanks For Your time Priya On 12/22/05, Marcelo Morales <[EMAIL PROTECTED]> wrote: > > Hello > On Dec 16, 2005, at 10:48 AM, Priya Saloni wrote: > > > Hi there, > > > > I facing a BIG problem in my struts based application.When i logout my > > website and hit back button it showing a page like the following > > > > // > > Warning: Page has Expired > > The page you requested was created using information you submitted > > in a > > form. This page is no longer available. As a security precaution, > > Internet > > Explorer does not automatically resubmit your information for you. > > > > To resubmit your information and view this Web page, click the > > *Refresh*button. > > > > You solve this issue with a redirtect-after-post hack on the logoff > action. > > > > > // > > > > When i refresh the page its showing the secured web pages too. > > This you solve by putting nocache=true in the element in > the struts configuration file > > > > My code in > > LogoutAction is as follows > > > > request.getSession().removeAttribute("sessionState"); > > request.getSession().invalidate(); > > response.sendRedirect("/BMS/logout_success.jsp"); > > This is correct. Should do the tick > > > > > sessionState is the VO where iam keeping all the objects i want to > > keep in > > session..Is there any way in struts to make sure that it won't > > display the > > page like above.. > > > > Thanks > > > > Priya. > > > Hope It helps > > > Marcelo Morales > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Back Button Problem..
Here is my Code, request.getSession().removeAttribute("sessionState"); request.getSession().invalidate(); response.sendRedirect("/BMS/logout_success.jsp"); It invalidates properly but when i hit back button its asking to resubmit.Iread it some where that by implementing Tokens we can avoid this problem.Any one have idea where i can get the example application to work with Transaction Tokens.. Thanks Priya On 12/16/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > just as a quick sanity check > > HTTPSession strSession = request.getSession(false); > strSession.removeAttribute("sessionState"); > > strSession = session.getId(); > while(strSession != null) > { //session information is still there > session.invalidate(); > strSession = session.getId(); > } > response.sendRedirect("/BMS/logout_success.jsp"); > > //To clear the cache I would place these meta-commands in the head > > > > > Then again that message appears to be specific to IE on XP SP2 > http://support.microsoft.com/default.aspx?scid=kb;en-us;890178 > > Anyone else? > M- > > - Original Message - > From: "Priya Saloni" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Cc: "Garner, Nigel M" <[EMAIL PROTECTED]> > Sent: Friday, December 16, 2005 1:46 PM > Subject: Re: Back Button Problem.. > > > Thanks for your time.But i can't use Appuse at this time because my > project > ready for production(Except this problem). > > Priya > > > On 12/16/05, Garner, Nigel M <[EMAIL PROTECTED]> wrote: > > > > You could always use a ServletFilter to make sure that users never have > > access to pages that you don't want them to. By checking for a user > > object or something like the sessionState object then you could > > determine whether or not the user is logged in. If not then it will > > allow you to redirect the user to where ever you want. > > > > I have used them on a number of occasion for this purpose and I think > > the struts appfuse projected (see struts.sourceforge.net) provide a > > downloadable implementation. > > > > Thanks > > Nigel > > > > -Original Message- > > From: Priya Saloni [mailto:[EMAIL PROTECTED] > > Sent: 16 December 2005 14:49 > > To: Struts Users Mailing List > > Subject: Back Button Problem.. > > > > Hi there, > > > > I facing a BIG problem in my struts based application.When i logout my > > website and hit back button it showing a page like the following > > > > // > > Warning: Page has Expired > > The page you requested was created using information you submitted in a > > form. This page is no longer available. As a security precaution, > > Internet Explorer does not automatically resubmit your information for > > you. > > > > To resubmit your information and view this Web page, click the > > *Refresh*button. > > > > > > // > > > > When i refresh the page its showing the secured web pages too.My code in > > LogoutAction is as follows > > > >request.getSession().removeAttribute("sessionState"); > >request.getSession().invalidate(); > >response.sendRedirect("/BMS/logout_success.jsp"); > > > > sessionState is the VO where iam keeping all the objects i want to keep > > in session..Is there any way in struts to make sure that it won't > > display the page like above.. > > > > Thanks > > > > Priya. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Back Button Problem..
Thanks for your time.But i can't use Appuse at this time because my project ready for production(Except this problem). Priya On 12/16/05, Garner, Nigel M <[EMAIL PROTECTED]> wrote: > > You could always use a ServletFilter to make sure that users never have > access to pages that you don't want them to. By checking for a user > object or something like the sessionState object then you could > determine whether or not the user is logged in. If not then it will > allow you to redirect the user to where ever you want. > > I have used them on a number of occasion for this purpose and I think > the struts appfuse projected (see struts.sourceforge.net) provide a > downloadable implementation. > > Thanks > Nigel > > -Original Message- > From: Priya Saloni [mailto:[EMAIL PROTECTED] > Sent: 16 December 2005 14:49 > To: Struts Users Mailing List > Subject: Back Button Problem.. > > Hi there, > > I facing a BIG problem in my struts based application.When i logout my > website and hit back button it showing a page like the following > > // > Warning: Page has Expired > The page you requested was created using information you submitted in a > form. This page is no longer available. As a security precaution, > Internet Explorer does not automatically resubmit your information for > you. > > To resubmit your information and view this Web page, click the > *Refresh*button. > > > // > > When i refresh the page its showing the secured web pages too.My code in > LogoutAction is as follows > >request.getSession().removeAttribute("sessionState"); >request.getSession().invalidate(); >response.sendRedirect("/BMS/logout_success.jsp"); > > sessionState is the VO where iam keeping all the objects i want to keep > in session..Is there any way in struts to make sure that it won't > display the page like above.. > > Thanks > > Priya. >
Back Button Problem..
Hi there, I facing a BIG problem in my struts based application.When i logout my website and hit back button it showing a page like the following // Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the *Refresh*button. // When i refresh the page its showing the secured web pages too.My code in LogoutAction is as follows request.getSession().removeAttribute("sessionState"); request.getSession().invalidate(); response.sendRedirect("/BMS/logout_success.jsp"); sessionState is the VO where iam keeping all the objects i want to keep in session..Is there any way in struts to make sure that it won't display the page like above.. Thanks Priya.
Re: generel tiles question..
Thanks David, our application is struts based.So i thought its a good idea to go for Tiles Framework.May i know how sitemesh is different from Tiles? Thanks again for your response Priya On 12/14/05, David G. Friedman <[EMAIL PROTECTED]> wrote: > > If you are using the menu for all pages and also want to use many static > pages, I suggest you also look at SiteMesh. > http://www.opensymphony.com/sitemesh/ > > Regards, > David > > -----Original Message- > From: Priya Saloni [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 14, 2005 5:09 PM > To: user@struts.apache.org > Subject: generel tiles question.. > > > Hi there, > > I have a web application which contains many static(HTML) and dynamic > (JSP) > pages.As per thr requirement i need to have a common Menu(HTML) for all > the > pages(JSPs and HTMLs).Can i use Tiles Framework for the purpose of > reusability?or the tiles framework is used to work with JSPs? > > Thanks In Advance > > Priya > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
generel tiles question..
Hi there, I have a web application which contains many static(HTML) and dynamic (JSP) pages.As per thr requirement i need to have a common Menu(HTML) for all the pages(JSPs and HTMLs).Can i use Tiles Framework for the purpose of reusability?or the tiles framework is used to work with JSPs? Thanks In Advance Priya