Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JSP import dependencies

Thread Tools

JSP import dependencies
Posts: n/a
Hey all

How can one access all the variables declared in one JSP which is
included in a page from another JSP which is included in that same
page? The scenario is that I put all my declarations in one JSP and
included that in the main page as a <%page import""%> - so far so good.
But I have another included JSP import which is dependent on the same
variables declared in the first JSP import. Now the second JSP can't
locate those variables, is there a way around this issue? Is this even
a solid approach when working with JSP's or should I maybe use a
component based web framework instead (which I am relucant to do)?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[JSP] difference between jsp:forward and jsp:include Java 0 06-02-2006 01:21 PM
to use import java.lang.* or import java.lang.Math or none at all? JPractitioner Java 13 02-24-2006 08:48 PM
XML Schema question - does "import" import elements? Vitali Gontsharuk XML 2 08-25-2005 07:33 PM
IMPORT STATIC; Why is "import static" file scope? Why not class scope? Paul Opal Java 12 10-10-2004 11:01 PM
import/from import question Artur M. Piwko Python 1 07-02-2003 07:04 PM