Redirecting URL Servlet not working
Hi all,
All my JSPs are located in pages folder of my Application's Web Context. I need to redirect JSP URLs to the pages folder. For example if user requests http://localhost:8080/RedirectJSPApp/test.jsp then I need to redirect to http://localhost:8080/RedirectJSPApp/pages/test.jsp. But if user request http://localhost:8080/RedirectJSPApp/pages/test.jsp then i dont need to do any redirection.
So I define a Servlet:
package com.srh.servlet;
public class RedirectServlet
extends javax.servlet.http.HttpServlet
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
doPost(request, response);
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
String contextPath = request.getContextPath();
String requestUrl = request.getRequestURL().toString();
String targetRequestUrl = null;
String jspRequested = null;
int index = -1;
index = requestUrl.indexOf("/pages/");
// The JSP is not called properly;
if (index == -1)
// Call the JSP properly
index = requestUrl.indexOf(contextPath);
if (index != -1)
targetRequestUrl = requestUrl.substring(0, index+contextPath.length());
jspRequested = requestUrl.substring(index+contextPath.length()+1);
targetRequestUrl += "/pages/" + jspRequested;
response.sendRedirect(targetRequestUrl);
}In the web.xml I wrote:
<servlet>
<description>This Servlet redirects JSP URLs to appropriate lcoation w.r.t. Server</description>
<display-name>RedirectServlet</display-name>
<servlet-name>RedirectServlet</servlet-name>
<servlet-class>com.srh.servlet.RedirectServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RedirectServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>I have a test.jsp in pages folder:
<html>
<head>
<title>Test</title>
</head>
<body>
Inside test.jsp
</body>
</html>I deployed on JBoss 4.2.0. I type http://localhost:8080/RedirectJSPApp/test.jsp in my browser and it changes to http://localhost:8080/RedirectJSPApp/pages/test.jsp which is perfect but it never prints "Inside test.jsp" on the page. Why this is happening?
If I remove RedirectServlet entries from web.xml and just type in http://localhost:8080/RedirectJSPApp/pages/test.jsp then it prints "Inside test.jsp" on the page. What I am missing here?
TIA
TV
I tried forward of RequestDispatcher but still same problem:
package com.srh.servlet;
public class RedirectServlet
extends javax.servlet.http.HttpServlet
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
doPost(request, response);
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
String contextPath = request.getContextPath();
String requestUrl = request.getRequestURL().toString();
String targetRequestUrl = null;
String jspRequested = null;
int index = -1;
index = requestUrl.indexOf("/pages/");
// The JSP is not called properly;
if (index == -1)
// Call the JSP properly
index = requestUrl.indexOf(contextPath);
if (index != -1)
// targetRequestUrl = requestUrl.substring(0, index+contextPath.length());
// jspRequested = requestUrl.substring(index+contextPath.length()+1);
// targetRequestUrl += "/pages/" + jspRequested;
// response.sendRedirect(targetRequestUrl);
jspRequested = requestUrl.substring(index+contextPath.length()+1);
RequestDispatcher rd = request.getRequestDispatcher("/pages/" + jspRequested);
rd.forward(request, response);
}
Similar Messages
-
URL Does Not Work in Firefox, but DOES Work in Other Browsers
The following URL does NOT work in Firefox. However, it DOES work in Internet Explorer and Google Chrome:
https://www.ascap.com/ace/
The main ASCAP URL works just fine. The problem seems to be confined to this link alone. Please fix; thank you!There is a server redirect on this URL.
<pre><nowiki>
https://www.ascap.com/ace/
GET /ace/ HTTP/1.1
Host: www.ascap.com
HTTP/1.1 302 Found
Location: https://www.ascap.com/Home/ace-title-search/index.aspx</nowiki></pre>
If you use a bookmark then try to navigate to the want page starting with the main (home) page.
You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
*Hold down the Shift key and left-click the Reload button
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Command + Shift + R" (Mac)
Clear the cache and remove cookies only from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies" -
Multilingual URL is not working in IE11
Multilingual URL is not working in IE11 same URL is working with other browser. Would like to know whether Arabic URL is supported in IE11?
Hello,
See this http://windows.microsoft.com/en-gb/windows-vista/change-your-internet-explorer-language-settings and follow the steps given
there. After that let us know whether it is working now or still not.
"Solution is to enable Send
IDN server names for non-Intranet URLs under
advanced settings. " This is also a solution.
Thanks Prakash
Varghese!
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Dear Team
i need solution from Microsoft for the issue;
My infrastructure
- Windows Server 2008 R2 (Role - AD and Terminal Service)- Updated
- Client Machine running with windows 7 pro (Updated)
- Client Using RDP Client to connect Windows 2008 Terminal Session
- All are working fine, but Redirect Printing is not working (Through Windows 7 Pro) ... (HP Laser Jet 1020 plus - attached in Client PC)
- it is working fine from Windows XP
- i was done All terminal setting in both end, also try RDP Login with Administrator User, but issue is not resolve;
What Microsoft can say about the issue;
Thanks & Regards,
VIMAL PRAJAPATI | 09824111686Have you checked the Print Service log in event viewer?
Here's How.
I have the Microsoft XPS driver on my clients, so I use that fact to my advantage below.
Click Start Button/Administrative Tools/Remote Desktop Services/Remote Desktop Services Manager on the RDSH server
Click the Sessions tab. PC’s are listed Under Client Name by their computer name. Take Note of the corresponding
ID. We will use this to locate the Printer information in the Event Log.
In the Event Log open Application and Services Logs/Microsoft/Windows/Print Service/Admin/ and Find the Event ID 823 entry that has the corresponding ID from the sessions tab you previously noted.
This Event Log Entry is created at Logon and you can only get the session ID when they are logged in.
This tells you what client printer was mapped for the client. The name that appears is the name of the Printer that was set on the client when the printer was installed.
See if you see any errors here.
If you see Event Id 823 with the following message “The default printer was changed to Microsoft XPS Document Writer,winspool,Ne00:. See the event user data for context information.” Twice in a row with no other messages in between, and the first occurs
at the time the user logged in, then their printer was not properly redirected.
You see the Microsoft XPS driver mapped for each session prior to Easy Print redirecting the client machine’s Default Printer.
Since your printer is the HP 1020 I would bet the driver on the client does not work with Easyprint. I would try the the HP Universal Print Driver or the driver for a printer that is very close, like the HP 1018.
Thanks,
Jeremy -
Redirected Printer is not working
Hello all,
We have a Windows Server 2012 R2 terminal server. We have set up two Lenovo thin clients to remote access this terminal server. The problem is that the redirected printer is not working on one of the thin client but works on the other one. I have made the
same settings on both of the thin clients.
The difference between these two thin clients is like following.
1. Printer: The one that is working is Canon printer and the one that is not working is HP printer.
2. They use different ISPs.
All other settings are the same. I did not find any error code from the event viewer too. The only thing that I have is this error message when I tried to print a test page. "Test page failed to print. Would you like to view the print troubleshooter
for assistance?" And when I click "Yes", it said I did not have the related service installed and I could not find the error code for this issue.
Does anyone have any ideas on this issue? Please share this.
Thank you very much.Hi,
Thank you for posting in Windows Server Forum.
Based on your description it seems that there is issue with incompatible print driver. As you commented you can access for canon but not for HP. Please see that you have update version of HP driver is installed. If possible try to use RDS universal printer
driver and verify.
How to configure Microsoft RDS Universal Printing
Does this happen for any specific user or for all users? If this happen for any particular user then there might be issue with user profile got corrupt so need to clear user profile cache or delete it and re-login to check the result.
Hope it helps!
Thanks.
Dharmesh Solanki
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
URL redirect over is not working..
Redirecting URL appended with querystring parameters for community is not working on SSO? We have SSO set up using Intergrated Windows Authetication.
When I launch new browser and request portal over SSO , works. Then I go to a community and copy the URL from browser. When I open new window and paste the URL extracting UserID from it, it gives me login screen and sso won't work.
If I do the same action twice in same window(for which I got the login screen firsttime), it works second time. How can I resolve this? Is anybody had this problem before?
Thanks!!
SanjayCaptureDeviceInfo di=null;
Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.RGB));
if (deviceList.size() > 0)
di = (CaptureDeviceInfo)deviceList.elementAt(0);
if(di==null) System.exit(-1);
System.out.println("devicelist2");
else
System.out.println("exit");
System.exit(-1);
MediaLocator mediaURL = di.getLocator();
create medialocator by using datasouce object's mehtod getLocator();
anoop -
URL-rewriting not working with redirect/
I couldn't find an answer to the following problem in any of the threads:
When navigating between pages via internal forwards, I can safely turn off cookies in my browser; the session id will be written into the requested URL, and so session state is being maintained properly. But when I use <redirect/> in a navigation rule in faces-config.xml to force Faces to redirect the request to the target page via an HTTP redirect, the URL is not being rewritten properly - the session id is missing, and so session state is not being maintained. This results in the loss of all user/session specific data for the current browser session.
I suspect that using <redirect/> results in the Faces Lifecycle being terminated by calling responseComplete() before rendering the view, and that at this point, instead of calling encodeRedirectURL() before redirecting, the URL is being redirected without being rewritten to contain the session id.
My question thus are: Is my suspicion correct? And is there any solution to this problem?What I forgot to mention: I'm using Sun's RI of JSF running on Tomcat 5.0.19.
Any help is appreciated!
Wolfgang -
URL Encoder not working in Netscape
Hi All,
I am using url encoding in my servlet for redirecting a request. The query string values has some spaces in them. The code I have used is shown below
String mname = "Jason Perry"
response.sendRedirect
("http://194.216.8.238:8081/merchant/merch.merchant?msgid=RP&mctid=1111242&totcp="+price.toString()+"&mname="+URLEncoder.encode(mname)+"&mtxnid=UY675432");
Please note that 194.216.8.238:8081 is an IP of another server located outside our network.
In Netscape the url is shown as http://194.216.8.238:8081/merchant/merch.merchant?msgid=RP&mctid=1111242&totcp=15
&mname=Jason Perry&mtxnid=UY675432
The space is not getting replaced with the plus.
But I have observed that if the redirection is to the same server on which the servlet is running, it works fine.
I am at loss as to why url encode is not working when routing the request to another server. I am using Netscape 4.77 .
This is works in IE fine.
Your inputs are appreciated.
Thanks
MaliniYeah had this problem before, use the java.net.URLEncoder class:
<%@ page language="java" import="java.net.URLEncoder"%>
<%
String url = "http://194.216.8.238:8081/merchant/merch.merchant?msgid=RP&mctid=1111242&totcp=15
&mname=Jason Perry&mtxnid=UY675432"
String encodedUrl = URLEncoder.encode(url);
response.sendRedirect(encodedUrl);
%> -
URL Mapping not working inside MOSS
hi,
I want to achieve broken URL redirection in old web application developed in MOSS.
For this purpose, i have to use URL mapping inside web.config -
For Example -
<urlMappings enabled="true" >
<add url="~/brokenpath" mappedUrl="/subsite/Pages/Home.aspx" />
</urlMappings>
I have checked that '/subsite/Pages/Home.aspx' url is not broken but still getting 404 exception.
Similar tag is working under dev/local environment but not working in the production,
Can anybody please let me know the problem or any configuration missing.
Thanks in advance.Hi Saurabh, can you provide the actual broken path, both in your web.config as well as the absolute URL?
Dimitri Ayrapetov (MCSE: SharePoint) -
Servlets not working in tomcat-4.1.24
Servlets are not working in a new context which I have created in tomcat-4.1.24. if i put the same servlet in examples context it is working. jsps are working in the new context also. any idea????
binnySuppose your servlets class is called "app", you need to add this in your web.xml file
<servlet>
<servlet-name>app</servlet-name>
<servlet-class>app</servlet-class>
<servlet-mapping>
<servlet-name>app</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
</servlet> -
Citrix HDX Flash redirection plugin installer not working
Hi,
We have been trying to install the Citrix Flash redirection plugin (Products - XenDesktop - Download Flash Plugin - Citrix) but it is not working.
When the installer begins after download, it starts to retrieve the install and then the windows goes blank (below)
I ran a debug install as a previous thread suggested and have pasted the comments below. We have tried this in numerous machines, different Operating systems on different networks, all with the same outcome. (the file path has been altered by me, below)
Memory Initialized (Maximum)
===============================================================================
Host Version: 3.5.4.26
"C:\xxxxx\xxxxxxxxxxxxx\Desktop\install_flashplayer15x32_mssd_aaa_aih.exe" /debug -Elevated
System: Windows NT version 6.2.9200.0
Added url to whitelist (localhost).
Added url to whitelist (solidstatenetworks.com).
Added url to whitelist (snxd.com).
Added read only registry path to whitelist (machine\Software\Microsoft\Internet Explorer\).
Added common name to whitelist (Solid State Networks I, LLC).
Added common name to whitelist (Adobe Systems Incorporated).
Extracting skin file (/app.config.xml)
Added url to whitelist (get.adobe.com).
Added url to whitelist (get2.adobe.com).
Added url to whitelist (aihdownload.adobe.com).
Added url to whitelist (airdownload.adobe.com).
Added url to whitelist (ardownload.adobe.com).
Added url to whitelist (download.macromedia.com).
Added url to whitelist (fpdownload.macromedia.com).
Added url to whitelist (fpdownload2.macromedia.com).
Added url to whitelist (fpdownload.adobe.com).
Added url to whitelist (fpdownload2.adobe.com).
Added url to whitelist (platformdl.adobe.com).
Added url to whitelist (platformdl-stage.corp.adobe.com).
Added url to whitelist (wwwimages.adobe.com).
Added url to whitelist (wwwimages.stage.adobe.com).
Added url to whitelist (dlmping.adobe.com).
Added url to whitelist (dlmping2.adobe.com).
Added url to whitelist (dlmping3.adobe.com).
Added url to whitelist (dlmping4.adobe.com).
Added url to whitelist (get3.adobe.com).
Added url to whitelist (get3.stage.adobe.com).
Added url to whitelist (adobetag.com).
Added url to whitelist (promotion.adobe.com).
Added read only registry path to whitelist (machine\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\).
Added read only registry path to whitelist (machine\SOFTWARE\Microsoft\Windows NT\CurrentVersion\).
Added read only registry path to whitelist (machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\).
Added read only registry path to whitelist (machine\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\).
Added read only registry path to whitelist (user\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\).
Added read only registry path to whitelist (root\http\shell\open\command\).
Added read only registry path to whitelist (root\https\shell\open\command\).
Added read only registry path to whitelist (root\.htm\).
Added read only registry path to whitelist (root\.html\).
Added read only registry path to whitelist (root\IE.HTTP\shell\open\command\).
Added read only registry path to whitelist (root\FirefoxURL\shell\open\command\).
Added read only registry path to whitelist (root\SafariURL\shell\open\command\).
Added read only registry path to whitelist (root\ChromeHTML\shell\open\command\).
Added read only registry path to whitelist (machine\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\).
Added read only registry path to whitelist (machine\SOFTWARE\Macromedia\).
Added read only registry path to whitelist (user\SOFTWARE\Macromedia\).
Added read/write registry path to whitelist (machine\SOFTWARE\Adobe\Setup\Reader\).
Added read/write registry path to whitelist (machine\SOFTWARE\Wow6432Node\Adobe\Setup\Reader\).
Added common name to whitelist (Adobe Systems, Incorporated).
189 active MIME types
WebServer thread running
WebServer Listening on 127.0.0.1:63006
Browser cache flushed (0 removed) (851 checked) (0.01 seconds)
Browser: IE 9.11.9600.17498
Extracting skin file (mainwindow.config.xml)
Response code set [/mainwindow.html:200:0]
Accept queue size of (2)
Response code set [/images/icon-blank.gif:200:0]
Response code set [/mainwindow.css:200:0]
Accept queue size of (2)
Response code set [/compact.min.js:200:0]
Response code set [/images/icon-complete.gif:200:0]
Response code set [/images/icon-complete-error.gif:200:0]
Accept queue size of (2)
Response code set [/images/logo-adobe.gif:200:0]
Response code set [/images/bg-close-program.png:200:0]
Accept queue size of (2)
Response code set [/images/bg-download-bar-empty.png:200:0]
Response code set [/images/bg-header-error.gif:200:0]
Response code set [/images/bg-download-bar-full.png:200:0]
Discovering default browser...
Default browser: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -- "%1"
Skin version: 2.0.2.13
Document ready triggered
Extracting skin file (locale/en-us.json)
Extracting skin file (workflow.json)
Unable to extract skin file (locale/en.json)
Unable to extract skin file (locale/ie.json)
Accept queue size of (2)
Response code set [/images/button-left.png:200:0]
Response code set [/images/button-center.png:200:0]
Response code set [/images/button-right.png:200:0]
Extracting skin file (interop/downloader.dll)
Loading interop library (C:\Users\Ed_LO\AppData\Local\Adobe\AIH.e8ca43f5ad5cdca8a0c1d77b352fe6e414532d67\download er.dll) (3.5.4.26)
Memory Initialized (Maximum)
===============================================================================
Downloader Version: 3.5.4.26
Solid Core v0.82 () in use (S11)
Cwd [C:\xxxxxx\xxxxxxx\Desktop\] [EC:F4:BB:09:82:BA]
Torrent Agent: -SC0082-
Torrent Agent: -SD354Q-
Starting manager thread
Manager state changing from (Idle) to (Start)
Manager state changing from (Start) to (Process)
Response code set [/environment.json:200:224]
macroEnvironment (macro) (1305): adding macro WorkflowUrl=https://get.adobe.com/flashplayer/webservices/aih/
macroEnvironment (macro) (1305): adding macro InstallType=install
macroEnvironment (macro) (1305): adding macro InstallName=flashplayer15
macroEnvironment (macro) (1305): adding macro InstallSite=live
macroEnvironment (macro) (1305): adding macro CompletionPageUrl=https://get.adobe.com/flashplayer/completion/aih/
mergeWorkflow (merge) (5EAA): retrieving https://get.adobe.com/flashplayer/webservices/aih/?language=en-IE¤tFilename=install_ flashplayer15x32_mssd_aaa_aih.exe&builtinName=flashplayer15&type=install&site=live
installProducts (products) (5781): primary product
installProducts (products) (5781): preparing sitecatalyst ping
installProducts (products) (5781): primary product
Unable to open file [C:\Users\Ed_LO\Desktop\install_flashplayer15x32_mssd_aaa_aih.exe][00008000](2 : 00000002)
installProducts (products) (5781): sitecatalyst offerCount 0
installProducts (products) (5781): sitecatalyst siteCatalystOffers 0
installProducts (products) (5781): sitecatalyst siteCatalystAcceptedOffers 0
installProducts (products) (5781): sitecatalyst primaryProductExitCode -1
installProducts (products) (5781): sitecatalyst primaryProductIsComplete false
installProducts (products) (5781): sitecatalyst primaryProductSiteCatalystCode
installProducts (products) (5781): sitecatalyst pageName ACDC_FP_AIH_Launched
installProducts (products) (5781): sitecatalyst channel ACDC_FlashPlayer
installProducts (products) (5781): sitecatalyst prop1 AIH
installProducts (products) (5781): sitecatalyst prop2 ACDC Downloads
installProducts (products) (5781): sitecatalyst prop3 get.adobe.com
installProducts (products) (5781): sitecatalyst prop4 en
installProducts (products) (5781): sitecatalyst prop5 en:undefined
installProducts (products) (5781): sitecatalyst products ;FlashPlayer_AIH
installProducts (products) (5781): sitecatalyst eVar73 ACDC_FlashPlayer
installProducts (products) (5781): sitecatalyst eVar74
installProducts (products) (5781): sitecatalyst events event96
installProducts (products) (5781): completion page url https://get.adobe.com/flashplayer/completion/aih/
installProducts (products) (5781): preparing sitecatalyst ping
installProducts (products) (5781): primary product
Unable to open file [C:\Users\Ed_LO\Desktop\install_flashplayer15x32_mssd_aaa_aih.exe][00008000](2 : 00000002)
installProducts (products) (5781): sitecatalyst offer results (isDual false oLen 0):
installProducts (products) (5781): sitecatalyst installedCode failedCode offerCode
installProducts (products) (5781): sitecatalyst allInstalled true allFailed true
installProducts (products) (5781): sitecatalyst numInstalled 0 numFailed 0
installProducts (products) (5781): sitecatalyst offerCount 0
installProducts (products) (5781): sitecatalyst offerCount 0
installProducts (products) (5781): sitecatalyst siteCatalystOffers 0
installProducts (products) (5781): sitecatalyst siteCatalystAcceptedOffers 0
installProducts (products) (5781): sitecatalyst primaryProductExitCode -1
installProducts (products) (5781): sitecatalyst primaryProductIsComplete false
installProducts (products) (5781): sitecatalyst primaryProductSiteCatalystCode
installProducts (products) (5781): sitecatalyst pageName ACDC_FP_AIH_Unknown_Reason_exitcode=-1
installProducts (products) (5781): sitecatalyst channel ACDC_FlashPlayer
installProducts (products) (5781): sitecatalyst prop1 AIH
installProducts (products) (5781): sitecatalyst prop2 ACDC Downloads
installProducts (products) (5781): sitecatalyst prop3 get.adobe.com
installProducts (products) (5781): sitecatalyst prop4 en
installProducts (products) (5781): sitecatalyst prop5 en:acdc_fp_aih_launched
installProducts (products) (5781): sitecatalyst products ;FlashPlayer_AIH
installProducts (products) (5781): sitecatalyst eVar73 ACDC_FlashPlayer
installProducts (products) (5781): sitecatalyst eVar74
installProducts (products) (5781): sitecatalyst events
actions not defined for (products) in (installProducts)
Notification center caught unhandled exception: Unable to get property 'length' of undefined or null reference
completion page url https://get.adobe.com/flashplayer/completion/aih/?exitcode=-1
Launching browser..
Command: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -- "%1"
Executable: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Arguments: -- "https://get.adobe.com/flashplayer/completion/aih/?exitcode=-1"
Manager state changing from (Process) to (Stop)
Manager state changing from (Stop) to (Stopping)
Manager state changing from (Stopping) to (Shutdown)
Storage active (0/10):
-- Member Unused
-- Member Unused
-- Member Unused
-- Member Unused
-- Member Unused
-- Member Unused
-- Member Unused
-- Member Unused
-- Member Unused
-- Member Unused
Manager state changing from (Shutdown) to (Idle)
Manager thread shut down successful
Maximum Memory in use (230 / 661k)
===============================================================================
WebServer thread shut down successful
Browser cache flushed (0 removed) (866 checked) (0.06 seconds)
Maximum Memory in use (1137 / 5413k)
===============================================================================Hi Jack,
The link Citrix has on their page for the Flash Player installer is incorrect. This has been escalated and Citrix will be contacted about this matter.
To download the Plugin Citrix is using, go to http://get.adobe.com/flashplayer/otherversions, select your Windows OS version and then select 'FP 16 for Firefox - NPAPI'.
Maria -
I've tried over 4 tutorials to make my movieclip link to a URL. It's just not working for some reason...
Here is my code.
ondemand.addEventListener(MouseEvent.CLICK,goThere);
function goThere(e:MouseEvent){
var request:URLRequest = new URLRequest("www.money.net");
navigateToURL(request);
ondemand.buttonMode = true;
ondemand.useHandCursor = true;
stop();
ondemand is a movieclip instance with a PNG image of text.
This should work!! There are no compilation errors...
No mouse cursor change on hover... just like nothing is there.
Please help...I am overall confused by your description of what you have, especially when you get to doubleclicking the movie and assigning code in it.
In any case, you need to assign the name (the same name) to every instance of a tweened object. The lack of a name in earlier frames will be inherited by instances in subsequent frames
I'm confused about your mention of 3 instances being in the library. Just for clarity, an instance is a library symbol (or an object) that you place on the stage. If you place two of the same objects on the stage, then you have 2 instances. Items in the library are instance-wanna-bes. If you have three different symbols in the library, and you are tweening them as if they were the same, your tween can't possibly work. -
URL buttons not working in Powerpoint
Hi
I have just created an Xcelsuis report and exported this to Powerpoint.
Now it opens up fine in Powerpoint, but my URL buttons do not work (they do not open the excel files i want, i.e. My button is URL: C:\Test\Test.xls)
When exporting to a pdf format this URL button works fine.
Please can you advise how I can get this working for my Powerpoint.
Thanks!When you export the SWF to your desktop or into a PPT it will not have permission to access external data by default (or call a URL).
You need to add C:\Program Files\...\PowerPoint.exe as to the list of trusted items using the Adobe Global Security Settings Manager, see the Xcelsius Release notes for more information about the Flash Player Security...
Regards
Matt -
Servlet not working...
i'm running tomcat 4.0.1 on IIS and i haven't been able to get my servlet to work.
i'm thinking that it has something to do with where i am placing my servlet, or my directory structure.
my applet is run out of the directory "\\server\\wwwroot$\\testDir\\"
and my servlet is in the directory "\\server\\tomcat$\\webapps\\ROOT\\WEB-INF\\classes\\"
here is my applet code for calling the servlet....
try
URL url = new URL("http://www2.homepage.com/serlvet/servletOne");
URLConnection conn = url.openConnection();
InputStream inputStreamFromServlet = conn.getInputStream();
catch(IOException io) { io.printStackTrace(); }
here is my servlet code....
public class servletOne extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
try
FileWriter f = new FileWriter("\\server\\wwwroot$\\testDir\\test2.htm");
f.write("testing");
f.flush();
f.close();
catch(IOException io) { io.printStackTrace(); }
the error i get when i try to run it is a FileNotFoundException.
i believe that this is the proper location for my servlet, but does the tomcat directory have to be within the wwwroot$ directory, in order for it to work?
any help would be greatly appreciated
thanks
AndySeems that FileWriter cannot find test2.htm file. The path for FileWriter constructor can be any absolute system dependent path. So you can use "c:\\server\\wwwroot\\testDir\\test2.htm".
Regards,
Ignat -
ProtectLink Web Protect URL Filtering not working
Good day!
Please help.
We have a problem on our RV042 router.
The Protectlink WebProtect URL filtering is not working.
When we first activate the service (Nov. 12), it worked for a few days, then 2 days ago, our internet connection got problems. But yesterday, our ISP fix the problems on our internet connection, but the URL filtering of WebProtect is not working anymore even if it is enable, up to this time.
What should we do about this problem?
Thanks in advance for your kind replies!i have installed TMG 2010 and created url filtering rule for facebook.com but that problem
is ever after five minutes i can see that the users can access facebook. and then i check in TMG MMC so i can see that the Category Query says me that facebook.com is unknown....but just after five minutes i can see facebook has been automatically blocked
and i can also see in Category Query it says me facebook is in blog/wiki category...
so why it is changing automatically every after 5 or 10 minutes :( ?
where is the problem ???
i need your help please !!
Maybe you are looking for
-
Ipod - transfer music from the Ipod to the computer
My computer died suddenly, how can I transfer my Ipod library on a new computer without the support of my old computer.
-
First..I love my apple tv.. Why are my tv shows shown in 4:3 aspect ratio and my movies in 16:9? I have my settings set to 720 and a widescreen plasma and hdmi input? Am I missing something? Any advice? Thanks, cj
-
Undo Delete of Component Item in Work Order
In a maintenance work order it is possible to delete a component line item. The associated purchase requisition line item shows up with a deletion indicator. Is it possible to undo the delete either on the work order or the requisition? Thanks, KF
-
Installing Oracle 8i Enterprise Edition on Novell Netware Platform
Where can I get documentation and a copy of the Oracle 8i CD packs for installing on a Novell Netware platform? Thanks
-
Ora-19870 error reading backup piece during installation
Hi, I am trying to install oracle10g database on windows. i am installing database software and database together and i keep getting this error half way throu installation. "ora-19870 error reading backup piece during installation" how can i solve th