Relative Content

Tag Archive for jsp

Why JSP over Servlets for view?

Although servlets does the task of sending the HTML code to the client programmers weight JSP over servlets for that. Even a JSP code is compiled into servlet before giving the response to the browser then why is JSP preferred? If servlet is used then a lot of computation work can be saved.

Controller JSP – no view

Most people say do not use JSPs. But what if I have a JSP that does not show anything, it only acts as a controller? Why would I do that? Because we do not need to redeploy complete webapp to make a small but significant change in a servlet -> instead can just put my new JSP in the JBoss tmp folder till we do a full deploy.

I want to send data using ajax when the value comes out in jsp

The value comes out from jsp. However, I don’t know how to send the value as ajax data. I tried to print the jsp value and change it, but it failed. What should I do? What should I put in the data in ajax? This is jsp. The output of “out.println(name + ” : ” […]

Java App as Tomcat Service?

I currently have a basic j2ee website. Currently, a jsp frontend gets data from the backend (the java program, lets call it object “Score”). The backend gets this data from a web site.

JSP without .jsp-files?

I have a little project (a CMS) that was developed using .jsp-files in 2006. I moved in 2011 to JSF and had only one .jsp-file for the frontend.

JSP without .jsp-files?

I have a little project (a CMS) that was developed using .jsp-files in 2006. I moved in 2011 to JSF and had only one .jsp-file for the frontend.

JSP without .jsp-files?

I have a little project (a CMS) that was developed using .jsp-files in 2006. I moved in 2011 to JSF and had only one .jsp-file for the frontend.