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

  • SEARCH
  • Home
  • 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

I'm just starting to learn Entity Framework 4, and am a bit confused about
I'm just starting to learn the C programming language. I've written this simple piece
For those just starting to learn WCF , what are the major/basic things I
I am just starting to learn Python, but I have already run into some
Just starting to learn scala.. I can't seem to figure out how to compile
I'm just starting with web frameworks and web development (I work only a little
i am starting to learn MVVM, and i decided to choose Caliburn Micro to
I am new to Sharepoint, starting to learn how to develop for it. From
What happened to Dlinq? I heard a few years ago that it was abandoned.
The two posts below are great examples of different approaches of extracting data from

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.