Created a struts2 application but getting odd results

2010-07-12 Thread John L. Longo
Here is the situation: I'm using two separate browsers (IE8 & FF3.6) to test the application at the same time. I have a form that takes contact information (name, address, email, etc.) I access the form (http://localhost:9084/demosite/contactus.action) from IE8 and type the first name and hit

[S2] post JSON to REST

2010-07-12 Thread mailtolouis2020-struts
Hi, Sorry if this is double posted, because I didn't receive the mail which I post. I'm new to the struts2 rest plugin, I hope someone can help me. I'm trying to post a json data to a UserController, I can see create method is invoked, but the json data is not set to the UserController. He

Struts 2 + Spring 2 + JPA + AJAX question

2010-07-12 Thread red phoenix
I want to use Struts 2 + Spring 2 + JPA + AJAX,I find it as following url: http://struts.apache.org/2.1.8/docs/struts-2-spring-2-jpa-ajax.html When I try to download this code,like follows: Get the code

Re: [S2] post JSON to REST

2010-07-12 Thread Frans Thamura
We use http post But dunno how to send via json rpc (m) -Original Message- From: mailtolouis2020-str...@yahoo.com Date: Mon, 12 Jul 2010 07:29:53 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: [S2] post JSON to REST Hi, Sorry if this is double posted,

Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-12 Thread abhishek jain
Hi, How can i check how much memory is it currently consuming / using. thanks abhishek On Sun, Jul 11, 2010 at 6:34 AM, Martin Gainty wrote: > > sounds as if class and method objects could possibly be missed by GC..try > this for running under Jboss using Sun JVM (bin/run.conf) settings > > > >

Re: OutOfMemoryError: PermGen space!!!! Dont know why?

2010-07-12 Thread Philipp Leusmann
Use JConsole or if you need more details a profiling tool like Yourkit Am 12.07.2010 17:04, schrieb abhishek jain: Hi, How can i check how much memory is it currently consuming / using. thanks abhishek On Sun, Jul 11, 2010

Re: validating integer, java.lang.NoSuchMethodException

2010-07-12 Thread Jake Vang
a workaround to this problem is to have a string field in the Action class to represent MyPojo.integer. using this approach, the second set of validation rules below work 100% and i no longer see the NoSuchMethodException. however, the drawback is that now i have to transfer this to my backing bean

validating integer, java.lang.NoSuchMethodException

2010-07-12 Thread Jake Vang
hi, i am trying to validate an integer field (int primitive type) on a POJO (i.e. MyPojo.integer). i have the validation defined in --validation.xml as follows. ... Integer is required! ... when the form posts to the action, if the value of is left blank, i keep seeing a java.lang.NoSuc

Re: convention plugin 2.1.8.1 and JBoss 5.1

2010-07-12 Thread Scott Miller
Yes, The problem seems to be that struts 2 convention plugin is attempting to load the classes by loading files from the war file that is still inside the ear in the deploy directory of your jboss server. This virtual file can't be loaded in the mechanism being provided by the convention

Javascript issues

2010-07-12 Thread JP Cafaro
I'm trying to incorporate some ajax stuff with struts2 but I'm running into problems. I have this action: public class AjaxUserBrowser extends ActionSupport { private List users; public String execute() { System.out.println("AJAX USER BROWSER"); setUsers(getPortfolioSe

Re: [S2] post JSON to REST

2010-07-12 Thread mailtolouis2020-struts
Hi, Ok, I found my problem, I was using restTemplate to do the post, and it set the content type to application/json;charset=UTF-8, so now my question is how to configure rest-plugin to accept application/json;charset=UTF-8 and handle by json lib? Regards LV __

Help Struts2 + interceptor

2010-07-12 Thread Fabio Alves de Araujo Ebner - DnaSolution
Hi, i need help to use interceptor, i create one to test if the user are logged in my application until he execute one Action, but when the server pass throw interceptor and back to action, all my var are null, this is my struts.xml http://struts.apache.org/dtds/struts-2.0.dtd";>

Re: Help Struts2 + interceptor

2010-07-12 Thread JP Cafaro
The action has to be a part of that package, it has to extend that package. Fabio Alves de Araujo Ebner - DnaSolution wrote: Hi, i need help to use interceptor, i create one to test if the user are logged in my application until he execute one Action, but when the server pass throw interceptor

Re: Help Struts2 + interceptor

2010-07-12 Thread Fabio Alves de Araujo Ebner - DnaSolution
so i put in my aciotn ParentPackage("loginClienteAndUsuario") and i got the same problem - Original Message - From: "JP Cafaro" To: "Struts Users Mailing List" Sent: Monday, July 12, 2010 2:18 PM Subject: Re: Help Struts2 + interceptor The action has to be a part of that package, i

Re: Help Struts2 + interceptor

2010-07-12 Thread JP Cafaro
Here's how I do it: struts.xml: class="interceptors.AuthenticationInterceptor" /> where my-default is another package that extends struts-default, Then I have a package-info.java file in each packa

Re: Javascript issues

2010-07-12 Thread JP Cafaro
I think the problem has to do with this line: When I use firefox, and view the source, I can click on the link to ajax-user-browser.js and it can't find the resource. I think this is because it's under my WEB-INF directory. I moved ajax-user-browser.js to a folder "js" on the same level as

Re: Help Struts2 + interceptor

2010-07-12 Thread Fabio Alves de Araujo Ebner - DnaSolution
Hey man, this is my structure MY ACTION package br.com.dnasolution.site.action; /** import **// @ParentPackage("my-secure") public class OrdemServicoAction { @Action(value = "cadastrarOrdemServico", results = {...@result(name = "valido", location = "/jsp/ordemservico/cadastro_sucesso.jsp

Struts 1 binding vulnerability

2010-07-12 Thread Zheng, Xiahong
Hi, Spring recently released the following security vulnerability in its MVC data binding framework. Here is the description The Spring Framework provides a mechanism to use client provided data to update the properties of an object. This mechanism allows an attacker to modify the properties o

Re: Struts 1 binding vulnerability

2010-07-12 Thread Paul Benedict
Open a JIRA ticket and submit a patch. We welcome help from the community. On Mon, Jul 12, 2010 at 2:06 PM, Zheng, Xiahong wrote: > Hi, > > Spring recently released the following security vulnerability in its MVC data > binding framework. Here is the description > > The Spring Framework provides

RE: Struts 1 binding vulnerability

2010-07-12 Thread Zheng, Xiahong
Created and attached a patch. Please have a look at the issue https://issues.apache.org/jira/browse/STR-3206 -Original Message- From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] On Behalf Of Paul Benedict Sent: Monday, July 12, 2010 3:13 PM To: Struts Users Mailing

RE: Javascript issues

2010-07-12 Thread Martin Gainty
ajax controls allow asynchronous population of div tags..there needs to be some sort of notify/listener capability to triggger the listener to wakeup and populate the div tag when the event is being notified e.g. function handler(widget, node) {