• Post Reply Bookmark Topic Watch Topic
  • New Topic

in comparison to JSP  RSS feed

 
william chaple
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to do a website, we know we have to use css to style it, and the standard HTML to carry the information

But i have a question about passing on information. I know JSP is used to retain information, for instance, you fill out a form saying name, age, gender. You can use JSP to store the information and have it passed down to another page.

I am really good and css now, but now ive been practicing storing information, such as name, age, gender and having it displayed on the second page. So i was wondering what languages act as JSP that is more being used today? can PHP do the same, or how does the whole thing work with storing and displaying information that acts like JSP
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66158
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
william chaple wrote:You can use JSP to store the information and have it passed down to another page.

Not really. JSP is a templating language. You use controllers to pass information along, not the JSP. The controller can then pass the data to the JSP for display. But it's not the JSP that's doing any "carrying along" in a properly structured web app.

So i was wondering what languages act as JSP that is more being used today?

If you are working in Java, most web apps will use JSP, or a framework that uses JSP. Some frameworks roll their own templating system, such as the Play framework. There's also 3rd-party templating libraries such as Freemarker.

can PHP do the same, or how does the whole thing work with storing and displaying information that acts like JSP

Outside of the Java ecosystem, PHP is roughly equivalent to JSP without the Servlet underpinnings.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!