html:button

2007-02-25 Thread Strachan, Paul
Hi, I realise this is probably not a struts problem and I feel a bit silly posting this question but here goes: I'm using html:button with EventDispatchAction but my button properties do not appear in the request - the html source fragment goes something like: function doEdit(id) { docu

Re: What to use instead of tiles in Struts2?

2007-02-25 Thread Dariusz Wojtas
If Tiles is problematical - try Sitemesh. It will take few hours to learn it and configure (when you do it for the 2nd time - it takes 30 minutes). I use it without problems with S2. I used Tiles in the past, after finding Sitemesh about a year ago I would never switch back to Tiles. Maybe if prod

Re: [DESIGN] struts dialog / wizard

2007-02-25 Thread Madhav Bhargava
You can also have a look at easy wizard http://superinterface.com/easywizard.htm ~madhav On 2/26/07, Tom Schneider <[EMAIL PROTECTED]> wrote: Mark Menard has done some work in this area for struts2: http://www.vitarara.org/cms/node/84 For webwork I implemented something similar called a model

Re: struts.xml problem

2007-02-25 Thread alex xander
for sure, i already put struts2-core-2.0.6.jar in my lib folder and inside that, there is struts-default.xml in the root folder if i remove my struts-pensiun.xml and put into just struts.xml everything work fine. is there any bug in this release. thx Adam Ruggles <[EMAIL PROTECTED]> wrote: Can yo

Re: struts.xml problem

2007-02-25 Thread Adam Ruggles
Can you confirm that you have struts2-core-2.0.6.jar in you lib folder and it contains the struts-default.xml file in the root folder in the jar file. alex xander wrote: hi, im using struts 2.x and i have some problem here. i break up my struts.xml into smaller piece when i used struts 2.0.1

struts.xml problem

2007-02-25 Thread alex xander
hi, im using struts 2.x and i have some problem here. i break up my struts.xml into smaller piece when i used struts 2.0.1 it works fine, but when i change into struts 2.0.6 there is some problem and here is the problem my struts.xml ... struts-pensiun.xml

The performance issue about OGNL

2007-02-25 Thread Shuai Zheng
Dear All, I am using struts 2.0.6, but honestly the performance is very bad (not need to think about scalability), to speed to load a simple page is much slower than pure JSP (I haven't compared with struts 1). To refresh one page it is 3-5 seconds with only one user. The profiler tells me the OG

Re: What to use instead of tiles in Struts2?

2007-02-25 Thread Ray Clough
I have been unable to get Tiles to load successfully at all, following the simple instructions on the web site: http://struts.apache.org/2.x/docs/tiles-plugin.html. Are those instructions correct/complete? They are incorrect on at least one point. The first point mentioned specifies to decl

[Struts2] How to set a redirect action to https?

2007-02-25 Thread Neil Aggarwal
Hello: In Struts 2, I am trying to figure out how to redirect a user to https when they make a request using http. When I try to do the redirect, I get this error: Not Found The requested URL /https://tweb.retcgroup.com/thymeleweb/login.action was not found on this server. Here is my struts.xml

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Creating a service object seems to have worked. Now I'm going to have to re-think using action support. This project is not complicated enough to warrant another layer. Thanks for your help. Paul Benedict wrote: Adam, I have never seen anyone attach Spring transactional logic to an action

[OT] Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Dave Newton
--- Paul Benedict <[EMAIL PROTECTED]> wrote: > I have never seen anyone attach Spring transactional > logic to an action, and called DAOs straight from the > action. That's not good practice, because it mashes > web, business, and data layers all in one place. Here's my question/comment: to me it

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
I'll give that a try, thanks. Paul Benedict wrote: Adam, I have never seen anyone attach Spring transactional logic to an action, and called DAOs straight from the action. That's not good practice, because it mashes web, business, and data layers all in one place. I wouldn't blame struts h

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Paul Benedict
Adam, I have never seen anyone attach Spring transactional logic to an action, and called DAOs straight from the action. That's not good practice, because it mashes web, business, and data layers all in one place. I wouldn't blame struts here (yet). I'd first move your code into a service ob

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Yes, I tried both methods. For whatever reason when I extend ActionSupport it no longer works. Dave Newton wrote: Does it do the same thing if you don't explicitly declare the bean (put the classname directly in the struts.xml file)? Just curious... I don't have direct experience with what yo

Re: Internationalization -- Issue with Japanese Characters

2007-02-25 Thread Paul Benedict
Laurie, You're technically right. However, I've seen more and more people (including myself) make their property files straight UTF-8, and specify the encoding type when the stream is created. So if you're willing to do a few more hoops, you can have it in any other encoding you desire: http

Re: What to use instead of tiles in Struts2?

2007-02-25 Thread Dave Newton
--- Neil Aggarwal <[EMAIL PROTECTED]> wrote: > Is there another way of doing similar functionality > on struts2? A lot can be done with the tag. That said, I have had essentially zero problems with the Tiles plugin and have been using it successfully for some months now. d. ___

What to use instead of tiles in Struts2?

2007-02-25 Thread Neil Aggarwal
Hello: The tiles plugin for struts2 is labeled experimental. Is there another way of doing similar functionality on struts2? Thanks, Neil -- Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for deta

Re: [DESIGN] struts dialog / wizard

2007-02-25 Thread Tom Schneider
Mark Menard has done some work in this area for struts2: http://www.vitarara.org/cms/node/84 For webwork I implemented something similar called a model repository. The problem that's being solved is that when the domain model reaches a certain complexity, using the null instantiation feature a

Re: Internationalization -- Issue with Japanese Characters

2007-02-25 Thread Laurie Harper
The most obvious problem is this: > 1. Storing the Japanese text as Unicode in property > files Property files must be encoded as ASCII with Unicode escapes for non-ASCII characters. Storing them as UTF-8 is not supported and will not work. Use the 'native2ascii' tool that comes with the JKD

Re: [DESIGN] struts dialog / wizard

2007-02-25 Thread Paul Benedict
How often do people develop wizards with Struts? I have a custom form/action which allows me to do that. Perhaps I should think about putting it into Struts 1.4? Strachan, Paul wrote: Hi, I'm looking at implementing a struts wizard flow (of about 12 pages) into my struts-1.2.9 application.

Re: ActionForm is null

2007-02-25 Thread Paul Benedict
Assuming Struts 1.x, Action Forms are null when the "name" attribute, which specifies the form, is omitted. Forms are optional for actions. Paul Dave Newton wrote: I'm glad you fixed your problem. --- Monkeyden <[EMAIL PROTECTED]> wrote: If I knew exactly what to tell you, I would likely kno

[DESIGN] struts dialog / wizard

2007-02-25 Thread Strachan, Paul
Hi, I'm looking at implementing a struts wizard flow (of about 12 pages) into my struts-1.2.9 application. The struts dialogue project seems to be along the lines of what I need (pattern-wise). I have some extra quirements such as: 1. A progress menu (synch with the wizard) 2. Some pages hav

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Dave Newton
Does it do the same thing if you don't explicitly declare the bean (put the classname directly in the struts.xml file)? Just curious... I don't have direct experience with what you're doing. --- Adam Ruggles <[EMAIL PROTECTED]> wrote: > Ok I think I found the problem. If I remove the > "extends

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Ok I think I found the problem. If I remove the "extends ActionSupport" it works without any problems. I know "extends ActionSupport" works with Webwork 2, is this a bug or a change in implementation? Adam Ruggles wrote: I am following the guide here http://cwiki.apache.org/S2WIKI/struts-2-s

NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
I am following the guide here http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html For some reason when trying to map a method other than execute I recieve the following error: - Servlet.service() for servlet default threw exception java.lang.NoSuchMethodException: $Proxy18.find() B

Re: ActionForm is null

2007-02-25 Thread Dave Newton
I'm glad you fixed your problem. --- Monkeyden <[EMAIL PROTECTED]> wrote: > If I knew exactly what to tell you, I would likely > know enough to fix it. Most people seem to find that posting relevent portions of the config file(s) in question and isolated code chunks to be a reasonable place to st

Re: ActionForm is null

2007-02-25 Thread Monkeyden
If I knew exactly what to tell you, I would likely know enough to fix it. Turns out I did. The root cause of the problem, and the solution, had nothing todo with Struts. On 2/25/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Monkeyden <[EMAIL PROTECTED]> wrote: > Im using Struts 1.2.9 on Tomca

Re: [S2] Struts 2.0.6 questions

2007-02-25 Thread Ted Husted
The website link skipped over the 2.0.6 notes. It's fixed now. http://struts.apache.org/2.0.6/docs/release-notes-206.html * The experimental "new API" has been removed, in favor of continued research in the 2.1.x series. -T. On 2/25/07, Dariusz Wojtas <[EMAIL PROTECTED]> wrote: Hi, I've been

1.2.9 html:action

2007-02-25 Thread Jim Reynolds
Hello, I am using the following in a jsp view: And the source renders: Which works, but the source no longer gives me a like the 1.2.4 that I was used to using. If there anyway I can get that to work? Thanks,

Re: ActionForm is null

2007-02-25 Thread Dave Newton
--- Monkeyden <[EMAIL PROTECTED]> wrote: > Im using Struts 1.2.9 on Tomcat 4.1.31. Somehow, my > form is null within my Action. That's not much to go on. d. Need Mail bonding? Go to the Yahoo! Mail Q&A f

Struts2 : TypeConverter and Null Values

2007-02-25 Thread Sami Dalouche
Hi, Let's consider we have a S2 select box that is not required (s:select required="false" ). The property to which it is bound can be null. However, by default, Struts2 complains using the invalid field error message. One way to circumvent this would be, I guess, to use some NullSafeTypeConvert

ActionForm is null

2007-02-25 Thread Monkeyden
Im using Struts 1.2.9 on Tomcat 4.1.31. Somehow, my form is null within my Action. It's even null at the level FormBeanConfig.formBeanClass() is called. The type, returned by FormBeanConfig.getType(), returns the correct String, but the call to classLoader.loadClass(getType()) fails to load the

[S2] Struts 2.0.6 questions

2007-02-25 Thread Dariusz Wojtas
Hi, I've been hapily using Struts for some time, most recently the 2.0.5 snapshot. Today I downloaded 2.0.6GA, and that raises a question: * where did the struts2-api.jar go? Are it's interfaces/classes still in use? What interfaces to use now if 'Validatable' and others are not present? Al

Re: [OT] Re: [s2] Groovy Actions in Struts 2

2007-02-25 Thread Ted Husted
Most often, the Actions work as an adapter between a view layer and a general-purpose business facade. Because the Actions select a token indicating a result, the Actions tend to be bound to some type of navigational system. A classic Action passes input values to the business facade, and the busi

Offtopic netbeans

2007-02-25 Thread Martin Gainty
O/T query Which version of netbeans allows one to add a new tomcat server ? Apologies for the O/T post! M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which

Re: [S2] struts2 validation for only one method in action

2007-02-25 Thread reijnemans
cilquirm wrote: > > I believe you can use validation annotation to specify validation routines > at the method level. > > > > > ros wrote: >> >> Hi! >> >> How to configure struts2 validation for only one method in action? >> >> Thanks. >> > > You can disable one action with the annot

Re: how to read request parameter in windows-1257 encoding

2007-02-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ros, ros wrote: > I have to read form post in windows-1257 encoding. > The request field AAA should be PAĻIV but it is PA?V > > How I can read special characters like Ļ Ā Ī and others? Where are you seeing the string "PA?V" If you are seeing it in a

Re: form submission problem

2007-02-25 Thread Nuwan Chandrasoma
hi, i think the error is in your javascript, is there a form field called actionName in your form?, try altering your javasript like this and see function doSubmit(actionString){ alert(actionString); currentForm = document.forms[0]; alert(currentForm); alert(currentForm.actionName); currentFor

form submission problem

2007-02-25 Thread kalyan namburi
hi, i have a drop down list which contains services available. when you select any option from it calls the doSubmit method in javascript <% String submitString = "doSubmit('" + SELECT_SERVICE + "');"; %> The doSubmit is as below function doSubmit(actionString){ alert(actionString); currentFor