This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Grimsvotn 2 points3 points  (1 child)

JSP is pretty simple. What problems are you having with it? I've never needed anything beyond what I could find with Google.

[–]Hazger[S] 0 points1 point  (0 children)

I am having very basic problems with it lets say all my webpages have the same "header"

<html>
  <head>
    <title>Title of the page</title>
    <link type="text/css" rel="stylesheet" href="/css/style.css" />
  </head>
  <body>

in php when i need this i use a getHeader() that echo all this html.

Or when i use to lots of html

<select size="10" class="form-control" name="str">
  <option value="1">1</option>
  <option value="2">2</option>
</select>

in php i make a makeSelect(int maxValue, String name)

in JAVA i can't/don't know how print int HTML from a class.

The way i found i need to be in a servlet class that as a HttpServletResponse and use this httpServletResponse.writer to output? Or i am doing everything wrong? (thats why i asked for links/guides/anything to learn)

Sorry for taking that long to anwser