Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Existing Plug-and-Play Webapps (Tomcat / JSP)?

  1. #1
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,298
    My Mood
    Hungover
    Thanks
    142
    Thanked 620 Times in 531 Posts

    Default Existing Plug-and-Play Webapps (Tomcat / JSP)?

    I've been working with Tomcat and JSP- I've got a page that takes an input parameter, and based on that parameter, reads an xml file with data on it (it's a smarter version of my code.KevinWorkman.com page). I know that's probably not the most correct way to do things, but at least this way I don't have to change 25 pages every time I make a change on a menu.

    I'm venturing into slightly more advanced territory, and I now have login and registration working, as well as the ability to fill out a form that automatically creates a new info.xml file, so you can upload a game without going through the trouble of creating and organizing the same 10 files for each (jnlp file, thumbnail, favicon, background, etc...).

    As I'm working on this, I can't help but think that I'm reinventing the wheel. Surely there is an existing login/registration webapp I could just plug-and-play, right? Or a webapp that allows a user to create a blog-like entry, coupled with the ability to upload image files embedded in that entry?

    I've done quite a bit of googling, but I keep coming across tutorials on how to create my own webapps- which I certainly can, and have been doing, but I feel like I'm repeating work that has already been done before, by people who actually know what they're doing.

    So my question is, is there a collection of existing webapps I can use to just plug-and-play into my system? For example, a webapp that I drop into my webapps folder, and presto (or with minimal setup), I now have registration and login capabilities without writing all the logic to keep track of and update my user's info. Or is all of this so site-specific that it's not really possible to have plug-and-play functionality like that?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,267
    Thanks
    176
    Thanked 821 Times in 764 Posts
    Blog Entries
    5

    Default Re: Existing Plug-and-Play Webapps (Tomcat / JSP)?

    I don't know of anything specific, but wanted to suggest searching sourceforge...there might be some projects you could adapt for your own uses (I just did a search for "jsp tomcat login" and saw a few projects, in particular a blog project - might be worth looking at).

  3. #3
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,298
    My Mood
    Hungover
    Thanks
    142
    Thanked 620 Times in 531 Posts

    Default Re: Existing Plug-and-Play Webapps (Tomcat / JSP)?

    Thanks copeg, that's a good idea. I searched through sourceforge, but I didn't find anything as easily plug-and-playable as I was thinking. I suppose that kind of thing is simply too tied into a specific site to be reusable, but I thought that there would have been some kind of modular solution for the generic stuff (user information, uploads, etc).

    Anyway, I think I'm going to approach the problem from a different angle. I've been putting off doing any database stuff so as not to bite off more than I can chew, but in the end it's causing me more problems than it's solving. It seems that many of my problems are caused by looking for workarounds instead of just adding a database, when that's probably the most correct solution.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,267
    Thanks
    176
    Thanked 821 Times in 764 Posts
    Blog Entries
    5

    Default Re: Existing Plug-and-Play Webapps (Tomcat / JSP)?

    For what its worth, I was browsing the Apache project list today and stumbled upon Apache Click. Might be worth taking a look at. The following has some examples
    Apache Click User Guide
    There are also other projects like Struts you might want to take a look at.
    Last edited by copeg; November 9th, 2011 at 08:24 PM.

  5. #5
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,298
    My Mood
    Hungover
    Thanks
    142
    Thanked 620 Times in 531 Posts

    Default Re: Existing Plug-and-Play Webapps (Tomcat / JSP)?

    That looks awesome! You've been a huge help through this whole process, thanks so much. The more I learn about this stuff, the cooler I think it is. I'm still bootstrapping myself through the basics, but I'm definitely going to add that to my bookmarks for when I'm ready to take it to the next level.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Adding value to existing map key
    By ober0330 in forum Collections and Generics
    Replies: 12
    Last Post: September 30th, 2011, 12:49 PM
  2. Calling Existing DLL functions using java...
    By orihsoyk in forum Java Theory & Questions
    Replies: 0
    Last Post: April 6th, 2011, 07:23 AM
  3. Non-existing loop
    By Neo in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 13th, 2011, 06:23 PM
  4. Add code to an existing project
    By atul.mathur31 in forum Java IDEs
    Replies: 1
    Last Post: January 5th, 2011, 05:50 PM
  5. How to append data to an already existing file?
    By siteregsam in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: May 3rd, 2010, 02:31 PM