Hi, I have problem with simple spring mvc controller written in scala:
@Controller
class HelloWorldController {
implicit def sessionFactory2Session(sf: SessionFactory) =...
Type: Posts; User: zeeed; Keyword(s):
Hi, I have problem with simple spring mvc controller written in scala:
@Controller
class HelloWorldController {
implicit def sessionFactory2Session(sf: SessionFactory) =...
Can somebody tell me how can I use iText in simpleFormController? User must get pdf document after submit. I have some ready methods form my last project (not based on spring, just simple servlet+jsp...
I think, I do something wrong, but in my code NumberFormatException may be thrown. My example code:
DetailUser mc = (DetailUser) super.formBackingObject(arg0);
if (mc.getUserId()...
For example I have such AbstractWizardFormController bean:
<bean id="userRegistrationWizardController" class="WizardFormController">
<property name="pages">
<list>...
I've tried to reload application on tomcat, but session still is active :/
How to logout all users for application? For example to do some administration work? Is this possible?
I know about acegi, but this is bad solution for my problem. In this situation I want to disable part of application for all users, and all roles. Creating SUPER_ROLE and blocking access isn't good,...
Hello, I'm thinking about best practices in situation, where a part of application is disabled by user. Please consider this situation, admin has option to turn off some views, for example:...
My applications requires specific type of information associated with each security role.
I extend User class:
import org.acegisecurity.GrantedAuthority;
import...
Is it possible to share user authorization over two or more webapplication using Acegi? For example I have application: 1 and 2. When I'm log in in application one, I also have access to application...
I'm thinking about securing some methods in my application. I know that I can use acegi to block access to some objects for certain user roles. But I've noticed that I need something else. For...
I've just added <property name="proxyTargetClass" value="true"/>, no result I always get access:
<bean id="autoProxyCreator"...
Why these doesn't work, I allways get access :(
acegi-conf.xml:
<bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property...
Thanks for help, I'm reading about tiles and sitemesh now :)
I'm working on some webapplication, where only one user in the same time can do some special functions, (for example add files etc.) meanwhile others must wait. How I can implement such...
Please check this situation:
<bean id="deleteBean" class="DeleteClass">
<property name="xmlPoperties" ref="xmlPropertiesl"/>
+ other properties
<property...
Hi, I'm trying to add simple import usage to my jsp pages. I've got menu.html (virtual url mapped to controller) and I'm trying to add it to index.html (which is also virtual url). <c:import...
I've found very good tutorial:
http://jroller.com/ksevindik/entry/redirecting_users_to_different_start
It's great :D, it was mensed here...
I've got 2 beans:
xmlBean is responsible for reading data from xml file
<bean id="xmlBean" class="XmlBean">
<constructor-arg value="${xmlPath}"/>
</bean>
controller is one of...
Is there any possible way, that web application itself change its xml which contains the bean definitions (for example to add another bean) and than it will restart or redeploy itself? Is this...
A very handy feature is with acegi I can directly acces the login page. The defaultTargetUrl is page where the user will be sent if it directly accesses the login page, but I want to to something...
Hi all,
I'm thinking about fully modular web application based on Spring MVC. For example I want to have core module that will provide authentication, database connections, and module aid. I want...
Is there any way to pass bean to new window open by java script, different than adding it to session?
Ok, may I have another request? :). Could you write or send me link (I can't find it) how I can handle such form (get data from it, after submit)?
HI, I'm new to Spring. I have question about form tag library. I want to create jsp page with dynamic created form. In this form will be many form:select tags. Please look at this example (it's not a...