I have a question about WSAD.
The problem is that on production we use IHS to serve static content and WAS to serve everything else.
I use WSAD as a development environment and I am wondering can I have 2 projects: one will have only static content and second one everything else(no static). And they will see each other so it will be possible to properly test application. If it is possible could you give me some tips how to do this? Currently in my development environment I have everything in one project. And each time I build application for production I need to remove static content manually. I know it is stupid, but I cannot find better decision so far. I am still new to WSAD.
Thank you very much.
Some J2EE applications have static data that is served by a web server.
Normally the WAS 5 web server plugin works with the web server to
filter out and forward on the dynamic links prefixed by the "context
root" to the java application server. There is no plugin supplied with
WSAD and testing a hybrid static/dynamic web site is not supported.
However it's possible to install IHS on the desktop and configure IHS
to mimic the WAS plugin by defining a virtual host definition with a
redirect clause.
Example.
***********
The J2EE application is deployed into the WTE which listens on the
default port of 9080 for URIs prefixed with the context root
"/patrick". IHS is installed on the desktop and a virtual host
definition configured with a doc root to serve static data. A redirect
is specified for any links containing the content root prefix.
E.G
##########################################################################
# xxx.patrick.com.au
##########################################################################
<VirtualHost 192.0.x.x>
ServerName xxx.patrick.com.au
# static data served from doc root.
DocumentRoot "c:/patrick_portal"
# setup redirect on port 9080 for URIs prefixed with context
root(/patrick).
RewriteEngine on
RewriteLog c:\IBM\HTTPServer\logs\rewrite.txt
RewriteLogLevel 0
RewriteCond %{REQUEST_URI} ^/patrick
RewriteRule /patrick(.*) http://xxx.patrick.com.au:9080/patrick$1
[R=301,L]
</VirtualHost>