Re: S2 + Ajax Validation + JQuery
Hi alvin, Please send them to my mail id aarthyj...@yahoo.com Thanks, Aarthy alvins wrote: Hi guys, We recently implemented the above and it is quite funky. If anyone is interested I can post some of the pieces needed. You can see some of it in action here - http://www.truelocal.com.au/secure/submissions/submission-addBusiness.do. Cheers, Alvin -- View this message in context: http://www.nabble.com/S2-%2B-Ajax-Validation-%2B-JQuery-tp21953155p21967416.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2.1.6 Tiles 2.1.
Here is my web.xml -- ?xml version=1.0 encoding=ISO-8859-1? web-app id=starter version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameStruts 2 /display-name descriptionStruts 2/description context-param descriptionThis context parameter specifies the name and location of the Spring root application context file./description param-namecontextConfigLocation/param-name param-valueclasspath*:applicationContext*.xml/param-value /context-param context-param descriptionThis context parameter specifies the name and location of the Tiles Definitions file./description param-nameorg.apache.tiles.DEFINITIONS_CONFIG/param-name param-value/WEB-INF/classes/tiles-defs.xml/param-value /context-param context-param param-name org.apache.tiles.evaluator.AttributeEvaluator /param-name param-value org.apache.tiles.evaluator.el.ELAttributeEvaluator /param-value /context-param filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class /filter filter-mapping filter-nameopenSessionInViewFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class init-param param-nameactionPackages/param-name param-valuecom.as.sample.webapp.action/param-value /init-param /filter listener listener-class org.apache.struts2.tiles.StrutsTilesListener /listener-class /listener /web-app struts.xml -- ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=sampleApp extends=tiles-default namespace=/ result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult default=true / /result-types action name=login resultlogin/result /action /package /struts tiles-defs.xml -- ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles Configuration 2.0//EN http://tiles.apache.org/dtds/tiles-config_2_0.dtd; tiles-definitions definition name=login extends=.layout put name=title value=Sample - login/ put name=content value=/WEB-INF/jsp/login.jsp/ /definition /tiles-definitions In my home page,when i click on the login link s:url value= title=loginLogin I get an error page,In the logs I see a warning message WARN:Unable to find the definition 'login'. Where am I going wrong? Aarthy Lukasz Lenart wrote: 2009/2/10 Jaarthy aarthyj...@yahoo.com: I am trying to integrate Struts2.1.6 with tiles2.1.1. When I click on the login link,I am getting Unable to find the definitionwarning Message in my logs.Any help on this issue will be appreciated. Sorry, I loose my magic ball, you will have to provide more details. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Struts2.1.6---Tiles-2.1.1-tp21928113p21943239.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Struts2.1.6 Tiles 2.1.
the same was working fine with Struts2.0.6 and Tiles 2.0. Griffith, Michael * wrote: Jaarthy, It looks like your s:url tag is trying to point to a tile, vs. an action that returns the tile result. Here's an example: !- Struts tag -- s:url id=projectList action=list namespace=/project / s:a href=%{projectList}s:text name=project.list//s:a !-- Action -- package name=project extends=base-project namespace=/project action name=list method=list class=..MyAction result name=success type=tileslist-project.panel/result /action /package !-- Tiles -- definition name=root template=/fragments/root.jsp put-attribute name=js value=/js/default.js / put-attribute name=other-divs value=/fragments/blank.jsp / /definition definition name=list-project.panel extends=root put-attribute name=title value=Project List/ put-attribute name=body value=/component/search-results.jsp/ /definition HTH, MG -Original Message- From: Jaarthy [mailto:aarthyj...@yahoo.com] Sent: Tuesday, February 10, 2009 3:40 PM To: user@struts.apache.org Subject: Re: Struts2.1.6 Tiles 2.1. Here is my web.xml -- ?xml version=1.0 encoding=ISO-8859-1? web-app id=starter version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameStruts 2 /display-name descriptionStruts 2/description context-param descriptionThis context parameter specifies the name and location of the Spring root application context file./description param-namecontextConfigLocation/param-name param-valueclasspath*:applicationContext*.xml/param-value /context-param context-param descriptionThis context parameter specifies the name and location of the Tiles Definitions file./description param-nameorg.apache.tiles.DEFINITIONS_CONFIG/param-name param-value/WEB-INF/classes/tiles-defs.xml/param-value /context-param context-param param-name org.apache.tiles.evaluator.AttributeEvaluator /param-name param-value org.apache.tiles.evaluator.el.ELAttributeEvaluator /param-value /context-param filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndEx ecuteFilter/filter-class /filter filter-mapping filter-nameopenSessionInViewFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-cla ss init-param param-nameactionPackages/param-name param-valuecom.as.sample.webapp.action/param-value /init-param /filter listener listener-class org.apache.struts2.tiles.StrutsTilesListener /listener-class /listener /web-app struts.xml -- ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=sampleApp extends=tiles-default namespace=/ result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult default=true / /result-types action name=login resultlogin/result /action /package /struts tiles-defs.xml -- ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles Configuration 2.0//EN http://tiles.apache.org/dtds/tiles-config_2_0.dtd; tiles-definitions definition name=login extends=.layout put name=title value=Sample - login/ put name=content value=/WEB-INF/jsp/login.jsp/ /definition /tiles-definitions In my home page,when i click on the login link s:url value= title=loginLogin I get an error page,In the logs I see a warning message WARN:Unable to find the definition 'login'. Where am I going wrong? Aarthy Lukasz Lenart wrote: 2009/2/10 Jaarthy aarthyj...@yahoo.com: I am trying to integrate Struts2.1.6 with tiles2.1.1. When I click on the login
Struts2.1.6 Tiles 2.1.1
hi, I am trying to integrate Struts2.1.6 with tiles2.1.1. When I click on the login link,I am getting Unable to find the definitionwarning Message in my logs.Any help on this issue will be appreciated. Thanks, Aarthy -- View this message in context: http://www.nabble.com/Struts2.1.6---Tiles-2.1.1-tp21928113p21928113.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Ajax login Form in Struts2
Hi, I am trying to implement AJAX login form using this example from http://www.roseindia.net/struts/struts2/struts2ajax/ajax-login-form.shtml if username or password is not enetered,I dont get the error message,instead I get undefined error and my username textfield and password textfield and also the submit button disappears. But If user is successfully authenticated,I get the specified login success page inside the div instead of getting it in a seperate page. Where am I going wrong?pls. advise Thanks, Aarthy -- View this message in context: http://www.nabble.com/Ajax-login-Form-in-Struts2-tp21567220p21567220.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Ajax login Form in Struts2
Hi, I am trying to implement AJAX login form using this example from http://www.roseindia.net/struts/struts2/struts2ajax/ajax-login-form.shtml if username or password is not enetered,I dont get the error message,instead I get undefined error and my username textfield and password textfield and also the submit button disappears. But If user is successfully authenticated,I get the specified login success page inside the div instead of getting it in a seperate page. Where am I going wrong?pls. advise Thanks, Aarthy -- View this message in context: http://www.nabble.com/Ajax-login-Form-in-Struts2-tp21567219p21567219.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Ajax login Form in Struts2
I am just getting undefined in the place of all the form elements(username textfield,password textfield and submit button).I am using Struts 2.0.6. newton.dave wrote: Jaarthy wrote: I am trying to implement AJAX login form using this example from http://www.roseindia.net/struts/struts2/struts2ajax/ajax-login-form.shtml if username or password is not enetered,I dont get the error message,instead I get undefined error and my username textfield and password textfield and also the submit button disappears. But If user is successfully authenticated,I get the specified login success page inside the div instead of getting it in a seperate page. You'll have to be a bit more specific, I suspect, particularly regarding the error message you're seeing, the JSP you're using, the configuration, and which version of Struts 2. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Ajax-login-Form-in-Struts2-tp21567220p21567547.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Nils-Helge Garli wrote: Then I probably have misunderstood your question. Could you explain your problem in a little more detail? Nils-H On Thu, Jan 8, 2009 at 7:53 PM, Jaarthy aarthyj...@yahoo.com wrote: But how can I implement Ajax in that? Nils-Helge Garli wrote: You can combine and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21358426.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21461009.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Nils-Helge Garli wrote: Then I probably have misunderstood your question. Could you explain your problem in a little more detail? Nils-H On Thu, Jan 8, 2009 at 7:53 PM, Jaarthy aarthyj...@yahoo.com wrote: But how can I implement Ajax in that? Nils-Helge Garli wrote: You can combine and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21358426.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21461010.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: s:a tag
when you browse thru' youtube.com site,In channels page, when u click on Most Subscribed/Most Viewed ,the URL is changed ,but it doesn't look like a page reload.how can we achieve the same using struts2. Biesbrock, Kevin wrote: I would assume that changing the url would result in the page reloading which is the opposite desired outcome when using Ajax. Using a # is simply a page link resulting in the page scrolling to the section name specified after the # (or, in your case, the top of the page). AFAIK JavaScript can't handle renaming a url without communicating it to the server. Kevin -Original Message- From: Jaarthy [mailto:aarthyj...@yahoo.com] Sent: Wednesday, January 14, 2009 1:48 PM To: user@struts.apache.org Subject: Re: s:a tag No.I am not saying that.Tag is functioning properly as I wanted it to.But the URL is displayed like http://localhost:8080/mywebapp/# instead of http://localhost:8080/mywebapp/someaction.action when I use s:a tag with ajax theme in place of a href tag.I want the URL to be displayed likehttp://localhost:8080/mywebapp/someaction.action but I want to use s:a tag with ajax theme. Is this possible? Thanks, Aarthy newton.dave wrote: Jaarthy wrote: when i am use s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the theme=ajax,I get the URL like http://localhost:8080/mywebapp/someaction.action. I want to use ajax theme,but I want my url to be shown like http://localhost:8080/mywebapp/someaction.action,because the values which I get back from action needs to be updated in the div in the same page. Is it understood? Not really. I don't recall at the moment how the URL is displayed, but are you saying that using the target attribute in the s:a... tag isn't properly putting the results of the action into the target? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21462542.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21464182.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
s:a tag
Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:a tag
But how can I implement Ajax in that? Nils-Helge Garli wrote: You can combine and s:url to create your links. http://struts.apache.org/2.1.2/docs/url.html Nils-H On Thu, Jan 8, 2009 at 6:46 PM, Jaarthy aarthyj...@yahoo.com wrote: Hi, when i am using s:a theme=ajax href=someaction.action its creating the URL like http://localhost:8080/mywebapp/#. When I remove the ajax theme,I get http://localhost:8080/mywebapp/someaction.action.I want to use ajax theme,but I want my url to be like http://localhost:8080/mywebapp/someaction.action Pls. help Thanks, Aarthy -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21356904.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/s%3Aa-tag-tp21356904p21358426.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Interceptor
I am using struts2. I wrote an interceptor for validating the Captcha and thereby inserting the registration details in the database in my action,but when I try to retrieve the values entered in the registratiion form,I get Null pointer Exception.Action class works fine when interceptor is not present. Any suggestions as where am I going wrong? -- View this message in context: http://www.nabble.com/Interceptor-tp19962438p19962438.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Interceptor
Interceptor works fine.Null pointer Exception is thrown only in the action. newton.dave wrote: --- On Mon, 10/13/08, Jaarthy wrote: I am using struts2. I wrote an interceptor for validating the Captcha and thereby inserting the registration details in the database in my action,but when I try to retrieve the values entered in the registratiion form,I get Null pointer Exception.Action class works fine when interceptor is not present. Any suggestions as where am I going wrong? It's probably something in the interceptor. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Interceptor-tp19962438p19964136.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
redirect after logging in
Hi, I'm trying to implement a scenario in which if the user who has not logged in clicks on a page for logged in users only should be redirected to login page, and then after logging in he should be redirected to the page he originally requested for. I need to implement this in struts2.Can I achieve this using Interceptors?Kindly help. Thanks, Aarthy -- View this message in context: http://www.nabble.com/redirect-after-logging-in-tp17157183p17157183.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pagination in Struts2
I want the results in google format.Any help would be appreciated. Thanks, Aarthy balart wrote: Hi Aarthy, you can use the displaytag to implement the pagination in struts2. kindly tell that, Pagination as in Google? how, you want the page no in google format or result in google format. Regards,' Bala Jaarthy wrote: Hi, How to implement pagination as in Google in Struts2?Any Help would be appreciated. Thanks, Aarthy -- View this message in context: http://www.nabble.com/Pagination-in-Struts2-tp15619264p16991738.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Looping in Struts2
Already tried out,but could not find a solution.that's why posted here... Any help would be appreciated. Aarthy newton.dave wrote: --- Jaarthy [EMAIL PROTECTED] wrote: Can we pass dynamic values to the begin and end in c:forEach tag? Sure. Might have been quicker to just try it. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Looping-in-Struts2-tp15641866p15765119.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Looping in Struts2
Can we pass dynamic values to the begin and end in c:forEach tag? Aarthy Allen, Daniel wrote: You mean in JSPs, using the Struts taglib? There's an example that I think is similar to what you're looking for at the bottom of the s:iterator page[1]. For large n, it would be sort of ugly, though, so definitely look into c:foreach like Dave said if you're going past single-digit n. ~Dan Allen [1] http://struts.apache.org/2.x/docs/iterator.html -Original Message- From: Jaarthy [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 4:52 PM To: user@struts.apache.org Subject: Looping in Struts2 Hello, Is there any way in Struts2 to display values from i=1 to n. Any help on this please? Thanks, Aarthy -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Looping-in-Struts2-tp15641866p15742414.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pagination in Struts2
Hi Giovanni, I want the results to be dislayed as they are in the Google Search results page,not in a table form.Any help please? Thanks, Aarthy Giovanni Azua-3 wrote: hi, I use displaytag (http://displaytag.sourceforge.net). If you can live without a natively AJAX-enabled pagination library, displaytag is excellent. I like very much the concept of display Decorators, produces a very clean design and perfect separation of concerns. Workarounds exist to AJAXify displaytag (AjaxAnywhere, AjaxTags) http://demo.raibledesigns.com/appfuse-light-ajax/users.html http://raibledesigns.com/rd/entry/the_future_of_the_displaytag http://ajaxtags.sourceforge.net/usage.html I don't use any of these myself, though. The other choice you have I think is tabletags (http://code.google.com/p/tabletags/). The aim seems to provide the same functionality as displaytag but integrating better with Struts 2 e.g. seems to use the same template-based concept and therefore you can customize it entirely. But AFAIK it does not offer yet automatic paging like displaytag does see: http://code.google.com/p/tabletags/issues/detail?id=10 I tried to adopt tabletags at first but it is too at an early stage yet i.e. lacks lot of functionality that displaytag currently offers out of the box. HTH, Best regards, Giovanni PS: there are lot of people subscribed to this list that are involved with those projects and could give a more educated guidance on differences among these two. Jaarthy wrote: Hi, How to implement pagination as in Google in Struts2?Any Help would be appreciated. Thanks, Aarthy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Pagination-in-Struts2-tp15619264p15634448.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Looping in Struts2
Hello, Is there any way in Struts2 to display values from i=1 to n. Any help on this please? Thanks, Aarthy -- View this message in context: http://www.nabble.com/Looping-in-Struts2-tp15641866p15641866.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pagination in Struts2
Hi, How to implement pagination as in Google in Struts2?Any Help would be appreciated. Thanks, Aarthy -- View this message in context: http://www.nabble.com/Pagination-in-Struts2-tp15619264p15619264.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]