Yep, all my JSPs are in the same directory.

<c:import url="xyz.jsp"/> // didn't work

<c:import url="/jsp/xyz.jsp"/> // did the trick.

Dunno... 


On 9/17/03 1:14 PM, "Kris Schneider" <[EMAIL PROTECTED]> wrote:

> Okay, that's good, but I use page-relative paths successfully with <c:import>
> all the time. Are you sure the page doing the import is in the same directory
> as
> the page being imported?
> 
> Quoting Billy Bacon <[EMAIL PROTECTED]>:
> 
>> Awesome. That worked!
>> 
>> Thanks Kris!
>> 
>> - Billy -
>> 
>> On 9/17/03 12:05 PM, "Kris Schneider" <[EMAIL PROTECTED]> wrote:
>> 
>>> Have you tried a context-relative path (starts with "/") to the page?
>>> 
>>> Quoting Billy Bacon <[EMAIL PROTECTED]>:
>>> 
>>>> It's a scoped variable. But I think the problem is elsewhere because
>> even
>>>> this doesn't work for me and no exception is thrown...
>>>> 
>>>> <c:import url="myJspPage.jsp" />
>>>> 
>>>> Any ideas?
>>>> 
>>>> On 9/17/03 11:34 AM, "Kris Schneider" <[EMAIL PROTECTED]> wrote:
>>>> 
>>>>> Is "xyz" only a scripting variable or is it also a scoped variable?
>>>>> 
>>>>> Quoting Billy Bacon <[EMAIL PROTECTED]>:
>>>>> 
>>>>>> Yes, I am importing the core library, I have plenty of other <c:> tags
>>>>>> within my jsp and they work perfectly that's why it confuses me that's
>>>> it
>>>>>> not working. Seems like a pretty simple tag to use.
>>>>>> 
>>>>>> Before trying to convert this to JSTL I had <bean:define> tag (from
>>>> Struts)
>>>>>> and a <jsp:include page="<%= xyz %>"/> tag and things worked fine.
>>>>>> 
>>>>>> But now I get nothing...
>>>>>> 
>>>>>> 
>>>>>> On 9/17/03 10:38 AM, "Rick Ross" <[EMAIL PROTECTED]> wrote:
>>>>>> 
>>>>>>> Make sure that you are clear on the differences between c:import
>>>>>>> jsp:include and @include they are all different and in my case the
>> fact
>>>>>>> that the imported page has no knowledge of my context hosed me.
>>>>>>> 
>>>>>>> R
>>>>>>> 
>>>>>>> Billy Bacon wrote:
>>>>>>> 
>>>>>>>> I've looked through the archives and the suggested alternative for a
>>>>>> dynamic
>>>>>>>> <jsp:include> reference is using the <c:import url="${xyz}"/>. This
>> is
>>>>>> not
>>>>>>>> working in my JSP. The tag is including nothing in my page. I've
>> even
>>>>>> tried
>>>>>>>> to give it a static reference to the jsp <c:import
>> url="xyzPage.jsp"/>
>>>>>> and
>>>>>>>> still nothing. Does anyone know what's wrong?
>>>>>>>> 
>>>>>>>> - Billy -


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to