Anyone working with WebSphere Commerce?
Since WebSphere Commerce is built in struts, is there anyone working with WebSphere Commerce? -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: FB API and Struts2
Feel free to brainstorm how the project should be. I am focusing now on client side ajax http://ajax4business.wordpress.com/ . i should be back to improve my server work in 2 months. On Sat, Mar 13, 2010 at 6:31 AM, Frans Thamura fr...@meruvian.org wrote: hi all i just got Iqbal's code about FB Connect and Struts2, the code still using the HTTP servlet, and i still finding an idea to make a good architecture for using FB API i see there is 2 way 1. using spring security integrate with Struts2, so we need S2 with SpringSecurity 2. map using interceptor that iqbal did any share idea all -- Frans Thamura Meruvian. Experiential Tempation of Java and Enterprise OpenSource Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma Mobile: +6287885901958 Blog Profile: http://frans.thamura.info We provide services to migrate your apps to Java (web), in amazing fast and reliable. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: basic struts application
Check startsoft on google code. On 3/10/10, Paweł Wielgus poulw...@gmail.com wrote: Hi, in action-mappings there is no result defined for your action, is it on purpose? Best greetings, Paweł Wielgus. 2010/3/10 tesla fatihdu...@hotmail.com: from a few days i'm working on struts and i'm trying to develop an simple web application. i cant see the elements of my array(bookList) on jsp page when i run my program it returns me an empty page where am i wrong please help me i'm losing my mind for two days. Book class public class Book { private String name; private String description; private int price; private int id; public Book() { } public Book(String name) { this.name=name; } public ArrayListBook loadData() { ArrayListBook kitapListesi = new ArrayListBook(); kitapListesi.add(new Book(calculus1)); kitapListesi.add(new Book(calculus2)); return kitapListesi; } BookForm Class public class BookForm extends org.apache.struts.action.ActionForm { private ArrayListBook bookList; private String name; private int number; public ArrayListBook getBookList() { return bookList; } public void setBookList(ArrayListBook bookList) { this.bookList = bookList; } BookAction Class public class BookAction extends org.apache.struts.action.Action { private final static String SUCCESS = success; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { BookForm bookForm = (BookForm) form; Book book = new Book(); bookForm.setBookList(book.loadData()); return mapping.findForward(SUCCESS); } } struts_config.xml form-beans form-bean name=BookForm type=paket.BookForm/ /form-beans action-mappings action input=/data name=BookForm path=/data scope=request type=paket.BookAction/ /action-mappings data.jsp logic:present name=BookForm logic:iterate name=BookForm property=bookList id=book tr tdbean:write name=book property=name //td /tr /logic:iterate /logic:present -- View this message in context: http://old.nabble.com/basic-struts-application-tp27844692p27844692.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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Catching url for action not defined
Hi Guys How would I do http://localhost/some_name where some_name is a random name and not defined as an action in struts.xml I would like your input on this please. Thanks, -saeed -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
I added Facebook Connect into the mix
My Demo Application now has Facebook Connect too http://code.google.com/p/remove-registration/ Now doing the same in PHP before moving forward in Java. -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer http://iqbalconsulting.com
Google Apps Login Integration
Please see my integration of Google Apps Login here http://code.google.com/p/remove-registration -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer http://iqbalconsulting.com
OpenId login open source project
Good Morning again Guys I have worked on OpenId and Facebook Connect The first project of mine on openid is now out and its open source on http://code.google.com/p/remove-registration/ Feel free to comment please. Thanks, -saeed -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer http://iqbalconsulting.com
What is the reason for this error? xwork interceptors seem to be misbehaving
) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:363) at com.google.net.rpc.impl.Server$2.run(Server.java:837) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:536) at com.google.net.rpc.impl.Server.startRpc(Server.java:792) at com.google.net.rpc.impl.Server.processRequest(Server.java:367) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:448) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:290) at com.google.net.async.Connection.handleReadEvent(Connection.java:474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:774) at com.google.net.async.EventDi -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Anybody Need Some Development Help?
I am willing to work. I am in tight condition now. Any development work for me please. -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: NPE
Thanks will do. On Friday, February 5, 2010, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2010/2/5 Saeed Iqbal saee...@gmail.com: Looks like Google has fixed the OGNL issue however this is the new issue I saw. Take a look here http://code.google.com/p/struts2-jquery/source/browse/#svn/showcase The showcase is here http://struts2-jquery.appspot.com/home.action Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: NPE
I kind of didnt find a project i could deploy to appengine there. I think regular servlets is the way to go for me. On Fri, Feb 5, 2010 at 2:22 PM, Saeed Iqbal saee...@gmail.com wrote: Thanks will do. On Friday, February 5, 2010, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2010/2/5 Saeed Iqbal saee...@gmail.com: Looks like Google has fixed the OGNL issue however this is the new issue I saw. Take a look here http://code.google.com/p/struts2-jquery/source/browse/#svn/showcase The showcase is here http://struts2-jquery.appspot.com/home.action Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
NPE
Any ideas why my application is throwing this error on Google App Engine Uncaught exception from servlet java.lang.NullPointerException at org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getUriFromActionMapping(DefaultActionMapper.java:533) at org.apache.struts2.dispatcher.ServletActionRedirectResult.execute(ServletActionRedirectResult.java:172) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266) at -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: NPE
That archetype doesnt exist anymore. On Thu, Feb 4, 2010 at 7:17 PM, Lukasz Lenart lukasz.len...@googlemail.comwrote: 2010/2/4 Saeed Iqbal saee...@gmail.com: Any ideas why my application is throwing this error on Google App Engine Take a look on struts2-convention-archetype Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: NPE
Thanks. On Thu, Feb 4, 2010 at 7:17 PM, Cimballi cimballi.cimba...@gmail.comwrote: Look here, there are 2 tips, about security and swing, you will need : http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/ Cimballi On Thu, Feb 4, 2010 at 9:14 AM, Saeed Iqbal saee...@gmail.com wrote: Any ideas why my application is throwing this error on Google App Engine Uncaught exception from servlet java.lang.NullPointerException at org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getUriFromActionMapping(DefaultActionMapper.java:533) at org.apache.struts2.dispatcher.ServletActionRedirectResult.execute(ServletActionRedirectResult.java:172) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266) at -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: NPE
Looks like Google has fixed the OGNL issue however this is the new issue I saw. Please help. On Thu, Feb 4, 2010 at 7:14 PM, Saeed Iqbal saee...@gmail.com wrote: Any ideas why my application is throwing this error on Google App Engine Uncaught exception from servlet java.lang.NullPointerException at org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getUriFromActionMapping(DefaultActionMapper.java:533) at org.apache.struts2.dispatcher.ServletActionRedirectResult.execute(ServletActionRedirectResult.java:172) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266) at -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: NoClassDefFoundError Exception
at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Not Able to call Action
That needs to be defined in struts.xml action and its result. On Thu, Jan 28, 2010 at 4:10 PM, SweetRahul text2ra...@gmail.com wrote: Hi, Very Very thank you for Such a Wonderful Explanation about the Initial Configuration for Struts2. But, I have always stuck here(whenever i create application from scratch) I have checked all the My Configurations... but then also my application gives me error something like this: Struts has detected an unhandled exception: Messages: No result defined for action secure.Login and result success It will be nice if you will please give me some hint for above issue. Thanks Rahul newton.dave wrote: --- aum strut aum.str...@gmail.com wrote: about entering valida data i am inputting valid data aal the tme.. I'm skeptical. Turn devMode on and check your logs. It might also be related to the other issue, I suppose, but it's more likely that there is a conversion or validator error. 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://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354274.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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Not Able to call Action
It says secure.Login not just login. Case Sensitive too. On Thu, Jan 28, 2010 at 4:25 PM, SweetRahul text2ra...@gmail.com wrote: Yes. But still it gives me an error... My Struts.xml file contain the above action with name login and for double check in result i have provided name=success. My Action is executed successfully...but it will not display the page which is mapped to SUCCESS. If you want some more information... then please reply me. Thanks Rahul Saeed Iqbal-2 wrote: That needs to be defined in struts.xml action and its result. On Thu, Jan 28, 2010 at 4:10 PM, SweetRahul text2ra...@gmail.com wrote: Hi, Very Very thank you for Such a Wonderful Explanation about the Initial Configuration for Struts2. But, I have always stuck here(whenever i create application from scratch) I have checked all the My Configurations... but then also my application gives me error something like this: Struts has detected an unhandled exception: Messages: No result defined for action secure.Login and result success It will be nice if you will please give me some hint for above issue. Thanks Rahul -- View this message in context: http://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354451.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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Not Able to call Action
It looks fine to me perhaps someone else can help you. On Thu, Jan 28, 2010 at 4:42 PM, SweetRahul text2ra...@gmail.com wrote: Yes, i have written it correct way...if i am not wrong. Please have a look at following struts.xml file package name=secure namespace=/secure extends=struts-default action name=login class=secure.Login result name=successmy.jsp/result result name=errorLogin.jsp/result /action /package now here the URL is like this: ~/secure/login.action, Isn't it ? and the code in jsp file is as: s:form action=login namespace=/secure method=execute s:textfield key=userName label=Username value=rahul/ s:textfield key=userPwd label=Password value=rahul/ s:submit/ /s:form The execute method is executed successfully...In console i got the provided username and password field values. But still it gives me error... I have not understand whats wrong in this code ? Rahul Saeed Iqbal-2 wrote: It says secure.Login not just login. Case Sensitive too. -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- View this message in context: http://old.nabble.com/Not-Able-to-call-Action-tp15878011p27354656.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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: internationalize displaytag into struts2
Use titleKey. On Wed, Jan 27, 2010 at 3:29 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: Hi all, first of all, sorry for terrible English. In these days I've developed my first, simple application with struts2, and, after putting properties file in correct place, I've internationalized it. Then I've looked for something about how to display a table (data grid) and, on your lists, I found two different solution: struts2 jQuery Plugin (too difficult for a newbie as me..) and the simpler displaytag (http://displaytag.sourceforge.net/1.2). After some work I get displaytag working. The question is: how can I internationalize header and captions of displaytag into struts2? Where should I put properties file? Should I modify something into displaytag-1.2.jar? I follow the manual (http://displaytag.sourceforge.net/1.2/i18n.html) and google around, but I don't understand.. Thank you very much, -Nicola - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: struts2 and tables
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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Re: internationalize displaytag into struts2
Like that it wont work. Mention your properties file in struts.properties or struts.xml constant struts.custom.i18n.resources=package in that the xxx in titleKey must be defined. On Wed, Jan 27, 2010 at 4:40 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: I've just try that! Follow part of coding I've created displaytag_IT.properties, package_it.properties, package_en.properties and I've wrote into every file a property as xxx=property in the test code of my jsp_page, property were founded from struts tag but not from displaytag, in the caption of the table: ... p test1: s:text name=xxx / /p ... display:table name=lista pagesize=20 display:column property=id titlekey=xxx / /display:table Doesn't work: insteed write in column header property, it display id... Other suggestion? Thanks, Nicola -- Messaggio inoltrato -- From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: Wed, 27 Jan 2010 15:32:52 +0500 Subject: Re: internationalize displaytag into struts2 Use titleKey. On Wed, Jan 27, 2010 at 3:29 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: Hi all, first of all, sorry for terrible English. In these days I've developed my first, simple application with struts2, and, after putting properties file in correct place, I've internationalized it. Then I've looked for something about how to display a table (data grid) and, on your lists, I found two different solution: struts2 jQuery Plugin (too difficult for a newbie as me..) and the simpler displaytag (http://displaytag.sourceforge.net/1.2). After some work I get displaytag working. The question is: how can I internationalize header and captions of displaytag into struts2? Where should I put properties file? Should I modify something into displaytag-1.2.jar? I follow the manual (http://displaytag.sourceforge.net/1.2/i18n.html) and google around, but I don't understand.. Thank you very much, -Nicola - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: struts2 and tables
Replace the s:property value=%{getText('titles.edit' )} / display:column href=adminaddoreditarticle title=Edit paramId=id paramProperty=id headerClass=listHeader s:property value=%{getText('titles.edit' )} / /display:column On Wed, Jan 27, 2010 at 5:23 PM, Arpan arpan.deb...@gmail.com wrote: Hi Saeed, Thanks for the reply. But how can you display your checkbox inside that column Title? On Wed, Jan 27, 2010 at 4:45 PM, Saeed Iqbal saee...@gmail.com wrote: For display you can close your display tag open and end your tag separately. In between you can place your checkbox. For example: display:column href=adminaddoreditarticle title=Edit paramId=id paramProperty=id headerClass=listHeader s:property value=%{getText('titles.edit')} / /display:column For checking all (javascript) include an id with each checkbox and have onclick with the top one to be able to code in javascript to check all others. On Wed, Jan 27, 2010 at 4:11 PM, Arpan arpan.deb...@gmail.com wrote: My scenario is that I need a column only for checkboxes. In the title there will be a checkbox and a link Delete. How can I show these using display tag. When the user will select the top checkbox, all other checkboxes in that column should be selected or unselected accordingly. On Thu, Jan 7, 2010 at 6:35 AM, Chris Pratt thechrispr...@gmail.com wrote: Maybe this will clear things up. This is a working example from our site: s:url action=reset-password-csr id=reset escapeAmp=false/ display:table uid=user name=${users.list} pagesize=20 requestURI=csr-search-results.html class=tableWithHeaderBG cellpadding=0 cellspacing=0 summary=This table lists Users resulting from a previous search export=false display:setProperty name=basic.msg.empty_listNo Users Found/display:setProperty display:column title=Last Name property=name.lastname class=tdLeft scope=row/ display:column title=First Name property=name.firstname class=tdLeftNoPad/ display:column title=User ID property=userid paramId=userid value=%{'userid'} paramProperty=userid class=tdLeft scope=row/ display:column title=Email property=email paramId=email paramProperty=email class=tdLeftNoPad/ display:column title=Security Question property=securityChallenge class=tdLeftNoPad/ display:column title=Security Answer property=securityResponse class=tdLeftNoPad/ display:column title=nbsp; href=${reset} paramId=userid paramProperty=userid class=tdLeftNoPadReset Password/display:column /display:table (*Chris*) On Wed, Jan 6, 2010 at 5:00 PM, Chris Pratt thechrispr...@gmail.com wrote: In your action, add a getList() method that returns the list generated by the action, then just pass name=${list} to the display:table tag. Or, you could create the list and put it in the request or session scope and it would work exactly the same. The trick with the interceptor is just to get it to ignore the special tracking parameters that DisplayTag uses in the prev/next links. (*Chris*) On Wed, Jan 6, 2010 at 4:28 PM, Frans Thamura fr...@meruvian.org wrote: wah can share how the interceptor work with display tag sorry if this is silly question, but honestly i still need the glue usually i create a private xxx List, and will be passed to the list how integrate the list $xxx with the display tag? thx On Thu, Jan 7, 2010 at 7:25 AM, Chris Pratt thechrispr...@gmail.com wrote: It's just a standard JSP Tag Library. Because Struts 2 has the Request Wrapper, you can use standard JSTL EL to get the list from your action and pass it to the DisplayTag Table, from then on it's just using the capabilities of DisplayTag to put the data where you want it. The one caveat is that we've had to set the requestURI attribute to make sure that the prev/next links go to the right place and I added the excludeParams parameter below to the params interceptor so that you don't get the ugly warnings from struts. interceptor-ref name=params param name=excludeParamsd-\d*-[a-z]/param /interceptor-ref (*Chris*) On Wed, Jan 6, 2010 at 4:12 PM, Frans Thamura fr...@meruvian.org wrote: can share how the struts2 work with display tag sorry never use this also, how the display tag work with List when we submit the grid F On Thu, Jan 7, 2010 at 7:00 AM, Chris Pratt thechrispr...@gmail.com wrote: We use DisplayTag (http://www.displaytag.org), it works pretty well
Re: Re: Re: internationalize displaytag into struts2
Now your properties file must be called package.properties :) see display tag refernce On Wed, Jan 27, 2010 at 5:30 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: Thank you Saiid, but it continue not working.. Probably I don't understand. I've update this constant struts.custom.i18n.resources=package in struts2-core-2.1.6.jar/org/apache/struts2/default.properties (the only default.properties file into my project), and restart server, but, AS BEFORE MODIFY CONSTANT, ... p test1: s:text name=xxx / /p ... display:table name=lista pagesize=20 display:column property=id titlekey=xxx / /display:table s:text name=xxx / retrive correct value, display:column property=id titlekey=xxx / doesn't retrive nothing. so, probably, I don't understand something.. Anyway, thank you very much for your effort. Nicola Like that it wont work. Mention your properties file in struts.properties or struts.xml constant struts.custom.i18n.resources=package in that the xxx in titleKey must be defined. On Wed, Jan 27, 2010 at 4:40 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: I've just try that! Follow part of coding I've created displaytag_IT.properties, package_it.properties, package_en.properties and I've wrote into every file a property as xxx=property in the test code of my jsp_page, property were founded from struts tag but not from displaytag, in the caption of the table: ... p test1: s:text name=xxx / /p ... display:table name=lista pagesize=20 display:column property=id titlekey=xxx / /display:table Doesn't work: insteed write in column header property, it display id... Other suggestion? Thanks, Nicola -- Messaggio inoltrato -- From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: Wed, 27 Jan 2010 15:32:52 +0500 Subject: Re: internationalize displaytag into struts2 Use titleKey. On Wed, Jan 27, 2010 at 3:29 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: Hi all, first of all, sorry for terrible English. In these days I've developed my first, simple application with struts2, and, after putting properties file in correct place, I've internationalized it. Then I've looked for something about how to display a table (data grid) and, on your lists, I found two different solution: struts2 jQuery Plugin (too difficult for a newbie as me..) and the simpler displaytag (http://displaytag.sourceforge.net/1.2). After some work I get displaytag working. The question is: how can I internationalize header and captions of displaytag into struts2? Where should I put properties file? Should I modify something into displaytag-1.2.jar? I follow the manual (http://displaytag.sourceforge.net/1.2/i18n.html) and google around, but I don't understand.. Thank you very much, -Nicola - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Re: Re: Re: internationalize displaytag into struts2
Trying %{getText('xxx')} On Wed, Jan 27, 2010 at 6:24 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: Sorry Saiid, I feel very dummy; I will try a little more, then I back on it in next days.. I've just read it display tag reference, but nothing new. As I told you, my properties file are already named as package_it.properties, package.properties, and, as I said before, in the same page, s:text name=xxx / WORK but display:column property=id titlekey=xxx / DOESN'T WORK I also found this: http://sourceforge.net/mailarchive/message.php?msg_id=200810251819.26242.tkrah%40fachschaft.imn.htwk-leipzig.de Is it interesting for me? Overmore, at the moment, displaytag.properties (into displaytag-1.2.jar) contain locale.provider=org.displaytag.localization.I18nJstlAdapter Should I modify it as locale.provider=org.displaytag.localization.StrutsAdapter or this constant is usable only with struts1? I'm tired, problably I'm starting being cloud... Nicola Cheers, Nicola Now your properties file must be called package.properties :) see display tag refernce On Wed, Jan 27, 2010 at 5:30 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: Thank you Saiid, but it continue not working.. Probably I don't understand. I've update this constant struts.custom.i18n.resources=package in struts2-core-2.1.6.jar/org/apache/struts2/default.properties (the only default.properties file into my project), and restart server, but, AS BEFORE MODIFY CONSTANT, ... p test1: s:text name=xxx / /p ... display:table name=lista pagesize=20 display:column property=id titlekey=xxx / /display:table s:text name=xxx / retrive correct value, display:column property=id titlekey=xxx / doesn't retrive nothing. so, probably, I don't understand something.. Anyway, thank you very much for your effort. Nicola - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: struts2 and tables
For header this is an interesting situation i have not come across yet. I cannot say anything. On Wednesday, January 27, 2010, Arpan arpan.deb...@gmail.com wrote: Hi Saeed, Replacing that with checkbox element will give me checkbox for every row for that column. But still my column header or title will not have any checkbox. On Wed, Jan 27, 2010 at 5:58 PM, Saeed Iqbal saee...@gmail.com wrote: Replace the s:property value=%{getText('titles.edit' )} / display:column href=adminaddoreditarticle title=Edit paramId=id paramProperty=id headerClass=listHeader s:property value=%{getText('titles.edit' )} / /display:column On Wed, Jan 27, 2010 at 5:23 PM, Arpan arpan.deb...@gmail.com wrote: Hi Saeed, Thanks for the reply. But how can you display your checkbox inside that column Title? On Wed, Jan 27, 2010 at 4:45 PM, Saeed Iqbal saee...@gmail.com wrote: For display you can close your display tag open and end your tag separately. In between you can place your checkbox. For example: display:column href=adminaddoreditarticle title=Edit paramId=id paramProperty=id headerClass=listHeader s:property value=%{getText('titles.edit')} / /display:column For checking all (javascript) include an id with each checkbox and have onclick with the top one to be able to code in javascript to check all others. On Wed, Jan 27, 2010 at 4:11 PM, Arpan arpan.deb...@gmail.com wrote: My scenario is that I need a column only for checkboxes. In the title there will be a checkbox and a link Delete. How can I show these using display tag. When the user will select the top checkbox, all other checkboxes in that column should be selected or unselected accordingly. On Thu, Jan 7, 2010 at 6:35 AM, Chris Pratt thechrispr...@gmail.com wrote: Maybe this will clear things up. This is a working example from our site: s:url action=reset-password-csr id=reset escapeAmp=false/ display:table uid=user name=${users.list} pagesize=20 requestURI=csr-search-results.html class=tableWithHeaderBG cellpadding=0 cellspacing=0 summary=This table lists Users resulting from a previous search export=false display:setProperty name=basic.msg.empty_listNo Users Found/display:setProperty display:column title=Last Name property=name.lastname class=tdLeft scope=row/ display:column title=First Name property=name.firstname class=tdLeftNoPad/ display:column title=User ID property=userid paramId=userid value=%{'userid'} paramProperty=userid class=tdLeft scope=row/ display:column title=Email property=email paramId=email paramProperty=email class=tdLeftNoPad/ display:column title=Security Questio -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: internationalize displaytag into struts2
Label= that On Wednesday, January 27, 2010, Saeed Iqbal saee...@gmail.com wrote: Trying %{getText('xxx')} On Wed, Jan 27, 2010 at 6:24 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: Sorry Saiid, I feel very dummy; I will try a little more, then I back on it in next days.. I've just read it display tag reference, but nothing new. As I told you, my properties file are already named as package_it.properties, package.properties, and, as I said before, in the same page, s:text name=xxx / WORK but display:column property=id titlekey=xxx / DOESN'T WORK I also found this: http://sourceforge.net/mailarchive/message.php?msg_id=200810251819.26242.tkrah%40fachschaft.imn.htwk-leipzig.de; Is it interesting for me? Overmore, at the moment, displaytag.properties (into displaytag-1.2.jar) contain locale.provider=org.displaytag.localization.I18nJstlAdapter Should I modify it as locale.provider=org.displaytag.localization.StrutsAdapter or this constant is usable only with struts1? I'm tired, problably I'm starting being cloud... Nicola Cheers, Nicola Now your properties file must be called package.properties :) see display tag refernce On Wed, Jan 27, 2010 at 5:30 PM, Nicola Bortolotti bortolotti.nic...@gmail.com wrote: Thank you Saiid, but it continue not working.. Probably I don't understand. I've update this constant struts.custom.i18n.resources=package in struts2-core-2.1.6.jar/org/apache/struts2/default.properties (the only default.properties file into my project), and restart server, but, AS BEFORE MODIFY CONSTANT, ... p test1: s:text name=xxx / /p ... display:table name=lista pagesize=20 display:column property=id titlekey=xxx / /display:table s:text name=xxx / retrive correct value, display:column property=id titlekey=xxx / doesn't retrive nothing. so, probably, I don't understand something.. Anyway, thank you very much for your effort. Nicola - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Session help
This is strange. What kind of a setup do you have? On Wed, Jan 20, 2010 at 11:20 AM, emil thushanga thusha...@gmail.comwrote: Dear all, I have an S2 web application. No login procedure and any page can be accessed. Basically it’s an Open session. It’s a hotel website. As an example when user access Barbados web pages , regardless of any URL patter session should be created and token should be save as region='Barbados'. If user accessing any of Antigua URLs session should be filled with region='Antigua' We have separated regions by using different namespaces in struts.xml. Example URL pattern, http://localhost:8084/subsites/barbados/listHotels.html?starRate=3 Please provide a help on this. Thanks Emil -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Session help
You should be able to do index and land on that jsp. Also maybe put a method property inside action tag On Wed, Jan 20, 2010 at 11:48 AM, emil thushanga thusha...@gmail.comwrote: Hi, this may be helpful. package namespace=/barbados name=myPackage1 extends=struts-default action name=index class=IndexAction result/jsp/ukbarbados/index.jsp/result /action action name=listHotels class=StarPageAction param name=countrybarbados/param result/jsp/ukbarbados/list_hotels.jsp/result /action action name=hotel class=Hotel result /jsp/commonjsps/hotel.jsp/result /action /package package namespace=/antigua name=myPackage2 extends=struts-default action name=index class=IndexAction result/jsp/ukantigua/index.jsp/result /action /package thanks Emil On Wed, Jan 20, 2010 at 12:22 PM, Saeed Iqbal saee...@gmail.com wrote: This is strange. What kind of a setup do you have? On Wed, Jan 20, 2010 at 11:20 AM, emil thushanga thusha...@gmail.com wrote: Dear all, I have an S2 web application. No login procedure and any page can be accessed. Basically it’s an Open session. It’s a hotel website. As an example when user access Barbados web pages , regardless of any URL patter session should be created and token should be save as region='Barbados'. If user accessing any of Antigua URLs session should be filled with region='Antigua' We have separated regions by using different namespaces in struts.xml. Example URL pattern, http://localhost:8084/subsites/barbados/listHotels.html?starRate=3 Please provide a help on this. Thanks Emil -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Emil Thushanga -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Session help
You can define another result for redirecting with the type redirect of name anything you want. That should be a problem. Return the same string from method as the redirect name. On Wed, Jan 20, 2010 at 12:13 PM, emil thushanga thusha...@gmail.comwrote: Hi If user created a book mark and accessing a page then how can push him to index action. based on the user accessing namespace i want to set a session variable with the corresponding region. Ex if namespace is 'Barbados' session ='Barbados' if namespace is 'Antigua' session ='Antigua' If this is you saying please provide me additional info. since i am very basic in S2. Lots of thanks Emil On Wed, Jan 20, 2010 at 12:51 PM, Saeed Iqbal saee...@gmail.com wrote: You should be able to do index and land on that jsp. Also maybe put a method property inside action tag On Wed, Jan 20, 2010 at 11:48 AM, emil thushanga thusha...@gmail.com wrote: Hi, this may be helpful. package namespace=/barbados name=myPackage1 extends=struts-default action name=index class=IndexAction result/jsp/ukbarbados/index.jsp/result /action action name=listHotels class=StarPageAction param name=countrybarbados/param result/jsp/ukbarbados/list_hotels.jsp/result /action action name=hotel class=Hotel result /jsp/commonjsps/hotel.jsp/result /action /package package namespace=/antigua name=myPackage2 extends=struts-default action name=index class=IndexAction result/jsp/ukantigua/index.jsp/result /action /package thanks Emil On Wed, Jan 20, 2010 at 12:22 PM, Saeed Iqbal saee...@gmail.com wrote: This is strange. What kind of a setup do you have? On Wed, Jan 20, 2010 at 11:20 AM, emil thushanga thusha...@gmail.com wrote: Dear all, I have an S2 web application. No login procedure and any page can be accessed. Basically it’s an Open session. It’s a hotel website. As an example when user access Barbados web pages , regardless of any URL patter session should be created and token should be save as region='Barbados'. If user accessing any of Antigua URLs session should be filled with region='Antigua' We have separated regions by using different namespaces in struts.xml. Example URL pattern, http://localhost:8084/subsites/barbados/listHotels.html?starRate=3 Please provide a help on this. Thanks Emil -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Emil Thushanga -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Emil Thushanga -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Session help
sorry should not be a problem On Wed, Jan 20, 2010 at 12:13 PM, emil thushanga thusha...@gmail.comwrote: Hi If user created a book mark and accessing a page then how can push him to index action. based on the user accessing namespace i want to set a session variable with the corresponding region. Ex if namespace is 'Barbados' session ='Barbados' if namespace is 'Antigua' session ='Antigua' If this is you saying please provide me additional info. since i am very basic in S2. Lots of thanks Emil On Wed, Jan 20, 2010 at 12:51 PM, Saeed Iqbal saee...@gmail.com wrote: You should be able to do index and land on that jsp. Also maybe put a method property inside action tag On Wed, Jan 20, 2010 at 11:48 AM, emil thushanga thusha...@gmail.com wrote: Hi, this may be helpful. package namespace=/barbados name=myPackage1 extends=struts-default action name=index class=IndexAction result/jsp/ukbarbados/index.jsp/result /action action name=listHotels class=StarPageAction param name=countrybarbados/param result/jsp/ukbarbados/list_hotels.jsp/result /action action name=hotel class=Hotel result /jsp/commonjsps/hotel.jsp/result /action /package package namespace=/antigua name=myPackage2 extends=struts-default action name=index class=IndexAction result/jsp/ukantigua/index.jsp/result /action /package thanks Emil On Wed, Jan 20, 2010 at 12:22 PM, Saeed Iqbal saee...@gmail.com wrote: This is strange. What kind of a setup do you have? On Wed, Jan 20, 2010 at 11:20 AM, emil thushanga thusha...@gmail.com wrote: Dear all, I have an S2 web application. No login procedure and any page can be accessed. Basically it’s an Open session. It’s a hotel website. As an example when user access Barbados web pages , regardless of any URL patter session should be created and token should be save as region='Barbados'. If user accessing any of Antigua URLs session should be filled with region='Antigua' We have separated regions by using different namespaces in struts.xml. Example URL pattern, http://localhost:8084/subsites/barbados/listHotels.html?starRate=3 Please provide a help on this. Thanks Emil -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Emil Thushanga -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Emil Thushanga -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Struts 2 s:if test syntax
remove the first } and second %{ On Fri, Jan 15, 2010 at 1:01 PM, RogerV roger.var...@googlemail.com wrote: Hi I'm having a problem trying to get the correct syntax for an OR test. s:if test=%{typeAsString=='BOOL'} || %{typeAsString=='ENUM'} selects nothing, whereas s:if test=%{typeAsString=='BOOL'} selects values as expected as does s:if test=%{typeAsString=='ENUM'} Regards -- View this message in context: http://old.nabble.com/Struts-2-%3Cs%3Aif-test-syntax-tp27173346p27173346.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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Whats the best way of using Google Inject Annotation in Struts
com.google.inject.Inject; -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Guice integration
Can anyone tell me how to best integrate guice with struts please. -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Why do i possibly get this error.
Unable to load bean: type:com.opensymphony.xwork2.util.ValueStackFactory class:com.opensymphony.xwork2.ognl.OgnlValueStackFactory - bean - jar:file:/Users/saeediqbal/.m2/repository/org/apache/struts/struts2-core/2.1.6/struts2-core-2.1.6.jar!/struts-default.xml:68:140 Caused by: java.lang.IncompatibleClassChangeError: Implementing class -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Why do i possibly get this error.
Excluding some jars moved me forward. Now i get this Caused by: java.lang.ClassCastException: com.iqbalconsulting.work.servlets.LsoLoginServlet at com.google.inject.struts2.GuiceObjectFactory.setModule(GuiceObjectFactory.java:63) On Fri, Jan 8, 2010 at 7:59 AM, Saeed Iqbal saee...@gmail.com wrote: Unable to load bean: type:com.opensymphony.xwork2.util.ValueStackFactory class:com.opensymphony.xwork2.ognl.OgnlValueStackFactory - bean - jar:file:/Users/saeediqbal/.m2/repository/org/apache/struts/struts2-core/2.1.6/struts2-core-2.1.6.jar!/struts-default.xml:68:140 Caused by: java.lang.IncompatibleClassChangeError: Implementing class -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
I8nl with display table not working on specific cases
The titleKey is not working when display:column tag is closed outside of its declaration body. When it has some lines in it to display in table. It doesnt work. -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
An update to StartSoft
Good Day Folks, I hope it would be OK to announce that I have released a new version of my StartSoft application 0.9 http://code.google.com/p/startsoft/ Open Source. Its Struts and Hibernate, but controlled by Spring. Thanks, -saeed -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Clear text while using File Upload in Struts2
The major thing you would want is to have the selected file uploaded to the server first before clear. Think in that direction, maybe. On Mon, Dec 28, 2009 at 9:14 PM, Rafael Taboada kaliman.fore...@gmail.comwrote: u can change the event to onchange for example... code shows onclick because I have another button above the file upload to change its style. but the main idea is to clear the value like javascript function shows On Mon, Dec 28, 2009 at 11:11 AM, vineith kaul vine...@gmail.com wrote: If I understand your question right, I think a reset button should do the job right ? something like this: input type=reset value='Clear Input' name=reset1 onclick=doReset(document.listForm);return false Vineith On Mon, Dec 28, 2009 at 6:16 AM, Rafael Taboada kaliman.fore...@gmail.comwrote: Puedes usar javascript: function limpiarText(){ var idUpload=document.getElementById(idUpload); var frm=document.getElementById(frm); idUpload.setAttribute(value,); frm.reset(); } s:form id=frm action=doUploadFile method=post enctype=multipart/form-data input name=upload id=idUpload type=file class=file size=1 onclick=limpiarText() / /s:form On Mon, Dec 28, 2009 at 2:12 AM, Saeed Iqbal saee...@gmail.com wrote: If you have not submitted the form and you want this functionality then you are talking about ajax file upload struts doesnt provide ajax file upload but you can do that in struts using other libraries On Monday, December 28, 2009, Mageshwaran mageshwa...@dhyanit.com wrote: I have not submitted the form. I just only selected the file using file dialog. It would be helpful if you give the code snippet to implement in Java Script. Magesh. Saeed Iqbal wrote: It gets submitted after post if you want to clear maybe use javascript to clear On Monday, December 28, 2009, Mageshwaran mageshwa...@dhyanit.com wrote: Hi All, In my jsp code i had used s:file name=uploadFile label=File size=20 onkeypress = killEvent(event)/ for file upload using IFrame. The issue is if i select a file using file dialog, there is no option to clear the selected text. Can any one help me how to clear the uploaded file path text? Thanks in Advance, Magesh. -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Rafael Taboada Software Engineer Cell : +511-992741026 No creo en el destino pues no me gusta tener la idea de controlar mi vida -- Rafael Taboada Software Engineer Cell : +511-992741026 No creo en el destino pues no me gusta tener la idea de controlar mi vida -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: S2 Can I use java templates for all tags except form?
And thats the beauty of struts On Sunday, December 27, 2009, Neil Aggarwal n...@jammconsulting.com wrote: Nestor: Is there a way I can use java templates for all tags except form? You can mix and match struts UI tags and normal HTML tags in your JSPs. I do it all the time and it will not hurt anything. Neil -- Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net Host your Struts app on a CentOS VPS for only $25/month! Unmetered bandwidth = no overage charges, 7 day free trial - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Forwarding to a Java Application
An action bean is similar to a java bean just point in struts xml the java bean name On Monday, December 28, 2009, Rafael Muneton rafael_mune...@hotmail.com wrote: Hi Wes: Thanks for your answer. I am a little bit confused now. What I am trying to do is uncommon? The fact that I want to launch a Java class(Nor a Servlet) from a Java Server Page is something odd??? Or is it against the rules of Struts The question is now === How would you do something like that Thanks again. Rafael. Date: Thu, 24 Dec 2009 13:48:49 -0500 Subject: Re: Forwarding to a Java Application From: w...@wantii.com To: user@struts.apache.org On Thu, Dec 24, 2009 at 12:52 PM, Rafael Muneton rafael_mune...@hotmail.com wrote: Hi Vitor: What I am trying to achieve is that , after a user can log in to the Web Application, this user receives the MainMenu screen of the Application, where there are several options, that he/she can choose from.This MainMenu is a Java application not a Servlet. And after reading your answer, I think that maybe I need to upgrade to Struts 2. I am using Struts 1.1 I don't think an upgrade is necessary. I think you just need to understand a little better how things work in a JSP/Servlet environment... The page that launches the MainMenu application is bound to have either an applet... or object... tag. It has been a while for me, I can't remember which. But, if there is information that needs passed to the MainMenu, then you need to make that information into params. Then, when the page that launches the MainMenu is rendered, pass the information to the MainMenu by rendering the appropriate param... tags. -Wes -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live: Keep your friends up to date with what you do online. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Clear text while using File Upload in Struts2
It gets submitted after post if you want to clear maybe use javascript to clear On Monday, December 28, 2009, Mageshwaran mageshwa...@dhyanit.com wrote: Hi All, In my jsp code i had used s:file name=uploadFile label=File size=20 onkeypress = killEvent(event)/ for file upload using IFrame. The issue is if i select a file using file dialog, there is no option to clear the selected text. Can any one help me how to clear the uploaded file path text? Thanks in Advance, Magesh. -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Clear text while using File Upload in Struts2
If you have not submitted the form and you want this functionality then you are talking about ajax file upload struts doesnt provide ajax file upload but you can do that in struts using other libraries On Monday, December 28, 2009, Mageshwaran mageshwa...@dhyanit.com wrote: I have not submitted the form. I just only selected the file using file dialog. It would be helpful if you give the code snippet to implement in Java Script. Magesh. Saeed Iqbal wrote: It gets submitted after post if you want to clear maybe use javascript to clear On Monday, December 28, 2009, Mageshwaran mageshwa...@dhyanit.com wrote: Hi All, In my jsp code i had used s:file name=uploadFile label=File size=20 onkeypress = killEvent(event)/ for file upload using IFrame. The issue is if i select a file using file dialog, there is no option to clear the selected text. Can any one help me how to clear the uploaded file path text? Thanks in Advance, Magesh. -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: if tag with #parameters
If it is a request parameter, then make a setter for it to get set and getter to retrieve it and use % instead of # If you want to have the parameter in the page context use the s:set with id On Tue, Dec 22, 2009 at 3:36 PM, foo bar linut...@gmail.com wrote: Hi all, I'm testing for the existence of a request parameter in a jsp page in Struts 2 %@ taglib prefix=s uri=/struts-tags% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; s:property value=#parameters.messageKey/br/ s:if test=%{#parameters.messageKey == 'yes'} yes /s:if s:else no /s:else But, whatever I do, result is always no Tested with these cases: test.jsp test.jsp?messageKey= test.jsp?messageKey=yes test.jsp?messageKey=no Changed it to s:if test=#parameters.messageKey == 'yes', same results Changed it to s:if test={#parameters.messageKey == 'yes'}, results are negated as above, ie you got no when previously you got yes What's the solution here ? Cheers - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: creat thumbnail image
You can use BufferedImage class for low res thumbnail, and JAI for high res On Mon, Dec 21, 2009 at 9:27 AM, Nguyen Xuan Son yama...@gmail.com wrote: dear all im trying to create a thumbnail image from the original one i've refered to ic_cms_sources project but I've not found any idea do you have any suggestion? thank you very much -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email: nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Feasibility of Programming in GWT
I know we are talking about another framework but I can get honest replies here compared to the GWT user group. I have been reading about GWT being a single page programming where refreshes are not appropriate and reading more like here http://www.onthoo.com/blog/programming/2008/02/why-i-dumped-gwt.html Is GWT good to also program in? I know Struts 2 is the king -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
The GWT Plugin
I am planning to use GWT in some of my projects, the Struts 2 + GWT Plugin looks very good. How do I make it work with Struts on parts of the project, will it need multiple entrypoint 's? -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: [S2] i18n not using default bundle
Why dont you just give it the value global-message_zh_CN On Fri, Dec 11, 2009 at 2:44 PM, mailtolouis2020-str...@yahoo.com wrote: yes, I did have constant name=struts.custom.i18n.resources value=resources.global-message/ so to make it work, what I do now is in my resources folder, I'll have global-message.properties, global-message_en.properties and global-message_zh_CN.properties (an empty file) From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, December 11, 2009 5:41:44 AM Subject: Re: [S2] i18n not using default bundle why dont you just use this struts.custom.i18n.resources=package and put your CN file name in there. On Thu, Dec 10, 2009 at 10:31 PM, mailtolouis2020-str...@yahoo.com wrote: Thanks. That is what I plan to do if that is nothing to do with struts. Regards LV From: Alex Siman aleksandr.si...@gmail.com To: user@struts.apache.org Sent: Thu, December 10, 2009 4:54:26 PM Subject: Re: [S2] i18n not using default bundle The trick is simple: create an empty file: global-message_zh_CN.properties This is not Struts 2 problem, but Java ResourceBundle's. You can read more here: http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732 mailtolouis2020-str...@yahoo.com wrote: Hello, I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1. I got 2 properties in my application: global-message.properties(store Chinese Language) global-message_en.properties (store English Language) When I run my application, and set my browser language to Chinese (zh-CN), I expect when there is no global-message_zh_CN.properties file, struts should use the default global-message.properties file, but it is not, it use global-message_en.properties. If I remove some key in the global-message_en.properties, then it is look for global-message.properties file, that is expected. So could someone tell me is this a bug, or that's the way the design is or some setting I need to do? Regards LV -- View this message in context: http://old.nabble.com/-S2--i18n-not-using-default-bundle-tp26727458p26730713.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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: [S2] i18n not using default bundle
no need to put resources. On Fri, Dec 11, 2009 at 2:45 PM, Saeed Iqbal saee...@gmail.com wrote: Why dont you just give it the value global-message_zh_CN On Fri, Dec 11, 2009 at 2:44 PM, mailtolouis2020-str...@yahoo.com wrote: yes, I did have constant name=struts.custom.i18n.resources value=resources.global-message/ so to make it work, what I do now is in my resources folder, I'll have global-message.properties, global-message_en.properties and global-message_zh_CN.properties (an empty file) From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Fri, December 11, 2009 5:41:44 AM Subject: Re: [S2] i18n not using default bundle why dont you just use this struts.custom.i18n.resources=package and put your CN file name in there. On Thu, Dec 10, 2009 at 10:31 PM, mailtolouis2020-str...@yahoo.com wrote: Thanks. That is what I plan to do if that is nothing to do with struts. Regards LV From: Alex Siman aleksandr.si...@gmail.com To: user@struts.apache.org Sent: Thu, December 10, 2009 4:54:26 PM Subject: Re: [S2] i18n not using default bundle The trick is simple: create an empty file: global-message_zh_CN.properties This is not Struts 2 problem, but Java ResourceBundle's. You can read more here: http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732 mailtolouis2020-str...@yahoo.com wrote: Hello, I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1. I got 2 properties in my application: global-message.properties(store Chinese Language) global-message_en.properties (store English Language) When I run my application, and set my browser language to Chinese (zh-CN), I expect when there is no global-message_zh_CN.properties file, struts should use the default global-message.properties file, but it is not, it use global-message_en.properties. If I remove some key in the global-message_en.properties, then it is look for global-message.properties file, that is expected. So could someone tell me is this a bug, or that's the way the design is or some setting I need to do? Regards LV -- View this message in context: http://old.nabble.com/-S2--i18n-not-using-default-bundle-tp26727458p26730713.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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: [S2] i18n not using default bundle
Sorry Sir. On Fri, Dec 11, 2009 at 5:47 PM, Haroon Rafique haroon.rafi...@utoronto.cawrote: On Today at 2:47pm, SI=Saeed Iqbal saee...@gmail.com wrote: SI no need to put resources. SI SI On Fri, Dec 11, 2009 at 2:45 PM, Saeed Iqbal saee...@gmail.com wrote: SI SI Why dont you just give it the value global-message_zh_CN SI Saeed, Slow down a little bit. The original poster got his answer already. An empty global-message_zh_CN.properties file did the truck. FWIW, there is no problem with putting .properties files in a deeper package (in this case resources). Cheers, -- Haroon Rafique haroon.rafi...@utoronto.ca - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: [S2] i18n not using default bundle
Set the constant variable in struts.xml or struts.properties variable for i8nl On Thursday, December 10, 2009, carl ballantyne carl.ballant...@cast-info.es wrote: Hi LV, When you say you set your browser to Chinese are you simply moving Chinese up the list of prefered languages or are you removing all english from prefered languages. Because if it is the former then I think it would still look for an *_en.properties file over the default. Cheers, Carl. Quoting mailtolouis2020-str...@yahoo.com: Hello, I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1. I got 2 properties in my application: global-message.properties (store Chinese Language) global-message_en.properties (store English Language) When I run my application, and set my browser language to Chinese (zh-CN), I expect when there is no global-message_zh_CN.properties file, struts should use the default global-message.properties file, but it is not, it use global-message_en.properties. If I remove some key in the global-message_en.properties, then it is look for global-message.properties file, that is expected. So could someone tell me is this a bug, or that's the way the design is or some setting I need to do? Regards LV - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [S2] i18n not using default bundle
Im away from my pc (iphone) so i will let you know tomorrow Its 8:15pm On Thursday, December 10, 2009, mailtolouis2020-str...@yahoo.com wrote: Hi, I tried both, move up and remove just leave Chinese Language there, both still the same, it still take the resource from _en.properties. Here is my setting constant name=struts.locale value=zh_CN / constant name=struts.i18n.encoding value=utf-8 / constant name=struts.custom.i18n.resources value=resources.global-message/ Whether I set struts.locale or not, it make no different. By the way, what is this setting mean? Regards LV From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, December 10, 2009 2:01:43 PM Subject: Re: [S2] i18n not using default bundle Set the constant variable in struts.xml or struts.properties variable for i8nl On Thursday, December 10, 2009, carl ballantyne carl.ballant...@cast-info.es wrote: Hi LV, When you say you set your browser to Chinese are you simply moving Chinese up the list of prefered languages or are you removing all english from prefered languages. Because if it is the former then I think it would still look for an *_en.properties file over the default. Cheers, Carl. Quoting mailtolouis2020-str...@yahoo.com: Hello, I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1. I got 2 properties in my application: global-message.properties (store Chinese Language) global-message_en.properties (store English Language) When I run my application, and set my browser language to Chinese (zh-CN), I expect when there is no global-message_zh_CN.properties file, struts should use the default global-message.properties file, but it is not, it use global-message_en.properties. If I remove some key in the global-message_en.properties, then it is look for global-message.properties file, that is expected. So could someone tell me is this a bug, or that's the way the design is or some setting I need to do? Regards LV - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [S2] i18n not using default bundle
why dont you just use this struts.custom.i18n.resources=package and put your CN file name in there. On Thu, Dec 10, 2009 at 10:31 PM, mailtolouis2020-str...@yahoo.com wrote: Thanks. That is what I plan to do if that is nothing to do with struts. Regards LV From: Alex Siman aleksandr.si...@gmail.com To: user@struts.apache.org Sent: Thu, December 10, 2009 4:54:26 PM Subject: Re: [S2] i18n not using default bundle The trick is simple: create an empty file: global-message_zh_CN.properties This is not Struts 2 problem, but Java ResourceBundle's. You can read more here: http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732 mailtolouis2020-str...@yahoo.com wrote: Hello, I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1. I got 2 properties in my application: global-message.properties(store Chinese Language) global-message_en.properties (store English Language) When I run my application, and set my browser language to Chinese (zh-CN), I expect when there is no global-message_zh_CN.properties file, struts should use the default global-message.properties file, but it is not, it use global-message_en.properties. If I remove some key in the global-message_en.properties, then it is look for global-message.properties file, that is expected. So could someone tell me is this a bug, or that's the way the design is or some setting I need to do? Regards LV -- View this message in context: http://old.nabble.com/-S2--i18n-not-using-default-bundle-tp26727458p26730713.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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: excute method will not work without the form's button
Or index only instead of index.action On Fri, Dec 11, 2009 at 12:06 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2009/12/11 Nguyen Xuan Son yama...@gmail.com: can you tell me more in detail? thank you very much You're probably accessing your application like that http://localhost:8080/myapp/index.jsp And in such case, action isn't executed. Try to create action that will have execute() method and will return SUCCESS and the result will the index.jsp, then you access your application in that way http://localhost:8080/myapp/index.action It's a good practice in Struts not to access jsp (or other) pages directly, all the time define actions and the forward to jsp 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 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: struts2 web app without jsp pages, is it possible?
You can easily have html extension for your web page and use sitemesh for templating On Tue, Dec 8, 2009 at 5:08 PM, Shital Patil shitalpati...@yahoo.comwrote: Dear All, I want to develop web application in struts2 framework but without jsp pages. We are going to use HTML template engine for view. Is it possible to develop web application in struts2 without jsp pages? Is this a good idea? Regards, Shital The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: struts2 web app without jsp pages, is it possible?
Tell us what type of app you are making On Tuesday, December 8, 2009, Shital Patil shitalpati...@yahoo.com wrote: Dear All, Thanks for your valuable suggestions. Actually I am failed to convince my PM for using JSP pages in web app. He said, there are some serious problems with JSP. e.g JSP = presentation + code. A JSP developer can easily read some imp file on disk say, /etc/passwd, and throw it to the client. How to avoid this problem? Regards, Shital --- On Tue, 8/12/09, Halil Ağın halil.a...@gmail.com wrote: From: Halil Ağın halil.a...@gmail.com Subject: Re: struts2 web app without jsp pages, is it possible? To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, 8 December, 2009, 12:56 PM html+freemarker+json On Tue, Dec 8, 2009 at 2:12 PM, Saeed Iqbal saee...@gmail.com wrote: You can easily have html extension for your web page and use sitemesh for templating On Tue, Dec 8, 2009 at 5:08 PM, Shital Patil shitalpati...@yahoo.com wrote: Dear All, I want to develop web application in struts2 framework but without jsp pages. We are going to use HTML template engine for view. Is it possible to develop web application in struts2 without jsp pages? Is this a good idea? Regards, Shital The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: SQL ExcuteQuery
I dont see you make database connection like this for example. conn = DriverManager.getConnection (jdbc:mysql://your_host:3306/dbName,dbUser,dbPass); On Tue, Dec 8, 2009 at 10:59 AM, Nguyen Xuan Son yama...@gmail.com wrote: dear all I've written Connection conn = null; PreparedStatement pstmtname = null; pstmtname = conn.prepareStatement(sql); sql = UPDATE tbl_content_admin_accounts SET CA_PASSWORD = ? WHERE ROW_ID = + UserID; pstmtname.setString(1, 123456); pstmtname.executeQuery(); there is no error appear but nothing is changed in the database do you have any suggestion? thank you very much -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email: nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Check out our CMS please
Hi Folks, Would it be OK if I ask you guys to kindly test the Content Management System that I and my fellow mates have written in Struts-Spring-Hibernate please. It is an Open Source Software. Just search for ic-cms on Google Code. Thanks, -saeed
Re: Check out our CMS please
http://code.google.com/p/ic-cms/ It has i8nl built in so you can easily convert to Japanese. On Fri, Dec 4, 2009 at 1:53 PM, Nguyen Xuan Son yama...@gmail.com wrote: couldnt find your project im in japan now, using both of japanese google code and us google code 2009/12/4 Frans Thamura fr...@meruvian.org cool will work on it :0 F On Fri, Dec 4, 2009 at 3:07 PM, Saeed Iqbal saee...@gmail.com wrote: Hi Folks, Would it be OK if I ask you guys to kindly test the Content Management System that I and my fellow mates have written in Struts-Spring-Hibernate please. It is an Open Source Software. Just search for ic-cms on Google Code. Thanks, -saeed -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email: nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Check out our CMS please
I did this work and my fellow mates to contribute to Open Source world. I am poor less than $500 in bank. I cannot offer you any money :( On Fri, Dec 4, 2009 at 5:27 PM, Martin Gainty mgai...@hotmail.com wrote: how much money will you provide for this enormous task? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 4 Dec 2009 14:17:27 +0500 Subject: Re: Check out our CMS please From: saee...@gmail.com To: user@struts.apache.org http://code.google.com/p/ic-cms/ It has i8nl built in so you can easily convert to Japanese. On Fri, Dec 4, 2009 at 1:53 PM, Nguyen Xuan Son yama...@gmail.com wrote: couldnt find your project im in japan now, using both of japanese google code and us google code 2009/12/4 Frans Thamura fr...@meruvian.org cool will work on it :0 F On Fri, Dec 4, 2009 at 3:07 PM, Saeed Iqbal saee...@gmail.com wrote: Hi Folks, Would it be OK if I ask you guys to kindly test the Content Management System that I and my fellow mates have written in Struts-Spring-Hibernate please. It is an Open Source Software. Just search for ic-cms on Google Code. Thanks, -saeed -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email: nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer _ Windows Live Hotmail gives you a free,exclusive gift. http://www.microsoft.com/windows/windowslive/hotmail_bl1/hotmail_bl1.aspx?ocid=PID23879::T:WLMTAGL:ON:WL:en-ww:WM_IMHM_7:092009 -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: Check out our CMS please
:) On Friday, December 4, 2009, Brian Thompson elephant...@gmail.com wrote: Well, sure you could -- you just said you have $500! Buying food? Paying rent? Nah, these trivialities are much less important than sending money to strangers on the Internet :P -Brian On Fri, Dec 4, 2009 at 6:39 AM, Saeed Iqbal saee...@gmail.com wrote: I did this work and my fellow mates to contribute to Open Source world. I am poor less than $500 in bank. I cannot offer you any money :( On Fri, Dec 4, 2009 at 5:27 PM, Martin Gainty mgai...@hotmail.com wrote: how much money will you provide for this enormous task? Martin Gainty __ -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to get the key name
Yes key is in struts. See the docs. On Thu, Dec 3, 2009 at 2:54 PM, mailtolouis2020-str...@yahoo.com wrote: Hi, Sorry, I think you misunderstanding my question. My main question is fieldName give me the name attribute value, but I want to get my key attribute value, is there anything like fieldKey or something ? s:textfield key=label.name name=user.name maxlength=35 required=true/ fieldName = user.name ?? = label.name Thanks LV From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, December 3, 2009 2:13:20 AM Subject: Re: How to get the key name You use the key attribute instead of label On Wednesday, December 2, 2009, Siddiq Syed siddiq...@yahoo.com wrote: Try this, s:text name=label.name / s:textfield name=user.name maxlength=35 required=true/ -siddiq. Louis Voo wrote: Hi, I've this text field in my jsp s:textfield key=label.name name=user.name maxlength=35 required=true/ and this property in the resource bundle error.required = ${getText(fieldName)} is required. label.name = Name When there is validation error, it looking for user.name property, it is fine because I'm using fieldName, so my question is there anyway I can get key name? So that I can use the label.name property. Regards LV -- View this message in context: http://old.nabble.com/How-to-get-the-key-name-tp26613714p26613875.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 -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer
Re: How to get the key name
No not that key=i8nl.nameKey Send me your file On Thu, Dec 3, 2009 at 5:27 PM, mailtolouis2020-str...@yahoo.com wrote: No, I changed my property to this error.required = ${getText(key)} is required. It is not working. From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, December 3, 2009 9:56:29 AM Subject: Re: How to get the key name Yes key is in struts. See the docs. On Thu, Dec 3, 2009 at 2:54 PM, mailtolouis2020-str...@yahoo.com wrote: Hi, Sorry, I think you misunderstanding my question. My main question is fieldName give me the name attribute value, but I want to get my key attribute value, is there anything like fieldKey or something ? s:textfield key=label.name name=user.name maxlength=35 required=true/ fieldName = user.name ?? = label.name Thanks LV From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, December 3, 2009 2:13:20 AM Subject: Re: How to get the key name You use the key attribute instead of label On Wednesday, December 2, 2009, Siddiq Syed siddiq...@yahoo.com wrote: Try this, s:text name=label.name / s:textfield name=user.name maxlength=35 required=true/ -siddiq. Louis Voo wrote: Hi, I've this text field in my jsp s:textfield key=label.name name=user.name maxlength=35 required=true/ and this property in the resource bundle error.required = ${getText(fieldName)} is required. label.name = Name When there is validation error, it looking for user.name property, it is fine because I'm using fieldName, so my question is there anyway I can get key name? So that I can use the label.name property. Regards LV -- View this message in context: http://old.nabble.com/How-to-get-the-key-name-tp26613714p26613875.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 -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer
Re: How to get the key name
I am sorry i dont think i can be of any more help On Thursday, December 3, 2009, mailtolouis2020-str...@yahoo.com wrote: Ok, now I know what you mean the key, you mean ${getText(label.name)} ? But that is not that I want, if I hard code the key name there, that defeat the whole reuse purpose. I want something similar like fieldName but for key. fieldName is a constant variable from struts, when I write the code like this error.required = ${getText(fieldName)} is required. and if I have these 2 tag in jsp: s:textfield key=label.name name=user.name maxlength=35 required=true/ s:textfield key=label.email name=user.email maxlength=35 required=true/ In runtime when validation error, it will search for user.name and user.email property in the resource bundle files. So, if I've this user.name = Name user.email = Email in the resource bundle files, Then it will display correctly as Name is required. Email is required. But in my resource bundle files, I only have label.name = Name label.email = Email Which map to the key, so I need to find a way to get it. Hope you can understand, sorry for my poor description. Regards LV From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, December 3, 2009 12:29:30 PM Subject: Re: How to get the key name No not that key=i8nl.nameKey Send me your file On Thu, Dec 3, 2009 at 5:27 PM, mailtolouis2020-str...@yahoo.com wrote: No, I changed my property to this error.required = ${getText(key)} is required. It is not working. From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, December 3, 2009 9:56:29 AM Subject: Re: How to get the key name Yes key is in struts. See the docs. On Thu, Dec 3, 2009 at 2:54 PM, mailtolouis2020-str...@yahoo.com wrote: Hi, Sorry, I think you misunderstanding my question. My main question is fieldName give me the name attribute value, but I want to get my key attribute value, is there anything like fieldKey or something ? s:textfield key=label.name name=user.name maxlength=35 required=true/ fieldName = user.name ?? = label.name Thanks LV From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Thu, December 3, 2009 2:13:20 AM Subject: Re: How to get the key name You use the key attribute instead of label On Wednesday, December 2, 2009, Siddiq Syed siddiq...@yahoo.com wrote: Try this, s:text name=label.name / s:textfield name=user.name maxlength=35 required=true/ -siddiq. Louis Voo wrote: Hi, I've this text field in my jsp s:textfield key=label.name name=user.name maxlength=35 required=true/ and this property in the resource bundle error.required = ${getText(fieldName)} is required. label.name = Name When there is validation error, it looking for user.name property, it is fine because I'm using fieldName, so my question is there anyway I can get key name? So that I can use the label.name property. Regards LV -- View this message in context: http://old.nabble.com/How-to-get-the-key-name-tp26613714p26613875.html Sent from the Struts - User mailing list archive at Nabble.com. - -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Upgrade 2.1.6 to 2.1.8.1, s:a cause empty a / tag?
Yes thats right On Wednesday, December 2, 2009, Brian Thompson elephant...@gmail.com wrote: a href=s:property value=%{#some_var_s:url}Link/a -Brian On Wed, Dec 2, 2009 at 1:40 AM, Henry Jen henry...@ztune.net wrote: 2009/12/1 Saeed Iqbal saee...@gmail.com: It totally depends on your needs. The only reason we would like to use s:a is that we want to use OGNL in href. For example, s:a href=%{#some_var_s:url}Link/s:a If we can use s:a would be cleaner. Any suggestion? Cheers, Henry On Wed, Dec 2, 2009 at 1:14 PM, Henry Jen henry...@ztune.net wrote: 2009/12/1 Henry Jen henry...@ztune.net: Thanks for the prompt reply, but document in 2.1.6 and 2.1.8 doesn't say that, though It does say it works with simple theme but works best for ajax. 2.1.6 works, so I am wondering if there is a quick way to make it work for 2.1.8. Maybe the right approach is simply use a rather than s:a? Cheers, Henry - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Upgrade 2.1.6 to 2.1.8.1
This looks like a classpath issue On Wednesday, December 2, 2009, Gustavo Andrés Guevara Saavedra g.guev...@i-deal.hu wrote: Hi, I've just migrated my app. from Struts 2.1.6 to 2.1.8.1. The application worked fine but now throws the following exception upon launching the server: Unable to load configuration. - bean - jar:file:/C:/Yazix/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/front_web/WEB-INF/lib/struts2-spring-plugin-2.1.8.1.jar!/struts-plugin.xml:29:132 Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.classloader.ReloadingClassLoader I've made sure that struts2-core-2.1.8.1.jar as well as struts2-spring-2.1.8.1 are included and exported to the application, what am I doing wrong? Thanks for the attention, Regards, - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Upgrade 2.1.6 to 2.1.8.1
If you are using maven do a dependency:tree and exclude redundant packages On Wednesday, December 2, 2009, Musachy Barroso musa...@gmail.com wrote: make sure you dont have 2 versions of xwork. musachy On Wed, Dec 2, 2009 at 8:50 AM, Saeed Iqbal saee...@gmail.com wrote: This looks like a classpath issue On Wednesday, December 2, 2009, Gustavo Andrés Guevara Saavedra g.guev...@i-deal.hu wrote: Hi, I've just migrated my app. from Struts 2.1.6 to 2.1.8.1. The application worked fine but now throws the following exception upon launching the server: Unable to load configuration. - bean - jar:file:/C:/Yazix/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/front_web/WEB-INF/lib/struts2-spring-plugin-2.1.8.1.jar!/struts-plugin.xml:29:132 Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.classloader.ReloadingClassLoader I've made sure that struts2-core-2.1.8.1.jar as well as struts2-spring-2.1.8.1 are included and exported to the application, what am I doing wrong? Thanks for the attention, Regards, - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer - 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 -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to get the key name
You use the key attribute instead of label On Wednesday, December 2, 2009, Siddiq Syed siddiq...@yahoo.com wrote: Try this, s:text name=label.name / s:textfield name=user.name maxlength=35 required=true/ -siddiq. Louis Voo wrote: Hi, I've this text field in my jsp s:textfield key=label.name name=user.name maxlength=35 required=true/ and this property in the resource bundle error.required = ${getText(fieldName)} is required. label.name = Name When there is validation error, it looking for user.name property, it is fine because I'm using fieldName, so my question is there anyway I can get key name? So that I can use the label.name property. Regards LV -- View this message in context: http://old.nabble.com/How-to-get-the-key-name-tp26613714p26613875.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 -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: blank app under jetty7
Congrats :) On Thursday, December 3, 2009, Milos Negovanovic milos.negovano...@googlemail.com wrote: On Wed, Dec 02, 2009 at 02:04:01PM -0500, Dale Newfield wrote: Milos Negovanovic wrote: javax.servlet.jsp.JspWriter Which jar would that be? I have all jars distributed with jetty7 and struts2 by default. I don't know which servlet api you're using. 2.3: jsp-api.jar 2.5: jsp-api-2.0.jar 2.4: I don't know, but I would guess that jsp and api are in the name. -Dale You are right ... I am missing the JSP jar. After some googling it turned out that jetty7 as distributed by Eclipse foundation doesn't include needed JSP jars yet. After some more googling I managed to find jetty7 distributed by codehouse which has this jar. Blank app works now! Many thanks. -- Milos Negovanovic milos.negovano...@googlemail.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Help me design this struts, please
Yes i can send u a project where i did that at this point i dont have time to do all that for you On Tuesday, December 1, 2009, A. Lotfi majidna...@yahoo.com wrote: Hi, I have a small project and I am new in struts : DB Tables : User (userId, UserName,...,...) Roles(userId, Rolename,.) I want to have a jsp page : that has a search form : textfield(userId) and a search button when the user type a userid and press search button : all the information from the User table appear + two comboboxes : combobox (All roles in the database) combobox (Assigned roles to this user) two links : right arrow link for revoking roles left arrow link for granting roles could you please help me doing this ? thanks your help is appreciated. -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Integration Struts with ZK framework
I have integrated struts with spring in which basically spring controls the application but not ZK On Wednesday, December 2, 2009, Colin NG colin...@hotmail.com wrote: Hi, I am new in web application development. Does anyone have sample for the integration of ZK framework and Struts2? And have guides for Struts2 integration with other framework such as ZK, Spring? Thanks. Colin _ Windows Live: Keep your friends up to date with what you do online. http://go.microsoft.com/?linkid=9691815 -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: NoClassDefFoundError
Your jar is not on the classpath. On Wed, Dec 2, 2009 at 12:22 PM, Nguyen Xuan Son yama...@gmail.com wrote: dear all I got the error java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream at org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:196) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:358) at org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parse(JakartaMultiPartRequest.java:93) at org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.init(MultiPartRequestWrapper.java:75) at org.apache.struts2.dispatcher.Dispatcher.wrapRequest(Dispatcher.java:708) at org.apache.struts2.dispatcher.FilterDispatcher.prepareDispatcherAndWrapRequest(FilterDispatcher.java:327) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:367) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Unknown Source) though I have declared action name=changepass class=com.baibai.action.C0003_ChangePasswordAction result name=successC0002_Home.jsp/result result name=inputC0003_ChangePassword.jsp/result /action do you have any idea why could this happen to me thank you very much -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email: nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer
Re: NoClassDefFoundError
No no you need the commons io file upload jar on the classpath On Wed, Dec 2, 2009 at 12:45 PM, Nguyen Xuan Son yama...@gmail.com wrote: Dear Saeed Iqbal I do have C0003_ChangePasswordAction.class in WebRoot\WEB-INF\classes\com\baibai\action is that what you mean? thank you very much 2009/12/2 Saeed Iqbal saee...@gmail.com Your jar is not on the classpath. On Wed, Dec 2, 2009 at 12:22 PM, Nguyen Xuan Son yama...@gmail.com wrote: dear all I got the error java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream at org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:196) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:358) at org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parse(JakartaMultiPartRequest.java:93) at org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.init(MultiPartRequestWrapper.java:75) at org.apache.struts2.dispatcher.Dispatcher.wrapRequest(Dispatcher.java:708) at org.apache.struts2.dispatcher.FilterDispatcher.prepareDispatcherAndWrapRequest(FilterDispatcher.java:327) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:367) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Unknown Source) though I have declared action name=changepass class=com.baibai.action.C0003_ChangePasswordAction result name=successC0002_Home.jsp/result result name=inputC0003_ChangePassword.jsp/result /action do you have any idea why could this happen to me thank you very much -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email: nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email: nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer
Re: Upgrade 2.1.6 to 2.1.8.1, s:a cause empty a / tag?
Is your Ajax configured? On Wed, Dec 2, 2009 at 12:45 PM, Henry Jen henry...@ztune.net wrote: Hi, I updated our project using 2.1.6 to 2.1.8.1 and surprised to find that s:a tag breaks the application. An example is s:a href=# tabindex=3Login/s:a renders to in 2.1.8.1 a tabindex=3 href=#/ When I looked into the simple template, seems like the change in a.ftl and a-close.ftl is causing this. In 2.1.8, the a.ftl basically moved into a-close.ftl and using ${parameters.body} in between. ${parameters.body}/a I don't believe this is a bug as it is obvious, does this mean the usage of s:a changed? FWIW, I am using struts in a maven project, so dependencies is retrieved by maven. Cheers, Henry - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer
Re: Upgrade 2.1.6 to 2.1.8.1, s:a cause empty a / tag?
http://struts.apache.org/2.0.8/docs/a.html says *THE FOLLOWING IS ONLY VALID WHEN AJAX IS CONFIGURED* On Wed, Dec 2, 2009 at 12:57 PM, Henry Jen henry...@ztune.net wrote: 2009/12/1 Saeed Iqbal saee...@gmail.com: Is your Ajax configured? Sorry for my ignorance, we don't use ajax with struts, not sure what need to be configured. Would you shed some light for me? Cheers, Henry On Wed, Dec 2, 2009 at 12:45 PM, Henry Jen henry...@ztune.net wrote: Hi, I updated our project using 2.1.6 to 2.1.8.1 and surprised to find that s:a tag breaks the application. An example is s:a href=# tabindex=3Login/s:a renders to in 2.1.8.1 a tabindex=3 href=#/ When I looked into the simple template, seems like the change in a.ftl and a-close.ftl is causing this. In 2.1.8, the a.ftl basically moved into a-close.ftl and using ${parameters.body} in between. ${parameters.body}/a I don't believe this is a bug as it is obvious, does this mean the usage of s:a changed? FWIW, I am using struts in a maven project, so dependencies is retrieved by maven. Cheers, Henry - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer
Re: Upgrade 2.1.6 to 2.1.8.1, s:a cause empty a / tag?
It totally depends on your needs. On Wed, Dec 2, 2009 at 1:14 PM, Henry Jen henry...@ztune.net wrote: 2009/12/1 Henry Jen henry...@ztune.net: Thanks for the prompt reply, but document in 2.1.6 and 2.1.8 doesn't say that, though It does say it works with simple theme but works best for ajax. 2.1.6 works, so I am wondering if there is a quick way to make it work for 2.1.8. Maybe the right approach is simply use a rather than s:a? Cheers, Henry - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer
Re: Upgrade 2.1.6 to 2.1.8.1, s:a cause empty a / tag?
My suggestion, if you are not able to do this then maybe go with s:set and c:out the href. You would attain the same thing back. On Wed, Dec 2, 2009 at 1:25 PM, Henry Jen henry...@ztune.net wrote: 2009/12/1 Saeed Iqbal saee...@gmail.com: It totally depends on your needs. The only reason we would like to use s:a is that we want to use OGNL in href. For example, s:a href=%{#some_var_s:url}Link/s:a If we can use s:a would be cleaner. Any suggestion? Cheers, Henry On Wed, Dec 2, 2009 at 1:14 PM, Henry Jen henry...@ztune.net wrote: 2009/12/1 Henry Jen henry...@ztune.net: Thanks for the prompt reply, but document in 2.1.6 and 2.1.8 doesn't say that, though It does say it works with simple theme but works best for ajax. 2.1.6 works, so I am wondering if there is a quick way to make it work for 2.1.8. Maybe the right approach is simply use a rather than s:a? Cheers, Henry - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer
Re: [Struts 2.1.8] Message properties on SUBMIT tag not working
) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) how come ? Is this a bug ? Thanks for helping. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- David Canós www.david-canos.net -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 - Is sitemesh embedded / forced to use?
Do you have Sitemesh filter in your web.xml? On Tue, Dec 1, 2009 at 12:00 AM, jvsrvcs jvsr...@gmail.com wrote: I am trying to get a very simple struts2 HelloWorld app to work (with maven2) I think I have everything but I keep getting this error: Messages: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/sitemesh-page.tld: (line 1, col 1) File: org/apache/jasper/compiler/TldLocationsCache.java Line number:248 I do not have /WEB-INF/sitemesh-page.tld and there is no config file anywhere that references anything to do with sitemesh (grep'd all files). What could be the problem? Am I forced to use sitemesh? If so, where do I get a sample sitemesh-page.tld so it does not complain? There is no Struts2 tutorial that ever mentions I need sitemesh-page.tld somewhere. thanks -- View this message in context: http://old.nabble.com/Struts2---Is-sitemesh-embedded---forced-to-use--tp26579341p26579341.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 -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer
Re: Any Struts + mysql example ?
Martin: I am not sure of the correct terminology. My being a non native English speaker has cost me jobs already :( On Sun, Nov 29, 2009 at 10:01 AM, Martin Gainty mgai...@hotmail.com wrote: the Spring 2.5 distro has a Hibernate example org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter did you say Struts is the view ..perhaps you meant Struts-taglib is used in the jsp??? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sun, 29 Nov 2009 02:55:47 + From: larryr...@comcast.net To: user@struts.apache.org Subject: Re: Any Struts + mysql example ? Another example using JPA/Hibernate would be the Struts2InAction example from the book of that name. - Original Message - From: Saeed Iqbal saee...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, November 28, 2009 6:52:29 PM GMT -08:00 US/Canada Pacific Subject: Re: Any Struts + mysql example ? I wouldnt have a JDBC example but i have a MVC example where Model ORM is Hibernate, Controller is Spring and View is Struts Search for startsoft in google code On Sat, Nov 28, 2009 at 9:50 PM, A. Lotfi majidna...@yahoo.com wrote: with jdbc, thanks --- On Sat, 11/28/09, Saeed Iqbal saee...@gmail.com wrote: From: Saeed Iqbal saee...@gmail.com Subject: Re: Any Struts + mysql example ? To: Struts Users Mailing List user@struts.apache.org Date: Saturday, November 28, 2009, 11:41 AM Struts with JDBC? or JPA/Hibernate On Sat, Nov 28, 2009 at 9:39 PM, A. Lotfi majidna...@yahoo.com wrote: Hi, I Please if you know about a nice example or a small proj using struts and mysql I would appreciate. thanks -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer _ Bing brings you maps, menus, and reviews organized in one place. http://www.bing.com/search?q=restaurantsform=MFESRPpubl=WLHMTAGcrea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1 -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer
Re: unstatable implement
Whats on line 10 On Monday, November 30, 2009, Nguyen Xuan Son nr000...@ed.ritsumei.ac.jp wrote: dear all I have the C0002_Home.jsp and sessionChk.jsp files. The C0002_Home.jsp's source code is s:action name=SessionCheck/s:action the meaning of this source code is to check users session whenever they enter the webpage the struts.xml is structured as: action name=SessionCheck class=com.baibai.action.SessionCheckAction result name=inputsessionChk.jsp/result /action action name=C0002_Home class=com.baibai.action.C0002_HomeAction result name=inputC0002_Home.jsp/result /action the detail of the SessionCheckAction.java file is public class SessionCheckAction extends ActionSupport{ public String execute() throws Exception { Map ses = ActionContext.getContext().getSession(); if((ses.get(context).toString()!=)(ses.get(role).toString()==admin)){ // the user is loginned as an administrator System.out.println(you have session); } else { System.out.println(you dont have session); } return SUCCESS; } } however when i tried to enter the C0002_Home.jsp without Login the error appears 2009/11/30 10:40:07 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error 致命的: Could not execute action: /SessionCheck java.lang.NullPointerException at com.baibai.action.SessionCheckAction.execute(SessionCheckAction.java:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) this doesnt happen if I login into the system could you tell me where did I went wrong -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email : nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: unstatable implement
Yes the toString of null is whats causing your error On Monday, November 30, 2009, Nguyen Xuan Son yama...@gmail.com wrote: on line 10 I have if(!ses.get(context).equals(null)!ses.get(role).equals(null)){ if(!ses.get(context).toString().isEmpty()!ses.get(role).toString().isEmpty()){ thanks for your considering 2009/11/30 Saeed Iqbal saee...@gmail.com Whats on line 10 On Monday, November 30, 2009, Nguyen Xuan Son nr000...@ed.ritsumei.ac.jp wrote: dear all I have the C0002_Home.jsp and sessionChk.jsp files. The C0002_Home.jsp's source code is s:action name=SessionCheck/s:action the meaning of this source code is to check users session whenever they enter the webpage the struts.xml is structured as: action name=SessionCheck class=com.baibai.action.SessionCheckAction result name=inputsessionChk.jsp/result /action action name=C0002_Home class=com.baibai.action.C0002_HomeAction result name=inputC0002_Home.jsp/result /action the detail of the SessionCheckAction.java file is public class SessionCheckAction extends ActionSupport{ public String execute() throws Exception { Map ses = ActionContext.getContext().getSession(); if((ses.get(context).toString()!=)(ses.get(role).toString()==admin)){ // the user is loginned as an administrator System.out.println(you have session); } else { System.out.println(you dont have session); } return SUCCESS; } } however when i tried to enter the C0002_Home.jsp without Login the error appears 2009/11/30 10:40:07 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error 致命的: Could not execute action: /SessionCheck java.lang.NullPointerException at com.baibai.action.SessionCheckAction.execute(SessionCheckAction.java:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) this doesnt happen if I login into the system could you tell me where did I went wrong -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email : nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email : nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: password encrypted
Are you using Spring Security? Its very simple then. On Mon, Nov 30, 2009 at 9:34 AM, Nguyen Xuan Son yama...@gmail.com wrote: Dear all i would like to encrypted the password into sha1 code although I tried to search whether is there any class that I can simply use as i did in PHP (just simply use the method sha1(string)) but failed do you have any suggestion? thank you very much -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email: nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer
Re: redirect command
Just have redirect near result name= On Monday, November 30, 2009, Nguyen Xuan Son yama...@gmail.com wrote: dear all here i've the detail of struts file action name=SessionCheck class=com.baibai.action.SessionCheckAction result name=inputsessionChk.jsp/result /action and in the SessionCheckAction.java file i have public class SessionCheckAction extends ActionSupport{ public String execute() throws Exception { Map ses = ActionContext.getContext().getSession(); // check where the the session is null or empty string if(StringUtils.isNotEmpty((String) ses.get(context))StringUtils.isNotEmpty((String) ses.get(role))){ if(ses.get(context).toString().isEmpty()||!ses.get(role).toString().equals(admin)){ // the user is loginned as an administrator } } else { // the user have not been loggined in or user's role is not an administrator } return SUCCESS; } } in both case, i want to redirect to login.jsp page i've tried with the struts.xml file but failed do you have any suggestion, thank you very much -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email : nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: redirect command
type=redirect On Monday, November 30, 2009, Saeed Iqbal saee...@gmail.com wrote: Just have redirect near result name= On Monday, November 30, 2009, Nguyen Xuan Son yama...@gmail.com wrote: dear all here i've the detail of struts file action name=SessionCheck class=com.baibai.action.SessionCheckAction result name=inputsessionChk.jsp/result /action and in the SessionCheckAction.java file i have public class SessionCheckAction extends ActionSupport{ public String execute() throws Exception { Map ses = ActionContext.getContext().getSession(); // check where the the session is null or empty string if(StringUtils.isNotEmpty((String) ses.get(context))StringUtils.isNotEmpty((String) ses.get(role))){ if(ses.get(context).toString().isEmpty()||!ses.get(role).toString().equals(admin)){ // the user is loginned as an administrator } } else { // the user have not been loggined in or user's role is not an administrator } return SUCCESS; } } in both case, i want to redirect to login.jsp page i've tried with the struts.xml file but failed do you have any suggestion, thank you very much -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email : nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer -- Saeed Iqbal Independant Consultant (Freelance) Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: textfield label localized
No Problem :) On Saturday, November 28, 2009, mailtolouis2020-str...@yahoo.com wrote: Hi, Thanks for the answer, both are working now. Regards LV From: KamHon Eng kam...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Sat, November 28, 2009 9:41:32 AM Subject: Re: textfield label localized s:textfield label=%{getText('label.name')} name=user.name maxlength=35 theme=xhtml/ or s:textfield key=label.name name=user.name maxlength=35 theme=xhtml/ shoud working On Sat, Nov 28, 2009 at 4:53 AM, mailtolouis2020-str...@yahoo.com wrote: Hi, Can someone tell me how to make the label use my resource bundle value? I've tried this s:textfield label=label.name name=user.name maxlength=35 theme=xhtml/ and s:textfield label=%{getText(label.name)} name=user.name maxlength=35 theme=xhtml/ both are not working. But this work: s:label key=label.name/ in my resource bundle properties file I've this label.name = Name THanks L.V -- Best Regard, Kam Hon - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Any Struts + mysql example ?
Struts with JDBC? or JPA/Hibernate On Sat, Nov 28, 2009 at 9:39 PM, A. Lotfi majidna...@yahoo.com wrote: Hi, I Please if you know about a nice example or a small proj using struts and mysql I would appreciate. thanks -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: Any Struts + mysql example ?
I wouldnt have a JDBC example but i have a MVC example where Model ORM is Hibernate, Controller is Spring and View is Struts Search for startsoft in google code On Sat, Nov 28, 2009 at 9:50 PM, A. Lotfi majidna...@yahoo.com wrote: with jdbc, thanks --- On Sat, 11/28/09, Saeed Iqbal saee...@gmail.com wrote: From: Saeed Iqbal saee...@gmail.com Subject: Re: Any Struts + mysql example ? To: Struts Users Mailing List user@struts.apache.org Date: Saturday, November 28, 2009, 11:41 AM Struts with JDBC? or JPA/Hibernate On Sat, Nov 28, 2009 at 9:39 PM, A. Lotfi majidna...@yahoo.com wrote: Hi, I Please if you know about a nice example or a small proj using struts and mysql I would appreciate. thanks -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: [Struts 2 + EJB 3] Display an image
Are you putting the file name in session string or the binary file? On Friday, November 27, 2009, Fernandes Celinio cfernan...@sopragroup.com wrote: Hi, I have an entity bean which has a BLOB attribute. That BLOB attribute maps to a BLOB column in a table in an Oracle database. @Entity public class Boo implements Serializable { ... @Lob �...@basic(fetch=FetchType.LAZY) private byte[] image; public byte[] getImage() { return image; } public void setImage(byte[] image) { this.image = image; } ... } I also have an Action class where i query that entity bean and put the result into the session : public class MyAction extends ActionSupport implements SessionAware { ... Public String someMethod() throws Exception { Boo boo = blaRemote.findById(l); session.put(boo , boo ); ... } Finally in my JSP i display the various values of the attributes of that Entity bean, including that image attribute : s:property value=#session.boo.attributeN / br / img src=s:property value=#session.boo.image / / br / Of course I can display the value of all attributes except the image. How do you display an image with Struts 2 ? Is there a specific tag for it ? Thanks for helping. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: S2 TX with Spring
tx:annotation-driven/ tx:advice id=txAdvice tx:attributes tx:method name=get* read-only=true/ tx:method name=*/ /tx:attributes /tx:advice and use @Transactional over methods in service layer. On Fri, Nov 27, 2009 at 4:53 PM, Frans Thamura fr...@meruvian.org wrote: hi all anyone have experience with Ttransaction with Spring? i see that if we add tx in the apps context, it becomes transaction ready but i still finding out how to understand the way of this is this mailing list the right one, or must ask in spring -- Frans Thamura Meruvian. Experiential Tempation of Java and Enterprise OpenSource Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma Mobile: +6287885901958 Blog Profile: http://frans.thamura.info We provide services to migrate your apps to Java (web), in amazing fast and reliable. -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: FB Connect question 2.0
Frankly Frans I cannot tell you how as I did not work with FB directly. I can tell you how to do individual components of it, not the whole. On Fri, Nov 27, 2009 at 4:49 PM, Frans Thamura fr...@meruvian.org wrote: hi Saeed Iqbal i want to know how to handle the person that has click the Connect button like tips to map the input and get the user info from that people and save in the action -- Frans Thamura Meruvian. Experiential Tempation of Java and Enterprise OpenSource Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma Mobile: +6287885901958 Blog Profile: http://frans.thamura.info We provide services to migrate your apps to Java (web), in amazing fast and reliable. -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: S2 TX with Spring
Oh and dont forget the proper namespace. Take it from documentation for you version. On Fri, Nov 27, 2009 at 7:35 PM, Saeed Iqbal saee...@gmail.com wrote: tx:annotation-driven/ tx:advice id=txAdvice tx:attributes tx:method name=get* read-only=true/ tx:method name=*/ /tx:attributes /tx:advice and use @Transactional over methods in service layer. On Fri, Nov 27, 2009 at 4:53 PM, Frans Thamura fr...@meruvian.org wrote: hi all anyone have experience with Ttransaction with Spring? i see that if we add tx in the apps context, it becomes transaction ready but i still finding out how to understand the way of this is this mailing list the right one, or must ask in spring -- Frans Thamura Meruvian. Experiential Tempation of Java and Enterprise OpenSource Meruvian jTechnopreneur Program (S1) telah hadir, Dapatkan benefit bagi SMK yang melakukan mapping SKKD, dg program beasiswa dari Gunadarma Mobile: +6287885901958 Blog Profile: http://frans.thamura.info We provide services to migrate your apps to Java (web), in amazing fast and reliable. -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: Where to disable encrypting of non latin chars?
These are encoded characters. Either output this but first you must imo try s:property with escape=false On Sat, Nov 28, 2009 at 5:57 AM, Alex Siman aleksandr.si...@gmail.comwrote: I don't know... Do I need these extra bytes in output? And are that entities good for SEO (Google, others)? Saeed Iqbal-2 wrote: I personally feel that is a good feature of Struts. On Fri, Nov 27, 2009 at 8:22 AM, Saeed Iqbal saee...@gmail.com wrote: escape=false can help you or show those characters as encoded values On Fri, Nov 27, 2009 at 8:17 AM, Alex Siman aleksandr.si...@gmail.comwrote: I just have found another issue after upgrading from [2.1.6] - [2.1.8]. Struts now encode any non latin char to its HTML entity of property. E.g. now I have such a mess in HTML output (in browser it looks OK): #1086;#1087;#1080;#1089;#1072;#1085;#1080;#1077; How to disable encoding of every char but leave only encoding of special chars like?: ' -- View this message in context: http://old.nabble.com/Where-to-disable-encrypting-of-non-latin-chars--tp26535859p26535859.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 -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- View this message in context: http://old.nabble.com/Where-to-disable-encrypting-of-non-latin-chars--tp26535859p26545411.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 -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: textfield label localized
There are 2 ways to go about this 1) within Struts tags use key= where your i8nl key should go in. But for that to work your struts needs to know where all the i8nl values are located. Define a constant for it in struts.xml or create a struts.properties to contain this struts.custom.i18n.resources=package where my i8nl file is called package.properties located in the same folder where struts.xml is present 2) use fmt tag JSTL tag for i8nl %...@taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; % fmt:message key=authGroups.addTitle/ Make sure the jstl jar(s) are on your dependency list. On Sat, Nov 28, 2009 at 1:53 AM, mailtolouis2020-str...@yahoo.com wrote: Hi, Can someone tell me how to make the label use my resource bundle value? I've tried this s:textfield label=label.name name=user.name maxlength=35 theme=xhtml/ and s:textfield label=%{getText(label.name)} name=user.name maxlength=35 theme=xhtml/ both are not working. But this work: s:label key=label.name/ in my resource bundle properties file I've this label.name = Name THanks L.V -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: Validation and conversion conflict - best method?
Normally values go from JSP as String. Parse it using Date Formatter and convert it to Date yourself :) I have very interesting experiences with this. On Sat, Nov 28, 2009 at 12:05 AM, ben_979 benninesevenn...@yahoo.ca wrote: Carl, if I could bother you for a few more details? I like your solution, it seems elegant (to me at least!). I'm trying to implement it, but I'm not getting the results that you are. I've set up the type converter, and I've verified that it is being invoked. When my conversion fails (for example, I just type random strings into the date field of my form), the converter is invoked, and the date conversion fails (which is correct). However, when I look in the logs, I see that it is trying to invoke a set method for my date field with a String value as the parameter ( setDateTime(String) ) which I don't have, because dateTime is expected to be of type Date. If I enter a date in the proper format, everything works as expected. From the jsp: s:textfield name=schedule.dateTime value=%{getText('detail.date',{schedule.dateTime})} label=Date/Time/ //detail.date is for formatting From the validation.xml field name=schedule.dateTime field-validator type=conversion short-circuit=true message Try another format /message /field-validator /field Thanks in advance, if you have a chance to respond. -- View this message in context: http://old.nabble.com/Validation-and-conversion-conflict---best-method--tp26341189p26545367.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 -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: Where to disable encrypting of non latin chars?
I mean if you want to display decoded HTML value, then feed in encoded values or the other option first On Sat, Nov 28, 2009 at 6:50 AM, Saeed Iqbal saee...@gmail.com wrote: These are encoded characters. Either output this but first you must imo try s:property with escape=false On Sat, Nov 28, 2009 at 5:57 AM, Alex Siman aleksandr.si...@gmail.comwrote: I don't know... Do I need these extra bytes in output? And are that entities good for SEO (Google, others)? Saeed Iqbal-2 wrote: I personally feel that is a good feature of Struts. On Fri, Nov 27, 2009 at 8:22 AM, Saeed Iqbal saee...@gmail.com wrote: escape=false can help you or show those characters as encoded values On Fri, Nov 27, 2009 at 8:17 AM, Alex Siman aleksandr.si...@gmail.comwrote: I just have found another issue after upgrading from [2.1.6] - [2.1.8]. Struts now encode any non latin char to its HTML entity of property. E.g. now I have such a mess in HTML output (in browser it looks OK): #1086;#1087;#1080;#1089;#1072;#1085;#1080;#1077; How to disable encoding of every char but leave only encoding of special chars like?: ' -- View this message in context: http://old.nabble.com/Where-to-disable-encrypting-of-non-latin-chars--tp26535859p26535859.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 -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- View this message in context: http://old.nabble.com/Where-to-disable-encrypting-of-non-latin-chars--tp26535859p26545411.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 -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer
Re: Where to disable encrypting of non latin chars?
Congrats :) On Saturday, November 28, 2009, Miguel miguel...@gmail.com wrote: I use lots of pages with accented latin characters, and in the source you can see the native characters, not encoded as html entities. The thing I use, in the %@ page ...% header, that should be the first thing in a jsp, I define the charset as utf-8, and that does the magic, at least for me. %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Fri, Nov 27, 2009 at 20:14, Saeed Iqbal saee...@gmail.com wrote: I mean if you want to display decoded HTML value, then feed in encoded values or the other option first On Sat, Nov 28, 2009 at 6:50 AM, Saeed Iqbal saee...@gmail.com wrote: These are encoded characters. Either output this but first you must imo try s:property with escape=false On Sat, Nov 28, 2009 at 5:57 AM, Alex Siman aleksandr.si...@gmail.comwrote: I don't know... Do I need these extra bytes in output? And are that entities good for SEO (Google, others)? Saeed Iqbal-2 wrote: I personally feel that is a good feature of Struts. On Fri, Nov 27, 2009 at 8:22 AM, Saeed Iqbal saee...@gmail.com wrote: escape=false can help you or show those characters as encoded values On Fri, Nov 27, 2009 at 8:17 AM, Alex Siman aleksandr.si...@gmail.comwrote: I just have found another issue after upgrading from [2.1.6] - [2.1.8]. Struts now encode any non latin char to its HTML entity of property. E.g. now I have such a mess in HTML output (in browser it looks OK): #1086;#1087;#1080;#1089;#1072;#1085;#1080;#1077; How to disable encoding of every char but leave only encoding of special chars like?: ' -- View this message in context: http://old.nabble.com/Where-to-disable-encrypting-of-non-latin-chars--tp26535859p26535859.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 -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer -- View this message in context: http://old.nabble.com/Where-to-disable-encrypting-of-non-latin-chars--tp26535859p26545411.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 + Spring + ibatis vs. Struts2 + Spring + Hibernate
I dont have a production server running Struts2 and iBatis. I have however worked with iBatis and some other Web Presentation Framework and I have researched on this extensively too. The bottom line is to go with iBatis when you are working with existing database application and Hibernate when new database is made. On Thu, Nov 26, 2009 at 12:12 AM, Emi Lu em...@encs.concordia.ca wrote: Good morning, Could someone has production comparison between (1) vs. (2)? (1) Struts2 + Spring + ibatis (2) Struts2 + Spring + Hibernate Thanks a lot! -- Lu Ying - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Saeed Iqbal CEO http://www.iqbalconsulting.com Struts - J2EE - Application Architects and Developers
Re: Struts 1.1 To Struts2.x Migration
I suggest first try to migrate a small project to 2.1 from 1.x and then move to your production application. If you want a sample 2.1 application, you can get it here http://code.google.com/p/startsoft/ (It has some bugs) On Thu, Nov 26, 2009 at 6:02 PM, Johannes Geppert jo...@web.de wrote: do you know the migration guide from struts2 wiki? http://struts.apache.org/2.x/docs/migration-guide.html Best Regards Johannes Geppert Zaheer Mohammad wrote: Hi Friends, I am working on a project which is set to migrate from struts1.1 to struts2.x. can anyone send me any links or information about migration strategies from which i can briefly get an idea of migration especially from *Struts1.1 to Struts2.x.* Thanks And Regards Zaheer Mohammad - --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep -- View this message in context: http://old.nabble.com/Struts-1.1-To-Struts2.x-Migration-tp26527384p26529148.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 -- Saeed Iqbal CEO http://www.iqbalconsulting.com Struts - J2EE - Application Architects and Developers
Re: redirect command
Instead of programmatically doing it, you can just specify redirect in your struts.xml file to the place you want. On Thu, Nov 26, 2009 at 7:49 PM, Nguyen Xuan Son nr000...@ed.ritsumei.ac.jp wrote: dear all im trying to deny any users whose session is not exist, access to my webpage thus im using the source code Map ses = ActionContext.getContext().getSession(); if((ses.get(context).toString()==)(ses.get(role).toString()!=admin)){ //redirect to login page } However, i dont know which command should i use to redirect to the login page Please help me Thank you very much -- === Ritsumeikan University, Asia JinZai Project Master of Information Science Nguyen Xuan Son Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18 ShiteiHaimu Rien, Room 103 Tel/Fax : 81-(0)90-3976 2246 Email: nr000...@ed.ritsumei.ac.jp Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp === -- Saeed Iqbal http://www.iqbalconsulting.com Struts - J2EE - Application Architect / Developer