Use of JavaScipt in JSP pages using Struts2 tags

2009-03-19 Thread arya84
Hi All, I am new to Struts2 and Web Development too. I read few tutorials about Struts2 but I am little confused about the way its should be used in the presentation part. I am using Struts2 tags for creating the User Interface but I am not sure about the use of JavaScript or Action/Interceptors

Re: Greybox Ajax box with struts2

2009-03-19 Thread Chris Pratt
The easiest thing might be to just define an action for it. Something like: scripts/greybox/loader_frame.html might do the trick. (*Chris*) On Thu, Mar 19, 2009 at 8:51 PM, foward wrote: > > Hello, > > I have one question :), I want to integrate the greybox ajax box ( > http://orangoo.c

Greybox Ajax box with struts2

2009-03-19 Thread foward
Hello, I have one question :), I want to integrate the greybox ajax box ( http://orangoo.com/labs/GreyBox/ http://orangoo.com/labs/GreyBox/ ) with my webapp in struts2 but appears that in the webserver : There is no Action mapped for namespace /scripts/greybox and action name loader_frame bec

Re: struts 2.1.6 verbose logging

2009-03-19 Thread Musachy Barroso
I didnt explain what the fix does, there is a new setting "struts.el.throwExceptionOnFailure" which when set to true, will cause missing properties, or exceptions thrown from OGNL expression evaluations, to throw an exception and "break" the page. This will only happen in S2 tags, not JSTL. Some t

Re: REST Plugin only for some actions

2009-03-19 Thread Dale Newfield
Radoslav Krivak wrote: could someone advise me how to configure REST plugin so that only some actions will be "processed" by it. I do not want all actions to use REST url scheme and url->method mapping. I built something I call NamespaceBasedActionMapper that allows you to specify different ac

invoking methods with parameters within a FreeMarker template

2009-03-19 Thread Allen Lee
I can't seem to figure out how to invoke a method with a single parameter (declared in my action class) within a freemarker page in Struts 2. Is this possible? The issue I'm facing is that I need to iterate through a collection of elements and then dynamically generate some data based on each ele

Re: struts 2.1.6 verbose logging

2009-03-19 Thread Musachy Barroso
Patch committed to trunk. https://issues.apache.org/struts/browse/WW-3051 musachy On Wed, Mar 18, 2009 at 3:09 PM, Musachy Barroso wrote: > When a property is not found, it is logged, which causes all those > warnings, as for myself I find them very annoying. I have a patch > somewhere collectin

Re: Struts2 + JQuery Plugin

2009-03-19 Thread Wes Wannemacher
On Thursday 19 March 2009 18:32:52 Hemal Shah wrote: > Hi, > I want to use JQuery with Struts 2. > I did search and found jQuery plugin at http://code.google.com/p/s2jquery > > Is anyone aware about other jQuery plugins? > Could anyone please recommend me which jQuery plugin I should use? > > Thank

REST Plugin only for some actions

2009-03-19 Thread Radoslav Krivak
Hi, could someone advise me how to configure REST plugin so that only some actions will be "processed" by it. I do not want all actions to use REST url scheme and url->method mapping. Another issue that I have with REST plugin is that after adding it to my application config-browser plugin stoppe

Struts2 + JQuery Plugin

2009-03-19 Thread Hemal Shah
Hi, I want to use JQuery with Struts 2. I did search and found jQuery plugin at http://code.google.com/p/s2jquery Is anyone aware about other jQuery plugins? Could anyone please recommend me which jQuery plugin I should use? Thanks in advance. Regards, Hemal Shah

Re: Struts2 and scrambled query string.

2009-03-19 Thread Dave Newton
Leena Borle wrote: I want to know if anybody used scrambled query string with Struts2 and how to do it. E.g. if I call some action like http://./ShowProducts.action?id=23&dept=5 etct. etc, I want the query string to be scrambled so that it does not show my database ids in the browser. IIR

Re: File upload, validation and Preparable

2009-03-19 Thread Dave Newton
Greg Lindholm wrote: I've discovered that in the standard interceptor stack "fileUpload" is after "prepare" interceptor. This means that the upload File, ContentType, and FileName setters have not been called before prepare() method runs. Is there a good reason for this? It seems like fileUploa

Re: s:textfield with value attribute

2009-03-19 Thread Dave Newton
boraldo wrote: I thought that this attribute means only initial value, but when I submitted my form with validation errors, on the redisplayed form I saw again that value, not entered by me. What for this attribute then ? And how can I set just initial value for my form? If there's a "value" a

RE: redirect parameters lost when using convention plugin 2.1.6

2009-03-19 Thread John Liptak
Great. That fixed my problem. I also had a typo in one of my other attempts and this explains what happened. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Wednesday, March 18, 2009 7:42 AM To: Struts Users Mailing List Subject: Re: redirect parameters lost wh

Re: Type conversion exceptions

2009-03-19 Thread ryangr
Well I'll be damned...it's working! It looks like the solution was to remove the *-conversion.properties entries and then change this in SettingAction: public void setSettings(SettingList settings) { this.settings = settings; } public SettingList getSettings() { return settings; } to:

RE: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Martin Gainty
in your jsp your reference to struts tags associates prefix 's' to uri "struts-tags" <%...@taglib prefix="s" uri="/struts-tags" %> http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";> 2.2.3 1.2 s /struts-tags "Struts Tags" .. textfield

RE: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Kra, Aime yao (TEK System)
Thank a lot. It is working after I add the tag <%@ taglib prefix="s" uri="/struts-tags"%> On top of the jsp that are included into the base.jsp. Thanks. Aimé Kra -Original Message- From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] Sent: Thursday, March 19, 2009 1:40 PM To: Stru

Re: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Nils-Helge Garli Hegvik
Does the pages you're including have the struts tlds defined? If not, they should. Nils-H On Thu, Mar 19, 2009 at 6:33 PM, Kra, Aime yao (TEK System) wrote: > Here are the tiles definitions > > --- tiles-def.xml-- > > > Configuration 2.0//EN" > "http://jaka

RE: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Kra, Aime yao (TEK System)
Here are the tiles definitions --- tiles-def.xml-- http://jakarta.apache.org/struts/dtds/tiles-config_2_0.dtd";>

Re: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Nils-Helge Garli Hegvik
And what about the content JSP that contains the code that doesn't work? Nils-H On Thu, Mar 19, 2009 at 5:22 PM, Kra, Aime yao (TEK System) wrote: > Below is the jsp > > --snip - > <%@ page contentType="text/html; charset=UTF-8"%> > <%@ tag

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread Wes Wannemacher
In theory, an app should work on any app server, but from time to time I've found out about incompatibilities the hard way. For instance, Tomcat doesn't look to favorably on unclosed scriptlet tags... We found out the hard way that Tomcat doesn't compile a page when your page ends w/o the scriptlet

RE: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Martin Gainty
the tlds ? Martin __ Verzicht und Vertraulichkeitanmerkung / Disclaimer and confidentiality note Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitu

Re: Parameters in URL

2009-03-19 Thread cheeran
My company virus scanner prevents me from putting xml here. When I use s:url and add parameters using s:param and set the URL as href to sx:a , an ajax anchor tag, I get the following error. I get two sets of values for each action parameters comma separated. One the value I sent via s:param. 2 -

Re: Parameters in URL

2009-03-19 Thread Jim Kiley
I'm having an extremely hard time understanding what you are asking here. I think you may have been trying to paste something into your message but failed to paste it in, or something. Can you be clearer about what you are asking for? jk On Thu, Mar 19, 2009 at 12:34 PM, cheeran wrote: > > I u

Re: Parameters in URL

2009-03-19 Thread cheeran
I use struts 2.1.6, follow both struts.properties and includeParams="none". The paramter in action class comes as valuea, valueb where valueb is the default form value. I use sx:a to assign a target to the link. Any other reason ? I use this in a tab panel tab page. Thanks, Santhosh -- View t

RE: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Kra, Aime yao (TEK System)
Below is the jsp --snip - <%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles"%> <%@ taglib prefix="s" uri="/struts-tags"%> Claims Home

Re: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Nils-Helge Garli Hegvik
What does the JSP look like? Does it include the taglib definition? Nils-H On Thu, Mar 19, 2009 at 5:14 PM, Kra, Aime yao (TEK System) wrote: > Struts 2 tags are not translate into HTML when I add tile to my application. > When I use View source of my browser, I still can see the struts 2 tags i

struts2 iterator list mapping --ReST

2009-03-19 Thread xnpeng
in struts2-REST environment,i cannot run struts2/showcase/person example. in struts2/showcase/person,there is a : ID First Name Last Name

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread stanlick
Right on my bro! I'll hop the source when I get back to that machine. However, if the code deployed to TC 6.x works fine and the *same* code deployed to Jetty 6.x does not, this seems whack. The application runs on Jetty (sort of) but things are whack. If I had been taking advantage of anything

get client IP address in action using tomcat SSI

2009-03-19 Thread Gabriel.G
Hi all. I'm developing a web app using struts 2 + freemarker + tomcat 6. I WANT: I want to get client ip address during loggin process, not using request.getRemoteAddr (it's not accurate when exist proxies and other network devices) I know there is a better method using SSI (server side includes

RE: File upload, validation and Preparable

2009-03-19 Thread Kawczynski, David
I'm pretty sure you can't prepopulate input tags whose type=file. This is html4 and has nothing to do with struts. -Original Message- From: Greg Lindholm [mailto:glindh...@yahoo.com] Sent: Wednesday, March 18, 2009 4:17 PM To: user@struts.apache.org Subject: Re: File upload, validation a

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread Nils-Helge Garli Hegvik
Showing us the JSP and the error message would probably help... Nils-H On Thu, Mar 19, 2009 at 3:12 PM, wrote: > I have a JSP fragment that compiles on TC 6.x but will not in Jetty 6.x. > > On Thu, Mar 19, 2009 at 8:27 AM, Nils-Helge Garli Hegvik > wrote: > >> Me too. Never had problems with Je

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread stanlick
I have a JSP fragment that compiles on TC 6.x but will not in Jetty 6.x. On Thu, Mar 19, 2009 at 8:27 AM, Nils-Helge Garli Hegvik wrote: > Me too. Never had problems with Jetty. > > On Thu, Mar 19, 2009 at 2:11 PM, Musachy Barroso > wrote: > > I always test stuff on jetty and it works fine, show

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread Nils-Helge Garli Hegvik
Me too. Never had problems with Jetty. On Thu, Mar 19, 2009 at 2:11 PM, Musachy Barroso wrote: > I always test stuff on jetty and it works fine, showcase at least, > what is the problem you are having? > > musachy > > On Wed, Mar 18, 2009 at 8:00 PM, stanlick wrote: >> >> Guys -- >> >> I have a

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread Musachy Barroso
I always test stuff on jetty and it works fine, showcase at least, what is the problem you are having? musachy On Wed, Mar 18, 2009 at 8:00 PM, stanlick wrote: > > Guys -- > > I have a loaded (Hibernate, Spring, Tiles) S2.1.6 application running on TC > 6 and I want to speed up the development c

s:textfield with value attribute

2009-03-19 Thread boraldo
I thought that this attribute means only initial value, but when I submitted my form with validation errors, on the redisplayed form I saw again that value, not entered by me. What for this attribute then ? And how can I set just initial value for my form? -- View this message in context: http:

advanced dateTimePicker

2009-03-19 Thread Sandy.Verfaille
Hi, Does someone knows an advanced dateTimePicker? For example: - An attribute 'available dates' of type list, that enables the dates in the list and disables others? - Coupling a struts action to when you click on one or more dates on the calendar. - Not in a dropdown, but simply a calendar o

Re: Pagination with struts 2.x

2009-03-19 Thread Chris Pratt
One very popular option is DisplayTag (http://www.displaytag.org/). (*Chris*) On Wed, Mar 18, 2009 at 11:08 PM, mahanare wrote: > > Hi, > > What is the best approach to display database table content page wise using > struts 2? > > We used display tag few years back, but there seems another ta