Re: excute method

2009-11-26 Thread Brian Thompson
Could you post your web.xml? This sounds like it might be a problem with the Struts filter not being configured properly. -Brian On Fri, Nov 27, 2009 at 12:06 AM, Nguyen Xuan Son wrote: > dear all > in struts.xml i have > >C0002_Home.jsp > > > however no matter how hard i tried > publi

Re: excute method

2009-11-26 Thread Saeed Iqbal
If execute doesnt give you what you need you can always implement preparable On Friday, November 27, 2009, Neil Aggarwal wrote: >> in struts.xml i have >> >>     C0002_Home.jsp >> >> >> however no matter how hard i tried >> public String execute() throws Exception { >> System.out.println("you'r

RE: excute method

2009-11-26 Thread Neil Aggarwal
> in struts.xml i have > > C0002_Home.jsp > > > however no matter how hard i tried > public String execute() throws Exception { > System.out.println("you're now in C0002_Home page"); > return SUCCESS; > } > nothing is excuted Try adding a result name="input", I think success is only execute

excute method

2009-11-26 Thread Nguyen Xuan Son
dear all in struts.xml i have C0002_Home.jsp however no matter how hard i tried public String execute() throws Exception { System.out.println("you're now in C0002_Home page"); return SUCCESS; } nothing is excuted please tell me where should i correct? thank you very much -- ==

Re: FB Connect Plugins

2009-11-26 Thread Saeed Iqbal
I can help you if you study what is required for FB connect and to assist you with each step. I cannot give you a very broad answer. On Fri, Nov 27, 2009 at 8:46 AM, Frans Thamura wrote: > hi all > > anyone have work with Facebook, and how to make a plugins for this FB > Conenct > > any idea > >

FB Connect Plugins

2009-11-26 Thread Frans Thamura
hi all anyone have work with Facebook, and how to make a plugins for this FB Conenct any idea -- Frans Thamura Meruvian. Experiential Tempation of Java and Enterprise OpenSource Meruvian bukan hanya membuat anak SMK menjadi bisa tapi SAKTI, malah saktinya SAKTI Mandraguna. Mobile: +62 855

Re: Where to disable encrypting of non latin chars?

2009-11-26 Thread Saeed Iqbal
I personally feel that is a good feature of Struts. On Fri, Nov 27, 2009 at 8:22 AM, Saeed Iqbal wrote: > escape="false" can help you or show those characters as encoded values > > > On Fri, Nov 27, 2009 at 8:17 AM, Alex Siman wrote: > >> >> I just have found another issue after upgrading from [

Re: Where to disable encrypting of non latin chars?

2009-11-26 Thread Saeed Iqbal
escape="false" can help you or show those characters as encoded values On Fri, Nov 27, 2009 at 8:17 AM, Alex Siman wrote: > > 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

Where to disable encrypting of non latin chars?

2009-11-26 Thread Alex Siman
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): описание How to disable encoding of every char but leave only encoding of special ch

[OT] Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Dave Newton
Robert Graf-Waczenski wrote: And, to tell the truth, our choice to use "getmProperty()" as accessor method naming pattern was a bad one originally but we lived with it since the beginning and are now being bitten in the behind :-) That about sums it up, I think. I'm assuming the naming conven

Re: Use of hashcode as ETag in Rest plugin.

2009-11-26 Thread Don Brown
The default etag value of the object's hashcode is really only meant as a helpful default to get you going. I'd highly recommend setting your own etag value with something like the underlying db row's timestamp or whatever. Don On Fri, Nov 27, 2009 at 2:44 AM, Unmesh joshi wrote: > > Hi, > Rest

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Musachy Barroso
You could write your own value stack that extends the OGNLValueStack and just hacks the property name to make it the right/wrong case, but oh boy does that scream trouble :) musachy On Thu, Nov 26, 2009 at 9:04 AM, Bill Bohnenberger wrote: > What an amusing thread. It seems to me the only proble

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Bill Bohnenberger
What an amusing thread. It seems to me the only problem here is the arrogant SOB that decided to defy the Bean naming conventions. LOL. (No offense intended if he is present company :) With affection, Bill On Thu, Nov 26, 2009 at 8:31 AM, Robert Graf-Waczenski wrote: > Rafał Krupiński schrieb: >

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Robert Graf-Waczenski
Rafał Krupiński schrieb: On Thu, Nov 26, 2009 at 4:41 PM, Robert Graf-Waczenski wrote: approach, which is tedious work because [...] i have to go through each applicable class and refactor-rename each method. Please don't try to make us feel guilty :-) You'll get paid for th

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Rafał Krupiński
On Thu, Nov 26, 2009 at 4:41 PM, Robert Graf-Waczenski wrote: > approach, which is tedious work because [...] >i have to go through each applicable class and > refactor-rename each method. Please don't try to make us feel guilty :-) You'll get paid for this, we're not. In previous post I stated

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Rafał Krupiński
On Thu, Nov 26, 2009 at 4:01 PM, Robert Graf-Waczenski wrote: > Hi, > > we do of course use a refactoring tool, but we are talking about a huge > amount of methods. I'm not aware of a refactoring tool that would allow me > to rename *all* methods in *one* step. jEdit should be powerful enough to

Use of hashcode as ETag in Rest plugin.

2009-11-26 Thread Unmesh joshi
Hi, Rest plugin's DefaultHttpHeaders class uses hashCode of the model object (if the action is model driven) or hascode of the action object.I guess its a wrong assumption to make that two different objects will have different hashcodes. So we can have same hashcode even if model objects are no

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Robert Graf-Waczenski
Well, i was hoping for an interceptor-based solution. But since something like this apparently is unavailable, i'm going for the method renaming approach, which is tedious work because i'm only changing the classes that are used by the Struts2 part of our codebase. So a global search/replace ap

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Paweł Wielgus
Hi Robert, maybe not in one step, but for sure it's pretty easy to do. Just look for "public [^ ]+ get[a-z]" regexp in your codebase, and eclipse will do the rest, plus there's a bonus, You don't need to change anything in your jsp files. Ant to be absolutely sure everything worked well simply run

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Saeed Iqbal
I would think that is a feature of Struts that it requires proper OOP names. On Thu, Nov 26, 2009 at 8:01 PM, Robert Graf-Waczenski wrote: > Hi, > > we do of course use a refactoring tool, but we are talking about a huge > amount of methods. I'm not aware of a refactoring tool that would allow me

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Robert Graf-Waczenski
Hi, we do of course use a refactoring tool, but we are talking about a huge amount of methods. I'm not aware of a refactoring tool that would allow me to rename *all* methods in *one* step. Robert Rafał Krupiński schrieb: Robert Graf-Waczenski pisze: Hi, [...] Since we (obviously) don't w

Re: redirect command

2009-11-26 Thread Saeed Iqbal
In Java Action Bean you would just have to return a specific string that struts.xml uses. On Thu, Nov 26, 2009 at 7:53 PM, Saeed Iqbal wrote: > 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

Re: redirect command

2009-11-26 Thread Saeed Iqbal
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 wrote: > dear all > im trying to deny any users whose session is not exist, access to my > webpage > thus im using the source code >

redirect command

2009-11-26 Thread Nguyen Xuan Son
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 whi

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Rafał Krupiński
Robert Graf-Waczenski pisze: Hi, [...] Since we (obviously) don't want to rename the myriads of getters/setters, i'd like to know if there is a way around this, maybe with a custom interceptor somewhere? Hi If the only problem is the number of methods to be changed, maybe you should conside

RE: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-11-26 Thread Raghuveer.V
Messages are stored since you use RedirectMessageInterceptor. Action property Data is not retained during redirect. Try following scenarios, Method1: So you need to set explicitly from Action property to ActionContext in Action1 and Need to retrive from the context and set to properties in A

Re: Struts 1.1 To Struts2.x Migration

2009-11-26 Thread Saeed Iqbal
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 wrote: > > do you know

Re: Struts 1.1 To Struts2.x Migration

2009-11-26 Thread Johannes Geppert
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 an

S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Robert Graf-Waczenski
Hi, we are currently in the process of evaluating if upgrading our app from Struts 2.1.6 to 2.1.8.1 is feasible. Currently it is not because various things stopped working, but i'll like to work on one of them at a time. We frequently (*very* frequently, actually) use property names such as

Struts 1.1 To Struts2.x Migration

2009-11-26 Thread Zaheer Mohammad
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 R

Re: Problem using tag

2009-11-26 Thread shekher awasthi
Thanks Friends! Following tag resolved the issue: On Mon, Nov 23, 2009 at 7:58 PM, Greg Lindholm wrote: > Check the doc for property *struts.url.includeParams* for the version of > struts you are using. > You may want to change it's value to none. > > > > > > > On Sat, Nov 21, 2009 at 12:48 AM

Re: "Struts2 + Spring + ibatis" vs. "Struts2 + Spring + Hibernate"

2009-11-26 Thread Saeed Iqbal
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