Results 1 to 19 of 19
Like Tree6Likes
  • 1 Post By gimbal2
  • 2 Post By SurfMan
  • 2 Post By Tolls
  • 1 Post By Tolls

Thread: view jsp page without runing server

  1. #1
    mohsen.noor is offline Member
    Join Date
    Dec 2012
    Posts
    30
    Rep Power
    0

    Default view jsp page without runing server

    Hi
    1. Is there any way to view html element of a jsp page without runuing server
    2.Is there any faster way to see html page output with out right cllick on project and viwe(A button on toolbar)
    Thanks

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: view jsp page without runing server

    It would help if you explain what your exact problem is and why you ask this, I'm having trouble to understand what you don't want and what you do exactly want. Generally to do something with the web to need an actual web environment which is minimally a web server. But this is IT and in IT things can be automated, even starting a webserver and doing something with it.

    But what is that "something" ? For what purpose do you want to see the HTML? For unit testing or something?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    mohsen.noor is offline Member
    Join Date
    Dec 2012
    Posts
    30
    Rep Power
    0

    Default Re: view jsp page without runing server

    1-Edititng of web page and seeing results each time I need run server and I take too much time and I want only see view of web page and not code processing ,and of course my memory occupied by runing server.


    2- it is good if there is button on toolbar which only shows(NOT Run) html page which I am currently editing,because I working with more than 40 html page in my projocet"
    Thanks

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: view jsp page without runing server

    1) I don't know on what system you run this stuff, but I don't need to "run" a server each time I develop but only once and it starts up in mere seconds. Memory is cheap, that is not an argument against having to run a server.

    2) you're not editing a HTML page but a JSP. You may be able to find an Eclipse plugin that can generate some sort of preview however, I don't know of any specifically.

    If you're not using Apache Tomcat, I would check that out. It uses very little memory and starts up in a few seconds.
    mohsen.noor likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    mohsen.noor is offline Member
    Join Date
    Dec 2012
    Posts
    30
    Rep Power
    0

    Default Re: view jsp page without runing server

    I am using glassfish server
    thanks

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: view jsp page without runing server

    Glassfish starts up in seconds for me too. I don't know what is wrong with your computer, but you're not going to solve it by tossing the server away.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

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

    Default Re: view jsp page without runing server

    Slow starting Java servers/stand-alone applications are usually caused by a virusscanner which is setup to scan each and every file it gets its hands on. Virusscanning a JAR file will cause the jarfile to be opened and several thousands of classfiles will be scanned. McAfee shit is notorious for being a pain in the ass. Exclude your appserver's directory from scanning and see if that helps.
    Last edited by SurfMan; 10-31-2014 at 09:26 AM.
    gimbal2 and mohsen.noor like this.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

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

    Default Re: view jsp page without runing server

    Quote Originally Posted by mohsen.noor View Post
    1-Edititng of web page and seeing results each time I need run server and I take too much time and I want only see view of web page and not code processing ,and of course my memory occupied by runing server.


    2- it is good if there is button on toolbar which only shows(NOT Run) html page which I am currently editing,because I working with more than 40 html page in my projocet"
    Thanks
    As gimbal says, you're writing a JSP.
    If you need to figure out a page structure I would recommend prototyping it in HTML first, then using that as the basis for producing your JSP page.

    Besides, surely you can hot deploy, so no need for stopping and starting your server. You are, after all, using JSPs.
    gimbal2 and SurfMan like this.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

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

    Default Re: view jsp page without runing server

    Quote Originally Posted by Tolls View Post
    As gimbal says, you're writing a JSP.
    If you need to figure out a page structure I would recommend prototyping it in HTML first, then using that as the basis for producing your JSP page.

    Besides, surely you can hot deploy, so no need for stopping and starting your server. You are, after all, using JSPs.
    Wait wut? Prototyping? JSP? Hot deploy?

    view jsp page without runing server-sorcery.jpg
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  10. #10
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: view jsp page without runing server

    Points for recommending to prototype, that didn't even occur to me even though I do it myself all the time :/
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

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

    Default Re: view jsp page without runing server

    Quote Originally Posted by gimbal2 View Post
    Points for recommending to prototype, that didn't even occur to me even though I do it myself all the time :/
    Isn't that how it's always done? Cook up some HTML, then fill in the blanks? I can't remember having done things differently. Especially when working with a external designer.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

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

    Default Re: view jsp page without runing server

    Quote Originally Posted by SurfMan View Post
    Isn't that how it's always done? Cook up some HTML, then fill in the blanks? I can't remember having done things differently. Especially when working with a external designer.
    I always prefer working with a proper GUI designer as, frankly, I have the artistic talent of a sea cucumber.
    Give me the HTML layout and I can then rip out the bits a JSP fragment needs to handle.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

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

    Default Re: view jsp page without runing server

    Quote Originally Posted by Tolls View Post
    I always prefer working with a proper GUI designer as, frankly, I have the artistic talent of a sea cucumber.
    Give me the HTML layout and I can then rip out the bits a JSP fragment needs to handle.
    Very off-topic:

    +1. It's extremely rare to see a developer with designing skills and vice-versa. I have worked with a designer who whipped out an awesome Photoshop mockup. Just brilliant, everything about it. I was like, yeah, well 'shopped, but can you deliver this in HTML? I told him I wanted it in HTML5 with CSS, and as little "hacks" as possible. He delivered fully HTML5 compliant HTML styled with pure CSS, image sprites, including media queries for responsive design, all pixel-perfect. For my collegues I have put up the final webpage and his PSD next to eachother, and nobody could see the difference. I could NEVER have done that in a million years.

    TL;DR: Get yourself a skilled designer :)
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  14. #14
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: view jsp page without runing server

    My girlfriend happens to be one - she started out as a designer and then rolled into fulltime programming. You can do everything and do it amazingly efficient - which also means people will abuse that and make you do everything. Alone.

    Nope - I'm a big fan of separation of concerns. In people too.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

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

    Default Re: view jsp page without runing server

    Me and the other dev are having to do it where I am at the moment as "it's only an in house backoffice thing", so we've built the front end...thank god for things like Bootstrap otherwise it would look even worse.
    :)
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  16. #16
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: view jsp page without runing server

    JQuery-UI and its themes are also quite nice ;)

    ThemeRoller | jQuery UI
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

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

    Default Re: view jsp page without runing server

    I was going to use that, but turns out they use Bootstrap here, so go with the flow.
    gimbal2 likes this.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  18. #18
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: view jsp page without runing server

    And that is a piece of software engineering wisdom: rather than going your own way, go with the flow.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

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

    Default Re: view jsp page without runing server

    Quote Originally Posted by gimbal2 View Post
    And that is a piece of software engineering wisdom: rather than going your own way, go with the flow.
    Tempting though it is, as a contractor it's really not (IMO) fair to ride off into the sunset after having written code using a framework that no one else in the company uses.
    :)
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. page view prelude
    By willemjav in forum AWT / Swing
    Replies: 1
    Last Post: 03-06-2014, 12:27 PM
  2. unnable to view the default home page though j2ee server starting properly
    By shallz in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 03-21-2009, 09:37 AM
  3. setting the view to a jsp page from a self refeshing page
    By deepal_205 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 08-15-2008, 04:41 PM
  4. Applet - enter URL and view the page
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-10-2008, 02:38 PM
  5. How to view applet from html page.
    By jwzumwalt in forum Java Applets
    Replies: 2
    Last Post: 11-24-2007, 04:21 AM

Tags for this Thread

Posting Permissions

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