Hi all,
When i try to use spring 2.5.x DispatcherPortlet with liferay to use Ajax, i am getting this error. I have configured it using annotations.
At class level i used following annotations,
Code for controller...
@Controller
@RequestMapping("VIEW")
public class MyController {
@SuppressWarnings("unchecked")
@RequestMapping(method...
How do I put initial text into a Spring form textarea? The TLD rejects PCData content inside form:textarea. The point of this form is to ask a user to edit/correct some text, so the text has to get into the form in the first place. The JSP page is pulling the text from the model and wants to put it into the textarea.
...
My starting problem is this error message:
Problem accessing /segment.htm.
Reason:
Neither BindingResult nor plain target object for bean name
'acceptCorrected' available as request
attribute
The top-level description of what I'm working on is this:
Form1 solicits some input from the user. When form1 submits, I need to ...
I need to be able to comment to an article, but also be able to reply to a comment using the same form. Fairly simple, but how do I know that a user clicked on "REPLY", and know which comment they clicked "REPLY" too? I'd imaging I need to add some attribute to the anchor, but I'm not sure what it should be. I'd like this to be a best...
I'm creating menu and I would like to link my menu items to Spring controller paths. One way to do this is to include menu code to all methods that contain @RequestMapping annotations, but it would be manual task, I would like to automate this task, so that I could just define menu bean and add menu in site template and menus would be ge...
I am just starting to learn about spring and was looking at the difference between Spring 3.0 and Spring 2.5.
Initially i was following this tutorial http://static.springsource.org/docs/Spring-MVC-step-by-step/index.html which is a step by step guide to developing a Spring MVC application. It is based on Spring 2.5 and i notice there a...
Say I have a database layer, with DTO's for each table, and a factory that returns the DTO's for each table.
As long as I build to interfaces, I can re-implement the db layer and then just change my app-config.xml to use another implementation.
Now, is it possible for me to have this new implementation in another .jar file?
The goal...
I have noticed, that as of V7.x, there are two stand-alone distributions of Jetty. A Codehouse and an Eclipse distribution. Which one do I need to download if I want to run a full-blown Spring 3.0 (incl. Spring MVC/Webflow/Security, Annotations, Hiberate, REST, JSF, Comet ...) application? How to add missing depedencies?
Since I would l...
I'm a newbie in Java world, but I got solid knowledge of RoR and ASP .Net MVC.
I need to develop a web application which will serve as a web UI and also will provide web services for other applications to save and get data and run some async jobs.
I don't have any experience in Java EE and I would like to avoid it because even setting u...
This is the log4j.properties that i have in my app
log4j.rootLogger=B C
log4j.logger.A=INFO, A1
log4j.debug=false
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %C - %m%n
log4j.logger.B=INFO, A2
log4j.debug=false
log4j.a...
I have been trying to render tiles view with UrlBasedViewResolver for hours. Can anybody show me how it's done. I generally am trying to work this out
<bean id="tilesViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView...
Spring mvc 3.0 is so good ,I want to trying,Who can recommend a book on this type of?
...
Hi,
I want to make spring MVC 3.0.3 portlet using DispatcherPortlet class With JSON support. So, i added following configuration in the spring context file.
<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
text/html
...
Hi,
I'm trying to setup a new project using SpringMVC, Tiles and FreeMarker. So far I'm pretty lost between the TilesConfigurer, FreeMarkerConfigurer and the ViewResolvers. I have tried with several combinations of them but far no luck. I have also google a lot about it and I haven't really found a solid tutorial.
Any suggestions?
Car...
I trying spring 3 mvc this package is
org.spring.test and code is
@Controller
@RequestMapping("/welcome")
public class WelcomeController {
private Logger logger = org.slf4j.LoggerFactory.getLogger(WelcomeController.class);
@RequestMapping(method = RequestMethod.GET)
public void welcome() {
logger.info("Welcome!");
}
@RequestMapp...
Hi All,
I just recently learned about spring mvc but the tutorials that I have seen uses concrete framwework controllers. (SimpleFormCOntroller/AbstractController..etc)
As I know, they were deprecated in Spring MVC 3.0 right now.
As I have been reading on the forum, they say that annotated controller are flexible than the one that ext...
Is it ok to have more than 1 DispatcherServlet in web.xml to handle different URL ?
What's the downside?
<servlet>
<servlet-name>servlet1</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>servlet2</servl...
Hi,
I am facing a task here wherein I need to add an enhancement into an existing Spring MVC app written in 2.5.
My workflow is like this:
Retrieve list of Activity from DB
then display it
Manager should approve first then
the QA(Quality Assurance)
Now, I have this HTML markup for the first item.
//This is for the first item only
...
Hi
I'm doing some proof-of-concept work with Spring MVC and security. So far I've managed to write a simple web-app which has a secure webpage which requires a user to login and have the correct role before accessing the database and listing some data. I'm using Spring 2.0.8 by the way.
What I require is that, after the user has logged o...
I am trying to get the content of MultipartFile, which is obtained through MultipartHttpServletRequest.getFile().
There are 2 functions in MultipartFile,
bytes[] getBytes() ()
InputStream getInputStream()
What is the most efficient way to get the content? (which method would you use?)
...