• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the use of spring in struct2 by comparing to  RSS feed

 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 90
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I am doing struts2 web project. During talking about spring, I want to know what is different as below two case??

(1) see below screen, it will set the property of service in struts2  files and also doing code of service in action class. Is it allow me to call services function in struts2 view jsp file??
(2) I can use the service of MVC in the action class by importing the service namespace.

Capture.PNG
[Thumbnail for Capture.PNG]
 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 90
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Point one as mentioned in the link : https://struts.apache.org/docs/spring-and-struts-2.html
 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 90
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, my previous project is doing primefaces and spring webflow and spring mvc.
It can call controller function or user class and spring webflow action name in primefaces view xhtml file.

Now I am doing struts2 web project. I only know that struts.xml that connect action class and struts2 jsp view.
I have questions on how to use user class in struts2 and maintain the session between several pages.
I want to use similar user class in struts2, like my previous project (JSP and Spring), instead of session or request variable.
Is it possible? If yes, is there any example??
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!