In controller (.js) do:
args.myparam
For example:
var query = args.myquery
Hope this helps.
Type: Posts; User: depy; Keyword(s):
In controller (.js) do:
args.myparam
For example:
var query = args.myquery
Hope this helps.
I have a project where I wanted to do more proper exception handling cause I've always used checked exceptions and the code gets really messy if you do everything that way.
So now I'm confused about...
Good to know that. I also thought packages scaning was recursive. :/
Try adding this property to sessionFactory bean:
<property name="annotatedPackages">
<list>
<value>com.coastware.vProbe.model</value>
</list>
...
Show your xml configuration please.
SecurityContext securityContext;
securityContext = SecurityContextHolder.getContext();
Authentication a = securityContext.getAuthentication(); //you get more details from authentication object,...
*bump*
I'm loosing my mind on this... :S
I have web and wap pages and security defined for them. Both work ok when I try them using browser. But the problem is when I go to wap page with some mobile device and I login, I'm redirected to...
Spring itself doesn't support ajax as far as I know. But what I learned from reading the forums and stuff, they say it works very nice with DWR (ajax framework).
Hope that helps. :)
I was wondering the same thing a long time ago... :rolleyes:
I made my first web application with spring, and more I'm adding stuff more I see how poor architecture it has (or, no architecture to be honest). So i was wondering are there any resources on web...
Thank you very much for your info.
But anyway why should the login work when I access the application via IP and it doesn't work when I access the application via domain name (www.something.com)?...
I don't quite understand what you want to view cause I'm a beginner at spring. So I'll post all the xml configuration that includes security configuration.
ApplicationsContext.xml
<?xml...
Anyone? I'm really starting to freak out. Really strange problem...
Here is the filter configuration from web.xml:
<filter>
<filter-name>springSecurityFilterChain</filter-name>
...
I can sucessfully login, but on next click, doesn't matter which link I click I am loged out. This only happens when I access the page with domain name (example: www.mypage.com) and doesn't happen...
How can I intercept logout. I have to to something just before and something after logout.
Problem resolved. I had wrong path set... :S
When I tested file upload on my computer it seemed ok. But when I deployed the project on the server I got this exception:
Exception: java.io.FileNotFoundException: C:\pong.zip (Permission denied)...
I have a User object return to my userpanel.jsp where user can update it's profile.
But for obvious reasons I can't let them update or either view their ID and some parameters. So when I click "Save...
I made a controller that chains other controllers. I'm using this controller for few pages, but the problem is, that in servlet config you must define which controllers you will chain and on some...
I guess i found what i've been looking for: Chaining controllers. Looks just like the thing I needed.
I've read also that interceptors can solve this problem?
...
Well, basically my project is just some standard public web portal.
With registration, login, news of some kind, user profile, friends lists, some downloads of stuff and we thought of some kind of...
So there's no way to do that in spring easily?
My boss is gonna kill me if I change the development environment again... :)
The spring has also portlets right? How about using springs portlets?...
I started with JSF then switched to spring + hibernate.
Now I mapped all the classes to the DB tables. When I finally wanted to start building the portal, I realize that I dont know how to start....