JPA + Hibernate, necessary jars?

2010-07-19 Thread JP Cafaro
I'm following a tutorial on struts 2 with JPA and hibernate and spring and they gave me list of jars that I needed but most of them are outdated. Some are included in other jars, have different names, etc. Is there one package that just has all of the up to date jars I need? ---

Struts 2 constant not working...

2010-07-17 Thread JP Cafaro
I can't get this struts2 constant to work: I have this wildcard mapping: [ {1} When I try and go to http://localhost:8080/Struts2NewChapter8/secure/blah I get an error: "There is no Action mapped for namespace /secure and action name blah." Why does this

Requested resource not available problem

2010-07-16 Thread JP Cafaro
I made a similar post previously but I changed some things and may have shed some different light on the problem. I'm trying to catch all requests to "/secure/etc": {1} I have an interceptor that fires and if the user logs in, calls invoke. I a

Re: ParentPackage annotation not applying to subpackages

2010-07-16 Thread JP Cafaro
eł Wielgus. 2010/7/14 JP Cafaro : I'm using struts 2 with convention plugin. The convention plugin page states for the ParentPackage annotation, "To apply this annotation to all actions in a package (and subpackages), add it to package-info.java." I have two packages, my-default

Wildcard matching problem!

2010-07-16 Thread JP Cafaro
I'm having some issues with wildcard mapping. I wanted to catch all attempts to visit anything behind "/secure". /authenticate/login-page This works if I try to visit "/secure/anything/anything/etc" and if I'm not logged in, I get directed

ParentPackage annotation not applying to subpackages

2010-07-14 Thread JP Cafaro
I'm using struts 2 with convention plugin. The convention plugin page states for the ParentPackage annotation, "To apply this annotation to all actions in a package (and subpackages), add it to package-info.java." I have two packages, my-default and my-secure. I have a package called actions

Re: result-type using annotations

2010-07-13 Thread JP Cafaro
son result type, i.e., @Result(name="foo", type="json", ...) or you could set the contentType in your @Result params as application/json and have your associated template emit the exact json that you want to return. On Tue, Jul 13, 2010 at 5:34 AM, JP Cafaro wrote: Is it possible

Problem with using json plugin

2010-07-13 Thread JP Cafaro
I was trying to use the json plugin that's bundled with struts but I'm running into a few snags. Firstly, I like using annotations whenever possible so this is what my struts.xml looks like: type="redirect">/authenticate/login-page /error/error

Re: Help Struts2 + interceptor

2010-07-13 Thread JP Cafaro
I'm fairly new to this myself so maybe someone else can jump in. First things first, put a print statement in the intercept methods of your interceptors so you at least know if the interceptor is even getting called. Secondly, I didn't ever use a line like this:interceptorRefs = { @Intercept

result-type using annotations

2010-07-13 Thread JP Cafaro
Is it possible to declare result-type using annotations? For example, when trying to return an object, that gets serialized to json, is it possible to move away from the struts.xml and do it via annotations - To unsubscribe,

Re: Javascript issues

2010-07-12 Thread JP Cafaro
The problem was...stupid enough...not having a end tag. Apparently I can't type Martin Gainty wrote: 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 even

Re: Javascript issues

2010-07-12 Thread JP Cafaro
t; on the same level as WEB-INF and changed the line to: but it still doesn't work! Nothing shows up on the page. However when I view the source this time, I can click the link and I do see the code for the javascript. Please help! JP Cafaro wrote: I'm trying to incorporate so

Re: Help Struts2 + interceptor

2010-07-12 Thread JP Cafaro
ion wrote: 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

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

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: Authentication and Empty Classes

2010-07-11 Thread JP Cafaro
All my action classes extend BaseAction. Then, for cases where everything I need really *is* in the jsp, I just have an action set up something like: no-action-jsp.jsp Doing it this way, *everything* will be an action (though the BaseAction execute() method doesn't really do much). -Bri

Re: Authentication and Empty Classes

2010-07-11 Thread JP Cafaro
ompson wrote: Couldn't you just declare "BaseAction.java" as the action's class? Also; it sounds like you're using a custom security solution; I'd suggest using Spring Security instead. Custom security code is likely to suffer from many of the bugs that Spring Secu

Re: Convention plugin question

2010-07-11 Thread JP Cafaro
er.jsp directly by going to /register because of the presence of a Register.java action. Does that make sense? Paweł Wielgus wrote: Hi, if i get You right search for disabling direct jsp access on this group. Best greetings, Paweł Wielgus. 2010/7/11 JP Cafaro : I'm using struts2 wit

Authentication and Empty Classes

2010-07-11 Thread JP Cafaro
One thing that I don't like (haven't figured out how to get around this) is the need for empty classes. If I have a secure page, like an image upload form, let's call it (image-upload-form.jsp), I don't want the user to be able to access it if he or she is not logged in. To accomplish this, I

Convention plugin question

2010-07-11 Thread JP Cafaro
I'm using struts2 with the convention plugin. I'm really new to all of it and haven't really used Struts 2 WITHOUT the plugin before. Seeing as it's called "convention", I imagine that there are a lot of things that it can do automatically by convention. One of the things I was curious about

Problem with figuring out Convention Plugin

2010-07-02 Thread JP Cafaro
I've been having trouble figuring out exactly how the convention plugin works. I've been reading the site(http://struts.apache.org/2.1.8.1/docs/convention-plugin.html#ConventionPlugin-Helloworld) but am still having trouble getting simple examples to work. I have a class WelcomeUser.java loca