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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:01:19+00:00 2026-05-23T06:01:19+00:00

Good morning everyone, I have a question about J2EE framework. since ASP.net 3.5 mvc

  • 0

Good morning everyone,

I have a question about J2EE framework.

since ASP.net 3.5 mvc add a new feature “Routes” do we have similar function in j2ee ?

here is some text about this feature in asp.net3.5

Routes are a new feature in .NET 3.5 SP1, and ASP.NET MVC uses this feature to give controller classes the capability to respond to requests. ASP.NET MVC uses REST-like URLs (Representational State Transfer) that are cleaner than regular ASP.NET web application URLs. Here are examples of such URLs:

/products/show/881
/customers/list
/login/register

As you can see, REST-like URLs tend to be clean, simple, and don’t expose .aspx files directly on the server. Although you can have directly addressed .aspx pages in ASP.NET MVC applications, this is not the main idea.

Through developer-defined routes, the ASP.NET MVC application can direct requests to controllers. Routes are defined once for the entire ASP.NET application, so the Global.asax file is the logical place to define these. In fact, if you take a look at the default Global.asax.cs file in an ASP.NET MVC application, you will see a method called RegisterRoutes defined. This method is called from the Application_Start method, and implemented like this:

public static void RegisterRoutes(RouteCollection routes)
{
   routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
   routes.MapRoute(
      "Default",
      "{controller}/{action}/{id}",
      new { controller = "Home",
         action = "Index",
         id = "" }
   );
}

By default, a route called “Default” is defined with three parts: controller, action, and finally an ID separated by slashes. When a request arrives at the MVC application, the URL is parsed according to this definition. For instance, given the request for “/products/show/881”, this would be parsed so that the “controller” parameter would have the value of “products”, the “action” parameter would be “show”, and finally the “id” would be “881”.

  • 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-23T06:01:19+00:00Added an answer on May 23, 2026 at 6:01 am

    If you use Spring, you can use it’s @RequestMapping annotations to achieve something similar, so you could have something like

    @Controller
    @RequestMapping("/products")
    public class ProductController {
       @RequestMapping("/show/{id})
       public String show(@PathVariable Integer id) {
    
         .......
    
       }
    
    }
    

    And if you want to make sure that jsps can’t be directly called, you place them inside WEB-INF

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

Sidebar

Related Questions

Good morning everyone, I'm new to C # and already have a challenge ahead.
Good morning, I've got an ASP.NET MVC VB2008 .NET 3.5 project I'm upgrading to
Good morning, Apologies for the newbie question. I'm just getting started with ASP.NET internationalization
Good morning everyone, I'm currently building a jquery step by step form at: http://jsfiddle.net/xSkgH/
Good morning everyone! I'm doing a distributed application using .NET 4.0, C# and Remoting
Good morning, I have to use the properties from DeviceNetworkInformation in my application. (http://msdn.microsoft.com/en-us/library/microsoft.phone.net.networkinformation.devicenetworkinformation(v=vs.92).aspx)
Good Morning/Afternoon all, I have a ASP:grid which displays current versions of Terms and
Good Morning everyone, I'm totally confused with this problem. I have 3 UIWebViews and
Good morning everyone, I am working on a legacy ASP Classic application which needs
Good morning\evening everyone! i have a string in a format like 0x0SD30SV8GN48N84GN wich represent

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.