Results 1 to 9 of 9
  1. #1
    itxchanti09 is offline Member
    Join Date
    Jun 2016
    Posts
    5
    Rep Power
    0

    Default What is difference by using .do and .html extension in Spring?

    ?What is the difference i use file path with .do and .html and .htm? Any security measures or any other?

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,983
    Rep Power
    8

    Default Re: What is difference by using .do and .html extension in Spring?

    The "extension" tells the container what to do with the request. In the web.xml there is a list of URL patterns that are mapped to a servlet. A .do pattern usually maps to the Struts servlet.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  3. #3
    itxchanti09 is offline Member
    Join Date
    Jun 2016
    Posts
    5
    Rep Power
    0

    Default Re: What is difference by using .do and .html extension in Spring?

    So is there any possible to of hiding code by keeping .htm extension in browser instead of .html by using spring.

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,983
    Rep Power
    8

    Default Re: What is difference by using .do and .html extension in Spring?

    Hmm, Spring, I don't know. What code are you trying to hide? And why? Because in the end, the end user will get the same html/javascript in their browser, no matter what the extension.

    Security through obscurity is a Bad Thing™.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  5. #5
    itxchanti09 is offline Member
    Join Date
    Jun 2016
    Posts
    5
    Rep Power
    0

    Default Re: What is difference by using .do and .html extension in Spring?

    the source code from the browser when we right click. So when execute the project in web browser, in the result page can see source code by right click and view source. In this process can we hide the business logic any thing by using .do or .htm?

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: What is difference by using .do and .html extension in Spring?

    Only if your business logic is on the server (eg in Java).
    If it's in Javascript then no.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    itxchanti09 is offline Member
    Join Date
    Jun 2016
    Posts
    5
    Rep Power
    0

    Default Re: What is difference by using .do and .html extension in Spring?

    I mean from the source code when the project execute on the browser by right click and view source can see sode. So when execute the project in web browser, in the result page can see source code by right click and view source. In this process can we hide the business logic any thing by using .do or .htm?

  8. #8
    itxchanti09 is offline Member
    Join Date
    Jun 2016
    Posts
    5
    Rep Power
    0

    Default Re: What is difference by using .do and .html extension in Spring?

    So can secure source by .do or .htm?

  9. #9
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: What is difference by using .do and .html extension in Spring?

    That's Javascript.
    There are probably obfuscation apps that you can run when you build your project, but that's about all you can do.

    You can't hide the HTML itself as the browser needs it.
    You can't hide the Javascript as the browser needs it.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. .jar extension trouble
    By Dalex in forum New To Java
    Replies: 13
    Last Post: 03-12-2012, 05:31 PM
  2. Replies: 0
    Last Post: 01-12-2012, 10:46 AM
  3. Replies: 1
    Last Post: 12-27-2010, 05:21 PM
  4. difference between outputlink and commandlink in html tags
    By vasug in forum JavaServer Faces (JSF)
    Replies: 2
    Last Post: 02-27-2010, 05:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •