Wrap it by an application scoped bean?Lucius Fulcius wrote:Its a different one for sure its the one that is declared in the TEST servlet and that lives from the call to init()
Your last reply make me think that there could be a way to share a single instance of a Property class between the jsp and servlet class...mmm
Ignore that whole site. It's from 1999 and it has still a lot of "old" and currently bad practices around.
I'd like to do THIS but from jsp to servlet
Wrap it by an application scoped bean?
No, it's just a class with private properties and public accessors.Lucius Fulcius wrote:I dont know how to do it I'v never worked with beans, is it difficult to implement ?
Nobody said any about EJB which has nothing to do with beans
Without a good understanding of beans, you are going to have a hard time in the world of JSp and servlets
Lucius Fulcius wrote:
Nobody said any about EJB which has nothing to do with beans
I said I'v never worked with beans and it seems to me EJB stand for enterprise java beans so what beans are you talking about ?
Bauke Scholtz wrote:Just plain vanilla Javabeans. Or DTO's or VO's or POJO's or whatever you call it and how you want to generalize it.
But I did in no way mention about Enterprise Javabeans or EJB's. That's a completely different chapter.
I highly recommend you Head First Servlets & JSP.
Don't get me started about those stupid light bulbs. |