Loading

Tag Archives: web

Adding a Google Search Web Element to a Wordpress theme

The newly released Google Web element: custom search is awesome.

To add it to my wordpress theme (which doesn’t have a top sidebar for widgets) I had to edit (Appearance ⇒ Editor) the header.php file and add the snippet I got from Google there, at just at the end of the header.php. So the search web [...]

Passing configuration parameter to Axis2 services

One way to pass parameters to you Axis2 service:
1) write a <parameter> tag inside your services.xml

 
<?xml version="1.0" encoding="UTF-8"?>
<!– This file was auto-generated from WSDL –>
<!– by the Apache Axis2 version: 1.3 Built on : Aug 10, 2007 (04:45:47 LKT) –>
<serviceGroup>
<service name="xxxxxxx" class="MyServiceLifeCycleImpl">
 
….
<parameter [...]

Two web applications sharing the same Derby database

I just realized that to be able to open/share the same Derby database from two different web applications running in the same Tomcat instance (same JVM) you´ll need to put derby.jar in the $TOMCAT_HOME/common/lib and remove it from your applications WEB-INF/lib. I got the clue from this RIFE web page
the jarfiles you need are derby.jar [...]

How to redirect your root web directory to a subfolder with .htaccess

If you tried (like me) to redirect your / (root) web directory to a subfolder (like /wp/) modifying .htaccess in this way:
Redirect 301 / http://rubenlaguna.com/wp/
You probably found that it didn’t work. The browser will end up in an endless loop of redirections. Firefox will complain with this error message:
The page isn’t redirecting properly
Firefox [...]