How do i pass a url with query string using the jsp:forward tag
This snippet of code gives a 403 error
<jsp:forward page="testpage.jsp?test=1" />
How do i rectify it?
Well better way to go about for the job is to use
setAttribute("name","value");method in the first page
and then in next page use method
String s=getAttribute("name");to retreive the value.
Url rewritting or using Query String has some disadvantages ,which are handled by above mentioned approach.
Ashish
Similar Messages
-
How can you develop photo galleries with multiple pages using the web module?
Going through the web module I can see there are many options for developing a web page with a single collection of photos. How can you develop a web site with multiple pages containing different categories of photos using the Lightroom web module?
This thread will give you several ideas.
Re: How do you embed a gallery into an existing website? -
How do I cut a line with a rectangle using the Pathfinder
I'm a complete newb in Ai (many years in Ps).
I'm trying to cut off (delete) a rectangular section of a grid that is made of many lines. I keep getting the message, "The filter produced no results. Please select two intersecting paths."
In its simplest form, I have a stroked line (a path) and a filled rectangle (also a path). The rectangle is on top of the line.
I select both of the objects and choose Minus Front from the Pathfinder Panel.
And I get the message "The filter produced no results. Please select two intersecting paths." I've tried all of the options in the Pathfinder pane.
What I'd like to happen is to have the section of the line that is overlapped by the rectangle deleted, so I'd end up with two lines that looked like this:
If the rectangle overlapped the end of the line, I'd like the section where they overlap deleted, and I'd end up with one line.
I'm sure I'm doing something wrong, but I've watched several videos about the Pathfinder, read a bunch of posts, and I'm still clueless.
Thanks!The Minus operation you're choosing is for shapes. Which means they can't be simple stroked line-segments. You have to expand the line segment into a shape such as a very thin very long rectangle and NOW you can apply the Minus Front operation. Try and see if you get the same results I got. Then you will end up with a shape which is probably not what you want but instead you can delete the portions of the shape or even average the thin line segments together to get a center-line grouped object.
-
Problem with flush=true in the jsp:include tag
Hello
I have deployed a JSP based application , based on the apache struts framework. The web server is Sun One Webserver 6 Service Pack4, on a windows 2000 machine
The same application was tried on SunONE application server 7, and it works without any problem. However in this case the following error , on the page
javax:servlet.jspexception:Illegal to flush within a custom tag
Does this mean flush="true" is not allowed within custom tags
Or is there a workaround for this
Any help is appreciated
thanks
- AniruddhaHi,
This is a known problem, ��flush before you include�� limitation in JSP 1.1.
As a result, you have to state flush="true" every time you include a jsp using <jsp:include> tag if you are using JSP1.1.
Fortunately, it is fixed in JSP1.2. The flush attribute controls flushing. If true, then, if the page output is buffered and the flush attribute is given a ��true�� value, then the buffer is flushed prior to the inclusion, otherwise the buffer is not flushed. The default value for the flush attribute is ��false��.
Gary Wang
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/ -
Sling mapping issue with Query String
For a button component, URL behaves differently with query string. Please let me know the sling mapping example for query string.
Button component behavior across env:-
Working Scenario:-
- In Author edit mode, URL pointing to "/content/<websitelink>"
- In Author preview mode shows URL "<host>:<port>/content/<websitelink>.html"
- In Publisher mode shows URL, "<host>:<port>/<websitelink>", we do not want "/content" before website link so it is fine.
Failure Scenario with query string:-
- In Author edit mode URL pointing to "/content/<websitelink>?username=han"
- In Author preview mode with URL "<host>:<port>/content/<websitelink>?username=han"
- In Publisher mode, <host>:<port>/content/<websitelink>?username=han - Here we see the content, which is not acceptable in our scenario.
Please let me know the mapping changes when we have a URL with query string.1) I assume you configure as per the rules mentioned in http://sling.apache.org/site/mappings-for-resource-resolution.html --> 'Mapping Entry Specification' under /etc/map. Based on the configuration in /etc/map and the website that we publish, it translates and shows all the applicable combination in the Felix console http://<host>:<port>/system/console/jcrresolver.
2) How does Adobe CQ 5.4 resolve the right mapping, if we have multiple map folder like below in /etc directory with the same website with different rules.
etc/map --> http --> <website> with property sling:match, sling:internalRedirect
etc/map.publish --> http --> <website> with property sling:match, sling:internalRedirect
etc/map.publish-stag --> http --> <website> with property sling:match, sling:internalRedirect
Kindly clarify. -
File uri with query string can't be propagated by desktop.browse()
I have been trying to show some help pages using the following command:
java.awt.Desktop.getDesktop().browse( helpURI);
while the helpURI.toString() prints out the following:
file:///C:/Share/Code/phoenix/Install/REDIST/Help_Files/en/wwhelp/wwhimpl/js/html/wwhelp.htm?context=BD&href=Chapter%202%20-%20Configuration.1.14.html
But when the getDesktop().browse() API is executed it will only propagate the uri-path and not the query string.
So the browser shows the following url as a result of the browse() call:
C:\Share\Code\phoenix\Install\REDIST\Help_Files\en\wwhelp\wwhimpl\js\html\wwhelp.htm
But if I manually copy the string "file:///C:/Share/Code/phoenix/Install/REDIST/Help_Files/en/wwhelp/wwhimpl/js/html/wwhelp.htm?context=BD&href=Chapter%202%20-%20Configuration.1.14.html" to the internet explorer it works fine.
So can somebody give me any guidance on how I can propagate the file uri with query string through the browse() API or is there a better API for that?
Sibon.The "cmd /S /C" suggestion didn't seem to work. I don't think the problem is in java but how the command line parameter needs to be added from msdos shell to "iexplore.exe"
When from the command line I enter the following command:
iexplore.exe file:///C:/Share/Code/phoenix/Install/REDIST/Help_Files/en/wwhelp/wwhimpl/js/html/wwhelp.htm?context=BD&href=Chapter%202%20-%20Configuration.1.14.html
I get the same result as invoking from java Desktop API --- it truncates everything from question mark. I tried palying around with double quotes, single quotes, escaping and nothing seem to work.
Any ideas? -
How to create a transport request with query and only with its structure.
HI guru,
how to create a transport request with query and only with its structure.transport request should not include any other query items like ( variables, conditions...etc)
thanks in advance.
venkataHi,
Goto RSA1 and then Transport Connection -> In SAP Transports select Object Types-> Query Elements -> Then select Query->Give Technical name of the query and then select for transfer. In the right side you can choose the components which you wanted to transport.
Regards,
anil -
How to pass parameter to the Query String of the Named Queries'SQL
Firstly to say sorry,I'm a beginner and my English is very little.
Now I want to know
How to pass parameter to the Query String of the Named Queries'SQL in the Map editor.
Thanks.benzi,
Not sure if this is on target for your question, but see #5 in the link below for some web screencasts that show how to pass an input text form field value to the bind variable of a view object. If you're looking for something different, maybe provide some more details such as what you are trying to accomplish and what technology stack you are using - for example, ADF BC, JSF, etc.
http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
Also see section 5.9 and chapter 18 in the developer's guide.
thanks -
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ _____________________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{ // Ready the variables here for sending to PHP DepartVars.post_code = "Depart"; // Send the data to the php file DepartLoader.load(DepartURL); welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{ if (event.target.data.replyMsg == "success") { var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);"); navigateToURL(refreshPage, "_self"); } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void { navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void { navigateToURL(editRes, "_self"); } }
this should be in the as3 forum. but you need to return name/value pairs from your php file.
-
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ ____________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{ // Ready the variables here for sending to PHP DepartVars.post_code = "Depart"; // Send the data to the php file DepartLoader.load(DepartURL); welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{ if (event.target.data.replyMsg == "success") { var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);"); navigateToURL(refreshPage, "_self"); } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void { navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void { navigateToURL(editRes, "_self"); } }
I have a similar problem
whey I use .txt my code works, but when I change to .dat external file, it get error 1067
my code:
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
var loader: URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, loading);
loader.load(new URLRequest("rssnews.dat"));
function loading(e: Event): void {
news_1.text = trace(e.target.data.titulo);
news_2.text = trace(e.target.data.texto); -
How to change WebAs Java URL with which it is called
hi all,
I am trying to activate the standard web templated for integration between BI 7.0 and EP 7.0 to execute the BEx report in Web.
I am getting the following error:
<b>The URL for ABAP customising table RSPOR_T_PORTAL : http://eimreymdd0.eimskip.net:50000 is not compatible with the URL with which you call the WebAS Java : http://eimreymdd0:50000</b>
Now, I want to change the URL of WebAS Java with which it is called.I want to change http://eimreymdd0:50000 to http://eimreymdd0.eimskip.net:50000
How can I change this ? I want to know the location through which I can change this URL.
Thanks in advance for your suggestion.
Best Regards,
YogeshHi Yogesh,
I think you need to change you DNS server mapping.
You can also try to change to virtual hosts property in the UME
i.e.
http://<host name>:<portnumber>/nwa
Under System Management --> Configuration
you'll find the virtual hosts.
Regards,
Prashil -
How do you pass shell scripts with cocoa?
How do you pass shell scripts with cocoa?
You asked for more detail -- I don't know if this is what you were referring to or not, but here's a little more detail on how to use the system() function if that's what you wanted to know.
As etresoft mentioned, the system() function can be useful for the kind of thing you are talking about. You will need to write the following statement at the top of your code if you want to use it:
#include <stdlib.h>
To use the system() function, simply put the command as you would write it in the Terminal between double quotes between the parenthesis. For example, something as simple as:
system("ls");
I don't what the practical use of the above statement would be, but it will run, and that's the general format for the system() function. So just put between the quotes whatever command you want to send.
Hope there was something helpful here. -
FLVPlayback source with query strings (parameters) doesn't load
Flash version: CS4
AS version: AS3
I'm currently trying to use the FLVPlayback component and pass a source FLV that's living on a cloudfront webserver. The problem is that the cloudfront requires authentication in the form of query strings in the source FLV. For example:
import fl.video.*;
var mainMovie:FLVPlayback = new FLVPlayback();
mainMovie.source = "http://www.somedomainname.com/firmware.flv?dummyquery=22";
trace(addChild(mainMovie));
As soon as I take away the "dummyquery", it works fine. When I add a query string, it breaks (nothing loads).
Here is the error output I get:
[object FLVPlayback]
VideoError: 1005: Invalid xml: URL: "http://www.somedomainname.com/firmware.flv?dummyquery=22&FLVPlaybackVersion=2.1" No root node found; if url is for an flv it must have .flv extension and take no parameters
at fl.video::SMILManager/http://www.adobe.com/2007/flash/flvplayback/internal::xmlLoadEventHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
It adds on "&FLVPlaybackVersion=2.1" to the end.
I saw a different article that said I should add a dummy variable at the end like "&dummy=.flv" because I was told that Flash is basically looking for an .flv extension at the end and you can trick it, but it doesn't work because they add on additional code.
Does anyone know how to work around this?Hey supervu,
I know you already found a workaround to make this work, just figured I'd post an alternative to editing the FLVPlayback compoent. I also am retrieving an FLV file via a .Net ASHX file. To keep both worlds happy, I used a URLRewriter module to translate for me... this one translates what I am using for the FLVPlayback component source:
http://domain.com/flv/22.flv to be resolved as http://domain.com/API/resource.ashx?ID=22
There is of course no flv folder in the root of my application...
Here is my very simple URLRewriter class in vb.net:
Imports Microsoft.VisualBasic
Imports System
Imports System.Web
Public Class URLRewriter
Implements IHttpModule
Public Sub Init(ByVal inst As System.Web.HttpApplication) Implements System.Web.IHttpModule.Init
AddHandler inst.BeginRequest, AddressOf Me.OnBeginRequest
End Sub
Public Sub OnBeginRequest(ByVal app As Object, ByVal e As EventArgs)
Dim inst As HttpApplication = CType(app, HttpApplication)
Dim req_path As String = inst.Context.Request.Path
Dim trans_path As String = ""
Dim search As String = "/flv/"
Dim pos As Integer = req_path.IndexOf("/flv/")
If pos > -1 Then
Dim key as string = req_path.Substring(pos + search.Length, (req_path.LastIndexOf(".flv") - (pos + search.Length)))
HttpContext.Current.Response.Redirect("~/API/resource.ashx?ID=" & key )
End If
End Sub
Public Sub Dispose() Implements System.Web.IHttpModule.Dispose
End Sub
End Class
and make sure you add this to your web.config.. this will cause URLRewriter to intercept all HTTP requests, and redirect as needed.
<system.web>
<httpModules>
<add name="URLRewriter" type="[Namespace].URLRewriter"/>
</httpModules>
</system.web>
Hope this helps someone. -
Page not cached because "URL contains query string"
I have used JDeveloper to produce a search/display page using ADF where the user enters search criteria and then presses a Search command button. The parameters are POSTed to the webserver, and I need to devise a cache rule to cache pages using the entered search criteria so that another seach for the same values can be served from the cache.
I have created a rule that will cache GET, GET with Query String and POST.
I have put .* in the POST body. When I do this, the first query page is retrieved from the origin server and cached and resulting queries with different search criteria are returned the data for that first search (ie. it's not taking into account the search parameters).
If I switch off that rule and look at what's being received, I see the following:
/158.234.27.10:8889/BM/faces/physical.jsp POST;;;event=&form1:selectOneChoice1=0&form1:selectOneChoice2=&form1:selectedDate=2004-08-10&form1:table1:rangeStart=0&form1:table2:rangeStart=0&form1:table3:rangeStart=0&form1:table4:rangeStart=0&form1:table5:rangeStart=0&form1:table6:rangeStart=0&oracle.adf.faces.FORM=form1&oracle.adf.faces.STATE_TOKEN=3&source=form1:commandButton1;;
Now, there are 3 search parameter fields that need to be considered - the others should be ignored:
form1:selectOneChoice1
form1:selectOneChoice
form1:selectedDate
It's not clear to me where (and how - in what format) I specify parameters to ignore and parameters to consider. I have tried listing these 3 parameters in the URL parameters table for the Rule (I did not specify a value - should I have done?) but when I do this, the page is not cached and shows the reason for this is that "URL Contains Query String".
Can someone explain how to specify important POST body parameters and unimportant POST body parameters?
Thanks,
AndyHi,
Please go through this:
http://download-west.oracle.com/docs/cd/B14099_02/caching.1012/b14046/cache.htm#sthref1530
Hope it helps you. I think you should be able to configure the intended rule in Web Cache.
Regards,
Priyanka GES -
SharePoint 2013 List View with query string filter stops working after editing view from browser
I have created one list definition in which I have added one list view which will filter data from query string paramater
So when I am creating list from my list definition, view with query string filter is working fine.
But when I am modifying view from UI(I am not changing any thing , just opening "Modify View" page and then click on "Save" button), view gets stop working means it's not filtering data based on query string
Any suggestion what I am missing?
Below is my list view schema
<View BaseViewID="11" Type="HTML" TabularView="FALSE" WebPartZoneID="Main" DisplayName="$Resources:OIPLBScoreCard,viewFilterTasksByTarget;" MobileView="True" MobileDefaultView="False" Url="FilteredTasks.aspx" SetupPath="pages\viewpage.aspx" DefaultView="FALSE" ImageUrl="/_layouts/15/images/issuelst.png?rev=23">
<Toolbar Type="Standard" />
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
<ParameterBinding Name="TargetId" Location="QueryString(TargetId)" />
</ParameterBindings>
<JSLink>hierarchytaskslist.js</JSLink>
<XslLink Default="TRUE">main.xsl</XslLink>
<JSLink>clienttemplates.js</JSLink>
<RowLimit Paged="TRUE">100</RowLimit>
<ViewFields>
<FieldRef Name="Body"></FieldRef>
<FieldRef Name="Title"></FieldRef>
<FieldRef Name="StartDate"></FieldRef>
<FieldRef Name="DueDate"></FieldRef>
</ViewFields>
<ViewData>
<FieldRef Name="PercentComplete" Type="StrikeThroughPercentComplete"></FieldRef>
<FieldRef Name="DueDate" Type="TimelineDueDate"></FieldRef>
</ViewData>
<Query>
<Where>
<Eq>
<FieldRef Name="oipscTargetLookup" LookupId="TRUE"/>
<Value Type="Lookup">{TargetId}</Value>
</Eq>
</Where>
</Query>
</View>
I have one lookup field from "Target List" in my source list and I want to filter data based on that lookup field.Hi JayJT,
The Miscellaneous is located in the contact list that you used for the connection.
So , you need to edit the page, then edit the contact list that you used, in the web part properties of the contact list, you will find Miscellaneous, then expand it and select ‘Server Render’ .
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support
Maybe you are looking for
-
How is playbook debut ? What is first day sale? 19.04.2011 playbook summary?
-
CF Flash Third Party for PRP-2
I need to know third party CF Flash can use with PRP-2 ?
-
Adobe Device Central CS5 for LG Model cellphone
Does Adobe device central don't have LG KF350 this model of cell phone??? anybody can tell me?
-
Cannot connect to XMPP Service ("client tried unknown domain")
Has anyone managed to get the XMPP Service to work ? Even though I believe to have configured the correct valid domain name in the Service config I cannot seem to get in using either Pidgin or Oracle Messenger. The XMPP Service log keeps complaining
-
I'm getting a error that says that I can't find a solution to why it's happening!!
Im running CS6 on my mac operating system is 10.7.5 and everytime that I open premiere and try and do anything this errror comes up [/Volumes/BuildDisk/builds/slightlybuilt/shared/adobe/MediaCore/ASL/Foundation/Make/Mac/. ./../Src/Mac/MacFile.cpp-917