I posted the question a while ago but got no response. I would think this is a common use case. For example, if a user login the web application as "johnsmith", check out/update/check in a document,...
Type: Posts; User: zliu; Keyword(s):
I posted the question a while ago but got no response. I would think this is a common use case. For example, if a user login the web application as "johnsmith", check out/update/check in a document,...
I have a web application built on top of spring-modules 0.8 and jackrabbit 1.3. When users login the web application, they are authenticated by usernames/passwords stored in a database, which is not...
OK. I was trying to pass the end-user credentials to JcrSessionFactory but ran into exceptions. Not sure what went wrong. I tried allowCreate with both true and false for JrTemplate config. Same...
This is from JSR-170 spec.
"By providing a signature of Repository.login that does not require Credentials, the content repository allows for authorization and authentication to be handled by...
I setup springmodules 0.8 + jackrabbit 1.3 and it works fine. The username/password to connect to jackrabbit is the config file as below. My next step is to enhance the access control: verify if user...
I had the same problem but it was fixed after I specified the form action. For example, <form method="post" action="search.htm">
HTH.
"myManagerTarget" does not implement any interface. Then I realized it should, after reading your post. So I refactored the code to create interface "MyManager" and its implementation...
My application has some JUnit tests and Spring integration tests (with the help of org.springframework.test package). I ran the tests in maven2 by "mvn surefire:test" and they worked fine. Now I am...
Another thought on this one. I keep all web-related bean definitions, such as Spring MVC controller, in myapp-servlet.xml. Naturally I want to add MyFilter in it, too. If I have to keep MyFilter in...
Well said! Thanks a lot.
This is exactly what I missed. I should have read that more carefully. Now what is the intention having this true/false switch? I mean, what is a use case that I want to set targetFilterLifecycle to...
I got Filter & DelegatingFilterProxy work with the great help of this post
http://forum.springframework.org/showthread.php?t=20230&highlight=filter+interface
But a couple of questions remain....
I only looked up Spring config file when I was asked to check if there was any autowire. I forgot to mention that my test cases extend AbstractTransactionalDataSourceSpringContextTests. And I...
I have only on config file and it doesn't have any autowire definition. In addition,
the DTD said, "Note that explicit dependencies, i.e. "property" and "constructor-arg" elements, always override...
Thank you for your reply.
No, I did not. What should I set it as?
I have problem using two datasources in my application. I need the two datasource connecting to two different databases (but no need for transaction, though).
Here is the error message when I ran...
I was trying to use GeneratedKeyHolder to deal with the same problem: insert/trigger/new_id. Initially, I used the Oracle9.2 jdbc driver, ojdbc14.jar. The error was ORA-17023: Unsupported feature. It...
Thank you for pointing out the workflow and the usage of SimpleFormController. That helps tremendously. I figured out a work around with HttpSession. Thanks again.
I have been using Spring for a while but new to Spring MVC. So I tried to follow the examples. It seems that all the examples are redirecting to the successView upon submission. What other options do...
Thanks for your reply. I set sessionForm to true. But even with sessionForm as true, isn't formBackingObject() always called and thus a new instance created? I checked the session in...
I want to have a select list (names of database tables) on top of the page. Below that it is a list of records/values for the selected table. When a user chooese a different table name in the select...
stupid me. the error is actually on another part of the JSP code. the page works fine after I took out that piece. sorry about that. thanks again.
Thank you for your help. Here is the code. By the way, I wonder if I missed something special for AbstractWizardFormController. Similar code works fine for SimpleFormController.
public class...
Thank you very much for pointing me to the example.
In EditPetForm.jave, there is refereceData() method as
protected Map referenceData(HttpServletRequest request) throws ServletException {
Map...
I have an HTML form which has a drop-down list (indexed properties). The values of the list are retrieved from the database. How do I bind the list? Is there an example? Thanks.