I'm using Websphere portal 6.0 and I'm wondering if there's a way in which I can tell the server which page to render from the doView method. I know I can do it from the processAction method but unfortunately the semantics of the problem don't allow it.
Thank you for your help
...
I open up a port, let's say port 81 to listen to incoming requests.
If the incoming request is www.myexample.com, then I want to redirect it to
C:\myexamplemain
folder.
If the incoming request is blog.myexample.com, then I want to redirect it to
C:\myexampleblog
folder.
Given that there are a lot of redirection rules for www....
Hey Everyone,
This one's been bugging me for a while now. Is it possible to redirect stdout and stderr to both the terminal output and to a program?
I understand it's possible to redirect the outputs to a file and to stdout with tee, but I want it to go to a program (my editor [TextMate]) as well as to the terminal output… surely this ...
HI i want to implement this C code in batch file
int i;
scanf("%d", &i);
for(int j = 0;j<i;j++)
{
scanf("%d",&j);
printf("%d",j);
}
I would run the c program using > redirection in DOS so that the printed output comes to me in a file. I want to do the same thing in my batch file where i could write something like
echo %variable...
I have a binary named A that generates output when called. If I call it from a Bash shell, most of the output is suppressed by A > /dev/null. All of the output is suppressed by A &> /dev/null
I have a python script named B that needs to call A. I want to be able to generate output from B, while suppressing all the output from A.
From w...
How do I check if another application is busy?
I have a program that sends text to a console. The text that I will send contains #13 char (i.e. ls#13cd documents#13dir). In other words I want to send many commands at one time and the console will process it one by one. I am sending it character by character. But sometimes it only execut...
When I call a external .exe program in python, how can I
get the output of printf in .exe application and print them on python IDE?
...
Is it possible to redirect a user to a different page through the user of PHP?
Say the user goes to www.example.com/page.php and it I want to redirect them to www.example.com/index.php , how would I do so without the use of a meta refresh? Possible?
This could even protect my pages from unauthorized users. :]
Please help
...
I have loaded a static (no servlets, jsp etc) website into the webapps folder of Tomcat.
I have an index.html file under webapps/ourcompany so when I click the ourcompany link in the tomcat manager I am expecting to be taken to the ourcompany/index.html page. However Tomcat keeps redirecting me to localhost:8080/ourcompany/www.ourcompan...
I have a form in which the user selects a few items to display on "the following page". This selection is always unique, and we will store each set of selections made using a model, indexed by the id as is par with Django models. When the user selects her choices and POSTs using the submit button, I would like for our application to stor...
Hello,
I'm making a request for a page (lets call it page A). However, the request gets redirected to another page (page B). As soon as the request handling starts, URL property of Request object on the server points to page B (however, RawURL still points to page A).
I am not able to find any piece of code in the applications that e...
Lets suppose that I have some pages
some.web/articles/details/5
some.web/users/info/bob
some.web/foo/bar/7
that can call a common utility controller like
locale/change/es
or
authorization/login
How do I get these methods (change, login) to redirect to the previous actions (details, info, bar) while passing the previous parameters...
I need to redirect users to the Change Password page if their password has expired.
I want to place this code in one place so that any request can be redirected to the change password page.
I've looked into extending the AuthorizeAttribute, and overriding OnActionExecuting, but neither work/allow me to short circuit the routing logic t...
I have a Perl script that uses WWW::Mechanize to read from a file and perform some automated tasks on a website. However, the website uses a 302 redirect after every time I request a certain page. I don't want to be redirected (the page that it redirects to takes too long to respond); I just want to loop through the file and call the f...
I have a UNIX application written in ansi C that writes data directly to a file. This file is specified by one of the argument parameters.
For testing purposes, I can use /dev/null for the filename, which effectively redirects the output to nothing.
I would like to be able to redirect the output to stdout by a similar method. Is th...
it's really annoying to type this whenever I don't want to see a program's output. I'd love to know if there is a shorter way to write:
$ program >/dev/null 2>&1
Generic shell is the best, but other shells would be interesting to know about too, especially bash or dash.
...
On of my client asked me to create an Web App in PHP, I ended up using Symfony. At delivery, he told me that he has distributed a software with an embedded Web view pointing to a hardcoded url :
www.domain.com/dir/tools.php
Now he wants the Web app to appear in it's Web View, but the software isused by about 400 customers, we can't exp...
I'm using CocoaDialog to present some feedback during execution of a download script. I wish to present an indeterminate progress bar whilst command operation us taking place. This is possible by piping text to CocoaDialog for the duration of the operation.
http://cocoadialog.sourceforge.net/documentation.html#progressbar_control
I tho...
I'm trying to use something along the lines of
unexpand -t 4 *.php
but am unsure how to write this command to do what I want.
Weirdly,
unexpand -t 4 file.php > file.php
gives me an empty file. (i.e. overwriting file.php with nothing)
I can specify multiple files okay, but don't know how to then overwrite each file.
I could use ...
My application is a multi threaded app (using wxThreads). At the moment, the main thread along with it's child worker threads are outputting various messages to Stdout (using cout).
I have a new frame/window with a wxTextCtrl, and would like to redirect all the StdOut messages in to it.
GuiLogFrame *logframe;
logframe = new...