Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8521377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:48:25+00:00 2026-06-11T06:48:25+00:00

I have a huge read-only RESTFUL application built in Spring MVC and Hibernate-Search that

  • 0

I have a huge read-only RESTFUL application built in Spring MVC and Hibernate-Search that marshals some data to json and xml to be consumed for a mobile app and a monitoring application.

Our urls are pretty simple, we have this:

server:port/entity/id/?marshalling=json

or

server:port/entity/id/?marshalling=xml

and sometimes

server:port/entity/id/?marshalling=something&filterProp=entity.prop&ordering=desc

Now I have a requirement to make a presentation layer for this using JSF 2.1 and adding some user admin capabilities and I was thinking in something like this:

server:port/entity/id/?marshall=html

Or omitting entirely the marshall request parameter.

Now. As far as I know, you can only couple JSF 2.1 and Spring Web Flow, not Spring MVC directly. Anyone know how can I accomplish this requirement?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:48:27+00:00Added an answer on June 11, 2026 at 6:48 am

    Both Spring MVC and JSF work on seperate servlets that can only be mapped to a context that doesn’t conflict with another servlet, so this cannot be done easily and if you succeed then it is basically an enormous hack.

    If I absolutely had to do it this way (which I wouldn’t), then I would probably use the marshall servlet to clone my JSF requests, send that request to my FacesServlet using a WebClient, and then copying the returning WebClient response into my marshall servlet response and return that. This would be transparent to the user but highly messy and potentially insecure.

    The best way to implement a seperate web based presentation layer would be for requests to your presentation layer to be mapped to the FacesServlet so that your RESTFUL web services do not get called directly.

    Actor – > /admin/page.jsf -> FacesServlet -> JSF View – >
    JSF Controller -> Business Logic Layer -> RESTFUL Web Services

    In this way your RESTFUL web services can return XML or JSON data and act as your DAO, your Business Logic layer can perform additional logic on that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have huge amont of geographic data represented in simple object structure consisting only
I have a huge array that has to be read by different threads in
I have a Huge data file and I only need specific data from this
SO I have a HUGE C#/ASP.NET application that is now getting re-appropriated for other
I have a hadoop application that -depending on a parameter- only needs certain (few!)
I have a huge set data records in disk that arranged in sorted order
I have read a huge pile of problems and solutions, and I just can't
I have a huge file and need to read it and process. with open(source_filename)
Hello I have a problem wherein I have to read a huge csv file.
I have huge amount of data from database, i need to get or store

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.