cancel
Showing results for 
Search instead for 
Did you mean: 

'Beans'

peter_norris
Explorer
0 Kudos

New to the forum so apologies if this message is covered elsewhere...

Is there a BSP tag that corresponds to the JSP USEBEAN tag - and therefore an equivalent for SET PROPERTY and GET PROPERTY...?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

In what regards? For parameters? basic getter and setter methods are used in MVC quite often and in BSP well for a general understanding try out this weblog:

/people/sap.user72/blog/2004/09/07/bsp-howto-exploring-bsp-development-and-the-miniwas-620

peter_norris
Explorer
0 Kudos

Just a guess Craig, but I imagine the following code snippet from the link you supplied would be covered by a bean declaration...

<%

DATA: iterator TYPE REF TO ZCSC_CL_FAQ_CAT_ITERATOR.

CREATE OBJECT iterator TYPE ZCSC_CL_FAQ_CAT_ITERATOR.

%>

But wouldnt this code be better off in an event block?

Former Member
0 Kudos

Yep Peter, basically yes.

The CREATE OBJECT is basically like a useBean in the case of the example there you found one for an Iterator but a normal Class with methods in it would be the same and yes you can do it in the pagelayout (e.g. JSP) or in the Event handlers (e.g. Servlets)

But as Brian pointed out in BSP there are lots of other ways to handle similiar tasks.

former_member181879
Active Contributor
0 Kudos

No. Never did understand what is the use of them. Especially as vegetables is not our strongest point. There are probably many other easier techniques to handle this in BSP, but we have no idea what the real problem is.

peter_norris
Explorer
0 Kudos

Well if you dont understand what their use is I guess they're a waste of time. Sad really, I rather like vegetables.