%@ include file=" c:out value='${post.link}'/ " %
obviously does not work.!
I have a servlet which sends to a jsp file (via request dispatcher) a link to another htm file and I want to include the htm content in the jsp.
Is there a way?
thanks in advance,
Manuel Leiria
How about: <jsp:include page="${post.link}"/>?Smooth!
thanks,
Manuel Leiria
Similar Messages
-
LabView 2010 Applicatio​n Builder for EXE Always Included files are not Included
In LabVIEW 2010 F2, When I am using the Application Builder to build an EXE file, I have listed 10 or so files to Be "Always Included". But when I Explore the directory where the EXE was built, those "Always Included" files are not there or in any subdirectory under the EXE file.
This frequently makes my EXE file not work properly because important files are missing. I have to spend extra debugging time to find out the the cause of my problem is missing files that the Application Builder should have transferred "Always".
Why did the Application Builder, when building an EXE target, not include the files that should be "Always Included"?
Why does the Application Builder ignore these files specifications?Dennis Knutson wrote:
The build does include files you select. Post an example project with a small VI and some separate files where this does not happen.
No, it does not appear that all of the files that I listed in the "Always Include" list are copied during the Build process to the Build directory or any subdirectory under that.
The Build Source Files.jpg file shows most of the list of the files that should be "Always Included". Notice the .VI and .ctl files that are listed
The Build Directory.jpg file shows the file in the Build directory that were built.
The Data Directory.jpg file shows the data directory under the Build directory and may include some of the files listed in the "Always Include", but not all of them.
The other subdirectories under the Build directory were created by me and do not include any files that were copied during the Build process.
So not ALL of the files that were included in the "Always Include" list were copied into the Build directory area as expected. ALL of the files that are listed as "Always Include" should be copied, if they exist. Those files existed when then were selected for the List and they existed at the time of the Build.
I can not include an example project that demonstrates this. I am prevented from doing so by the terms of an NDA. You are going to have to take my word that this event is real and happens the same way every time. This information should be sufficient for someone to investigate why do not ALL of the files listed in the "Always Include" list are copied into the Build directory area regardless of the file type or contents.
Attachments:
Build Source Files.jpg 151 KB
Build Directory.jpg 125 KB
Data Directory.jpg 131 KB -
Design view + stylesheet on include file
I'm building a site that uses server-side include files. I
refer to CSS class names in these include files, but the actual
stylesheet link is on another page. In design view, the editor does
not reflect what is in the stylesheet, making it difficult to
visualize and edit.
Is there a way to have the editor recognize the stylesheet
globally for the project? I don't want to put redundant stylesheet
include statements on every include file just to have the editor
work properly.
- James.On Thu, 31 Jan 2008 15:55:22 +0000 (UTC), "Diodeus"
<[email protected]> wrote:
> Is there a way to have the editor recognize the
stylesheet globally for the
>project? I don't want to put redundant stylesheet include
statements on every
>include file just to have the editor work properly.
Apply a design-time style sheet. Press F1, in the index,
find:
Design-Time style sheets, using
Gary -
Hacking into the form values file to retrieve a post after closing a window
Okay, I'd just finished editing and re-editing a very long post and was doublechecking some of the links when I inadvertedly closed the entire window instead of merely closing the tabbed page I'd brought the new link up on to test it.
I poked around and found a long binary file called "Form Values" in library/safari directory and I would just bet this has my full post in it. I copied it to the desktop because I had a feeling that if I opened another form with Safari, the info would be rewritten and lost forever. So I do have a safety copy now.
Anyone have any idea at all how I could retrieve that information, and convert it from binary back into text form so I would not have to spend another two hours remembering and rewriting the post?
Or a way of getting Safari to recognize it and read it into a new post form?
Boy, recovering data with a menu item like "undo close window" or a reopen sure would be a nice feature... I bet I'm not the only person that's done this.
THANKS!!I just downloaded Hex Editor and gave myself a trip down memory lane (hadn't used one of these editors since my DOS days). Anyway, as I expected, it looks like the Form Values file is encrypted - there are no recognizable text strings to extract. In any case, this file contains the data you used to fill out forms at particular sites, it does not carry the entire page or form.
You could try Retrospective to see if you can find the page with the form in Safari's cache. If you do find it, the form could be filled out as when you closed the window or it could be blank as when it was last loaded into Safari - I don't know which because I haven't searched the cache with this puspose in mind before. -
Hi,
I have installed Solaris studio and wanted to use the memory analyzer from there. I am trying it on a sample program, but it returns the above error and does not instrument the executable. Could you please help me tracing where am I going wrong.
# which cc
/opt/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/cc
# /opt/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/cc -V
cc: Sun C 5.12 SunOS_sparc 2011/11/16
# cc -g -O2 test.c
# file a.out
a.out: ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped
# ldd ./a.out
libc.so.1 => /usr/lib/libc.so.1
libm.so.2 => /usr/lib/libm.so.2
/platform/SUNW,Sun-Blade-1500/lib/libc_psr.so.1
# /SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/discover -w - ./a.out
discover: error: The file /a.out was linked by an older link step. Please use the latest compiler to do the link.
Regards,
Vikkalok. Thanks for the info.
Could you check if a small test works on your system ?
You could use this test :
% cat a.c
#include <stdio.h>
#include <stdlib.h>
int main()
int *x = (int*)malloc(100);
printf("x[0]=%d\n", x[0]);
return 0;
% cc a.c -g -xannotate
% discover -w - -o a.out.disc a.out
% ./a.out.disc
ERROR 1 (UMR): accessing uninitialized data "*x" at address 0x8090008 (4 bytes) on the heap at:
main() + 0xc2 <a.c:8>
5: {
6: int *x = (int*)malloc(100);
7:
8:=> printf("x[0]=%d\n", x[0]);
9:
10: return 0;
11: }
_start() + 0x71
was allocated at (100 bytes):
main() + 0x5e <a.c:6>
3:
4: int main()
5: {
6:=> int *x = (int*)malloc(100);
7:
8: printf("x[0]=%d\n", x[0]);
9:
_start() + 0x71
x[0]=0
***************** Discover Memory Report *****************
1 allocation at 1 location left on the heap with a total size of 100 bytes
LEAK 1: 1 allocation with total size of 100 bytes
main() + 0x5e <a.c:6>
3:
4: int main()
5: {
6:=> int *x = (int*)malloc(100);
7:
8: printf("x[0]=%d\n", x[0]);
9:
_start() + 0x71
DISCOVER SUMMARY:
unique errors : 1 (1 total)
unique warnings : 0 (0 total) -
hi all,
how do I submit form values using link?
let me explain u the scenario.
I have a form which submits some form values.
In between there in a link which goes to a jsp page and comes back to first jsp by a button in second jsp.
problem is:-
when i click the link and come back the form values i lost.
what do i do to avoid this?
i hope i made myself clear.
i m trying to post values through that link and get then back by setting them in request object. cudn't suceed.
I m using struts tag library.
plz help me out.
Help Appreciated.
VikramYeah you've understood eveyrthing v_v
We have sooooo much power around here. Hey look. I brought you a gift :)
http://www.econym.demon.co.uk/pov/rope.jpg
http://www.yamaha.ca/content/drum/products/hardware/DRUM%20STOOLS/images/highres/DRUM%20STOOLS-2.jpg
Be gentle and find yourself an hook and stop thinking we want to rule the world over your head....
P.S We really really reaaaaally hate you :) -
How do I get a link to work in an "include" file?
I have link to a picture in a php web page. <a href="../images/testpic.jpg">
index.php
--include/maincontent.inc.php
--images/testpic.jpg
I call this file "maincontent.inc.php" from another file "index.php" in the root directory using a php include statement. <?php include("include/maincontent.inc.php"); ?>
I have tried absolute links also but nothing seems to work.
I have had this problem before and just put the include file in the root directory. That works.
Have had this same problem with a sample from a php book. Figured if the author can do it why can't I :-(.Have you tried opening the links in a different browser to verify it's an issue withing FF locally, and not the website/page itself rather than browser specific?
-
UIX: Problem with the include file
Hello,
I am totally lost here. I am trying to follow the example of including a code snippet in an uix file from the user guide at: http://download-west.oracle.com/otn_hosted_doc/jdeveloper/904preview/uixhelp/uixdevguide/includes.html
The parent file that I have is as follows ( test.uix )
<?xml version = '1.0' encoding = 'windows-1252'?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title="test"/>
</metaContainer>
<contents>
<body>
<contents>
<form name="form0">
<contents>
<pageLayout title="test">
<corporateBranding>
<image source="" destination="http://oracle.com"/>
</corporateBranding>
<productBranding>
<image source="" destination="http://oracle.com"/>
</productBranding>
<tabs>
<tabBar>
<contents>
<link text="tab1" destination=""/>
</contents>
</tabBar>
</tabs>
<pageHeader>
<globalHeader>
<contents>
<link text="page header" destination=""/>
</contents>
</globalHeader>
</pageHeader>
<globalButtons>
<include ctrl:node="testinclude"/>
</globalButtons>
<copyright>
<styledText text="Copyright Oracle 2006"
styleClass="OraCopyright"/>
</copyright>
<privacy>
<link text="Privacy Statement" destination=""/>
</privacy>
<contents/>
<pageButtons/>
<start/>
<end/>
<about/>
</pageLayout>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
</handlers>
</page>
The include file that I have is as follows ( testinclude.uix )
<?xml version="1.0" encoding="windows-1252"?>
<globalButtonBar xmlns="http://xmlns.oracle.com/uix/ui">
<contents>
<globalButton text="first button"/>
<globalButton text="second button"/>
</contents>
</globalButtonBar>
When I try to compile the test.uix ( which is my parent file ) I get the following error message:
Warning(45,59): test.uix: Parsing error, line 45, column 59: attributes in the namespace:http://xmlns.oracle.com/uix/ui are only allowed with the "data" expressionLanguage
How can I resolve this ?
This is what I am trying to do - and maybe there is a better way:
I have an application with two tabs, each tab has two (or more) subTabs/PageHeaders. Each pageHeader has a sideNav with atleast three elements. Each of the element goes to a differnt page. So far I have managed to create a template for the tabs and the pageHeaders. I do the switch for the pageheaders using the switcher element with the tabSelectedIndex as my "case". However I could not figure out a way to do the switcher based on the tab and the page header selected ( two conditions ), hence I thought of writing an include file with the sideNav and including it in the code corresponding to the page headers ( the code that I have posted is a very simple globalButton include - this is the most simplest thing that I could think of to experiment )
Thanks !Perhaps if you try like this
<sideBar rendered="${uix.rootAttr.indiceTopo != -1}" width="220">
<contents>
<include rendered="${uix.rootAttr.indiceTopo == 0}"
node="${ctrl:parsePage(uix,'/MeuAmbiente/menuMeuAmbiente')}"/>
<include rendered="${uix.rootAttr.indiceTopo == 1}"
node="${ctrl:parsePage(uix,'/Declaracao/menuDeclaracao')}"/>
note , this include tag is inside one mainTemplate.uit and see the rendered atribute is passed by parameter to this template.
As a metter of fact menuMeuAmbiente.uix is only the stiledlist tag and it's styledItens, i have one menu<Module>.uix for each superior tab
I hope this helps; -
!@ include file="filename" % error
Hello,
I'm working with WebSphere on OS/390 and get the following error when trying to use the include directive:
Error 500
An error has occured while processing request:http://eweb.stl.disa.mil:8190/stl/index.jsp
Message: Server caught unhandled exception from servlet [jsp]: JSP:/index.jsp: 31,13: Attribute
include has no value.: 31,13: Attribute include has no value.
Target Servlet: jsp
The actual statement on line 31 is:
<%@ include file="banner.jsp" %>
Do you know how to solve this? I've also tried the XML variants <jsp:include ... /> and <jsp:directive.include ... /> which do not error out but also does not include the page.
Thanks,
JohnI thought the syntax is like this:
<%@include file="banner.jsp" %>
NOT
<!@
You are right.. that was a cut and paste (ooh man.. not again...) error from the title of the original post..!!!!! -
I have been trying to use a form as an include file.
I created the file as a separate asp page, and then tried to
add it as an
include, the page fails when I try in on my testing server.
If I create the
form within the page I get no problems!!
Also when the page displays in the design view I get the
</Head> tag showing
within the include file of the page.
Anyone any suggestions to fixing these issues.
Thanks
LezThe way to think of it is that the server reads original
page, and if it has
an include, it grabs that and throws it in the code where you
told it to be.
What you get is one compiled page that goes to the browser.
So any CSS or
other info at the top of your calling page will affect
everything in the
page. Look at your page in a browser, then check out "View
Source" and
you'll see that it looks like one page. The browser doesn't
know, or care,
whether it was assembled from several parts or is just one
whole page from
the get go.
So yes, it can go...as long as that CSS call is in the top of
the calling
page! Which I don't think it is (but it should be).
MD
"Lez" <[email protected]> wrote in message
news:[email protected]...
> Do I not need to leave the CSS link in, or will it pick
up from the main
> page ?
>
> "Mad Dog" <[email protected]> wrote
in message
> news:[email protected]...
>> You still have one stray line in the include that
doesn't belong there:
>>
>> <link href="standard.css" rel="stylesheet"
type="text/css" />
>>
>> As to the next question, you need to set the ACTION
to go to a forms
>> handler. That's what will process it and send an
email with the info they
>> filled in to someone. The easiest thing, is to check
with whoever is
>> hosting the site. They usually have a forms handler
in place (such as
>> formmail) along with an FAQ and instructions on how
to set it up and use
>> it.
>>
>> MD
>>
>>
>> "Lez" <[email protected]> wrote in
message
>> news:[email protected]...
>>> OK have changed and saved the page as ASP and
now seems to work
>>> fine....do you know How I can send a mail to an
email address advising
>>> when this has been completed...have had a real
problem sorting that one
>>> out?
>>> Lez
>>>
>>>
>>> "Lez" <[email protected]> wrote
in message
>>> news:[email protected]...
>>>> The 'INCLUDE' form page has the asp
extension, does the main page also
>>>> require to be an ASP, as these pages will be
done by someone else?
>>>>
>>>> Thanks
>>>> Lez
>>>>
>>>> "Nancy - Adobe Comm. Expert"
<[email protected]> wrote in message
>>>> news:[email protected]...
>>>>> An ASP page has to have an ASP
extension. Your page has an html
>>>>> extension.
>>>>>
>>>>>
>>>>> --
>>>>> Nancy Gill
>>>>> Adobe Community Expert
>>>>> Author: Dreamweaver 8 e-book for the DMX
Zone
>>>>> Co-Author: Dreamweaver MX: Instant
Troubleshooter (August, 2003)
>>>>> Technical Editor: Dreamweaver CS3: The
Missing Manual,
>>>>> DMX 2004: The Complete Reference, DMX
2004: A Beginner's Guide
>>>>> Mastering Macromedia Contribute
>>>>> Technical Reviewer: Dynamic Dreamweaver
MX/DMX: Advanced PHP Web
>>>>> Development
>>>>>
>>>>> "Lez"
<[email protected]> wrote in message
>>>>>
news:[email protected]...
>>>>>> Sorry if I sounded off hand, I
followed the help file that does not
>>>>>> say remove any surrounding tags, I
have now removed them and the page
>>>>>> looks OK, however, the submit button
does not submit the form. On
>>>>>> hovering the button it displays the
<% ==MM_editAction %> and fails
>>>>>> to complete the insert as it should
do.
>>>>>>
>>>>>> the testing URL is
>>>>>>
>>>>>>
http://millmaxnetwork.com/Copy%20of%20SpecificInv_GNT_1.html
>>>>>>
>>>>>> Regards
>>>>>> Lez
>>>>>>
>>>>>>
>>>>>> "Mad Dog"
<[email protected]> wrote in message
>>>>>>
news:[email protected]...
>>>>>>> What I said could very likely be
helpful. Without seeing the pages
>>>>>>> online or the files it's
impossible to know for sure, but since you
>>>>>>> said you could "get the
</Head> tag showing within the include file
>>>>>>> of the page" in Design View, it
sounds like you might have more in
>>>>>>> the include page than you
should. As I said, an include should not
>>>>>>> have anything other than the
"guts" of the page. Does your include
>>>>>>> file have any <header>,
<body> or other "top of the page" elements
>>>>>>> included? If so, that could be
the culprit. From your description, I
>>>>>>> would expect it might only
include the area from <form> to </form>.
>>>>>>> If this isn't being helpful and
you already have it stripped down, I
>>>>>>> apologize and hope you'll post a
URL where we can see it or include
>>>>>>> the code so someone can look at
it.
>>>>>>>
>>>>>>> MD
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "Lez"
<[email protected]> wrote in message
>>>>>>>
news:[email protected]...
>>>>>>>>
>>>>>>>> If you can't add anything
helpful ....why reply ?
>>>>>>>>
>>>>>>>>
>>>>>>>> "Mad Dog"
<[email protected]> wrote in message
>>>>>>>>
news:[email protected]...
>>>>>>>>> For starters, the
include file should have nothing but the actual
>>>>>>>>> body of the code. No
header, no <head> tag, no <body> tag. Just
>>>>>>>>> the guts.
>>>>>>>>>
>>>>>>>>> MD
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "Lez"
<[email protected]> wrote in message
>>>>>>>>>
news:[email protected]...
>>>>>>>>>>I have been trying to
use a form as an include file.
>>>>>>>>>>
>>>>>>>>>> I created the file
as a separate asp page, and then tried to add
>>>>>>>>>> it as an include,
the page fails when I try in on my testing
>>>>>>>>>> server. If I create
the form within the page I get no problems!!
>>>>>>>>>>
>>>>>>>>>> Also when the page
displays in the design view I get the </Head>
>>>>>>>>>> tag showing within
the include file of the page.
>>>>>>>>>>
>>>>>>>>>> Anyone any
suggestions to fixing these issues.
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Lez
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
> -
PCC-S-02015, unable to open include file(gnu/stubs-32.h)
Hi,
I was trying to precompile one of the sample files from the "Pro*C/C++ Precompiler
Programmer’s Guide" and I got this error message:
Fehler in Zeile 7, Spalte 11, in Datei /usr/include/gnu/stubs.h
# include <gnu/stubs-32.h>
..........1
PCC-S-02015, Einfügedatei konnte nicht geöffnet werden.
(Which means "unable to open include file")
I couldn't find any an answer on the forum, so I figured it out for myself.
I just wanted to post it so in case somebody else faces the same problem, they would have the solution here.
The machine is a virtual Linux host running on a 64Bit architecture, so I was surprised why is it looking for stubs-32.h and not stubs-64.h.
The answer is in the stubs.h file:
#include <bits/wordsize.h>
#if __WORDSIZE == 32
# include <gnu/stubs-32.h>
#elif __WORDSIZE == 64
# include <gnu/stubs-64.h>
#else
# error "unexpected value for __WORDSIZE macro"
#endifSo let's check the bits/wordsize.h file:
#if defined __x86_64__
# define __WORDSIZE 64
# define __WORDSIZE_COMPAT32 1
#else
# define __WORDSIZE 32
#endifSo I figured out you can define __x86_64__ in two places:
The file: precomp/admin/pcscfg.cfg
Most probably you just need to add define=__x86_64__ and that should do the trick.
Unfortunately I couldn't try it because I didn't have write permission on that file.
The other way is to pass it in the command line:
proc sample1.pc MODE=ORACLE DEFINE=__x86_64__+
This way the precompiler created the output .c file without errors.
Cheers
PS: Don't try to define the __x86_64__ in the .pc file, or you'll get a warning when you compile the .c file. Not a big deal, just desn't look good :-D
Edited by: VincentFreeman on Feb 12, 2009 4:09 AM
Edited by: VincentFreeman on Feb 12, 2009 4:16 AMIdeally speaking your pcscfg.cfg should have the paths to the directories where you will be getting all your headers from
Based on what linux flavor & version of gcc you have the following directory will have the headers you are missing
/usr/lib/gcc/ABC-XYZ-linux/<gcc_version_no>/include
where ABC could be i386/i586 depending on the hardware and XYZ could be the linux flavor like redhat/suse/whatever you have -
Hi guys,
I have a strange problem using the jstl... An included file is not executing.
My code
main.jsp
<%@taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c" %>
<html>
<head>
<title><c:out value="${article.title}" /></title>
<link rel="stylesheet" type="text/css" href="webber.css">
</head>
<body>
<table width="100%" border="0">
<tr>
<td width="200">
<jsp:include page="navitem.jsp" flush="true"/>
</td>
<td>
<h3><c:out value="${article.title}" /></h3>
<c:out value="${article.text}" escapeXml="false" />
</td>
</tr>
</table>
</body>
</html>navitem.jsp
<table width="100%" border="0">
<c:forEach var="nI" items="${navItem}">
<tr>
<td>
<a href="<c:out value="${nI.navToURL}" />"><c:out value="${nI.displayText}" /></a><br />
</td>
</tr>
</c:forEach>
</table>and the resultant html as seen in view source from the browser...
<html>
<head>
<title>My First Test Article</title>
<link rel="stylesheet" type="text/css" href="webber.css">
</head>
<body>
<table width="100%" border="0">
<tr>
<td width="200">
<table width="100%" border="0">
<c:forEach var="nI" items="${navItem}">
<tr>
<td>
<a href="<c:out value="${nI.navToURL} />"><c:out value="${nI.displayText}" /></a><br />
</td>
</tr>
</c:forEach>
</table>
</td>
<td>
<h3>My First Test</h3>
<p>It is the simplest of things.</p>
</td>
</tr>
</table>
</body>
</html>As you can see, the code in main.jsp is executing fine, but not the code in navitem.jsp. Does anyone have any clues as to why this is happening?
Thanks in advance
ElijaWhoops I think I missed
<%@taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c" %>
from navitem.jsp
however putting that in and trying again results in
org.apache.jasper.JasperException: javax/servlet/jsp/jstl/core/LoopTagSupport
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at vss.servlets.ControllerServlet.forwardToJSP(ControllerServlet.java:64)
at vss.servlets.ControllerServlet.doFind(ControllerServlet.java:59)
at vss.servlets.ControllerServlet.doGet(ControllerServlet.java:38)
at vss.servlets.ControllerServlet.doPost(ControllerServlet.java:32)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
javax.servlet.ServletException: javax/servlet/jsp/jstl/core/LoopTagSupport
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
at org.apache.jsp.showarticle_jsp._jspService(showarticle_jsp.java:67)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at vss.servlets.ControllerServlet.forwardToJSP(ControllerServlet.java:64)
at vss.servlets.ControllerServlet.doFind(ControllerServlet.java:59)
at vss.servlets.ControllerServlet.doGet(ControllerServlet.java:38)
at vss.servlets.ControllerServlet.doPost(ControllerServlet.java:32)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)Any clues as to what I'm doing wrong?
Thanks in advance
Elija -
How to change the filename in @include file?
I want to do a checking before deciding to include which file,
for example,
<%
if(isValid){
%>
<%@ include file="abc.jsp" %>
<%
else{ %>
<%@ include file="def.jsp" %>
<% } %>but the code above doesnt work in my JSPs
any idea how to solve this?
thanks
DesmondAm i clear?? pls correct me if i am wrong..You are wrong.
The include directive is being used here, which is a compile time include, not a runtime include. Both includes will be performed before the resulting servlet is compiled.
If they have a conflict between them (either by not nesting them in their own { scope } or using <%! declarations %>) then the generated servlet will fail to compile.
So if you had the following:
abc.jsp:
Hello from ABC!
<% String myVar = "ABC"; %>def.jsp:
Hello from DEF!
<% String myVar = "DEF"; %>And the page as mentioned in the original post, you would end up with a Servlet something like this:
if (isValid){
out.println("Hello from ABC!");
String myVar = "ABC";
else{
out.println("Hello from DEF!");
String myVar = "DEF";
}This example would compile because of the presence of the braces.
However removing the braces or using a <%! declaration %> would probably screw things up with a compile error.
The %Include directive is like a copy/paste into a JSP before you compile it.
The <jsp:include> is evaluated at runtime and copies in the result of executing the page.
The difference is quite subtle, but very important.
Cheers,
evnafets -
"Include" files in Dreamweaver
I used "Include" files in my pre-Dreamweaver sites. When I switched to Dreamweaver and opened those sites, Dreamweaver converted Include file content into content on every page and does not reference the Include file anymore. Is there a way to reestablish Include file functionality in Dreamweaver, so that each page keeps only the reference to the Include file? (If so I can just search/replace content now on the page with a new Include file reference.)
I don't have a php site but I tried <?php include("menu.txt"); ?> anyway, but it didn't work.
Here is what I had used in the past:
I typed this Include file "call" into the html on the page where I want the left-nav TOC text to display:
<!--webbot bot="Include" U-Include="i/nav-left.htm" TAG="BODY" startspan -->
Here is the TOC text contents of "nav-left.htm" which then auto-populates into the live html page on the site when displayed:
<a href="http://www.example.com/index.php">Home</a> -
<a href="http://www.example.com/about.php">About Us</a> -
<a href="http://www.example.com/links.php">Links</a> -
<a href="http://www.example.com/contact.php">Contact Us</a>
frontpage would auto-insert this at the end of the above TOC text in the live page:
<!--webbot bot="Include" i-checksum="20326" endspan -->
But that TOC text never displayed in the nonpublished local version of the ms-frontpage web pages. It only filled in the TOC text on the page from the Include file after published out to the live site.
Whenever I changed the contents in the one file i/nav-left.htm, it updated the left nav TOC text on all the pages on my site where I had inserted the include statement:
<!--webbot bot="Include" U-Include="i/nav-left.htm" TAG="BODY" startspan -->
But after I brought this website into Dreamweaver, it automatically replaced all the TOC text contents into my nonpublished local version of the web pages. Now when I change the include file, it does not update the pages in the site. The Include statement fails and never calls the Include file and the Include file TOC text no longer populates the web pages. If I have an update to the TOC text, I have to update it on every individual web page, instead of just once in the Include file like I used to.
Is there a way to create a new Dreamweaver-friendly Include filed that's not php, or a different way of entering the statement, that will work in Dreamweaver? -
Hi,
When I a include of a file in a jsp file it could look like this:
<%@ include file="/jsp/ram01/login_ram2.jsp" %>
Would it be possible to replace file value with a variable ? I tried but it
does not seem to work.
...Thanks Per
Hi,
The include directive (<%@ include ... %>) is a translation-time activity which
is not processed in the context of a particular request (although JSP
compilation is normally done in the context of a request being submitted for
the page). As Ruslan points out, the include action (<jsp:include .../>) does
allow a jsp expression for the page specification -- this is because the
include action is a runtime inclusion. The short story is that <%@ include ...
%> is not an abbreviation for <jsp:include ... /> -- they have different
semantics.
Hope this clears up any confusion,
Robert
Per Lovdinger wrote:
> Hi,
> When I a include of a file in a jsp file it could look like this:
>
> <%@ include file="/jsp/ram01/login_ram2.jsp" %>
>
> Would it be possible to replace file value with a variable ? I tried but it
> does not seem to work.
>
> ...Thanks Per
Maybe you are looking for
-
Blue Screen when connecting to internet
I have this problem: blue screen appear in Win XP randomly when i try to connect to internet using a Genius modem. The error notification is this: "A problem has been detected and windows has been shut down to prevent damage to your computer. DRIVER_
-
Using Javascript to show/unshow a field based on input in another field
I want to display/not display a field in a JSP depending on what is selected in another field. I am using <div></div> element currently which is displayed/not displayed using a Javascript invoked by the first field. the problem with div is that I hav
-
Revision: 11999 Revision: 11999 Author: [email protected] Date: 2009-11-19 11:37:09 -0800 (Thu, 19 Nov 2009) Log Message: Fixed: ASC-3889 - Using setting in a for loop causes Verify error Notes: emit pop after callstatic to a void function to b
-
I have CS 6 which requests I sign in to access my serial numbers, which I have already, and it fails to connect so that I cannot use the programs. How do I get past this, is there a direct line to customer support in the UK? Thanks
-
Is it possible to speed up the network between a host and a guest-vm?
I need to copy some template PVM files about 1GB-4GB size from my hosts into a guest VM under Oracle VM. I did a scp -p <sourcefile> [email protected]:/ (Destination of the guest-vm IP). The copying took about 2.0Mb/s. It took 8mins+ for a 1GB file.