!@ 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,
John
I 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..!!!!!
Similar Messages
-
Server include file throwing error
http://www.sdmconsultingllc.com/philosophy/manage-digital-media-solution.html
Original HTML:
</tr>
<tr>
<td bgcolor="#000033"><!--#include file="../includes/bottom-links.php" -->
</td>
</tr>
</table>
Final Source on URL Above
</tr>
<tr>
<td bgcolor="#000033">[an error occurred while processing this directive]
</td>
</tr>
</table>
Include URL
http://www.sdmconsultingllc.com/includes/bottom-links.php
From within dreamweaver it looks good. Upon upload it doesn't work.
Ideas?I was duplicating what I did when making the Digital Dealership System site.
html is the main page
php is the server side include
Most servers do not parse include files into .html files by default. Check with your host.
If you're on a Linux server, rename parent pages with .php or .shtml extension.
If you're on a Windows server, use .asp or .shtml (if supported).
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Include files filename pattern change request
Could you guys be my heros and rename the include files in the TLF source to NOT be *.as?
FDT hates that and won't let me compile because it detects that the file doesn't contain a valid class.
eg, in my local copy, I changed them to *.as.inc and everything's lovely.Update: there's not much we can do in the short term, but in the longer term we're investigating a solution. I've written a bug for this. I'm afraid in the meantime you'll have to keep renaming the files.
Thanks!
- robin -
CR 2008 on SAP BW : Error on file filename : Database Connector Error
Hi,
We are facing a rather strange problem in our Prod box.
When we run a CR with a mandatory parameter from EP or Infoview,
For the first available LOV on Plant, (Plant is the Mandatory Parameter entry for the report)
For the first execution,
the Crystal report fails to execute and throws the following error.
Error on file <filename>: Database Connector Error
When we re-run the report with the same parameters, it executes and displays the result.
We are using Crystal Reports 2008 on SAP BW Query with SAP BW MDX Driver
Since the users currently access this report, we need this get resolved asap.
Any help is greatly appreciated.Hi,
this is a forum so people will answer questions when they get to it.
if you need help "asap" then I would suggest you open a case with SAP Support
Ingo -
Jsp taglibs in include files not detected, throws errors, no code insight
I have a jsp which is included in all the other jsp. it looks something like this
taglibs.jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
test.jsp
<%@ include file="/jsp/menu/taglibs.jsp"%>
<html>
<head>
<title>Tours</title>
</head>
<body>
<form:form commandName="testCommand">
<form:hidden path="tour.firstname" id="tour.firstname" />
and so on.
I am having 2 problems
1. the jsp editor show errors all over the place saying
element path not expected
element commandName not expected etc.
2. no code insights.
but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.am not sure, try with this
<jsp:include .../> -
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 -
How to include file-separator in fileName?
I'm retrieving the file name from a function and that function returns me the string and now I can't change this.
String fileName="C:\jdk1.2\hello.java"
Now next with this file Name I'm making a file object
File f=new File(fileName);
FileInputStream in=new FileInputStream(f);
but this gives me error..that it doesn't found the specified the file given...
so this means I must give the separator as C:\\jdk1.2\hello.java
but I can't change the value returned to me by the function...
So this means that I have to make a function replace which converts '\' to '\\'
String newfileName=replace(fileName);
so please can anybody tell me how to write this funcion? Actually I can't use replace fn. of String class, as it says that '\' is invalid escape character...u try it and compile the result and tell me
thanx in advance for the favourable responsemmmmmhhh... hi!
I don't whant to be mean but I did't understand what's the problem at all? Are you trying to implement a new method to replace the '\' with '\\' in Strings????. Let me guess:
private static String replace(String input) {
String output = null;
//.. do something;
return output;
But beware: you cannot call this method as, say,
String path = replace("C:\My Documents\User\texts\file.dat");
to get "C:\\My Documents\\User\\texts\\file.dat"... First the argument is invalid, and second you're missing the fact that what you want is to preprocess the text of the java SOURCE FILE, not a String object to handle like ***text in you source file***...
Just write your strings like "C:\\My Documents\\User\\Home\\docs.txt" or "C:/My Documents/User/Home/docs.txt" (I personally use the later)
But please see what's the problem:
"C:\My Documents\User\Home\docs.txt"
is not even a String!!!
If you do
System.out.println("C:\\My Documents\\User\\Home\\docs.txt");
System.out.println("C:/My Documents/User/Home/docs.txt");
System.out.println("C:\\\\My Documents\\\\User\\\\Home\\\\docs.txt");
the output will be
C:\My Documents\User\Home\docs.txt
C:/My Documents/User/Home/docs.txt
C:\\My Documents\\User\\Home\\docs.txt
... hope I didn't misunderstand the question nor did I oversimplify the issue, I just guess you got lost with the concept... -
Rendering error whilst writing to file /filename etc./ An output module failed
I'm trying to render my composition in the latest AE CC 2014. I get the following error with all composition sizes and with different codecs: Rendering error whilst writing to file /filename etc./ An output module failed. The file may be damaged or corrupted (-1610153464). Can anyone help me sort this problem?
AE build number? Codec used? System OS?
-
Error in file filename : Database Connector Error
Dears,
I face a problem from several days with one of my deployed reports to CMS.
The problem is the same reports run for some users and other users keeps to give them this error:
Error in file <filename>: Database Connector Error
Note: there is no filteration or any condition on users name and data resulted from this report is one for all users.
I tried everything, even i remove all objects from the report and keep only page headers it works.
But, if i readded any field from my DB object in crystal report the error appears again.
Please help, Thanks in advance.Hello,
You are using the original release of Cr XI R2. This has likely been fixed after applying all Service Packs and Fix Packs.
You should update the BOE Servers also so before doing so please check with the BOE Administrator.
To get the BOE patches you have to log into Service Market Place. To get CR patches make sure you have your keycode saved and available.
Uninstall CR using the Add/Remove Programs in Control Panel and then use the Full version of CR XI R2 Service Pack 4 and you can then apply SP 6, if it requires SP 5 first please do so:
https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
We do recommend that BOE and CR be on the same patch level.
Thank you
Don -
Pro*C/C++ generates error "PCC-S-02015, unable to open include file"
I'm running a .pc file through the pre-compiler (on Windows 7x64 with instant client 12.1) and get the following error:
Error at line 78, column 1 in file XXX.pc
EXEC SQL INCLUDE SQLCA;
1
PCC-S-02015, unable to open include file
If I change the content of my file to the following
#include "sqlca.h"
//EXEC SQL INCLUDE SQLCA;
the pre-compiler does it's job nicely.
My pcscfg.cfg looks like this:
include="C:\PROGRA~2\Oracle\INSTAN~1\sdk\include"
include="C:\PROGRA~2\MICROS~2.0\VC\include"
define=(WIN32_LEAN_AND_MEAN)
DEFINE=_WSTDIO_DEFINED
Has there been a change in the syntax of Pro*C or why can't it resolve the EXEC SQL INCLUDE?
PS: I'm an absolute newbie to this and am trying to get to compile some veeery old code, build under instant client 9/10/11)Karl Esau (guest) wrote:
: Hi,
: I have problems to get the precompiler running - executing the
: precompiler leads to a segfault.
I meanwhile solved the problem, so that I can compile and
run the samples.
a strace on 'proc' showed:
open("/oracle/precomp/public/SQLCA.H", O_RDONLY) = -1 ENOENT
(Nosuch file or directory)
I made a symbolic link for an upper case SQLCA.H, needed to add
SQLCHECK=SEMANTICS in ~/precomp/admin/pcscfg.cfg and one more
lib for the make: /lib/libdl.so.2 because 'dlclose' and other
symbols were undefined.
bye
Karl Esau
null -
Error when using %@ include file="/test.jsp"%&
UsingNitrox version 2.1 M3 (build 419 06022005):
with jdk version: 1.5.0_03 and Tomcat 5.5.9
This is the error :cry: when using <%@ include file="/test.jsp"%> in jsp:
Severity 2
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files (test.jsp)
It used to work in previuos version of Nitrox. I can't use struts tiles because the tiles content is dynamic (run time) and I need it to be static (at compile time).
Have you encountered this problem? What is the fix? Nitrox bug?
I need your help please,
AlbertoM7,
I found the problem :wink: . In the java Build path having the default (ALL) is not picking up the content of the package. I had to use add multiple and include all the folders and subfolders (many L) in my packages. After that I added *.java and *.properties to select all the java files. Now it is working. I assume this is a bug in Nitrox. The default ALL should include the all the files in the path.
Thanks,
Alberto -
ASP, IIS 6
Hello all,
Yesterday we upgraded to Server 2003 with IIS 6. We were
using IIS 5. I am
now having problems with a couple of pages. One being this
one where I am
having problems with the include file that used to work :)
I get this error:
Active Server Pages error 'ASP 0131'
Disallowed Parent Path
/tree/login.asp, line 2
The Include file '../Connections/connNewdatabase.asp' cannot
contain '..' to
indicate the parent directory.
The page starts as such:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/connNewdatabase.asp"
-->
<%
The file "connNewdatabase.asp" is in a folder one above the
folder that this
page is in. What is it that I have to change to get this page
to work
again?
Thanks,
GaleI got it folks, I had to recode as such:
<!--#include virtual="/Connections/connNewdatabase.asp"
-->
Thanks
Gale -
"Include file in PC application" Error
Hi All,
"Include file in PC application" Try again -
Error is coming while attaching a document to FI Invooice.
Please suggest,
Regards.
<Moderator note: Subject edited. Uo not use 'Urgent'. See the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] for further info.>
Edited by: Mike Pokraka on Jul 8, 2008 8:39 PMregarding the authoriazations and objects for GOS (Generic Object Services), SAP has done a lot of development over the last year. As GOS is spreading in applications it's complexity grows, so please go to:
service.sap.com/notes with keywords 'GOS' 'authority' or 'Generic Object Service authority' or a variant of those. you will find several dozen notes concerning this matter. -
Newbie to VC++
Getting the below error in VC++ 2005, Indesign CS4
1>------ Build started: Project: WriteFishPrice, Configuration: Debug Win32 ------
1>Performing Custom Build Step
1>Compiling...
1>WFPNoStrip.cpp
1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
1>WFPID.cpp
1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
1>VCPlugInHeaders.cpp
1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
1>TriggerResourceDeps.cpp
1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
1>SDKPlugInEntrypoint.cpp
1>C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp(19) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
1>Generating Code...
1>Build log was saved at "file://c:\id6sdk\build\win\objD\WriteFishPrice\BuildLog.htm"
1>WriteFishPrice - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have added the path of config.hpp in "addition include directories" still it is throwing the same error.
Regards,
SureshNeither the first not the second one:
am using the following path:
C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\external\asl\boost_libraries\boost
Now i have copied the complete 'external' folder to C:\id6sdk\ and added the directory now it is showing the following error:
Getting the following error:
fatal error C1083: Cannot open include file: 'IPMUnknown.h': No such file or directory C:\Program Files\Adobe\adobe_indesign_cs4_products_sdk_578win\source\precomp\common\ShukHeaders.cp 46
Don't understand the concept one error leading to the other error.
How to come out of these kind of problem.
Regards,
Suresh -
Include file error from a new install of C++ compiler on Solaris 5.7
Here is the command line being executed:
CC test.cc
Here is the sample cc file being compiled:
#include <iostream>
int main() {
std::cout << "Real programmers write C++!" << std::endl;
return 0;
Error Output:
"/opt/SUNWspro/WS6/include/CC/std/stddef.h", line 7: Error: Could not open inclu
de file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/stddef.h", line 15: Error: Could not open incl
ude file <sys/isa_defs.h>.
"/opt/SUNWspro/WS6/include/CC/std/stdarg.h", line 7: Error: Could not open inclu
de file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/string.h", line 7: Error: Could not open inclu
de file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/ctype.h", line 7: Error: Could not open includ
e file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/wchar.h", line 6: Error: Could not open includ
e file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 34: Error: Could not ope
n include file <sys/isa_defs.h>.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 35: Error: Could not ope
n include file <stdio_tag.h>.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 36: Error: Could not ope
n include file <wchar_impl.h>.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 7: Error: Could not open include
file <sys/feature_tests.h>.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 42: Error: Could not open includ
e file <sys/types.h>.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 52: Error: Could not open includ
e file <sys/time_impl.h>.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 85: Error: Type name expected in
stead of "pthread_attr_t".
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 85: Error: No storage class or t
ype for this declaration.
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 85: Error: "," expected instead
of "*".
"/opt/SUNWspro/WS6/include/CC/std/time.h", line 86: Error: Use ";" to terminate
declarations.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 38: Error: Could not ope
n include file <sys/va_list.h>.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 94: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 95: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 96: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 97: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 98: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 99: Error: __FILE is not
defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 100: Error: __FILE is no
t defined.
"/opt/SUNWspro/WS6/include/CC/wchar_iso_SUNWCC.h", line 152: Error: __FILE is no
t defined.
Compilation aborted, too many Error messages.
Could someone please help with solving this compilation error.
ThanksHi there,
I guess a simple modification to your PATH statement would solve this, you can also specify "-I /usr/include" in your makefile as a path to search for. So I only think your environment needs a little twinkling.
M. Poels ([email protected])
Maybe you are looking for
-
Can you have two iPads on one iTunes account?
Can i add two iPads to one iTunes account and then move one to another iTunes account at a later date?
-
HT1918 can i have two different itunes accounts on one computrer
can i have two itunes accounts one for my wife as she keeps getting my contacts on her phone and shes not happy!!!!!
-
Adobe Premier Elements 10 has stopped working error message/Audio issues
I'm working on a project for about a week. I almost finished it, "shared" it to my computer, and watched it thru windows media player. I thought of something else that I could add to the audio, so I went back into the project in PE10 and put small
-
Replace text in pdf files by sript
Hi, I have a huge number of pdf files. There is a phone number in which has to be changed. Is there a way to do this using a script or any other kind of automation? Thanks.
-
File with control characters in Unicode
Hi All, I have a peculiar problem. I have to prepare 6 files in SAP to be sent to the Mainframe server(legacy system) which sends the FAX to the clients.Now,these files should contain the hexadecimal characters like '1A', along with a lot of normal d