• Post Reply Bookmark Topic Watch Topic
  • New Topic

import inside a getter/setter

 
Melisa Mitchell
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have this for a get/set method.

i want to be able to say that if curTab is equal to 1 then load the personal page which is an include. So if curTab is equal to 2, then load the address include... is it possible to set this in here? This file is my PersonalInfoForm.java.. any help would be greatly appreciated.


thanks
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the JavaBean should be for business logic and data transport, while the JSP should be used for display. Including pages is a display task, and so should (and needs to) be done in the JSP. You could use something like this in the jsp:

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!