Re: Confused about upgrading Apache Struts

2018-04-19 Thread Alex Choi
umentation and so-on. As Dave mention before, if you need help with understanding these documents you should consult with the application developers or your application vendor. I hope this helps. Alex On Wed, Apr 11, 2018, 1:25 PM Dave Newton, wrote: > On Wed, Apr 11, 2018 at 3:32 PM Sean S

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Alex Choi
; > Dave > > On Fri, Jan 13, 2012 at 7:08 PM, Alex Choi wrote: > > > I'm wondering if the Struts User community would be interested in have > > separate mailing lists for Struts 1 and Struts 2 topics? > > > > On 13 January 2012 11:18, Dave Newton wrote: &

Re: admins, can you add something like [struts] before every subject

2012-01-13 Thread Alex Choi
I'm wondering if the Struts User community would be interested in have separate mailing lists for Struts 1 and Struts 2 topics? On 13 January 2012 11:18, Dave Newton wrote: > I think we've given up on that one. > > On Fri, Jan 13, 2012 at 1:51 PM, Gabriel Belingueres > wrote: > > > Harder to fil

Re: How can I write a custom tag?

2011-12-30 Thread Alex Choi
Yes you can define a custom JSP tag by using Java Tag Library Definition or TLD and your own Tag Handler Java code. Here's a link to help you to get started, http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags5.html As rabbitwkx pointed out, there's lots of info available on the Internet to

Re:..

2011-05-18 Thread alex zaim
http://www.benesseretotale.com/cool01.11.php?ID=487 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Action validation is being performed when it shouldn't

2011-04-30 Thread Alex Barnes
thods. I'm not sure why the presence of the @Transactional annotations on the action class caused this problem but it seems to have been solved by moving them. Cheers, Alex On 29 April 2011 21:09, Alex Barnes wrote: > Chris, > > Thanks for the reply. I think this is the Validatio

Re: Action validation is being performed when it shouldn't

2011-04-29 Thread Alex Barnes
that the validate() method was not being called when the execute() method was invoked when it wasn't before. I had all of this working a few days ago. I've spent so long trying to work out what is wrong that I have a headache :( Alex On 29 Apr 2011, at 20:45, Chris Pratt wrote: > execute

Action validation is being performed when it shouldn't

2011-04-29 Thread Alex Barnes
e the expected annotations? Thanks, Alex

Re: SEVERE: Exception starting filter struts2

2011-04-26 Thread alex zaim
nly not Struts, just like the exception indicates. Dave On Apr 26, 2011 8:52 AM, "alex zaim" wrote: > Hello. I'm trying to make a simple hibernate setup, but i encounter an error when i start the server (Apache). > > Apr 26, 2011 3:20:18 PM org.apache.catalina.core.Sta

SEVERE: Exception starting filter struts2

2011-04-26 Thread alex zaim
Hello. I'm trying to make a simple hibernate setup, but i encounter an error when i start the server (Apache). Apr 26, 2011 3:20:18 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 java.lang.NoClassDefFoundError: org/hibernate/Session     at java.l

Re: How to i18n post validation error messages?

2011-04-13 Thread alex zaim
When you said getText() i thought you meant It works all good now when i use it from validate(). Thanks a lot!

Re: How to i18n post validation error messages?

2011-04-13 Thread alex zaim
>No. Use existing getText(...) methods. That will be parsed right before validation. I want to show the fielderror results... in another language.

How to i18n post validation error messages?

2011-04-13 Thread alex zaim
Please suggest the best method, if possible. (perhaps from right within validate() method? should i make my own resource parser in this case?)

Password comparison has a strange behavior.please help

2011-04-12 Thread alex zaim
hello. I'm trying to register a user but what i'm testing is validations. The problem i have is the password comparison. When i want to compare the two password fields everything gets messed-up (and it also calls an actionclass even though it's client side validation). Please see the screen shots

Password comparison has a strange behavior.please help(struts2)

2011-04-12 Thread alex zaim
hello. I'm trying to register a user but what i'm testing is validations. The problem i have is the password comparison. When i want to compare the two password fields everything gets messed-up (and it also calls an actionclass even though it's client side validation). Please see the screen sho

Re: [OT] Re: Just a stab in the dark

2011-03-14 Thread Alex Lopez
I think they ment DSL as in Domain Specific Language Em 14-03-2011 14:06, Brian Thompson escreveu: On Mon, Mar 14, 2011 at 7:29 AM, Dave Newton wrote: On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote: But for the future I am writing an app where the user can upload a file of data and spec

Re: Tomcat 7 supported?

2011-03-09 Thread Alex Lopez
Working here with Tomcat 7.0.6 and Struts 2.2.1.1 without any problem... Em 06-03-2011 19:22, Lee Clemens escreveu: Tomcat 7 changes include "Switch from AnnotationProcessor to InstanceManager." Struts 2.2.1.1 fails to work on Tomcat 7 due to java.lang.ClassNotFoundException: org.apache.Annotat

Re: a field is not being initialized in my struts app

2011-02-24 Thread alex zaim
e project field instead of setting null value Maurizio Cucchiara Il giorno 24/feb/2011 15.18, "alex zaim" ha scritto: > i have a Organization.java class that has a field named "name" and get and set methods. > Then i use a Project.java class that extends Organization.

a field is not being initialized in my struts app

2011-02-24 Thread alex zaim
i have a Organization.java class that has a field named "name" and get and set methods. Then i use a Project.java class that extends Organization. Organization.java also has an User.java class that also has a "name" field. I use the Project class as a bean that is populated after a form is being

Re: Restrict direct access to static content

2011-02-16 Thread Alex Lopez
Correct me if I'm wrong, I think you could achieve this by doing: in web.xml: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* and in struts.xml: so struts2 catches all url requests as actions, unless specified in the exc

user@struts.apache.org

2011-02-11 Thread Alex Lopez
I would better rewrite the method into part of the action name, before the params, and use wildcards both for the action name and the method (or just for the method), something like: have a look at: http://struts.apache.org/2.x/action-configuration.html http://struts.apache.org/2.x/wildcard-

Re: Struts 2 - problem updating page

2011-01-06 Thread Alex Rodriguez Lopez
Not completely sure, but doesn't this one: http://struts.apache.org/2.x/docs/token-session-interceptor.html handle this situation? developer researcher, 06-01-2011 01:55: Hello, I have the following problem: after submit a form, if it refresh (F5) the page the form is submitted ag

Re: unicode breaks s:select?

2010-12-16 Thread Alex Rodriguez Lopez
Have you got this on top of JSPs? <%@ page contentType="text/html; charset=UTF-8" %> Patrick Cosmo, 15-12-2010 17:40: Hi! When using "s:select", if the list of data returned by my java class contains strings that have unicode characters in them, "s:select" fails to generate the entire tag, it

Re: AJAX file upload

2010-12-02 Thread Alex Rodriguez Lopez
upload". I wonder how they do it, but this shouldn't be too difficult to find out. It works with chorme and firefox, windows and os x. Alex Frank W. Zammetti, 01-12-2010 15:20: On 12/1/2010 9:00 AM, Robert Graf-Waczenski wrote: Am 30.11.2010 21:59, schrieb Harsh C: How can I setup a AJ

Re: Struts 2 s:action tag doesn't render action errors if any are present

2010-10-29 Thread Alex Rodriguez Lopez
I don't know if this aplies to the issue here, but I once used this interceptor: AUTOMATIC So the errors / messages will be passed through actions and redirections if not retrieved / showed. As far as I recall it worked to me pretty well. Alfredo Manuel Osorio Martinez, 28-10-2010 23:35:

Re: export to excel - displaytag

2010-10-26 Thread Alex Rodriguez Lopez
Hi, I had the same problem, but it was time ago. I asume from your code that you followed this: http://displaytag.sourceforge.net/1.2/export_filter.html and using Struts 1. If using this with Struts2 you should have to change the url-pattern to *.action or whatever extension you are using.

Re: After upgrading from Struts 2.0.x to 2.2.x, static content no longer served...

2010-10-19 Thread Alex Rodriguez Lopez
I'm using a combination of empty extension and exclusions for static content which works well now. Got pretty confused too at beginnning when I changed to an empty extension though: http://struts.apache.org/2.2.1/docs/static-content.html in web.xml: struts2 org.apache.struts2.

Re: referencing javascript files from (action) jsp file

2010-10-14 Thread Alex Rodriguez Lopez
try it without the first / like
changed javascript paths as follows:



Domain Security Administrator: Pas gebruiker aan
Re: Master-details JSP with Validation xml

quot;. Any reasons this shouldn't be already the default? Regards, Alex Dave Newton, 12-10-2010 18:32: It does if you use the prepare params prepare stack. On Tuesday, October 12, 2010, cellterry wrote: At Preparable timing it does not have the customer data (customer=null) so that I

Re: Javascript proble in sx:civ in struts2

I don't have a definite answer, but just keep in mind that: - The Dojo plugin is deprecated, you might want to consider other ways of achieving the same thing. - For the ajax tags to work you have to include the head tag ( ). Please read: http://struts.apache.org/2.x/docs/ajax-tags.html htt

Re: How do we repopulate controls when validation fails?

Don't know if this solves your problem, but maybe it helps to use the params-prepare-params trick, calling params interceptor twice, so you have your params ready before prepare(). You have an already configured stack, the paramsPrepareParamsStack From struts-default.xml:

Re: File Upload

I think this is a browser/OS specific behaviour, not related to Struts or even to HTML at all. Em 26-07-2010 13:20, RogerV escreveu: Is there a way of specifying the start directory to be used when the user hits the "browse" button? As far as I can see, the system "remembers" where it was look

Re: set a list from getmodel()

As far as I remember, for Struts to populate a list you just give the same name for a setter in the action that takes a List<> as a parameter as the element(s) in the Jsp. So you can have 1 textboxes *with same name*, and if this name happens to map to a list, the list will get populated wi

Re: Passing parameters to getter methods?

You can do this without parameters. Write a setter for this index property (to save it), and then in the getter you grab the saved value. Hi, I want to call s:iterator and fetch a list by passing it an index. This list will be dynamically generated. where I want getProducts(Integer index)

Re: Page composition strategy

BTW, any of those two are easily integrated into S2 as plugins (in fact already bundled with S2 distribution, just add the jars): http://struts.apache.org/2.1.8.1/docs/tiles-plugin.html http://struts.apache.org/2.1.8.1/docs/sitemesh-plugin.html I've been using Tiles and always found it confus

Re: Page composition strategy

I've been using Tiles and always found it confusing a little bit, now that I'm starting to test Sitemesh my vote would be for this last one. They accomplish the same thing, only Tiles is like saying each time "my page is made up of this, this and this". Sitemesh is more about taking a piece of

Re: Struts2 form token not matching session token

If you are not using it already, I suggest using FireBug to inspect the data sent along with each request, so maybe you can find where these values come from. Hi all, I am having a strange problem with the struts2 token tag and the token-session interceptor. It seems like the token added to th

Re: Iterating over a Collection and creating a for each entry of it

http://struts.apache.org/2.x/docs/checkboxlist.html Hi! Is something like the following snippet possible to do? ${entry.name} ${entry.forced} Of course this code won't do it, but I hope you're getting my idea. I'd like to iterate over a collection an

bug reports

Anyone knows how to submit a bug report for struts 2? This email with any attachments is confidential and may be subject to legal privilege. If it is not intended for you please advise by replying immediately, destroy it and do not copy, disclose or use it in any way. Please consider the enviro

Re: PRG pattern question

Em 26-05-2010 16:57, Chris Pratt escreveu: If you search the forum, someone posted an Interceptor (quite a while ago) that saves the Action/Field Errors/Messages in the Session so that they will survive a redirect. It could easily be extended to do what you require. (*Chris*) I think this i

Re: Cookie Manipulation attack

Em 27-05-2010 11:27, Vishnu Vyasan Nelliparmbil escreveu: Hi Guys, I am handling a application in which we have application in two languages. There is a Locale action for setting locale to English or Arabic based on the parameter being passed from the respective index pages. I.e. index_en.jsp an

Re: Need Help For Struts2 Debugging

I use to find it impossible to do this... Then I started to use Maven, which can be used to download source code and attach it easily. If you use Eclipse I suggest using M2Eclipse plugin. After you get a Struts2 based project with Maven2 up and running it should be easy to do what you want, do

ActionContext.getContext().getSession() vs. SessionAware injection (about servlet maps)

Hi Struts users! I was wondering, after reading about the ServletConfigInterceptor, if there are differences in obtaining the session map via the method ActionContext.getContext().getSession() or have it injected through SessionAware. The map that I end up with is the same so... why have to

Re: Interator values not showed

Hi, i'm trying the append tag and the list values of the appended lists are not showed. This is the main part of the jsp code: Total Bands: Band: This is my Action class: package struts2.action; import java.util.ArrayList; import com.opensymphony.xwork2.ActionSuppo

Re: how to set default focus field in ?

Hi, I use to do this "manually" with javascript, didn't know it was part of s:form tag. So today I decided to give it a try but it is not working for me... how does this works? Does it need some plugin or additional config to make it work? Is it compatible with jquery, which I include in ever

Re: Struts 2 : redirect to action method on type conversion fail ?

Hi Thomas, use the paramsPrepareParams interceptor stack (or change yours), from struts-default.xml: ... I think this accomplishes what you are looking for (of course you need setters for the parameters that you want params interceptor to have ready for you by the time the pre

Re: ExecAndWait interceptor parameters lost

Hi, you can store data in session and retrieve it later on. Data stored in session is persisted through requests. ActionContext.getContext().getSession(); http://struts.apache.org/2.1.8.1/struts2-core/apidocs/com/opensymphony/xwork2/ActionContext.html Hi, I have an issue in my code that I

Re: Where is the documentation for Struts tags ....

Em 05-05-2010 07:57, RogerV escreveu: So if it's looking for a string, let's make sure you're giving it one, and not the .toString of an empty map that it got from your prepare method: I must admit I don't understand what you expect this to submit, or how that should become a map -- there a

Re: s:select help

Maybe using OGNL along with #this or #attr . Haven't checked that out but it should work some of these ways: http://struts.apache.org/2.0.14/docs/ognl-basics.html http://www.opensymphony.com/ognl/html/LanguageGuide/varref.html Em 04-05-2010 14:03, RogerV escreveu: Upasana Sharma wrote: li

Re: Struts 2 and dynamics web page

This example proved helpful to me: http://struts2inaction.com/SimpleAjax.html In the end I ended up doing the same with jQuery: You can get the selected option and pass as params to the called action. The action has a result that is a jsp with just the content that will get loaded into the

Re: Struts 2 validation

If you define action alias for specific methods in your struts.xml (you can do so with wildcards too), then you can use this format --validation.xml as stated below. http://struts.apache.org/2.1.8.1/docs/validation.html Defining Validation Rules Validation rules can be specified: Per Action c

Re: Annotation Validation

d in place of the {0}. Em 28-04-2010 21:30, mrsv escreveu: Did you try something like this? @RequiredStringValidator( fieldName = "label.name", key ="error.required ", message = "Name required.")} Alex Rodriguez Lopez wrote: Hi struts us

Annotation Validation

Hi struts users! I'm on my way to change from XML based validation to annotation validation. I've manage to get it working, but (probably due to my little knowledge of Java annotations) there are some things I can't get to work, so I apologise if this question is not entirelly Struts related.

Re: OptionTransferSelect in 2.1.8

http://www.manning-sandbox.com/thread.jspa?threadID=22922&start=15&tstart=0 maybe this post (and the first page) will help you, as they show a similar example and how the list relates to the properties in the action Em 27-04-2010 14:14, RogerV escreveu: mgainty wrote: the site you menti

Re: struts session help

Hi, you could put/get from session like so: ActionContext.getContext().getSession(); You can define a "parent" action (implementing preparable) with a prepare() method that retrieves data and store it in session for later (and check each time if data is already in session) and puts it into p

Re: Struts2 XML based validation doesnt work !

I'm sure your problem is related to themes/templates. If you are using simple theme you have to provide your own labels for fields, so the field validation works and S2 knows where to place the messages (because you know validation happens, it's just the messages not displaying, right?). che

Re: Custom types and select lists

f there is a more correct way to do things, but this way you don't need custom converters. I believe, by the type of your error, you could still use that converter maybe just switching things from String to Long. Regards. Alex Em 19-04-2010 15:38, Lance Hill escreveu: I am trying

Re: Syntax problem: Trying to display label for Select while iterating

I had similar problems with labels, most times they where related to themes. http://struts.apache.org/2.x/docs/themes-and-templates.html For example, if you turn on simple theme you'll have to provide your own tags for the labels as struts won't generate this markup. Em 08-04-2010 08:18, Roge

Re: Why do I need a refresh to print a display:table ?

tried quite early after i discovered my problem and unfortunately useless. The behaviour stays strictly the same. On Wed, Apr 7, 2010 at 4:08 PM, Alex Rodriguez Lopez wrote: Hi Stéphane, did you try implementing the Preparable interface in your action and populating your List in the prepare

Re: struts 2 tag confution

Use this syntax: forward Em 07-04-2010 06:52, Supratim Bandyopadhyaya escreveu: Greetings to all, I have been trying to get to work properly. Here is the code. Next Record here the parameter offset comes from the action bean which sho

Re: Why do I need a refresh to print a display:table ?

Hi Stéphane, did you try implementing the Preparable interface in your action and populating your List in the prepare() method? http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html Em 07-04-2010 05:16, Stephane Cosmeur escreveu: One week later, i'm still

Re: How to keep quotation marks

the escape attribute (set it to false) and worked like a charm. Thanks again. On Mon, Apr 5, 2010 at 10:14 AM, Alex Rodriguez Lopez< alo...@flordeutopia.pt> wrote: Try escape or escapeJavaScript atributes of tag, never used them but maybe are helpful for your situation http://struts.apa

Re: How to keep quotation marks

Try escape or escapeJavaScript atributes of tag, never used them but maybe are helpful for your situation http://struts.apache.org/2.x/docs/property.html Em 05-04-2010 15:06, Craig Ricciuto escreveu: Hi there. I've run into situation that I'm not quite sure how to resolve. In one of my acti

Re: i18n problem with Struts2 - getting weird

Do you have your struts.custom.i18n.resources property correctly assigned to your bundle(s)? Em 05-04-2010 11:27, Marc Logemann escreveu: Hi, imagine the following jsp (saved in UTF-8 encoding): -- snipp --- <%@ taglib prefix="s" uri="/struts-tags" %> Hauptmenü -- END s

Populate: Implement preparable or richer getter approach

Hi to all, as I learn more things about S2 some questions emerge about best practices more experiences users might know how to do best. I believe it is a common problem having to populate fields like selects first thing (with data from DB or stored in session) before any task is done. This

Re: Pagination with Struts 2.1.8 ?

e at DB level as Adam suggested. --- On Mon, 3/29/10, Alex Rodriguez Lopez wrote: From: Alex Rodriguez Lopez Subject: Re: Pagination with Struts 2.1.8 ? To: user@struts.apache.org Date: Monday, March 29, 2010, 4:32 AM Display tag, works like a charm: http://displaytag.sourceforge.net/1.

Re: [Struts 2.1.8.1] Internationalization: how to remain in the current page ?

fine safe and "unsafe" URLs. We had to do a bit a workaround code so that on the redirect to a GET, we don't lose all of our context. We actually save the current action in the session, and when the get comes back, pop it out of the session to place it in the stack. If somebody is interes

Re: Pagination with Struts 2.1.8 ?

Display tag, works like a charm: http://displaytag.sourceforge.net/1.2/tut_basic.html Works with lists and handles pagination, data export, I recommend it! Em 29-03-2010 11:07, Celinio Fernandes escreveu: Hi, This is a classic requirement. I have this table, in a JSP, that I have created with

Re: [Struts 2.1.8.1] Internationalization: how to remain in the current page ?

Thanks Zoran for sharing your approach, greatly appreciated, I'm thinking about implementing a similar interceptor, and maybe replace the i18n one so work is done implicitly with only a change in struts.xml and the new interceptor. Em 29-03-2010 02:58, Zoran Avtarovski escreveu: Hi Guys, We

Re: [Struts 2.1.8.1] Internationalization: how to remain in the current page ?

Hi Zoran, would you mind sharing the code of this tag? It would be helpful to me, as somehow I've been able to link to the same sction with an empty url tag but unable to retain params. Thanks! Em 24-03-2010 22:42, Zoran Avtarovski escreveu: I wrote a small custom tag which builds the link w

Re: Form values getting empty After validation failure

Hi, don't know if it will be usefull, but some days ago someone in the user list suggested using the getters and setters of the properties that map to your form to call get() and put() methods of the current session ( ActionContext.getContext().getSession() ) , so you get "automatic" session

Re: How to get s:select id and name under struts2 action?

Forgot to mention, this is the case with a multiple select, if the select is simple and only one option can be selected, then a bean property for an int or long will sufice. Em 23-03-2010 09:33, Alex Rodriguez Lopez escreveu: Assuming your ids are of type long, you could do it with a list of

Re: How to get s:select id and name under struts2 action?

Assuming your ids are of type long, you could do it with a list of Long like so in your action: private List test = new ArrayList(); plus the getters and setters (getTest(), setTest()). test is the name you gave in the select (). Struts2 will polulate the list with the selected ids. Em 23-0

Re: Freemarker error on form submit with checkboxlist

Solved, the list and name atributes of checkboxlist cannot have the same name: name="roles" list="roles" this is what caused the problem. Em 15-03-2010 13:16, Alex Rodriguez Lopez escreveu: Hi all, I ran into a strange error when using a checkboxlist, backed by a list

Freemarker error on form submit with checkboxlist

Hi all, I ran into a strange error when using a checkboxlist, backed by a list of usergroups (roles) objects. The error shows not when the form is displayed (it all works as expected) but when submitting the form with the checkboxes on it. Using 2.1.8.1 Could somebody please tell me if this

Re: legend don't work under of struts2

Hi! This might be related to the theme the form is using, http://struts.apache.org/2.1.8.1/docs/themes-and-templates.html This happened to me too, the default s2 theme adds table elements to forms for layout, and trying to use fieldsets results in them being rendered apart from the form elem

Re: Encoding of french characters in

Hi Ulf, do you have your charset declared as utf8 like this? <%@ page contentType="text/html; charset=UTF-8"%> Maybe you have to write the special characters in the string as html entities... Em 11-03-2010 09:10, Ulf Liedén escreveu: Hi all, my first post to this list :-). Sorry if I'm dou

Changing locale and retaining previous query url params

he button to change it. - Rendered page: /user/user_input.action?request_locale=en The new page is in english as espected, but because the url lost the id param now the action thinks a new user is to be created, instead of editing the user id=7. So how can I keep the olod params when

Re: About the better way to implement a JSP in read/edit mode

sometimes with less files you have to provide aditional checks or cases so one file fits all possible use cases. I think it's more elegant for me with same file for read and edit, but others might dissagree, not sure if a way is better than the other :) Alex Em 10-03-2010 09:43, Fr

Re: AJAX Validation (calls to action methods work on submit, but messages not displayed nor page redirected)

I'm thinking this might be related to the AJAX Theme thing... is this required to work with AJAX validation? Any other requeriments aside from including the sx:head tag? Em 08-03-2010 11:11, Alex Rodriguez Lopez escreveu: Hi! I'm updating validations on my app to use AJAX. I fol

Re: struts 2 - framework question

which store the request comes from. What helped me a lot to work with only some mappings (using wildcards) and only some actions is this book, listed in Struts2 docs, which is freely downloable: http://www.infoq.com/minibooks/starting-struts2 Alex Em 08-03-2010 02:33, Cimballi escreveu: John, I

Re: possible s:submit with parameter?

You can use hidden fields inside of the form which will be sent too on submit as GET or POST params(usually good for IDs). Alex Em 05-03-2010 23:13, Adam Pinder escreveu: Any form textfield will be submitted when page submitted which is effectively a parameter. Adam On 5 Mar 2010, at 19:46

Re: Locale and custom variables

Em 04-03-2010 14:15, abhishek jain escreveu: On Thu, Mar 4, 2010 at 7:30 PM, Alex Rodriguez Lopez wrote: Em 04-03-2010 05:49, abhishek jain escreveu: Hi friends, I have a few variables who have diff values depending on the locale / country. I do want to use a message-resources for storing

Re: Locale and custom variables

hods to do preciselly this, check http://struts.apache.org/2.1.8.1/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html . We use it this way around here and it works fine (the resource properties files being in the same package). Rega

Re: Inserting data into nested collections

ate nested collecctions in Struts2 Cheers, Alex.

Re: Inserting data into nested collections

Thanks Adam for the fast reply. I'm not sure howver that your solution would solve my problem. I'll try to inspire from it however : ) I found this issue which looks pretty much related to my problem : http://jira.opensymphony.com/browse/XW-408 Is this a known issue in Struts 2 and OGNL ? Tha

Inserting data into nested collections

Hi list, I am having hard time figuring out how to solve what seems to be a somewhat trivial problem ... I am using Struts 2 and OGNL in my JSP to send textfield values in my Action Class The struts Action looks something like this : public class MyAction extends ActionSupport { HashMa

Re: How to pass HTTPRequest between two JSP ?

return type redirect-action, work at request level redirecting requests, no jsps. I think request params are retained this way. Regards. Alex Lopez - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comm

Re: When I link to a *.do I get "Page not found"

. Regards. Alex Lopez. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Way to forcefully reload struts.xml [struts2]

l me how to forcefully reload struts.xml. (Besites the struts.reload property being true in struts.xml) Thanks Regarding "!" in the URL, I remember something having to do with this struts2 propertry: Check into it. Alex Lopez. -

Re: Nabble and mailing list archives

Don't know exaclty what your problem is, but I'm able to read and search this list at: http://www.mail-archive.com/user@struts.apache.org/ -- Alex Lopez - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org F

Re: Description of current struts-2.1.8.1\lib content

Em 24-02-2010 16:32, Lukasz Lenart escreveu: 2010/2/24 Alex Rodriguez Lopez: Hi! I've recently started a job as a webapp developer. I've been some days already working out how Struts 2 works, I'm the kind of person who likes to know exactly what's going on at all moments,

Description of current struts-2.1.8.1\lib content

Hi! I've recently started a job as a webapp developer. I've been some days already working out how Struts 2 works, I'm the kind of person who likes to know exactly what's going on at all moments, so I rather assemble my own app taking what I need at every moment that work from an example. I

Re: Feasibility of Programming in GWT

I have programmed in GWT in past. The advantage over Struts 2 is GWT's component model. It allows to reuse code and leverage your favorite safe refactoring tools (say Eclipse). JSP sucks on refactoring. The main GWT disadvantage is Java-to-JavaScript compilation. It has no incremental compilati

Re: unicode character is in wrong format

Here is the best checklist for Java webdev + UTF-8 http://stackoverflow.com/questions/138948/how-to-get-utf-8-working-in-java-webapps Nguyen Xuan Son-2 wrote: > > dear all > im using PreparedStatement.setNString(int, String) > to insert the japanese characters into my MySQL database > but the r

Re: Struts 2 Result + GWT

Maybe just use Struts 2 Convention plugin? It will allow you to reuse Java constants in Struts 2 and GWT code. package gwtapp.server.action; import static gwtapp.client.consts.StrutsLocations; @Results({ @Result( name = Action.SUCCESS, location = REGISTRATI

Re: [S2] i18n not using default bundle

The trick is simple: create an empty file: global-message_zh_CN.properties This is not Struts 2 problem, but Java ResourceBundle's. You can read more here: http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732 mailtolouis2020-str...@yahoo.com wrote: > > Hello, > > I got a doubt on

Re: Where to disable encrypting of non latin chars?

utput this but first you must imo >> try >> s:property with escape="false" >> >> >> On Sat, Nov 28, 2009 at 5:57 AM, Alex Siman >> wrote: >> >>> >>> I don't know... Do I need these extra bytes in output? And are that >>

Re: Where to disable encrypting of non latin chars?

Nov 28, 2009 at 6:50 AM, Saeed Iqbal wrote: >> >>> These are encoded characters. Either output this but first you must imo >>> try >>> s:property with escape="false" >>> >>> >>> On Sat, Nov 28, 2009 at 5:57 AM, Alex Siman >&

Re: Where to disable encrypting of non latin chars?

lse" 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 la

  1   2   3   4   >