Re: Connection Pooling with Struts
Nop, You dont need using a framework... if you pick one just will make your life easier! If you`re starting a new project I`d get one framework, however if the project it`s already ready, just keep doing in the same way! On Tue, Dec 7, 2010 at 3:36 PM, Anjib Mulepati anji...@hotmail.com wrote: I was thinking for Hibernate. So only way for struts is use one of these framework? Anjib On 12/7/2010 3:26 PM, Johannes Geppert wrote: in java you have the choose which way is the best for your project to handle databases. there exists several frameworks for this job like hibernate, myBatis, spring jdbc tempalate, ... . google for it and look which framework is the best for your project. Johannes anjibman wrote: I have to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good technique for real project. So I am hoping someone could suggest me how to do DB handling efficiently? Thanks Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Bookmark and session
Hi dude, I think your problem might be something in the URL which you are adding to the bookmark, make sure that the URL it`s correct! -Arthur Neves On Mon, Dec 6, 2010 at 3:49 PM, Anjib Mulepati anji...@hotmail.com wrote: Hi Can anyone help me how I can handle the bookmark issue. I am having problem where if one user do bookmark for some page and after it logout if some one use that bookmark and login with different id he get into same page. But content is specific to users. More precisely if I have two page main page and resource page. These pages can be unique to each user depending on there content. Now if first user bookmark resource page and logout. Then when someone click on that book mark it ask for login as I have session management. If new user successfully login he will be send to his resource page. What should have happen if second user login successfully he should have been in main page as he hasn't bookmark the link i.e. bookmark should work for particular user. Thanks Anjib - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [Struts 1.3] first time use custom converter not working
HI, You must create your property as a WarrType. form-property name=warType type=foo.bar.WarrType/ Then your converter will be call. On Sat, Oct 3, 2009 at 10:21 PM, Paul Benedict pbened...@apache.org wrote: Ever solve this? Are you sure you registered your converter properly? Paul On Wed, Sep 23, 2009 at 3:14 AM, senderj send...@hotmail.com wrote: I have a class Stk with property warType of type enum WarrType public enum WarrType { NONE, CALL, PUT; } I have in my struts config form-bean name=MyForm type=org.apache.struts.validator.DynaValidatorForm form-property name=warType type=java.lang.String/ and in my Action MyConverter mc = new MyConverter(); ConvertUtils.register(mc, WarrType.class); PropertyUtils.copyProperties(stk, form); .. and embedded in the Action class public class MyConverter implements Converter { @Override public WarrType convert(Class c, Object s) { WarrType result = null; System.out.println(I am running); if (s.equals(NONE)) result = WarrType.NONE; return result; The problem is the convert() never executed. the copyProperties failed with ...had String ... expect WarrType Any idea why? -- View this message in context: http://www.nabble.com/-Struts-1.3--first-time-use-custom-converter-not-working-tp25531027p25531027.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
Re: Servlet filter as front controller
With the filter struts2 can intercept all request. I think it's more difficult to do thinks like, the namespace struct with a servlet,i dont have sure though. On Wed, Oct 7, 2009 at 2:58 PM, Unmesh joshi unmesh_jo...@hotmail.comwrote: Hi,Struts2 uses servlet filter org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter as front controller, rather than having a servlet act as front controller. Is there any specific advantage of using servlet filter over servlet (as in struts 1.1)? Thanks,Unmesh _ Great events make grand headlines – read them all on MSN India http://in.msn.com
Re: [Struts 1.3] converter converts but not set property
BeansUtils just call your converter, if your form bean property warType, will be a 'WarrType' . On Wed, Sep 23, 2009 at 7:16 AM, senderj send...@hotmail.com wrote: I wrote a converter to convert a enum for BeanUtils.copyProperties(). I have this in my struts config: form-bean name=MyForm type=org.apache.struts.validator.DynaValidatorForm form-property name=warType type=java.lang.String/ Here is my converters (embedded class in my Action) public class MyConverter1 implements Converter { @Override public WarrType convert(Class c, Object s) { Object result = null; String ss = (String) s; if (c.getSimpleName().equals(WarrType)) { System.out.println(ss); if (ss.equals(NONE)) result = WarrType.NONE; if (ss.equals(CALL)) result = WarrType.CALL; if (ss.equals(PUT)) result = WarrType.PUT; } return (WarrType) result; } } and here is the code in my Action: MyConverter1 mc1 = new MyConverter1(); ConvertUtils.register(mc1, WarrType.class); BeanUtils.copyProperties(stk, form); I've ensured both Stk and form have the same name warType. But the copyProperties() takes care of all other properties, except the warType! I have another converter for a date properties coded in similar way and it works. Only this warType doesn't. I have checked the convert() method in MyConverter in debug mode and it can convert correctly. But the stk.warType was not set (although its setWarType() was run with correct parm and output). But if I add this code after the copyProperties() at the above, then it works BeanUtils.copyProperty(stk, warType, PropertyUtils.getSimpleProperty(form, warType)); Any idea why? -- View this message in context: http://www.nabble.com/-Struts-1.3--converter-converts-but-not-set-property-tp25531070p25531070.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
Table(grids)
Hi, I'd like to know, if is there a way to make tables(grids) easily in Struts2? What do you use? Is there a tag?
Re: struts2 filter-mapping url-pattern
I think It' s impossible to do, because all of request's must pass to the filter! If I'd been wrong, please, somebody correct me! 2009/9/1 Rusty Wright rusty.wri...@gmail.com In the web.xml why is the filter-mapping url-pattern /* ? Would it work to change it to *.action instead? For some reason, I can't get jetty to serve my welcome-file index.jsp file and if I change the url-pattern to *.action then it starts working. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org