/    Sign up×
Community /Pin to ProfileBookmark

Is it possible to declare page scope variable for jsp from custom tag?

Hi all! ?

Is it possible to declare page scope variable for jsp from custom tag? Or do job similar to scroplets?

Many thanks ?

to post a comment
Java

1 Comments(s)

Copy linkTweet thisAlerts:
@OakJun 18.2005 — Yes, of course.

<bean:define name="[bean in scope to get use]" property="[property of bean to use]" id=[what you want to call the variable]>

You can do almost anything using jsp tags and when you cant you can create a custom tag that will do what you want.

I know this can be a hard adjustment to make but it seems to be the way of the future.

Read more [URL=http://struts.apache.org/userGuide/struts-bean.html#define]here[/URL].

[I]To the wind that we sing, the tale of the king, who reigned in peace and love. Of the one, of the man, who had crossed the pass of the ancient forest of elves.[/I]
×

Success!

Help @Ghoul spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...