Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts and SWING

 
Ritu varada
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been working with servlets for sometime and I am trying to get a hang of using struts(Its so boring to just pick up a book and read about it...It would be great to learn it in a project..)Anyway, I digress...How do you use Struts and Swing together? That is, do you use Swing to write JSp pages and struts framework to process it..Then what is use of JSp ? Hopefully, its not that lame a question. Appreciate your replies.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing is an API for writing desktop applications, not web applications. Struts has a custom tag library used in JSP's for rendering HTML elements. I am going to move this to the Web Application Frameworks forum where Struts is a topic of interest.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ritu varada:
How do you use Struts and Swing together?

We can use applets, which may use Swing components, in the web pages, which resides in Struts framework...

That is, do you use Swing to write JSp pages and struts framework to process it..

No we don't use Swing to write JSP pages... We use text editors to write JSPs and put them into Struts framework to get a complete web application...

Then what is use of JSp ?

JSPs are used to display dynamic contents from servers...

Hope it helps...
 
Ritu varada
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies. I have forever worked on internet applications.So, Just curious since there seems to be a lot of interest about SWing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic