Alternate Mapping Paths?
Are there ways to point to alternate paths for a specific
based on Application.cfm or other similar roundabout way?
Here's my problem.
I have two sites, both running on the same instance of
Coldfusion. Site-Corp and Site-UK. I have a mapping created for
included files named "includes" that I would wish to use for both
sites. If the two sites were totally independant then it would be
easy and all I would have to do would be to create a site-specific
equivalent mapping (i.e. includesuk), but the thing is that Site-UK
will be dependent on Site-Corp for a great many files (headers,
footers, general sections nav etc etc). Through the use of a
replication/migration tool said dependent files will be updated
automaticaly on Site-UK when being saved on Site-Corp and overwrite
whatever was there to make sure the two sites are consistant.
Some of the files within the includes folder (Site-UK) will
be overwritten this way when updates happen on Site-Corp but a
great many won't, since we are using template files that will serve
for both sites I need the folder structure to be the same. That's
where my problem comes from, since they are both running off the
same instance of ColdFusion, no matter the changes done on Site-UK
files, the fact that the mapping is set to the includes folder on
Site-Corp makes both site show up the same set of files rather than
two different ones. So I was wondering if there is a way that we
could set a mapping path within the Application.cfm file of each
site, so that based on the two Application.cfm files the actual
path for the mapping named "includes" would be different on both
sites and this way allow me to use the same structure for both
sites so that all replication/migration done through the
third-party tool would not be rendered useless by wrong paths and
broken links.
Thanks
@Inderjeet
Singh Jaggi
I have used the Redirection :
When user browse abc.com over intranet it takes Credential when the Team site is loaded. Is it possible it takes Credentials on next step - loading at
/identity management/default.aspx site
But OVER INTERNET It redirects and giving error :
/identity management/default.aspx site is not found.
Similar Messages
-
Mapping paths to servlets doesn't work anymore in SP5 ??
Hello,
see subject.
I have a small web application which is contained in a WAR-file named
"httpdump.war". Its deployment descriptor (web.xml) maps the servlet
httpdump.HttpDumpServlet to the path /servletpath/* with the following
XML statements:
<servlet>
<servlet-name>HttpDumpServlet</servlet-name>
<display-name>The HTTP Dump Servlet</display-name>
<servlet-class>httpdump.HttpDumpServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HttpDumpServlet</servlet-name>
<url-pattern>/servletpath/*</url-pattern>
</servlet-mapping>
In weblogic.properties, I have:
weblogic.httpd.webApp.httpdump=httpdump.war
The WAR-file is structured as follows:
$ jar tf httpdump.war
META-INF/
META-INF/MANIFEST.MF
WEB-INF/classes/httpdump/HttpDumpServlet.class
WEB-INF/web.xml
dummy.jsp
$
Now a request like http://host:port/httpdump/servletpath/xyz should be
directed to my servlet, right?
This works flawlessly in WLS 5.1 SP 3. With SP 5, I get the following:
Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump> Error loading servlet: httpdump.HttpDumpServlet
java.lang.ClassNotFoundException: httpdump.HttpDumpServlet
at weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java:355)
at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:111)
at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
at weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(GenericClassLoader.java:503)
at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericClassLoader.java:366)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:182)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:156)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:371)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:760)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:707)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump> Servlet failed with ServletException
javax.servlet.ServletException: Servlet class: httpdump.HttpDumpServlet could not be loaded - the requested class wasn't found in the classpath
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:379)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:760)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:707)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
So, it seems the WLS has interpreted the <servlet-mapping> tag in the
DD correctly, but is then looking for the servlet class in the wrong
places..?
My system configuration:
$ java weblogic.Admin t3://localhost:7001 VERSION
WebLogic Build: 5.1.0 Service Pack 5 08/17/2000 07:21:55 #79895
$ uname -a
Linux localhost.localdomain 2.2.14 #1 Wed Aug 16 01:57:42 CEST 2000 i686 unknown
$ java -version
java version "1.2.2"
Classic VM (build 1.2.2-L, green threads, nojit)
$
Any hints?
Thanks,
Olaf
Olaf Klischat | TU Berlin computer science
Oberfeldstrasse 132 |
12683 Berlin, Germany |
phone: +49 30 54986231 | eMail: [email protected]
Hi,
we jared our servlets up and placed them in /WEB-INF/lib/....jar. The
mapping is working without any problems.
Daniel Hoppe
-----Original Message-----
From: Kumar Allamraju [mailto:[email protected]]
Posted At: Saturday, August 26, 2000 7:57 PM
Posted To: servlet
Conversation: mapping paths to servlets doesn't work anymore in SP5 ??
Subject: Re: mapping paths to servlets doesn't work anymore in SP5 ??
Yes, this is already a known problem in SP5.
Fix will be available in the upcoming service packs.
I guess the workaround is to put servlet classes in servlet classpath.
Sorry about the regression.
Kumar
Olaf Klischat wrote:
> Hello,
>
> see subject.
>
> I have a small web application which is contained in a WAR-file named
> "httpdump.war". Its deployment descriptor (web.xml) maps the servlet
> httpdump.HttpDumpServlet to the path /servletpath/* with the following
> XML statements:
>
> <servlet>
> <servlet-name>HttpDumpServlet</servlet-name>
> <display-name>The HTTP Dump Servlet</display-name>
> <servlet-class>httpdump.HttpDumpServlet</servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>HttpDumpServlet</servlet-name>
> <url-pattern>/servletpath/*</url-pattern>
> </servlet-mapping>
>
> In weblogic.properties, I have:
>
> weblogic.httpd.webApp.httpdump=httpdump.war
>
> The WAR-file is structured as follows:
>
> $ jar tf httpdump.war
> META-INF/
> META-INF/MANIFEST.MF
> WEB-INF/classes/httpdump/HttpDumpServlet.class
> WEB-INF/web.xml
> dummy.jsp
> $
>
> Now a request like http://host:port/httpdump/servletpath/xyz should be
> directed to my servlet, right?
>
> This works flawlessly in WLS 5.1 SP 3. With SP 5, I get the following:
>
> Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump>
Error loading servlet: httpdump.HttpDumpServlet
> java.lang.ClassNotFoundException: httpdump.HttpDumpServlet
> at
weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java:35
5)
> at
weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:111)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
> at
weblogic.utils.classloaders.GenericClassLoader.parentLoadClass(GenericCl
assLoader.java:503)
> at
weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericCl
assLoader.java:366)
> at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
der.java:182)
> at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
der.java:156)
> at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:371)
> at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav
a:187)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:118)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
tImpl.java:760)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
tImpl.java:707)
> at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletCon
textManager.java:251)
> at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:3
69)
> at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
>
> Sat Aug 26 15:58:54 CEST 2000:<E> <WebAppServletContext-httpdump>
Servlet failed with ServletException
> javax.servlet.ServletException: Servlet class:
httpdump.HttpDumpServlet could not be loaded - the requested class
wasn't found in the classpath
>
> at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:379)
> at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav
a:187)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:118)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
tImpl.java:760)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContex
tImpl.java:707)
> at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletCon
textManager.java:251)
> at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:3
69)
> at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
>
> So, it seems the WLS has interpreted the <servlet-mapping> tag in the
> DD correctly, but is then looking for the servlet class in the wrong
> places..?
>
> My system configuration:
>
> $ java weblogic.Admin t3://localhost:7001 VERSION
> WebLogic Build: 5.1.0 Service Pack 5 08/17/2000 07:21:55 #79895
>
> $ uname -a
> Linux localhost.localdomain 2.2.14 #1 Wed Aug 16 01:57:42 CEST 2000
i686 unknown
>
> $ java -version
> java version "1.2.2"
> Classic VM (build 1.2.2-L, green threads, nojit)
> $
>
> Any hints?
>
> Thanks,
> Olaf
> --
> Olaf Klischat | TU Berlin computer science
> Oberfeldstrasse 132 |
> 12683 Berlin, Germany |
> phone: +49 30 54986231 | eMail: [email protected]
-
Struts - Firfefox messages: No input attribute for mapping path /editNxtMod
Hi!
I'd like to create an admin application which is based upon a simple database table. The list shows already, but the detail of selected record doesn't. When I click to a record, the Firefox writes "No input attribute for mapping path /editNxtModuls". What does it mean? Maybe bad configuration files?
Please help me!
Thank Yoy!
Here my code:
<struts-config>
<data-sources />
<form-beans>
<form-bean name="NxtModulsForm" type="forms.NxtModulsForm" />
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="error" path="/error.jsp" />
</global-forwards>
<action-mappings>
<action input="/index.jsp" path="/listNxtModuls"
type="actions.ListNxtModulsAction">
<forward name="list" path="/NxtModuls/list.jsp" />
</action>
<action name="NxtModulsForm"
path="/editNxtModuls" scope="request"
type="actions.EditNxtModulsAction" validate="true">
<forward name="edit" path="/NxtModuls/edit.jsp" />
</action>
<action path="/saveNxtModuls"
type="actions.SaveNxtModulsAction" />
<action input="/NxtModuls/edit.jsp" name="NxtModulsForm"
path="/processNxtModuls">
<forward name="save" path="/saveNxtModuls.do" />
<forward name="cancel" path="/cancelNxtModuls.do" />
</action>
<action path="/cancelNxtModuls"
type="actions.CancelNxtModulsAction" />
</action-mappings>
<controller />
<message-resources parameter="resources.application" />
</struts-config>
*****************list.jsp*************
<td> <a href="editNxtModuls.do?modul_id=<bean:write name="nxtmoduls" property="modul_id"/>">
<bean:write name="nxtmoduls" property="modul_id"/>
<a/>
</td>
*****************edit.jsp*************
<html>
<h2>Edit</h2>
<html:errors/>
<body>
<html:form action="processNxtModuls.do">
<table border="1">
<tr>
<td>Modul name: </td>
<td><html:text property="modul_name" size="20" maxlength="20" /></td>
</tr>
<tr>
<td>Synonym name: </td>
<td><html:text property="synonym_name" size="20" maxlength="20" /></td>
</tr>
</table>
<html:submit value="Save" onclick="go('saveNxtModuls')"/>
<html:submit value="Cancel" onclick="go('cancelNxtModuls')"/>
</html:form>
</body>
</html>
*********************action******************
public class EditNxtModulsAction extends CommonAction {
public EditNxtModulsAction() {
@Override
public ActionForward commonExecute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception {
NxtModulsForm myForm = (NxtModulsForm)form;
try {
if (request.getParameter("modul_id") == null) {
throw new OwnException("The modul_id parameter was not returned!");
Long ModulId;
try {
ModulId = new Long(request.getParameter("modul_id"));
catch(Exception e) {
throw new OwnException("The modul_id parameter is not a number!");
NxtModulsBean OneRecord = new NxtModulsBean();
OneRecord = myManager.getRecord(ModulId);
myForm.setModul_name(OneRecord.getModul_name());
myForm.setSynonym_name(OneRecord.getSynonym_name());
catch(OwnException e) {
System.out.println(e);
myErrors.add("label",new ActionError("error.get_record_failed"));
saveErrors(request, myErrors);
mapping.findForward("error");
return mapping.findForward("edit");
}The config file looks ok to me.
The Action looks like you aren't taking full advantage of Struts.
You shouldn't have to call request.getParameter() - you should define an action form which picks up the parameters, and does the validations/conversions for you.
Maybe try this:
<html:link action="/editNxtModuls" paramId="modul_id" paramName="nxtmoduls" paramProperty="modul_id" /><bean:write name="nxtmoduls" property="modul_id"/>
</html:link>Edit: Reads error message
No input attribute for mapping path /editNxtModuls
This means that the form validation for this action failed, and it is attempting to return control to the sending page so that you can fix the error.
Check the forms.NxtModulsForm validate() method to see if validation would pass/fail.
The fix would be to put an "input" attribute into the action
<action name="NxtModulsForm"
path="/editNxtModuls"
scope="request"
type="actions.EditNxtModulsAction"
validate="true"
input = "list.jsp">
<forward name="edit" path="/NxtModuls/edit.jsp" />
</action>
Cheers,
evnafets -
Mapped Path being used instead of UNC Path
We have recently upgraded our Adobe products from CS3 to CC. In CS3, images that were added to InDesign had the UNC path in the "Links". With CC, we are finding that the Mapped Path is in the "Links". This different behaviour is causing some issues.
Here is the process that we are using to add images to an InDesign file:
1. Open Bridge
2. Browse to a folder (X:\ which is mapped to \\Server\Hi-Res\)
3. Drag and drop an image from Bridge to InDesign
In CS3, a path of "X:\MyFolder\MyImage.tif" would get converted to \\Server\Hi-Res\MyFolder\MyImage.tif
In CC, the path remains as "X:\MyFolder\MyImage.tif" which is causing us some issues.
Is there a way, in InDesign CC, to tell the application to use UNC paths when a Link is created - similar to what we were experiencing with CS3?
Thanks,
JodyHi Lee,
In CS3, UNC paths were used in File Path for images but this behavior was changed in CS4 (most probably) and UNC paths are no more supported.
Regards,
Pooja -
Alternate Mapping of Sharepoint Subsite to public URL
Hi i have a SUbsite in Sharepoint address
URL : domain/identity management/default.aspx
and ask credentials here ONLY
Public URL is : abc.com
i did the alternate mapping....but DNS is able to resolve till DOmain only and not able to point it to Identitymanagement/default.aspx
also its asking Credentials at that point only.
ANy suggestion or LINK or Document. Immediate reply wud be appreciated.@Inderjeet
Singh Jaggi
I have used the Redirection :
When user browse abc.com over intranet it takes Credential when the Team site is loaded. Is it possible it takes Credentials on next step - loading at
/identity management/default.aspx site
But OVER INTERNET It redirects and giving error :
/identity management/default.aspx site is not found. -
I have written a rather complex system that uses smoke,
mirrors, and occasional subterfuge to display web pages. I noticed
that the CFFORM javascript controls weren't working on some of the
end-of-the-line cfm pages.
Through trial and error, I discovered that the my MX 7 CFFORM
needed for me to specifically include the cfform.js file by direct
path instead of allowing it to use the /CFIDE mapping - which, I
checked, is still in place just fine, thank you.
So, I'm not sure which tree to bark up right now.
Should I try to figure out why the CFIDE mapping isn't
finding my JavaScript? Or, is it really finding it but then
something is resetting it or negating it?
Moving past those questions, my next problem is replication
of this system. While I do know the path and can encode the path
for the CFIDE mapping, so I can test that the file exists and
include it with a script command, how do I know that:
1. It isn't already included?
2. On a new system, where I won't be there to hold hands, how
can I be sure of the direct-path mapping to where the /CFIDE
points? (using fileexists with a mapping doesn't appear to work --
e.g. fileexists("/cfide/scripts/cfform.js"))
Bugger of a problem, but I need to either duplicate CFFORM's
inclusion of cfform.js every time as a script or face data entering
my database that causes problems down the road with my autmated
systems (and elsewhere).
Thanks for the light you can shed on this!
RLSFollow up - examples:
On this test, you can type in any date or numbers you want
and you will not receive an error. LIke the test that follows it,
it uses standard CFFORM calls:
http://www.trolldentalsoft.com/DateTest_A.cfm
On this example (also accessible via link from the above),
your date will have to be correct or it will not let you through
because I added explicit path to extra SCRIPT's calling for the
CFFORM and MASKS javascript routines, and that is the only
difference:
http://www.trolldentalsoft.com/DateTest_B.cfm
If I run DateTest_A directly from my primary domain, the one
that originates all the smoke and mirrors, it works fine - but! I
also recently copied the /CFIDE directory to it while trying to get
CFFORM to behave correctly:
http://www.saphea.com/DateTest_A.cfm
The only difference between the two DateTest_A scripts is the
domain they are located under and the existence of the /CFIDE
directory copy. Actually, in Saphea, DateTest_A is located under
/root/domainpath/www/DateTest_A.cfm while the /CFIDE is located
under
/root/domainpath/differentdirectory1/differentdirectory2/CFIDE/etc.
That, and the Saphea domain is also the master domain for the
entire server, which gives it better access to /CFIDE anyway...
RLS
http://www.trolldentalsoft.com/DateTest_A.cfm
http://www.trolldentalsoft.com/DateTest_B.cfm
http://www.saphea.com/DateTest_A.cfm -
How to view the full mapping path from source to final tables?
hi,
i would like to know if there is a way to view the full path from the source tables through the views / staging tables to the final target tables?
i need to check out a mapping, and i would like how i could make a report where i could see the data flow from beginning to the very end for one particular final target table?
is this possible or i have to do this manually?
thanks in advance for any tips
rgdsHi,
Try this
In OWB go to your destination Table
ex. My Project >>Database>>Oracle>> MyDW >> Table >> DimDepartment
Then right click and choose
Linage >> for see the previous
Impact >> for see the next
it doesn't different from linage and impact.
ps. i use this in 10g ,i don't know it will be work on 11g?
It's May be you help you.
i'm asian ,so sorry about my english language.
Thank you
Regard -
I am trying to find all paths/drives that are mapped on the computer. Currently I am using File.listRoots(); to find all of the letter drives ("P:", "Q:", etc...) but it misses mapped locations that do not have a drive letter ("\\comp123\files"). Anybody know how I could find these?
How are those "mapped"? It looks to me like you're asking the JRE to find all possible file shares you could connect to on all possible machines in your network. If that's really what you want then jCIFS might do that for you.
-
When should add "/" or not before a mapping path
In a book I get the following :
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
There should be no trailing or leading ��/�� characters in the welcome-file element.
<error-page>
<error-code>404</error-code>
<location>/common/404.jsp</location>
</error-page>
The value of the location element must begin with a ��/�� character.
My question is when should I add "/",and the what does "/" means?If you don't have the "/" then this means that you are specifying a relative url. If you specify "/" this means that you are specifying an absolute url.
-
Enable Recycle Bin on mapped network drives
A few years ago I discovered how redirected user profile folders in Windows get Recycle Bin protection, even when the folders are redirected to a network location. This was a huge find for me, and I used this feature to add Recycle Bin coverage to some of
my mapped network drives. I shared this information on another forum here:
http://forums.mydigitallife.info/threads/16974-Tip-Network-Recycle-bin
Today I figured out a better way to achieve the same goal that doesn't rely on user profile folder redirection, and am sharing that information for other users to try out. You might want to take a look at these forum topics for additional information:
http://technet.microsoft.com/en-us/library/cc787939(v=ws.10).aspx
http://blogs.technet.com/b/askds/archive/2012/07/16/managing-the-recycle-bin-with-redirected-folders-with-vista-or-windows-7.aspx
http://msdn.microsoft.com/en-us/library/bb882665.aspx
http://social.technet.microsoft.com/Forums/windowsserver/en-US/10bfcfb9-14f3-434e-9ffa-0289b8b32e01/folder-redirection-recycle-bin
The standard disclaimer applies - this might break stuff. I've only tested in Windows 8, and my testing is limited. Try this at your own risk.
This is what I've learned (or think I've learned - I might be wrong):
Windows Vista and later store the configuration settings for the Recycle Bin for redirected user profile folders in this registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder
Under this key are separate keys for each redirected folder that is protected by the Recycle Bin. The keys contain the configuration information for each protected folder, and are named to match the GUIDs for "Known Folders." A list of the Known
Folder to GUID mappings is available in one of the links above.
The registry also contains a list of "known folders" at this location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions
So, I reasoned that if I could create my own custom "known folder," I could add that to the list of folders that were protected by the Recycle Bin and protect any mapped network drive I wanted. So I looked at the list of existing "known folders"
and created a key that was similar to the Documents key. I then fiddled with the values in the key until I narrowed it down to the minimum number needed to make the recycle bin work.
This .reg file will protect a mapped X: drive with a ~50GB recycle bin. You should modify the file to fit your needs:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{9147E464-33A6-48E2-A3C9-361EFD417DEF}]
"RelativePath"="X:\\"
"Category"=dword:00000004
"Name"="XDrive"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder\{9147E464-33A6-48E2-A3C9-361EFD417DEF}]
"MaxCapacity"=dword:0000c7eb
"NukeOnDelete"=dword:00000000
A few things of note:
The GUID in the above .reg file {9147E464-33A6-48E2-A3C9-361EFD417DEF} came from this PowerShell command: "{"+[guid]::NewGUID().ToString().ToUpper()+"}"
Each "known folder"/Recycle Bin combination requires a unique GUID. If you don't want to use PowerShell to generate a GUID, you can use an online GUID generator.
I don't know what the "Category" value does, but the key I copied had it set to 4, and that works, so I didn't test any other values.
The "Name" value is required, but is not the name that will be shown if you right-click on the Recycle Bin and select properties. (At least not in my environment.) In my environment, the name that is shown is the name of the network drive.
Making this change adds a "Location" tab to the properties page of your mapped network drives. I suspect this could be removed by changing the "Category" value, but didn't bother to find out.
I only tested with mapped network drives. I suspect this would work with UNC paths as well, but I didn't bother testing.
I hope you're as excited to find this as I was to figure it out. Let me know if this works for you. I now plan to deploy the registry keys with Group Policy Preferences and will update this forum post with any information I discover.
Best regards
--Russel
Update: I am now using Group Policy Preferences to deploy the needed registry keys, and all my mapped network drives are now protected by the recycle bin.
Update 2: I have tested now with UNC paths, and this works fine. I still use mapped network drives, but if your environment requires UNC paths instead, you can use them. Note however that if you have a mapped network drive that points to a UNC path, and
you protect the UNC path with a registry change, if a user deletes a file from the mapped network drive that points to that UNC path, the file will be permanently deleted. See below for more details.FANTASTIC work Russel !
This is extremely helpful.
I've turned your work into a Bat Script that will automatically make the reg file.
It creates a unique guid each time it is run, so no worries on overlaps.
Just copy and paste the following into notepad
and save it as "Network Recycling Bin - auto make registry file.bat"
echo off
REM ========== MAIN FUNCTION ========================
Call :CreateREGfile
PAUSE
goto :eof
REM ========== SUB FUNCTIONS ========================
:CreateREGfile
set /p RelativePath=Enter
current mapped path of drive (e.g. X:\FileShare\D_Drive):
REM replace \ with \\ (for reg value its a requirement)
Set RelativePath=%RelativePath:\=\\%
set /p MaxBinSize_Dec=Enter
max size (in mb) (eg 11gb=11000):
call :toHex
%MaxBinSize_Dec% MaxBinSize_Hex
Set outputREG="Network
Recycling Bin - %RelativePath:~0,1% Drive (%MaxBinSize_Dec%mb).reg"
call :MakeGUID_VBS NewGUID
REM echo My new GUID : %NewGUID%
echo Windows Registry Editor Version 5.00
>
%outputREG%
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\%NewGUID%]
>>
%outputREG%
echo "RelativePath"="%RelativePath%"
>>
%outputREG%
echo "Category"=dword:00000004
>>
%outputREG%
echo "Name"="NetworkDrive2RecyclingBin_%NewGUID:~1,5%"
>>
%outputREG%
REM The "Name" value is required, but is not the name that will be shown if you right-click on the Recycle Bin and select properties. That will be autoset to the network drive name.
echo.>>
%outputREG%
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder\%NewGUID%]
>>
%outputREG%
echo "MaxCapacity"=dword:%MaxBinSize_Hex%
>>
%outputREG%
echo "NukeOnDelete"=dword:00000000
>>
%outputREG%
goto :eof
:MakeGUID_VBS
echo set obj
= CreateObject("Scriptlet.TypeLib")
> TEMP_generateGUID.vbs
echo WScript.Echo obj.GUID
>> TEMP_generateGUID.vbs
FOR /F "usebackq tokens=*"
%%rin (`CSCRIPT "TEMP_generateGUID.vbs"`)DO
SET RESULT=%%r
set
%1=%RESULT%
del TEMP_generateGUID.vbs
goto :eof
:toDec
:: todec hex dec -- convert a hexadecimal number to decimal
:: -- hex [in] - hexadecimal number to convert
:: -- dec [out,opt] - variable to store the converted decimal number in
SETLOCAL
set /a dec=0x%~1
( ENDLOCAL & REM RETURN VALUES
IF "%~2"
NEQ "" (SET %~2=%dec%)ELSE
ECHO.%dec%
EXIT /b
:toHex
:: eg call :toHex dec hex -- convert a decimal number to hexadecimal, i.e. -20 to FFFFFFEC or 26 to 0000001A
:: -- dec [in] - decimal number to convert
:: -- hex [out,opt] - variable to store the converted hexadecimal number in
::Thanks to 'dbenham' dostips forum users who inspired to improve this function
:$created 20091203 :$changed 20110330 :$categories Arithmetic,Encoding
:$source http://www.dostips.com
SETLOCAL ENABLEDELAYEDEXPANSION
set /a dec=%~1
set "hex="
set "map=0123456789ABCDEF"
for /L
%%Nin (1,1,8)do
set /a "d=dec&15,dec>>=4"
for
%%Din (!d!)do
set "hex=!map:~%%D,1!!hex!"
rem !!!! REMOVE LEADING ZEROS by activating the next line, e.g. will return 1A instead of 0000001A
rem for /f "tokens=* delims=0" %%A in ("%hex%") do set "hex=%%A"&if not defined hex set "hex=0"
( ENDLOCAL & REM RETURN VALUES
IF "%~2"
NEQ "" (SET %~2=%hex%)ELSE
ECHO.%hex%
EXIT /b
:eof -
How to find the physical path of a file
Usually, one can use absFileNmae() method to find the path of a file in Java. The problem is that it may only return a mapped path when a Servlet or JSP is running in a special server. For example, when I run a servlet "MyProgram" in JRun, absFileName() only returns "c:\JRun\jsm-default\MyProgram", which is just a mapped path, not a real physical path.
By the way, in ASP, one can use server.mapPath("MyASPProgram.asp") to obtain the real physical path of the file.
Your solution is welcome.
YCUsually, one can use absFileNmae() method to find the path of a file in Java. The problem is that it may only return a mapped path when a Servlet or JSP is running in a special server. For example, when I run a servlet "MyProgram" in JRun, absFileName() only returns "c:\JRun\jsm-default\MyProgram", which is just a mapped path, not a real physical path.
By the way, in ASP, one can use server.mapPath("MyASPProgram.asp") to obtain the real physical path of the file.
Your solution is welcome.
YC -
The error is " The Mapping to Node has not been completed
Hi All,
I am getting a strange type of error and need help immediately.
The error is " The Mapping to Node COMPONENTCONTROLLER.1.PLANNING_ENTITY Has Not Been Completed" for the node that exists in the Parent component and is being used in all the child nodes thru reverse mapping.
I have done mapping in all the child nodes but still the message is coming.
Could anybody tell me the reason .
Regards,
Arti.Basically somewhere you have defined a context node 'PLANNING_ENTITY' to be an Input-Element. At the same time you did not define (through a component usage at design time) where the input to that node is coming from. This means the mapping path to the node is not complete, and the node does not know where it is mapped to.
Either:
- You untick the checkbox 'Input-Element (ext.)' inside the controller context, or
- You find the component that uses the component with the node 'PLANNING_ENTITY' and select Component_Usage->'Name of Usage'->'Add controller usage'. Inside the controller menu you see then, you can now provide a mapping to the context node.
I realise this now sounds a little confusing, but I'm happy to provide more details should you need them.
Cheers,
Robin -
JSF mapping missing. ExtensionsFilter not correctly configured.
I am new to JSF's and using JBoss 4.2.0 application server.
I trying to use <t:panelTabbedPane> and <t:panelTab> in my page like this:
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<t:panelTabbedPane id= "tbParticipant" selectedIndex = "0">
<t:panelTab id = "ptFirstName" label = "First Name"></t:panelTab>
<t:panelTab id = "ptLastName" label = "Last Name"></t:panelTab>
</t:panelTabbedPane>
When I open my page i get this error
ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered.
Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
I have my web.xml configured exactlly as described at http://myfaces.apache.org/tomahawk/extensionsFilter.html
Actually I copied and paste the whole text word by word as shown below but still getting that error.
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>20m</param-value>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
</filter>
<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
Alternate mapping using a url-pattern instead of a servlet-name (you still need the /faces/myFacesExtensionResource/* mapping as well):
<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
Please help and thank you in advance.Please post the configuration of the FacesServlet in the web.xml.
-
Publish Options for Decision Paths?
Hello! I'm currently using UPK 11, and I have several topics that have multiple decision frames. I've been using alternate decision paths frames to show alternate ways of performing operations in my application, and it seems to be going well for when users access the content through the player package. However, when I want to provide a job aid (or other document), I would like to show them the quickest way to perform the operation (or at least the one with the fewest steps) - the document can get long with all the decision paths.
Is there a publish option available to publish only the primary decision paths throughout the topic?When you are publishing, there is a checkbox for include alternatives in the options. If you uncheck that I think it will give you the results you are looking for.
-
Import maps error Prime 2.0
Hello,
I'm working to export maps from the old WCS 7.0.240.0 to Cisco Prime 2.0.
Everything works fine, but from one map I receive an error.
I cannot find what to do. Cisco has no workaround for it.
Map Path Message Status
WKL Length '328,080.719' is invalid. Range is '1' -'99,999'. red dot
WKL Width '286,797.25'is invalid. Range is '1' -'99,999'. red dot
My map named WKL has the maximum of 99999 meters. It looks like the WCS has counted the feet instead of meters.
I also change it in Prime 2.0, after I imported many other maps without any problem.
This looks very strange to me.
Does anyone have an answer to it.
Regards,
ErikI solved the problem to convert the old meter to feet.
Replacing the shops in the campus, saved it.
The export -> import and it works.
I seems to be a bug, but this will be the workaround.
Regards,
Erik
Maybe you are looking for
-
Some words garbled while converting webpage to pdf file
I have upgraded and installed Internet Explorer 9. Firstly, the webpagse cannot convert into pdf files. After reading the microsoft website and installed an updated printer driver for my Adobe Acrobat 9 Pro, the webpage can be converted into pdf fi
-
A88XM-E35 motherboard reviews?
Planning on a new-build using this motherboard, but can't find any reviews on it on the web. Anyone know anything about this board? My component supplier tells me MSI have stopped manufacturing it! Hard to believe, given its specification. Any he
-
Hello! I need to convert a ton of files from .dv format to .m4v .mov or similar. Since it will take years to do it (almost 3TB of videos) with my current Mac Mini (first Intel version) I was thinking to set up a render farm with all my desktop PowerP
-
Launchd .plist breaks when periodic daily runs
Why does my launchd .plist break when periodic daily runs? I wrote a script basically like this <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <pl
-
Hi everyone, I need some help with a macro im doing. I have some documents with 150 pages with tables each and some text between them. Basicly i need a macro to do this: Delete the text between tables (Except for the paragraphs with just "ABC" or "D