Ip auth-proxy form action is always IP address for HTTPS?
I am trying to set up an ip auth-proxy on a 1840.
It works, but results in https certificate error, as the authentication form is always submitted back to router using IP address in URL and not domain name that is in the certificate.
... <form method="post" action="https://10.10.10.11:443" target="pxywindow1"> ...
Is there a way to make router send the form with domain name or at least relative URL and not IP address?
With this certificate error, the feature cannot be possibly used in production environment.
Thanks!
Sergey
Figured it out: I had not put in a default aaa authentication login default tacacas+ command. I didn't think it was necessary. I was wrong.
Similar Messages
-
OAM: Form based auth IIS6, problem with form action
This should be really simple, reading all the docs and forums, they all say that the form action should be
/access/oblix/apps/webgate/bin/webgate.dll
but this doesn't exist.
Virtual dir /access points to
c:\progfiles\netpoint\webcomponent\access
in there, there is no webgate folder under apps
I do find a webgate folder here:
c:\progfiles\netpoint\webgate\access\oblix\apps\webgate\bin\webgate.dll
I tried copying the webgate folder from the 2nd to the webcomponents one but getting a 404 when trying to access the webgate.dll. I can access a test.html file in that same folder.Hi,
I believe the thread at Help with OAM Form login on IIS please should help.
-Vinod -
Problems with file uploading servlet, the form action doesnt capture url
Hi, i have one problem. I am working on a project , i have created a servlet that takes uploaded files and processses them and links them back to user to download. The servlet works perfectly from my computer, I am using apache-tomcat-6.0.16 and java 1.6 , I have two forms called encrypt.html and decrypt.html, I will post both of them, now the problem is when somebody access it on the internet while i am running apache, they get a connection was reset on a firefox browser and same stuff on Internet Explorer.
i have checked my server logs and saw nothing unusual there, So please if you can help me, it is my project.
I am pasting html file and error message that other users where getting remotely.
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>Stego Form</title>
<link rel='STYLESHEET' type='text/css' href='encrypt.css'>
</head>
<body>
<center>
<form name='encrypt' enctype='multipart/form-data' method='POST' action='http://localhost:8080/examples/temp2
' accept-charset='UTF-8'>
<input type='hidden' name='sfm_form_submitted' value='yes'>
</input>
<input type='hidden' name='eord' value='e'>
<select name='encryption' size='1'>
<option value='Select an encryption' selected>
Select an encryption
</option>
<option value='DES'>
DES
</option>
<option value='Tripple DES'>
Tripple DES
</option>
</select>
<input type='file' name='overt' size='20'>
<input type='file' name='covert' size='20'>
<input type='submit' name='submit' value='Submit'>
</form>
</center>
</body>
</html>so it works for me even if i access the page with my ip , but for others it doesnt work,
now the user got this xhtml page that i will show, i cant find attach button so i am pasting here.
here is the servlet coding
import java.io.*;
import java.util.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.apache.commons.fileupload.*;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
public class temp2 extends HttpServlet
FileInputStream fin;
String filenames[] = new String[2],fieldname,fieldval;
String keyfile,IVfile;
String names[] = new String[2];
public temp2()
super();
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost(request, response);
@Override
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
String eord="";
List lst = null;
boolean isMultiPart = ServletFileUpload.isMultipartContent(request);
if (!isMultiPart) // check whether the post request is actually multipart
System.out.println("ERROR NOT MULTIPART");
System.exit(0);
DiskFileItemFactory fif = new DiskFileItemFactory();
ServletFileUpload sfu = new ServletFileUpload(fif);
sfu.setSizeMax(10000000);
try { lst = sfu.parseRequest(request); }
catch (FileUploadException ex)
{ System.out.println("ERROR IN PARSING FILES" + ex); System.exit(0); }
if(lst.isEmpty()) // check whether request is empty
System.out.println("ERROR LIST SIZE NOT GOOD : " + lst.size());
System.exit(0);
Iterator x = lst.iterator();
int i = 0;
FileItem f = (FileItem)x.next();
f = (FileItem)x.next();
System.out.println(f.getFieldName());
if(f.getFieldName().equalsIgnoreCase("eord")) // check hidden field to know the case : encrypt or decrypt
eord = f.getString();
System.out.println(f.getString());
else // if it is not first field exit
System.out.println("Invalid FORM");
System.exit(0);
f = (FileItem)x.next(); // next field
if(f.getFieldName().equalsIgnoreCase("encryption")) // type of encryption des / tdes
fieldname = f.getFieldName();
fieldval = f.getString();
System.out.println(f.getString());
if(eord.equalsIgnoreCase("e")) // if it is encryption form only file required
while(x.hasNext())
f = (FileItem)x.next();
if(!f.isFormField())
int check = f.getName().lastIndexOf(File.separator);
System.out.println(File.separator);
if(check==-1)
System.out.println(f.getName());
System.out.println("Unsupported browser : " + check);
System.exit(0);
File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
names[i] = ff.getName(); // original file names
try
f.write(ff);
filenames[i] = ff.getAbsolutePath();
// renamed
ff.deleteOnExit();
}catch(Exception e) {System.out.println("Error writing file"+ ff.getAbsolutePath()); System.exit(0);}
i++;
try { System.in.read(); } catch(Exception e) {}
}// endwhile
if(fieldval.equalsIgnoreCase("DES"))
System.out.println("DES 1"+filenames[1]);
javades o = new javades(filenames[1]); // the file to be encrypted
filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
System.out.println("should be original" + filenames[1]);
else if(fieldval.equalsIgnoreCase("Tripple DES"))
javatdes o = new javatdes(filenames[1]);
filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
System.out.println(filenames[1]);
System.out.println("Calling stego");
filenames[0] = "e:\\apache\\webapps\\temp\\" + names[0];
System.out.println("file 1 "+ filenames[0]);
System.out.println("file 2"+ filenames[1]);
try { System.in.read(); } catch(Exception e) {}
stego s = new stego(filenames[0],filenames[1]);
System.out.println("mainext " + s.mainext);
// encryption done, and new files are loaded, now lets hide
if(s.mainext.equalsIgnoreCase("wav"))
s.encodewav();
System.out.println("Encoded wave");
else if(s.mainext.equalsIgnoreCase("bmp"))
System.out.println("Encoded bmp");
s.encodebmp();
System.out.println("done !");
PrintWriter pr = response.getWriter();
pr.println("Greetings , Your work is done and saved, now download the following files");
pr.println("The secret key file is needed for getting back your hidden file, so download that too");
pr.write("<a href=\"/temp/files/IV.txt\">click here</a>");
pr.write("<br/><a href=\"/temp/files/key.txt\">click here</a>");
pr.write("<br/><a href=\"/temp/files/"+names[0]+"\">click here</a>");
return;
// if it is decryption case
else if(eord.equalsIgnoreCase("d"))
while(x.hasNext())
f = (FileItem)x.next();
if(!f.isFormField())
int check = f.getName().lastIndexOf(File.separator);
System.out.println(File.separator);
if(check==-1)
System.out.println(f.getName());
System.out.println("Unsupported browser : " + check);
System.exit(0);
File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
// else if ladder to store paths of stegofile keyfile and IVfile
if(f.getFieldName().equalsIgnoreCase("stegofile"))
filenames[0] = ff.getAbsolutePath();
else if(f.getFieldName().equalsIgnoreCase("keyfile"))
keyfile = ff.getAbsolutePath();
else if(f.getFieldName().equalsIgnoreCase("IVfile"))
IVfile = ff.getAbsolutePath();
try
f.write(ff); // writes whole file at once
}catch(Exception e) {System.out.println("Error writing file"); System.exit(0);}
}// endwhile
System.out.println("Calling stego");
System.out.println("file 1 "+ filenames[0]);
stego s = new stego(filenames[0]);
System.out.println("mainext " + s.mainext);
if(s.mainext.equalsIgnoreCase("wav"))
s.decodewav();
System.out.println("Encoded wave");
else if(s.mainext.equalsIgnoreCase("bmp"))
s.decodebmp();
System.out.println("Encoded bmp");
System.out.println("done !");
////// hidden file has been retrieved , now lets decrypt it
System.out.println("ext " + s.ext);
filenames[0] = "e:\\apache\\webapps\\temp\\"+s.filename;
System.out.println(filenames[0]);
System.out.println(keyfile);
System.out.println(IVfile);
if(fieldval.equalsIgnoreCase("DES"))
javades o = new javades(filenames[0],keyfile,IVfile); // the file to be encrypted
filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
System.out.println("should be original" + filenames[0]);
else if(fieldval.equalsIgnoreCase("Tripple DES"))
javatdes o = new javatdes(filenames[0],keyfile,IVfile);
filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
System.out.println(filenames[0]);
PrintWriter pr = response.getWriter();
pr.write("Greetings, you have successfully retrieved your hidden file, now download it from here <br>");
pr.write("<a href=\"http://localhost:8080/temp/files/" + (new File(filenames[0]).getName())+"\">Click here</a>");
}and here is the xhtml file the user receives, whe he clicks the submit button,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html [
<!ENTITY % htmlDTD
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
%htmlDTD;
<!ENTITY % netErrorDTD
SYSTEM "chrome://global/locale/netError.dtd">
%netErrorDTD;
<!ENTITY loadError.label "Problem loading page">
<!ENTITY retry.label "Try Again">
<!-- Specific error messages -->
<!ENTITY connectionFailure.title "Unable to connect">
<!ENTITY connectionFailure.longDesc "&sharedLongDesc;">
<!ENTITY deniedPortAccess.title "This address is restricted">
<!ENTITY deniedPortAccess.longDesc "">
<!ENTITY dnsNotFound.title "Server not found">
<!ENTITY dnsNotFound.longDesc "
<ul>
<li>Check the address for typing errors such as
<strong>ww</strong>.example.com instead of
<strong>www</strong>.example.com</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
<!ENTITY fileNotFound.title "File not found">
<!ENTITY fileNotFound.longDesc "
<ul>
<li>Check the file name for capitalization or other typing errors.</li>
<li>Check to see if the file was moved, renamed or deleted.</li>
</ul>
">
<!ENTITY generic.title "Oops.">
<!ENTITY generic.longDesc "
<p>&brandShortName; can't load this page for some reason.</p>
">
<!ENTITY malformedURI.title "The address isn't valid">
<!ENTITY malformedURI.longDesc "
<ul>
<li>Web addresses are usually written like
<strong>http://www.example.com/</strong></li>
<li>Make sure that you're using forward slashes (i.e.
<strong>/</strong>).</li>
</ul>
">
<!ENTITY netInterrupt.title "The connection was interrupted">
<!ENTITY netInterrupt.longDesc "&sharedLongDesc;">
<!ENTITY netOffline.title "Offline mode">
<!ENTITY netOffline.longDesc "
<ul>
<li>Uncheck "Work Offline" in the File menu, then try again.</li>
</ul>
">
<!ENTITY netReset.title "The connection was reset">
<!ENTITY netReset.longDesc "&sharedLongDesc;">
<!ENTITY netTimeout.title "The connection has timed out">
<!ENTITY netTimeout.longDesc "&sharedLongDesc;">
<!ENTITY protocolNotFound.title "The address wasn't understood">
<!ENTITY protocolNotFound.longDesc "
<ul>
<li>You might need to install other software to open this address.</li>
</ul>
">
<!ENTITY proxyConnectFailure.title "The proxy server is refusing connections">
<!ENTITY proxyConnectFailure.longDesc "
<ul>
<li>Check the proxy settings to make sure that they are correct.</li>
<li>Contact your network administrator to make sure the proxy server is
working.</li>
</ul>
">
<!ENTITY proxyResolveFailure.title "Unable to find the proxy server">
<!ENTITY proxyResolveFailure.longDesc "
<ul>
<li>Check the proxy settings to make sure that they are correct.</li>
<li>Check to make sure your computer has a working network connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
<!ENTITY redirectLoop.title "The page isn't redirecting properly">
<!ENTITY redirectLoop.longDesc "
<ul>
<li>This problem can sometimes be caused by disabling or refusing to accept
cookies.</li>
</ul>
">
<!ENTITY unknownSocketType.title "Unexpected response from server">
<!ENTITY unknownSocketType.longDesc "
<ul>
<li>Check to make sure your system has the Personal Security Manager
installed.</li>
<li>This might be due to a non-standard configuration on the server.</li>
</ul>
">
<!ENTITY sharedLongDesc "
<ul>
<li>The site could be temporarily unavailable or too busy. Try again in a few
moments.</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
<!ENTITY % globalDTD
SYSTEM "chrome://global/locale/global.dtd">
%globalDTD;
]>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
- The Original Code is mozilla.org code.
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1998
- the Initial Developer. All Rights Reserved.
- Contributor(s):
- Adam Lock <[email protected]>
- William R. Price <[email protected]>
- Henrik Skupin <[email protected]>
- Jeff Walden <[email protected]>
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the LGPL or the GPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
- ***** END LICENSE BLOCK ***** -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Problem loading page</title>
<link rel="stylesheet" href="temp2_files/netError.css" type="text/css" media="all"/>
<!-- XXX this needs to be themeable -->
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAICSURBVHjaYvz//z8DJQAggJhwiDPvnmlzc2aR0O+JGezt+AwACCCsBhxfYhn59N41FWtXIxZOLu70niRGXVwGAAQQNgNYHj96O8HaWYdJW5ubwd4/mI2Ng7sblwEAAYRhwMm1URk/vn4SUNWVYGD8+YZBXZOZm5OLzRjoCmNsBgAEEKoBN82Y7l851GLrqMjM8Oc7A8O/3wwMP54wuAQFCXNycUzGZgBAAKEYcOaKZO2/f//5FbUVgBrfMoRVcgHpNwyKGjKMXDwCan0prFboBgAEELIBzDcvXyy2cVZhYPj9GWj7H4jo/38MDJ9OMDj7O/KzsjH3oxsAEEBwA/bNNipiZf7FI6cqwcDw8x2qqp8fGORUpVn4BEXlgGHhhCwFEEAwA9gfP3hdZ+Oizcjw+wvCdjgAuuLrFQbXIH9hTm7uqcgyAAEENuD4ctcebm5mbikFYRTbV7V/Q6j88Z5BSuY7q4CQgAjQFR4wYYAAAhtw89L5ZFsnRaDtn4CW/YXrAQcisit+PGVwDgrnZ2NnnwATBQggpsNLvGYLCAmxi8tLARWg+h3FBVBXSEj/ZZWQkRcCuiIQJAQQQCyvnj5KMDTkZ2JgYmRg4FchnHv+vmEwttLmeXT3VjKQtx4ggFgk5TXebV63UfT3ijOMxOZAVlZWdiB1EMQGCCBGSrMzQIABAFR3kRM3KggZAAAAAElFTkSuQmCC"/>
<script type="application/x-javascript"><![CDATA[
// Error url MUST be formatted like this:
// moz-neterror:page?e=error&u=url&d=desc
// Note that this file uses document.documentURI to get
// the URL (with the format from above). This is because
// document.location.href gets the current URI off the docshell,
// which is the URL displayed in the location bar, i.e.
// the URI that the user attempted to load.
function getErrorCode()
var url = document.documentURI;
var error = url.search(/e\=/);
var duffUrl = url.search(/\&u\=/);
return decodeURIComponent(url.slice(error + 2, duffUrl));
function getDescription()
var url = document.documentURI;
var desc = url.search(/d\=/);
// desc == -1 if not found; if so, return an empty string
// instead of what would turn out to be portions of the URI
if (desc == -1) return "";
return decodeURIComponent(url.slice(desc + 2));
function retryThis()
// Session history has the URL of the page that failed
// to load, not the one of the error page. So, just call
// reload(), which will also repost POST data correctly.
try {
location.reload();
} catch (e) {
// We probably tried to reload a URI that caused an exception to
// occur; e.g. a non-existent file.
function initPage()
var err = getErrorCode();
// if it's an unknown error or there's no title or description
// defined, get the generic message
var errTitle = document.getElementById("et_" + err);
var errDesc = document.getElementById("ed_" + err);
if (!errTitle || !errDesc)
errTitle = document.getElementById("et_generic");
errDesc = document.getElementById("ed_generic");
var title = document.getElementById("errorTitleText");
if (title)
title.parentNode.replaceChild(errTitle, title);
// change id to the replaced child's id so styling works
errTitle.id = "errorTitleText";
var sd = document.getElementById("errorShortDescText");
if (sd)
sd.textContent = getDescription();
var ld = document.getElementById("errorLongDesc");
if (ld)
ld.parentNode.replaceChild(errDesc, ld);
// change id to the replaced child's id so styling works
errDesc.id = "errorLongDesc";
// remove undisplayed errors to avoid bug 39098
var errContainer = document.getElementById("errorContainer");
errContainer.parentNode.removeChild(errContainer);
]]></script>
</head>
<body dir="ltr">
<!-- ERROR ITEM CONTAINER (removed during loading to avoid bug 39098) -->
<!-- PAGE CONTAINER (for styling purposes only) -->
<div id="errorPageContainer">
<!-- Error Title -->
<div id="errorTitle">
<h1 id="errorTitleText">The connection was reset</h1>
</div>
<!-- LONG CONTENT (the section most likely to require scrolling) -->
<div id="errorLongContent">
<!-- Short Description -->
<div id="errorShortDesc">
<p id="errorShortDescText">The connection to the server was reset while the page was loading.</p>
</div>
<!-- Long Description (Note: See netError.dtd for used XHTML tags) -->
<div id="errorLongDesc">
<ul>
<li>The site could be temporarily unavailable or too busy. Try again in a few
moments.</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.</li>
</ul>
</div>
</div>
<!-- Retry Button -->
<xul:button xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="errorTryAgain" label="Try Again" oncommand="retryThis();"/>
</div>
<!--
- Note: It is important to run the script this way, instead of using
- an onload handler. This is because error pages are loaded as
- LOAD_BACKGROUND, which means that onload handlers will not be executed.
-->
<script type="application/x-javascript">initPage();</script>
</body>
</html>thank you for your prompt reply in advance,
Regards,
Mihir PandyaHi, thank you for your replies, I found out few things about my servlet, and its portability
and i have few questions, although i marked this topic as answered i guess its ok to post
I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
of the modified files to the user for them to download the modified files.
What i am using to get the tempdir i will paste
File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
System.out.println(baseurl);
baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
links to the user for download ?
and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
And i want to create unique directory for each request made to the servlet , so file names dont clash.
one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
Reply A.S.A.P. please..
Thanks and regards,
Mihir Pandya -
I am very new to Dreamweaver and this is likely a very basic question, but never the less, I can't find the answer on Google or in the Help. I want the form below to always be e-mailed to [email protected] and also to the e-mail address supplied by the user filling out the form. The user supplied email address will be in the text box id "SalesEmail" listed below. How can I accomplish this? The user filling out the form would be my salesman, so they need the information, as do I.
Thanks,
David
<form action="mailto:[email protected]" method="post" enctype="text/plain" name="form1" id="form1">
<p>
<label for="Name">Name</label>
<input name="Name" type="text" id="Name" tabindex="1" size="30" maxlength="30" />
</p>
<p>
<label for="CompanyName">Company</label>
<input name="CompanyName" type="text" id="CompanyName" tabindex="2" size="40" maxlength="40" />
</p>
<p>
<label for="Address1">Address 1</label>
<input name="Address1" type="text" id="Address1" tabindex="3" size="40" maxlength="40" />
</p>
<p>
<label for="Address2">Address 2</label>
<input name="Address2" type="text" id="Address2" tabindex="4" size="40" maxlength="40" />
</p>
<p>
<label for="City">City</label>
<input name="City" type="text" id="City" tabindex="5" />
<label for="State">State</label>
<input type="text" name="State" id="State" tabindex="6" />
<label for="Zip">Zip</label>
<input type="text" name="Zip" id="Zip" tabindex="7" />
</p>
<p>
<label for="Cell">Cell</label>
<input name="Cell" type="text" id="Cell" tabindex="8" />
<label for="Office">Office</label>
<input type="text" name="Office" id="Office" tabindex="9" />
<label for="Email">Email</label>
<input name="Email" type="text" id="Email" tabindex="10" size="40" />
</p>
<p>
<label for="SalesEmail">Your Email</label>
<input type="text" name="SalesEmail" id="SalesEmail" tabindex="11" />
</p>
<p>
<label for="Notes">Notes or Special Requests</label>
<textarea name="Notes" cols="80" rows="10" id="Notes" tabindex="12"></textarea>
</p>
<p>
<input name="Submit" type="submit" id="Submit" tabindex="13" />
</p>
</form>Really needing to finish this before a deadline. Can anyone help? Thanks!!
-
Platform: 881W
IOS: C880-DATA-UNIVERSALK9-M 15.0(1)M3
License: I have tried both advsecurity and advipservices
Problem: Configuring an auth-proxy redirect on seccessful authentication
Cisco's documentation states that when you are configuring auth-proxy, you may specify a url in which the clients will be redirected to when successfully authenticated. The command is:
ip admission proxy http success redirect <url-string>
However, the command does not seem to exist on many of the latter IOS versions. I am also unable to find any documentation with alternate methods of sending a redirection to the client after a successful authentication. Is this command depricated? Is there a more efficient method of redirecting?
Documentation I am using:
http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_52_se/configuration/guide/swwebauth.html#wp1103789
Thank you,
DanHello,
Can anyone here help me call a URL that has an image into my consent page?
I have an html page in the flash of the router called consent_page.html Here are two diffent methods I am using to attempt to get the logo to show up in the consent page. Any ideas how to make this part work? Everything else works.
http://www.officemax.com"> SRC="/logo.gif" ALT="Company" WIDTH=246 HEIGHT=48>
http://www.officemax.com"> SRC="http://www.officemax.com/images//header/logo.png" ALT="OfficeMax" WIDTH=246 HEIGHT=48>
Warning!
The web site you have tried to access may not conform to the company's Acceptable Usage Policy
If you want to continue to this website click the "Accept" button below to proceed which will give you temporary access to this website. Please note that all web access is monitored.
Free Internet Hotspot
Terms of Service Agreement
Company provides free Internet access under the condition that you agree to abide by the restrictions below.
Responsibility of Use
You are responsible for all content distributed, accessed, or viewed while connected to this service. Company is not liable for your actions while using this service.
Limitation of Liability
Company is not liable for any damages which result from your use of this service. -
OpenScript does not record Forms actions
Hi all
I've installed a fresh R12 instance with Vision DB to demo OpenScript/OLT. I had some challenges getting R12 up and running on Win2k3 :) but it's running now and I can login to both web and forms screens. It's 12.1.1
OpenScript will not record the forms actions though. It records web fine and records the action to launch the forms screen but nothing after that. I'm running OpenScript on WinXP with JRE 1.6.0_21. I'm using the Oracle EBS/Forms script type.
I've done some digging around these forums and elsewhere and previously there seems to be some work that needed to be done with jars to get the forms recorder to work. Is this still the case? What are the best steps to diagnose this problem?
thanks for any helpI think it is better to not use Socket mode. Do you have control over your server? Which mode are you using now?
1. Look in the Java Control Panel -> Network Settings. Be sure "Use Browser settings" is checked, and that the default browser is the same one you are recording with in OpenScript. Make sure the JavaConsole does not have some other proxy configured.
2. Is your Forms NCA traffic configured on the server for Socket mode? In OpenScript Recording settings for EBS/Load you may need to check "Force HTTP Recording"
3. Is your Forms NCA traffic configured on the server for HTTPS?
Are you using IE or Firefox? Have you been able to record record regular HTTP scripts? What is your default JRE? -
Unable to get the "Submit a form" action working with Webmail: Gmail
I am attempting to create interactive PDF forms for the website which the end user will email back once filled out.
I have added a link to the form that runs the "Submit a form" action, this appears to work if you have a mail client installed, but if you specify Webmail "Gmail", the system appears to start the process with:
First asking you for the email account details to add
You are then asked to allow Adobe Acrobat permissions to your access your email account
It then attempts to create a draft message but fails with: "Error while creating message ..."
NB: I have logged into my Gmail account on the client PC and I am able to send emails.
Any ideas if this has a known problem and if a fix is available, without a fix it makes interactive PDF's a bit pointless?
Message was edited by: Neil NewmanHi Aniket,
To the Clusters .. do you mean at the j2ee engine side?can you please give me info in detail
Thnx for valuable inputs
Vijay
Message was edited by:
NR -
How to send query string by using form action
Hai to all,
I am new to this topic Ihave one doubt about jsp form action....
That is I am using input type is submit button
<input type="submit" name="submit" value="Edit" onclick="indows.location.href=+sample.jsp?query=+editvalue+editname">
If I get that queryString in the sample.jsp page it respoce to the null only...... what is the problem to this code ..... please send ur perfect coding as soon as possible. I really waiting for ur replay..........Hai,
I think u can use the "request.getQueryString()" to get the query string instead of using "request.getParameter()".
From the query string value u can get the output.
cheers,
Redrose -
How to get jsp page form action this page use ajax
i want to get form action result editThree div. however, ajaxpage open new window.how to decide it?
ajaxCallPages.js
var loadedobjects=""
var loadingcontainer="loading"
var loadstatustext="<img src='images/loading.gif' />" //loading
var rootdomain="http://"+window.location.hostname
function ajaxpage(url, containerid ){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
catch (e){}
else
return false
document.getElementById(containerid).innerHTML=loadstatustext // loading
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
page_request.open('GET', url, true)
page_request.send(null)
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
userEditIformation.jsp
<script language="JavaScript" src="function/ajaxCallPages.js"></script>...
<div id="editTwo">
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>
<form name="myform" action="pages/editUser.jsp" method="post">
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>
<table width=100% cellpadding=3 cellspacing=1 border=0 bgcolor="#cccccc">
<tr valign=top>
<td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">User group:</td>
<td bgcolor="#f5f5f5"> <select name="UserGroup" id="lgroup">
<option>Administrator</option>
<option>Editor</option></select>
</td>
</tr>
<tr valign=top>
<td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">User name:</td>
<td bgcolor="#f5f5f5"><input type="text" id="lname" name="uname" maxlength="20" value=""> </td>
</tr>
<tr valign=top>
<td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">E-Mail:</td>
<td bgcolor="#f5f5f5"><input type="text" id="lmail" name="uemail" value="" onkeypress="return checkEnter(event);" onKeyPress="Comment = false; Email = true; PostalCode = false; Go();" onChange="this.value = ignoreSpaces(this.value);"></td>
</tr>
<tr valign=top>
<td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">New password:</td>
<td bgcolor="#f5f5f5"><input type="password" id="lpass1" name="upass1" maxlength="20" value="" onkeypress="return checkEnter(event);" onKeyPress="Comment = true; Email = false; PostalCode = false; Go();" onChange="this.value = ignoreSpaces(this.value);"></td>
</tr>
<tr valign=top>
<td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Verify password:</td>
<td bgcolor="#f5f5f5"><input type="password" id="lpass2" name="upass2" maxlength="20" value="" onkeypress="return checkEnter(event);" onKeyPress="Comment = true; Email = false; PostalCode = false; Go();" onChange="this.value = ignoreSpaces(this.value);"></td>
</tr>
<tr valign=top>
<td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Phone:</td>
<td bgcolor="#f5f5f5"><input type="text" id="lphone" name="uphone" value="" onkeypress="return checkIt(event);" onChange="this.value = ignoreSpaces(this.value);"></td>
</tr>
<tr valign=top>
<td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Block:</td>
<td bgcolor="#f5f5f5">
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td><input type="radio" name="ustatus" id="lradio1" value="1"></td><td>Yes </td>
<td><input type="radio" name="ustatus" id="lradio2" value="0" ></td><td>No </td>
</tr>
</table>
</td>
</tr>
<tr valign=top>
<td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Register date:</td>
<td bgcolor="#f5f5f5"><%getDateTimeValue valueOne= new getDateTimeValue(); out.println(valueOne.getDateTime());</td>
</tr>
<tr valign=top>
<td bgcolor="#666666" width=150 style="color:#FFFFFF;" align="right">Last visit date:</td>
<td bgcolor="#f5f5f5"><%getDateTimeValue valueTwo= new getDateTimeValue(); out.println(valueTwo.getDateTime());</td>
</tr>
</table>
</td>
</tr>
<tr><td> </td></tr>
<tr><td><input type="button" onclick="ajaxpage('pages/editUser.jsp', 'editThree')" value="Send"/> </td></tr>
<tr><td height=18 id="eoncmssend"></td></tr>
</table>
</form>
</td>
</tr>
</table></div>
<div id="editThree">
</div>
editUser.jsp
<html>
<head>
<link rel="stylesheet" href="css/editUser.css" type="text/css"></link>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<%
String ugroup=null;
String phone=null;
String name=null;
if(request.getParameter("uname")!=null){
name=request.getParameter("uname");
if(request.getParameter("uphone")!=null)
phone=request.getParameter("uphone");
out.println(name);
out.println(phone);
%>
</body>
</html>
../From the HTTP spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html):
14.36 Referer
The Referer[sic] request-header field allows the client to specify, for the server's benefit, the address (URI) of the resource from which the Request-URI was obtained (the "referrer", although the header field is misspelled.) The Referer request-header allows a server to generate lists of back-links to resources for interest, logging, optimized caching, etc. It also allows obsolete or mistyped links to be traced for maintenance. The Referer field MUST NOT be sent if the Request-URI was obtained from a source that does not have its own URI, such as input from the user keyboard.
Referer = "Referer" ":" ( absoluteURI | relativeURI )
Example:
Referer: http://www.w3.org/hypertext/DataSources/Overview.html -
Hello!
I'm not sure if this would be the best forum for this, but here is my question:
I'm trying to make 2 forms that link together, and so far I have been successful in attaching one PDF in another, so that it opens the attachment when you click a button. My boss requested that there be some sort of way to go back to the original form, since it may be confusing for some people once the attachment is opened, because it appears over the original document and covers it.
I apologize if this is convoluted, but the only solution I could think of was to have the attachment appear in a new window, with a JS button with an action that will "close" the attachment. But I am not sure if this is even possible.
I know this is redundant (why couldn't they just hit the red x in the corner??) but when dealing with non-technology people, sometimes you have to make it as blatantly obvious as humanly possible.
Would anyone know a way to make a button that does this? Or have another solution that might work better?
Thank you so much in advance! I apologize if my request requires further clarification.
Best Regards,
Ashley
(Running Adobe Acrobat Pro XI)One of the options in a button's action is to execute a menu item... Use it
and select File - Close.
You can also use a script, if you want. The code below will close a file
without prompting the user to save it, even if it was edited.
this.closeDoc(true); -
WebHelp stripping out form action
I have a form in my documentation where users may fill out questions, click a "Submit" button, and it is emailed to me. I remember testing this a few years ago and it worked great. Recently, someone contacted us to say he never heard back from his form. I then tested it, and it never was emailed to me. When I checked the HTML code, it's being stripped for some reason. I'm on the HTML tab, I type in the <form action="mailto..." > data. Then I click to the designer tab. When I click back to the HTML tab, it's gone! No sign of what I JUST typed! Here's the "naked" code:
</head>
<body>
<robohelp><form>
</robohelp>
<robohelp><div align=left></robohelp>
Where you see the <form>, I had just typed in the actual action part. It just disappears though. Further, the bottom part of the code, where the closing </form> tag is, that </form> disappears as well. I type it in, click off the tab, and get this:
<p><input type=submit name=submit value="Send to Us"><input type=reset name=reset value="Start Over"></p>
</body>
</html>
No </form> tag. Gone. I haven't even clicked Save or ANYTHING at this point. Any ideas why Robohelp would be stripping code like this? Much appreciated.Hi there
By broken, I meant my crystal ball is broken (and sadly still is )
When you visited the forums to post, I'm guessing you missed seeing this link? If so, please click it and give it a once over. See if that illuminates my reaction.
Click image below for possibly larger view
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
How to use html form actions and methods
Hi, I want to make a quick contact page using Edge. I used the following code in my creationComplete but had no luck. Any help?
var na = sym.$( "email" );
email.html( '<form action="send_mail.php" method="post"><input type="text" id="email" value="" />' );
var button = sym.$( "btn" );
button.html( '<input type="submit" value="Send" />' );My understanding from your question is that you would like to programmatically (using LabVIEW) send input to and click a button on an existing HTML website, is that right?
If yes, then you can use ActiveX calls to embed a web browser into the front panel of your VI and then use its invoke node to input a text to a form or click a button. Another way is to use the lower-level TCP VIs in LabVIEW, but you need to understand HTTP protocols to successfully use this. See below examples to get started.
ActiveX
https://decibel.ni.com/content/docs/DOC-25396
https://decibel.ni.com/content/docs/DOC-12454
TCP VIs (HTTP)
https://decibel.ni.com/content/docs/DOC-2230
http://zone.ni.com/devzone/cda/epd/p/id/3153
FYI, LabVIEW Internet Toolkit has been deprecated starting LabVIEW 2012, so it is not recommended to build a new application using that.
Hope this helps.
Regards,
A. Yodha
Applications Engineer | National Instruments
Singapore (65) 6226 5886 | Malaysia (60) 3 7948 2000 | Thailand (66) 2 298 4800
Philippines (63) 2 659 1722 | Vietnam (84) 8 3911 3150 | Indonesia (62) 21 2924 1911 -
How can I set a parameter action to form. I want to have html code:
<form name="test" action="testaction.jsp?sth=2" method="post">
....but I can't give action parameter to <h:form action .. . I'm getting this error:
Unable to locate tag attribute info for tag attribute action
please help me.How can I set a parameter action to form. I want to have html code:
<form name="test" action="testaction.jsp?sth=2" method="post">
....but I can't give action parameter to <h:form action .. . I'm getting this error:
Unable to locate tag attribute info for tag attribute action
please help me. -
Hi,
I have a question about the "action" attribute of the htmlb form object. Is it a relative or absolute path that the action attribute expects?
<hbj:form action="nextjsp.jsp">
or
<hbj:form action="pagelet.jsp">
I've tried the JSPDynPage example from the PDK, and the switch statements don't work on my button click. I'm wondering how I can send my request to the correct JSP. Thanks!
-VuHi Vu,
In this case you are using relative paths. An absolute path would look like:
... action="/nextjsp.jsp">
Please note this is the root of the webserver (your portal instance).
There are other tricks you can use like:
... action="../nextjsp.jsp">
(relative, one directory below current one)
Hope this helps.
Noel -
hello again. i did a search and found a thread where someone
else asked if it was possible to have two form actions, but the
person who responded didn't say it was impossible, just that they
didn't need to.
i think i need to have two actions, unless someone can tell
me how to tell my formmail to also send the results to an ASP form
processor on a different website.
basically, my company started using a web-based lead
management program, and they want the results to go there as well
as the emails we get now. the website uses ASP to process the form,
and they provide the url you need to post to, plus hidden fields
you have to put in the form that tell it which account to post to.
it seems like the easiest solution would be to have two
actions on the form, but so far that doesn't appear to be possible,
and i'm just wondering if anyone has done it before and can tell me
how it's done.
thanks!Would it be out of consideration to hire someone to do this
for you?
If not, then you would have to modify the formmail script to
POST the form's
data, including the additional values required, to the data
processing
script. On reflection, I'm not quite sure what would be the
best way to do
that - perhaps use the incoming POSTed data to populate form
fields and then
submit the populated form onload.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"n h c" <[email protected]> wrote in message
news:f4kc9k$dpv$[email protected]..
> i'm sorry, i should have elaborated a little more.
>
> we currently use a formmail.php (the one from
www.boaddrink.com), and i
> can
> definitely edit that (except i don't know enough php to
figure this out on
> my
> own, obviously). but we recently started using a
web-based lead management
> program called Top Producer, and that's where the asp
comes in. we want to
> keep
> receiving the email results as we do now, but we also
want the results to
> go to
> Top Producer. so yes, the ideal solution would be to
tell the formmail.php
> to
> also send the results to the Top Producer form
processor.
>
> the url they give for the action is:
> https://www.topproduceronline.com/LeadToolkit.asp, and
we also have to add
> some
> hidden fields to the form that tell the asp which
account to post the
> results
> to.
>
> i hope that helps you understand what i'm trying to do.
if i need to post
> anymore info, just let me know. i really appreciate the
help!
>
Maybe you are looking for
-
Why does Updatable Results not work with IOTs? This question has not been asked!
I have looked at the notes http://technet.oracle.com/doc/oracle8i_816/java.816/a81354/resltse2.htm and there is no mention of an IOT restriction, but when I execute the updateRow I get the READ ONLY ResultSet error. Can Oracle verify that this is a p
-
please help... String aa, bb, cc,dd; aa="123456789"; bb="23"; cc="78"; actually i want to cut off some special words in a String i use int ak3=aa.indexOf(bb); int ak4=aa.lastIndexOf(bb); dd=aa.substring(ak3,ak4); i want the result of dd is 14569 is t
-
How to get business partner in BUPT for BP screen enhancement ??
I have enhanced Business partner transaction screen using BDT - BUPT to show a sub screen, my problem is that I don't know how to get the BP no at subscreen level. Please help.
-
Seeing tables from database conection for a user
I created a bunch of tables under a db admin I created a user aaa I granted all priveliges on all tables created to user aaa including "CREATE CONNECTION" I created a JDev Database connection through user aaa Test connection works fine. I open up the
-
Hi! Im a novice at this environment so I have been running the EJB Tutorial provided with 8.1 Everything works as i should until I deploy the application. I get a: weblogic.management.DeploymentException: Could not setup environment - with nest ed ex