Include connections file - subfolder
I have just loaded a brand new site onto a webserver (it was tested on another site as a sub site)
the main site has a subfolder called admin and is connected to the database via
<!--#include file="Connections/lra.asp" -->
and it all works fine.
however when I try to look at my admin files
all connected with <!--#include file="../Connections/lra.asp" -->
I get 500 Internal server error
I've put a test htm file in the subfolder and that's fine
any ideas what I'm doing wrong? (i've always done it this way before)
images held in other subfolders also appear so the structure is correct
any help gratefully received
No sorry I obviously didn't make myself clear
index.asp is in htdocs and so are the folders connections and admin
I just wondered if I was to do an absolute path if you included either of
http: or htdocs in the full file
meanwhile i have created another folder called backend and tried putting a
link to the Login file in there - but same issue so it appears not to be
just a spelling of admin
if I move Login from admin into htdocs and alter the connection string it
works fine so it's not the file
thanks again
Similar Messages
-
Multiple "connections" files for SAPGUI Java 7.10
Hallo folks,
I have installed both SAPGUIs, the Java version and the native Win32 version. For my Win32 version i am used to use multiple SAPLOGON.INI files to separated the connections to my customers systems (i.e. one SAPLOGON.INI for each customer). Now i want to have the same for my Java SAPGUI.
Is there a pendant to the "/INI_FILE" command line addition (Win32) for the Java version?
Thx
--MIKEUnfortunately, there seems to be no parameter like for SAPGUI Win. The solution i found is as follows:
- i created several connections files, each for all my customers (e. g. "connections.cutomer1", "connections.customer2")
- the connections file is referred to in the settings file. therefore, there needs to be a settings file for each customer, too (e. g. "settings.customer1", "settings.customer2"). The parameter @INCLUDE in the settings file points to the connections file to be used e. g. "settings.customer1" points to "connections.customer1", "settings.customer2" points to "connections.customer2").
- i created a shell script for each customer (e. g. "sapgui.customer1.sh", "sapgui.customer2.sh"). this script copies "settings.customer1" to "settings" and start guilogon afterwards. guilogon evaluates the settings file and uses the connections file specified in the settings file. -
Creating Connection File by hardcoding it?
When one connects to a database the name for the connection
is the "Data Source Name" which is then recorded to a file that
appears in the grayed Source Code area. For example, connecting to
a database (under database tab) named Herbie creates a file called
Herbie.asp (programming in VB Script). This file is then saved to a
directory off the root called Connections.
How do we take an existing Connections file and tell
dreamweaver to incorporate it into a given page without going
through the Database tab process?
Any input would be appreciated. Thanks!Danilo,
Thanks for the reply.
For other readers that might have a similar problem, here is
a link to the docs that tells one how to set things up:
http://livedocs.adobe.com/dreamweaver/8/using/wwhelp/wwhimpl/common/html/wwhelp.htm?contex t=LiveDocs_Parts&file=28_con11.htm
I think I need to be a little more specific so as to define
the environment I'm working with. It's Vista with IIS7 installed. I
can and did setup the connection as you mentioned in the reply.
Sure does work. However, when I tried to upload those files it was
one error right after another. I eventually discovered, by trial
and error, what the solution was.
The problem was determining the connection string, not on the
local system, but the hosting company - GoDaddy. To do that, one
needs to figure out where ones account directory is to write the
path info to the database. I modified the herbie.asp connection
string that dreamweaver created to the following:
<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="true"
' Catalog=""
' Schema=""
' The lines above were created by dreamweaver
dim oConn
dim db_path
db_path =
"d:/hosting/myaccountdirectory/access_db/TheDatabaseToConnectTo.mdb"
Dim MM_Herbie_STRING
MM_Herbie_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & db_path
Set oConn = Server.CreateObject("ADODB.Connection")
%>
Now perhaps to the casual observer the first question might
be, where and how did he come up with db_path string? Is it the old
"Watch me pull a rabbit out of my hat" thing? Well, if you need to
do this part yourself, copy that info and comment out the
"d:/hosting..." line and then upload the file and test it. You
won't see your page but you'll see the error that's generated. That
error tells you the path that the hosting company is looking for.
Then change that info in your own file to that of the reported
error.
Now after all that work, which took more hours than I care to
think about a problem in one sitting, I wanted to have that file
info available to other pages I need to design.
One simply cannot type the connection string shown above in
the creation process for connecting a recordset. Dreamweaver barks
at you for even trying.
Adding the #include file manually in source? Love to. I
created a blank page for VBScript and then saved the html as an asp
page. Here is the source code that anyone can generate:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
Where in this source would I include the herbie.asp file.
Would it appear under the tab with source code (in design view)?
Here is a code snip that does work and was setup by using
local connections so that dreamweaver could set up herbie.asp.
<%@LANGUAGE="VBSCRIPT"%>
<!--#include virtual="/Connections/Herbie.asp" -->
<%
Dim rsRefOnFile
Dim rsRefOnFile_cmd
Dim rsRefOnFile_numRows
Set rsRefOnFile_cmd = Server.CreateObject ("ADODB.Command")
rsRefOnFile_cmd.ActiveConnection = MM_Herbie_STRING
But the problem is, how do I attach say herbie.asp to a blank
page so that dreamweaver knows about the included file? Is there a
way to make dreamweaver understand the connection string that I
need: MM_Herbie_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" & db_path?
Right now I have to develop local recordset connections and
let dreamweaver create the herbie.asp. I then have to redo the
contents of herbie.asp and upload the file. Lots of work for a few
pages and if I need to edit something down the road, the odds that
I remember this might be slim to none.
I hope I was not to detailed in this but gave enough info for
others who might come across the same situation.
Thanks again for the input. Any further suggestions?
Wayne -
[AIR to iOS] Reading 'included' video file with NetStream, possible?
Hey all,
During publishing of the app you have a chance to include extra files. I'd like to include a f4v flash video that I'd like to play via the Video class. I'm having a bit of trouble figuring out how to get these two connected.
I can get a full reference to the file ala the usual and use .url or .nativePath:
var videoFile:File = File.applicationDirectory.resolvePath("some.f4v");
When I try to pass that into a NetStream such as:
var myVideo:Video = new Video();
addChild(myVideo);
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
myVideo.attachNetStream(ns);
ns.play(videoFile.url);
This never works for me. Nor using:
ns.play(videoFile.nativePath);
Anyone ever get a class like Loader or NetStream, etc to load included files in AIR for iOS or Android projects? See anything wrong here? Thanks for tips!I got this to work (exactly as mentioned above) in Android but on iOS I get issues. I also need to use .url as .nativePath doesn't seem to be friendly.
The performance is another thing. Trying to play a 800x480 video on a HTC EVO 4G (single 1ghz snapdragon) was a painful 1-2fps mess. I encoded the video in f4v H.264 and also mp4 H.264. They were both 1-2FPS.
Clearly waiting for StageVideo in AIR3.0 is going to be the fix for this whole mess.
ns.play("videofile.f4v") ... I don't think that your first 3 lines are needed or appropriate here, are they?
You're in AIR for Android/iOS so you have the flash.filesystem package you should look at, specifically the File class. It helps AIR load files you package that are located in your applicationDirectory. -
Can I edit connection files after conversion?
SharePoint 2013 SP1, InfoPath 2013.
I created a data connection to a SQL database and then convert it to a connection file, saving it in a data connection library. It worked great.
Now I need to edit that connection to include a new field but for the life of me I cannot figure out how to do a simple edit. Is there an easy way to do this that I am missing?
I have tried:
Modifying the data connection but there is no option to check additional fields once converted to .udcx.
Creating a new connection and naming it the same as the old, but this is denied.
Creating a new connection with a new name and overwriting the .udcx file, but I still need to re-link in InfoPath to the new connection.
Deleting the old connection and creating a new one with the same name. It still needs to re-link.
Modifying the .udcx file directly, but this does not update in InfoPath so I still can't select the data.I realized that I was able to refresh the data connection in InfoPath by clicking on Modify > Next > Next > Finish after manually editing the .udcx file.
-
Can I include raw files into the installer folder with LV application builder?
Hello,
I have created a batch file that will run at the end of the installer, which will copy over some raw configuration files into the source destination so that the configuration files can be customized for each end user without rebuilding the installer with application builder. I also have an autorun.inf so the installer will automatically run when the user installs the CD.
However I would like to have some default configuration files and an autorun.inf file that will be automatically added to the installer "volume" folder using the application builder.
However I don't see a way to include raw files in the "volume" folder. It appears all source files in the application builder are embedded into the binary files.
Please let me know if this is possible with the current application builder.
Regards,
Russell
Engineering Team Leader
G Systems, www.gsystems.com
Certified LabVIEW Architect
Certified Professional InstructorRussel,
i think this link might give you some good hints....
hope this helps,
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Hi,
I created a project Enterprise field named "Countries and Cities" which contains a lookup table with information such as "USA.Seattle". How can I add this field in the oData connection file?
ThanksPaul,
How do you write the custom field name
"Countries and Cities" which contains 2 spaces?
I always get the error:
"We couldn't get data from the Data Model, Here'is the error message we got:
The content of the data feed is not valid for an Atom feed."
Thanks -
Hi All,
I'm new to SharePoint and Power BI.
I've to use share point 2013 lists to create power view reports. For that, I need to create Power Pivot in Excel 2013.
I'm fine with the above. We normally take a data feed of a list and create connection to that. We need to create a connection file (.odc) and export it into a excel file connection library of Share point. The connection to be made to share point list. The
power pivot will be having multiple related lists.
How can I create a connection file which is referring to share point list
Please suggest.
Regards,
JulieHi All,
Finally, I could find the answer for this question after a long search.
First of all, open a new excel file in server.
Data-->From other connection-->From data connection wizard-->data feed-->Location of the data feed-->
http://sharepointsite/sitename/_vti_bin/ListData.svc
-->next-->select the lists which you need-->next-->only create connection-->properties--->export connection file
-->ok
The connection file has been created and .odc file exported to the specified location.
Open power pivot and check the connection in existing connections.
Exported file has to be uploaded in Excel file connection library of share point 2013. So that you can refer the same in this excel file when you upload it into share point.
Regards,
Julie -
How to include .php file in .shtml using SSI
Hi,
I've just finished with my "Contact Us form" for my website and have some issues with running it. I have a .shtml file http://mydomain.com/contact-us.shtml in wich I'd like to include a contact us form file http://mydomain.com/includes/ContactUs.php. Now, having my web page "contact-us" as a *.shtml file with ContactUs.php file included, I can run the form but I can't send any emails. If I would change contact-us.shtml in contact-us.php the form runs perfect but, I can't use other includes on that file as logo, header, footer etc. How could I include an .php file in a .shtml file and runing both the included .php script and includes themself?
Thank You!Keep it simple.
Your html file uses syntax like "<!--#include file=".header" -->" to include an SSI file. Your server requires either (1) that the html file have the .shtml extension or (2) you twiddle with an .htaccess file to cause the server to parse ALL html files for SSIs. The latter is generally not a good idea.
PHP files are already processed on the server. You include SSI files the same way, but the syntax is a little different: "<?php include (".header"); ?> ". -
How to include .jar files in coldfusion code
To Integrate our cfm code with paypal jar files we do the
following steps with our local coldfusion server ,and to run and
integrate the paypal Java SDK jar files, I think we need to do the
same process on the server, can you suggest any thing to do the
following setting for my domain on the server, without setting the
class path in coldfusion administrator.
The ColdFusion application server must be configured to know
the location of the PayPal JAR
files, and your ColdFusion Markup (CFM) pages must be
configured with the absolute path to
the PayPal API certificate for the PayPal API user on whose
behalf the calls are made.
1. Install the PayPal Java SDK “Installing the
SDK”.
2. Copy a subset of the Java SDK JAR files to a location
accessible by the ColdFusion
application server. The JAR files are in SDK_root\lib and
their exact names are as
follows:
– bcmail-jdk14-128.jar
– bcprov-jdk14-128.jar
– paypal_base.jar
– paypal_stubs.jar
sax2.jar
– xerces.jar
– xpp3-1.1.3.4d_b4_min.jar
– xstream.jar-1.1.3.jar
3. With the ColdFusion Application Server Administrator, add
the absolute path of the
location you determined in Step 2 to the Java and JVM
CLASSPATH environment variable.
4. Restart the ColdFusion Application Server.
Suggest me how to include .jar files without setting
classpath.> Suggest me how to include .jar files without setting
classpath.
Copy them to {CF_HOME}\lib, where {CF_HOME} is, for example,
C:\CFusionMX7. Restart Coldfusion. -
How to include a file as variable in %@ include file tag.
Hi,
I have a interesting problem here, how can I include a file in <%@ include file tag. where the include file path is a variable. I am trying to implement the following statement.
<@ include file="<%=headerLogic_template %>">
where headeLogic_template is a variable which contains the actual path of the include file.
Thanx,
Ramana.
email:[email protected]Please note that you can not write anything else between the quotes nor for page specification or parameters.
BAD EXAMPLE!!
<% for (int i = 0; i < 20; i++) { %>
<jsp:include page="included.jsp" flush="false">
<jsp:param name="apa" value="prestring_<%=i%>"/>
</jsp:include>
<% }BAD EXAMPLE!! -
Include the file dynamicly by file name
in my jsp,I want include another jsp dynamicly
<%@ include file="thefile.jsp" %>
thefile.jsp should be dynamic like:
<%=String filename=="thefile.jsp" %>
<%@ include file=filename%>
I know above is not working since file only take static name.
is there any way to include the file dynamicly by file name?String path = "..."; // to the ressource to include
javax.servlet.RequestDispatcher dispatcher
= getServletContext().getRequestDispatcher(path);
dispatcher.include(request,response); -
Best practice for testing a web form after converting to a connection file
I was using InfoPath to test a web form using a web service for the connection. I decided to deploy the form to SharePoint to make sure it worked outside of InfoPath preview mode. This required me to convert the connection to a connection file and publish
that in SharePoint. After getting all that set up, it appears to work from SharePoint.
Now I want to go back and work on the form some more. But in InfoPath it appears preview is no longer an option because the form is using a connection file. While trying to preview the form I am given a message that basically says the form will have to be
published in order for it to make the connection. This would mean I would have to overwrite the form on SharePoint just to test.
I suppose I could publish to a different form library and switch back when I'm done but it would seem that InfoPath preview should still be an option for testing. Is there something I'm missing in InfoPath that would allow me to still test with this form?Not sure what you're doing, but previewing IP forms with data connections should be quite possible.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs
To put it simply, here are the basic steps:
Create IP form based on web service
Fill out form and test via Preview
Convert data connection to a connection file
Publish IP form and test on SharePoint
Go back into IP and try to test again via Preview <--- no longer works - now stuck with testing on SharePoint which is "live"
This could be a factor of how our SharePoint environment is configured. I have no other experience to base it on. -
I have included JS file in command Action Using below command
<CommandUIHandlers>
<CommandUIHandler
Command="EnableCustomGroup"
CommandAction="javascript:return true;" />
<CommandUIHandler
Command="CustomGroupHelloWorld"
CommandAction="javascript:openPopup();" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
<CustomAction Id="Ribbon.Library.Actions.Scripts"
Location ="ScriptLink"
ScriptSrc="/_layouts/15/images/Scripts/Popup.js" />
It was working fine now I am embeding my project to Development Project in which we have divided the Modules in to two different projects One project with all Branding work including all CSS and JS files (including the above Popup.JS file) which once deployed
and the js file is residing in Style Library.
The Second project has the Command Action to call the JS file which is already residing in Site (Style Library) I am unable to refer that file path I tried using "/Style Library...... Popup.js" and also the full URL "http://site collection/style
Library/... Popup.js" just to make sure if it is working or not. But it is throwing error saying file is not found. Can anyone help me how to refer the file what source URL should i give. Thanks in Advance
Thanks and Regards,
Raj Kamal Singh RathoreHi,
According to your description, my understanding is that you want to reference the custom JavaScript file which stored in the style library in custom action.
I suggest you can reference the js file using the relative path of Style library like below:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Title="test"
ScriptSrc="~SiteCollection/Style Library/jquery-1.11.2.min.js"
Location="ScriptLink"
Sequence="100"
>
</CustomAction>
More information:
Referencing JS files using CustomAction element
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Am Developing an application using servlet jsp and jakarta tomcat 5. Am using MVC frame work also web.xml(deployment descriptor). I could not include script files and image files in my jsp page as its not getting those file although i specified the path currectly. plz help me.
regards
sreeWhen you use the request dispatcher, the relative path for all your ressources becomes the relative path of your calling serlvet and not the JSP/servlet that you call. Make sure to use the full relative path such as:
/PATH_TO_YOUR_DIRECTORY/myRessource.ext
NOT
SOME_DIRECTORY/myRessource.ext
Jeff
Maybe you are looking for
-
Apple TV keeps restarting/rebooting in an almost endless loop
So this is the second ATV I have setup in the last two weeks. All iTunes/Mac OS software is up to date. ATV comes installed with 2.4. I have been able to set it up, stream, sync, control with Remote, etc. However this time the problem occurred about
-
Document still appears on Billing Due List after creation of Credit Memo
Hello everyone! I would like to seek your help in knowing the reason why documents in the Billing Due List dated on or before June 30, 2008 with billing type ZRJF would require three creations of Credit Memo before the delivery returns status will ch
-
CS6 installer in Ukrainian language
Turned Adobe site and all of download assistants, application managers and download sections upside down, but couldn't find Creative Suite CS6 installer in Ukrainian language. When I try to use application manager / Download Assistant - it gives me R
-
I have read many of the posts on APEX and LDAP on this forum but none have been able to assist me. When using the LDAP test tool I get "Authentication failed!" straight away as if the authentication string is wrong. I think the following should work:
-
How do I install lightroom download?
I followed the instructions in the email, got the serial # but didn't get any instructions on how to install it.