Re: tags

2007-05-14 Thread Nuwan Chandrasoma
http://struts.apache.org/1.2.9/userGuide/struts-bean.html - Original Message - From: "jalal udeen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 15, 2007 6:25 AM Subject: tags hi wat is tag to use retrive value from the request and how to as

tags

2007-05-14 Thread jalal udeen
hi wat is tag to use retrive value from the request and how to assign to a variable and how to display it example: i) if i have set the value in action class as request.setAttribute("myvar","myvar"); 2) how can i g

Re: Requests from a Struts Newbie

2007-05-14 Thread Wendy Smoak
On 5/14/07, Giesen Giesen <[EMAIL PROTECTED]> wrote: From http://struts.apache.org/2.x/docs/hello-world.html, I see: import com.opensymphony.xwork2.ActionSupport; This doesn't compile and I can't find this package anywhere. I'm guessing that is older WebWork code and hasn't been updated to the

Re: Requests from a Struts Newbie

2007-05-14 Thread Victor Neo
Hi Kenton, import com.opensymphony.xwork2.ActionSupport; is valid. You might want to ensure that you have the correct JAR files. You can always get the http://struts.apache.org/download.cgi#struts206 blank struts 2 project with all the necessary libraries. Kenton wrote: > > From http://str

Requests from a Struts Newbie

2007-05-14 Thread Giesen Giesen
From http://struts.apache.org/2.x/docs/hello-world.html, I see: import com.opensymphony.xwork2.ActionSupport; This doesn't compile and I can't find this package anywhere. I'm guessing that is older WebWork code and hasn't been updated to the newer package hierarchy. Could you guys update the t

Re: Action tag with lots of params???

2007-05-14 Thread Felipe Rodrigues
That's the Big Deal! If I use and a anchor , this would work. The problem here is I must call this action and send these params when I get OnBlur of some . I'm calling a JavaScript function that redirect to a JSP and trying to use this to send the params. A dummie question. You said ParameterAw

Re: Problems getting started with Tiles2/S2

2007-05-14 Thread Mansour
Still not working. When I added this to struts.xml no action worked. I get error 404 on all my actions. class="org.apache.struts2.views.tiles.TilesResult" default="true" /> test I am getting really confused. I have another ques

Re: Problems getting started with Tiles2/S2

2007-05-14 Thread Shahak Nagiel
You also need to add the following to struts.xml: and then for some action foo: test Then point to /foo.action - Original Message From: Mansour <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, May 14, 2007 9:59:41 PM Subject: Re: Problems getting sta

Re: Problems getting started with Tiles2/S2

2007-05-14 Thread Mansour
I just tried it. I added this to tiles.xml And pointed my browser to http://localhost:8080/ProjTiles/pages/test . I got error 404. any idea Shahak Nagiel wrote: 1) You do need to configure a tile for every page, but since tile

Re: Problems getting started with Tiles2/S2

2007-05-14 Thread Mansour
Sorry Dave, but I don't understand what you mean by every result needs a definition. Can you give me an example please ? Do you mean for every single page on the site I need a definition ? And for each single action ? What do I put in the body ? The page I need to display ? if so, what's the po

Re: Problems getting started with Tiles2/S2

2007-05-14 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > but it seems to me that I have to configure it for > each single page which doesn't make sense to me. Every result that is a tile will have a corresponding tile definition, otherwise how else would it know what the tile was? > > templat

Re: Problems getting started with Tiles2/S2

2007-05-14 Thread Shahak Nagiel
1) You do need to configure a tile for every page, but since tile definitions use inheritance, it's not a big deal. You just define what's unique to that page (typically the page title and the body content, but can obviously be other things as well). Here's what you're missing: In tiles.xml:

Re: Problems getting started with Tiles2/S2

2007-05-14 Thread Mansour
I followed every single step in this email. and couldn't get tiles to work properly. I am not getting any error but the pages are displaying the way they are with no header added. I am not sure how tile works but it seems to me that I have to configure it for each single page which doesn't make

Re: Action tag with lots of params???

2007-05-14 Thread Dave Newton
--- Felipe Rodrigues <[EMAIL PROTECTED]> wrote: > I'm not so sure about OGNL purpose and syntax. http://struts.apache.org/2.x/docs/ognl.html http://struts.apache.org/2.x/docs/ognl-basics.html In theory EL expressions *should* go to the OGNL stack if they're not found in scope. > Any other idea?

Re: Action tag with lots of params???

2007-05-14 Thread Felipe Rodrigues
I'm not so sure about OGNL purpose and syntax. That's why I'm using EL. I got some cases where I had problem when using OGNL, so I had to change to EL. I'm sure that anything that EL does, OGNL can do too, but I don't know exactly how to do that. Anyway, I can try it with OGNL. Any other idea?

Re: [S2] Interceptor annotations

2007-05-14 Thread Dave Newton
--- Shahak Nagiel <[EMAIL PROTECTED]> wrote: > I'm not sure exactly what you're asking, but yes. > For example, the Before and After annotations, as > well as all of the validator annotations. I would have thought he was talking about actual interceptor refs, to define an interceptor stack for an

Re: Action tag with lots of params???

2007-05-14 Thread Dave Newton
--- Felipe Rodrigues <[EMAIL PROTECTED]> wrote: > Nobody have any idea? Is there any particular reason you're not using OGNL EL in the value attributes? I don't know that that's the problem, but it makes me nervous. d. > > > > > > > > value="${foraMedia}" /> > > /> > >

Re: [S2] Interceptor annotations

2007-05-14 Thread Shahak Nagiel
Sorry, the links in my email didn't propagate through: Before: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/annotations/Before.html After: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/annotations/After.html Validat

Re: [S2] Interceptor annotations

2007-05-14 Thread Shahak Nagiel
I'm not sure exactly what you're asking, but yes. For example, the Before and After annotations, as well as all of the validator annotations. We've also implemented our own SSLInterceptor class that gets invoked if the action class uses a custom @SSLProtected annotation using the following logi

Re: Action tag with lots of params???

2007-05-14 Thread Felipe Rodrigues
Nobody have any idea? []'s Felipe Felipe Rodrigues wrote: > > Hi Guys, > > Is it possible? > When I try that, my action only set the varId and don't even call the > others set methods. How do something like that? > > > > > > > > > Thanks, > > Felipe > -- View this me

[S2] Interceptor annotations

2007-05-14 Thread Guilherme
Hi, There is a way to configure interceptor via annotations ? or this feature is not available yet ? Thanks! -- Att Guilherme Mello do Nascimento PortalJava.com - A maior comunidade Java do Brasil

S2 validation i18n message params?

2007-05-14 Thread Jon Wilmoth
The message element in http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd allows for a key to be specified, but how is one supposed to provide i18n parameters with Struts2 (e.g. actual max length of a field)? - To unsu

Re: Preparable interface & getLocale(

2007-05-14 Thread Torsten Römer
Alright, thanks! I should have a look at that interceptor stack stuff anyway, seems to be very powerful! Torsten Musachy Barroso schrieb: > Yep, Dave is right. I can't think of any reason why the i18 interceptor > wouldn't be first, but hey, it is friday! Anyway, as a workaround you can > make yo

RE: [S2] UTF8 with ajax results

2007-05-14 Thread LAMY Olivier
Hi, If you use tiles take care of this https://issues.apache.org/struts/browse/WW-1724 . -- Olivier -Message d'origine- De : Julien Leonard [mailto:[EMAIL PROTECTED] Envoyé : lundi 14 mai 2007 16:44 À : Struts Users Mailing List Objet : Re: [S2] UTF8 with ajax results Specify struts.i

RE: [S2] Slow s:url execution

2007-05-14 Thread Jordi Rubio Moreno
Hi Musachy, I'm installing TPTP plugin for Eclipse to control the project execution. When I have more information I'll send you :) ATM I can say the ArrayList offers has only 10 Offer objects. Cheers! Jordi Rubio Moreno -Mensaje original- De: Musachy Barroso [mailto:[EMAIL PROTECTED

Re: [s2] package and namespace info

2007-05-14 Thread Victor Neo
Found this in the S2 documentation: http://struts.apache.org/2.x/docs/package-configuration.html S2 Package Configuration >From the page: Packages are a way to group actions, results, result types, interceptors, and interceptor-stacks into a logical configuration unit. Conceptually, packages ar

Re: [s2] package and namespace info

2007-05-14 Thread Pedro Herrera
NameSpace is clear to me, but In wich cases I must use packages ? (struts.xml) Herrera Victor Neo wrote: > > What do you mean by "to better use packages and namespaces"? > > Here are a couple of links that might help: > http://struts.apache.org/2.0.6/struts2-core/apidocs/index.html Struts 2

[S2] Could not locate dispatcher for ${location}

2007-05-14 Thread Kalyan Sarkar
Hi, I am new to both Struts 2 and portlet. I'm getting the following exception whenever my action returns... 20:00:27,031 ERROR [Jsr168Dispatcher] Could not execute action javax.portlet.PortletException: Could not locate dispatcher for '${location}' The stacktrace also shows... 20:00:27,359 ERR

Re: [S2] UTF8 with ajax results

2007-05-14 Thread Julien Leonard
Specify struts.i18n.encoding in the strus.xml doesn't solve the problem. But I've tried a lot of thing, and I have finally solved the problem.: If I use a result standart, which forward on a JSP, it doesn't work. But if I use a tiles result with an empty template, it works. So, if I want UTF8 s

Re: [S2] UTF8 with ajax results

2007-05-14 Thread Musachy Barroso
Try setting struts.i18n.encoding in struts.properties or struts.xml musachy On 5/14/07, Julien Leonard <[EMAIL PROTECTED]> wrote: I've just tried it. And there is the same encoding problem. So you're write, it doesn't come from ajax. I can't put because there is no header. Where can be the

Re: Persistent Database Object

2007-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Asaf, Asaf Paris Mandoki wrote: > I'm planning to make an application that uses a MySQL Database. > > Should I have a persistent object with a persistent connection to the > database or is it better to create the connection each time i use it? It re

Re: [S2] UTF8 with ajax results

2007-05-14 Thread Julien Leonard
I've just tried it. And there is the same encoding problem. So you're write, it doesn't come from ajax. I can't put because there is no header. Where can be the problem? Julien 2007/5/14, Musachy Barroso <[EMAIL PROTECTED]>: Did you try hitting the action with a regular request, what is the

Re: [S2] Slow s:url execution

2007-05-14 Thread Musachy Barroso
AFAIK There shouldn't a huge difference. You could setup a profiler and see where the bottleneck is on the jsp tags version. By the way how many items does "offers" have? musachy On 5/14/07, Jordi Rubio Moreno <[EMAIL PROTECTED]> wrote: Hi, I'm testing s:iterator and s:url tags vs #foreach an

Re: [S2] UTF8 with ajax results

2007-05-14 Thread Musachy Barroso
Did you try hitting the action with a regular request, what is the encoding? For struts, an ajax request is not different from a regular request. musachy On 5/14/07, Julien Leonard <[EMAIL PROTECTED]> wrote: Hello all, I have a problem with characters encoding in ajax results. In fact I have

Re: [S2] What does tabbedpanel "name" do?

2007-05-14 Thread Musachy Barroso
Sadly it doesn't do anything :). Some attributes are in all the tags (onX for exampl), and some of them are not used in some tags. For 2.1 we've been trying to remove on the ajax plugin (technically, dojo plugin) all those extra attributes. musachy On 5/14/07, Jason Wyatt <[EMAIL PROTECTED]> wro

Re: [S2] How to refresh "remote" tabbedpanels on user entry?

2007-05-14 Thread Musachy Barroso
A "preload" attribute was added to fix this. It won't me available until 2.1 https://issues.apache.org/struts/browse/WW-1860 regards musachy On 5/14/07, Jason Wyatt <[EMAIL PROTECTED]> wrote: The docs for tabbedpanel at http://struts.apache

[S2] Slow s:url execution

2007-05-14 Thread Jordi Rubio Moreno
Hi, I'm testing s:iterator and s:url tags vs #foreach and #surl velocity tags, and my surprise is that Struts s:url tag is "slower" than #surl invocation. When I work with Velocity, the test page is rendered immediately, but when I execute the same test (in the same machine and Tomcat) with s:url

[S2] UTF8 with ajax results

2007-05-14 Thread Julien Leonard
Hello all, I have a problem with characters encoding in ajax results. In fact I have a jsp wich displays a Search UI with well encoding labels. When the search is submited a div is updated thank to the targets attribute of the submit tag. The result displayed isn't in UTF-8 ! All my .properties

Re: Struts 2

2007-05-14 Thread Dave Newton
--- Anshul Khare <[EMAIL PROTECTED]> wrote: > I want to retrieve things like ContentType, File Name > etc which was possible in struts 1.1 using methods > like getContentType(), getFileName() on FormFile > Object. > > How do I accomplish the same in Struts 2 ? http://struts.apache.org/2.x/docs

Re: tags doubt

2007-05-14 Thread Antonio Petrelli
2007/5/14, jalal udeen <[EMAIL PROTECTED]>: hi wat is tag to use retrive value from the request and how to assign to a variable and how to display it example: i) if i have set the value in action class as request.setAttribut

tags doubt

2007-05-14 Thread jalal udeen
hi wat is tag to use retrive value from the request and how to assign to a variable and how to display it example: i) if i have set the value in action class as request.setAttribute("myvar","myvar"); 2) how can i g