x
login about faq

.Net guy going into Java

Hi. I'm a c# developer and I'm trying to learn Java and I have a question.

In c#, you create a new .aspx file which which has a codebehind file, a .aspx.cs file.

And in this .aspx.cs file, you can use code to access, for example, a dropdownlist created in the .aspx file and dinamically add a ListItem.

How do I do this in Java? Because it seems to me that when you create a Facelet file, which I suppose its the equivalent to a .aspx file, theres no codebehind file automatically associated to it.

Tks in advance.

more ▼

asked Nov 16 at 04:16 AM

GatoLindo\'s gravatar image

Rui Martins
0 3

(comments are locked)
10|600 characters needed characters left

1 answer: sort voted first

A code-behind page in .net is basically server side code associated with a specific .aspx page.

There are several ways of looking at this in Java. You could have a look at servlets, conceptually mapping this to server side Java code.

more ▼

answered Nov 17 at 09:27 PM

mmarkus\'s gravatar image

Mahesh Markus
0

(comments are locked)
10|600 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

powered by AnswerHub - Enterprise Social Q&A