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 3337638
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:16:34+00:00 2026-05-18T00:16:34+00:00

Just starting to learn the Java side of things, sorry if this is obvious.

  • 0

Just starting to learn the Java side of things, sorry if this is obvious. But, I was reading a tutorial about Spring in Java 6 and saw they were using just regular old JSTL on the view.

What does Spring give me if I am using JSTL for the view? What would I use if I used “just java” (I know it is all Java but I mean besides a framework like Spring or Struts)?

Thanks.

edit:

I guessed JSTL was the V. That’s my point. If I already have the V without Spring, what do I get that I don’t already have with Java? What would I have to provide without Spring (please don’t say MC!)

edit: Maybe I’m asking. What would I use in Java for MVC if I didn’t use Spring, Struts or something like that. What out of the box for MVC, with JSTL, do I have for Java 6. What other components (I am keeping JSTL for a reason). Thanks.

  • 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-05-18T00:16:35+00:00Added an answer on May 18, 2026 at 12:16 am

    Here is a very simple example.
    When in plain vanilla Servlet model 2 you write something like this:

    public class AdditionServlet extends HttpServlet {
        public void doGet(HttpServletRequest request, HttpServletResponse response) 
            throws ServletException {
            String x = request.getParameter("x");
            String y = request.getParameter("y");
            if (x == null || y == null) throw new ServletException();
            try {
                request.setAttribute("result", 
                    Integer.parseInt(x) + Integer.parseInt(y));
            } catch (NumberFormatException ex) {
                throw new ServletException(ex);
            }
            request.getRequestDispatcher("/WEB-INF/jsp/calc.jsp")
                .forward(request, response);
        }
    }
    

    in Spring MVC you write this:

    @Controller
    public class ArithmeticController {
        @RequestMapping("/add")
        public String add(@RequestParam("x") int x, @RequestParam("y") int y, 
            Map<String, Object> model) {
            model.put("result", x + y);
            return "calc";
        }
    }
    

    Both controllers use the same JSTL view, but amount of the boilerplate code differs.

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

Sidebar

Related Questions

im just starting to learn flex and im trying to understand how Flex does
I am just starting to learn javascript, so I don't have the skills to
I am just starting to learn F#. In several F# coding examples I see
I'm just starting to learn C++ so you'll have to bear with my ignorance.
As someone who is just starting to learn the intricacies of computer debugging, for
I'm a C++ programmer just starting to learn Python. I'd like to know how
Im just starting a project and since this project is personal I was wondering
Just starting to explore the 'wonders' of regex. Being someone who learns from trial
Just starting out in asp.net. Have just created a login.aspx page in my site
I am just starting out with DI & unit testing and have hit a

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.