• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

What is the use of spring in struct2 by comparing to

 
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 91
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 91
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic