Finally I have my own domain name and my blog on my very own domain. I have now migrated my htpp://applegrew.blogspot.com to here.
Welcome home. 🙂
Finally I have my own domain name and my blog on my very own domain. I have now migrated my htpp://applegrew.blogspot.com to here.
Welcome home. 🙂
Of late I have seen many friends, who happened to be females, get engaged or in the process of getting engaged pretty soon. All have many things in common. They are independent and like it to remain that way. They are educated and earn for themselves. They have friends, both men and women. All these things they all want to let it remain that way, but unfortunately they are women.
Women need to change families after marriage. Embrace completely new family and are supposed to do it their way. So, there is no guarantee that the above things they love, will remain that way. There are hell lot of unknowns involved. Obviously, so, I have seen them develop cold feet about this whole arranged marriage thing. How on earth will somebody be able to tell if the prospective other half, who in this case is a male and the dominant factor in the whole equation, will be the just right person for the prospective bride, in just an hour of meeting with all the elders hovering around! I need few months just to make the right kind of friends! This is a lot of pressure. This causes a lot of anxiety. I have seen anxieties like – what if I have to give up my job or what if I have to let go of my friends, etc. The anxiety is also on the part of the friends, who may end up loosing contact with a good friend in the process.
This is all too thorny picture. The good thing is that somehow people end up knowing that the other person is just the right one. Hope this proves to be true for everyone. All the best.
PS. This is a girls perspective. I somehow can’t imagine a guy’s perspective about arranged marriage. I guess from a guy’s perspective the only three unknowns they need to look for are – that the girl is pretty, good natured and has good family background.
I have a Netgear ADSL Wifi router. The router provided to me by TATA Indicom was below par so I decided to use my router. Below are the settings you need to configure your router. Note that you need a router with ADSL modem (like my Netgear DG834G).
This documentation is just a copy paste of portions of official Struts DTD. As I couldn’t find any easy to find reference on it hence I have put together this just to be easily locatable.
Top Level Elements:-
<struts-config> (the root of the configuration file hierarchy, and contains nested elements for all of the other configuration settings.)
<form-beans> (describes the set of form bean descriptors.)
WARNING: For Struts 1.0, this value is ignored. You can set the default implementation class name with the “formBean” initialization parameter to the Struts controller servlet.
<form-bean> (describes an ActionForm subclass [org.apache.struts.action.ActionForm] that can be referenced by an “action” element. It is a JavaBean that implements the org.apache.struts.action.ActionForm class.)
<form-property> (describes a JavaBean property that can be used to configure an instance of a DynaActionForm or a subclass thereof. This element is only utilized when the “type” attribute of the enclosing “form-bean” element is [org.apache.struts.action.DynaActionForm] or a subclass of DynaActionForm. If a custom DynaActionForm subclass is used, then the “dynamic” attribute of the enclosing <form-bean> element must be set to “true”. Since Struts 1.1.)
<global-exceptions> (describes a set of exceptions that might be thrown by an Action object. The handling of individual exception types is configured through nested exception elements. An <action> element may override a global exception handler by registering a local exception handler for the same exception type. Since Struts 1.1.)
<exception> (registers an ExceptionHandler for an exception type.)
<global-forwards> (describes a set of ActionForward objects [org.apache.struts.action.ActionForward] that are available to all Action objects as a return value. The individual ActionForwards are configured through nested <forward> elements. An <action> element may override a global forward by defining a local <forward> of the same name.)
WARNING: For Struts 1.0, this value is ignored. You can set the default implementation class name with the “forward” initialization parameter to the Struts controller servlet.
<forward> (describes an ActionForward that is to be made available to an Action as a return value. An ActionForward is referenced by a logical name and encapsulates a URI. A “forward” element may be used to describe both global and local ActionForwards. Global forwards are available to all the Action objects in the module. Local forwards can be nested within an <action> element and only available to an Action object when it is invoked through that ActionMapping.)
<action-mappings> (describes a set of ActionMapping objects [org.apache.struts.action.ActionMapping] that are available to process requests matching the url-pattern our ActionServlet registered with the container. The individual ActionMappings are configured through nested <action> elements.)
WARNING: For Struts 1.0, this value is ignored. You can set the default implementation class name with the “mapping” initialization parameter to the Struts controller servlet.
<action> (describes an ActionMapping object that is to be used to process a request for a specific module-relative URI.)
NOTE: Do *not* include a period in your path name, because it will look like a filename extension and cause your Action to not be located.
<controller> (describes the ControllerConfig bean [org.apache.struts.config.ControllerConfig] that encapsulates a module’s runtime configuration.)
If not specified, the default forwardPattern is “$M$P”, which is consistent with the previous behavior of forwards. Since Struts 1.1. [“$M$P”]
If not specified, the default forwardPattern is “$M$P”, which is consistent with previous hard coded behavior of URL evaluation for “page” attributes. [“$M$P”]
<message-resources> (describes a MessageResources object with message templates for this module.)
NOTE: The module prefix includes the leading slash, so the default message resource bundle for a module named “foo” is stored under “org.apache.struts.action.MESSAGE/foo”.
<plug-in> (specifies the fully qualified class name of a general-purpose application plug-in module that receives notification of application startup and shutdown events. An instance of the specified class is created for each element, and can be configured with nested <set-property> elements.)
Subordinate Elements:-
<description> (contains descriptive (paragraph length) text about the surrounding element, suitable for use in GUI tools.)
<display-name> (contains a short (one line) description of the surrounding element, suitable for use in GUI tools.)
<icon> (contains a small-icon and large-icon element which specify the location, relative to the Struts configuration file, for small and large images used to represent the surrounding element in GUI tools.)
<large-icon> (specifies the location, relative to the Struts configuration file, of a resource containing a large (32×32 pixel) icon image.)
<small-icon> (specifies the location, relative to the Struts configuration file, of a resource containing a small (16×16 pixel) icon image.)
<set-property> (specifies the method name and initial value of an additional JavaBean configuration property. When the object representing the surrounding element is instantiated, the accessor for the indicated property is called and passed the indicated value. The “set-property” element is especially useful when a custom subclass is used with <forward>, <action>, or <plug-in> elements. The subclass can be passed whatever other properties may be required to configure the object without changing how the struts-config is parsed.
Since Struts 1.3, an alternate syntax is supported. By using the “key” attribute instead of the “property” attribute, you can set arbitrary string properties on the Config object which is populated based on the containing element.
NOTE: the “key” attribute is NOT supported for <set-property> inside a <plug-in> element.)
Let me first give me my scenario where I needed such a thing, so that it may clear what I mean by the title of this post.
Scenario:-
For a J2EE Online Library project of mine I needed to display a list of books that can be issued. Each book’s entry had a corresponding check box which when clicked by the user is added to the cart of the user. Now the list of items in cart is kept at server side which meant that I have to call a JSP page or a servlet from the client side without actually navigating to that page. This is usually accomplished using AJAX, which is not a trivial task. Hence, I devised simple trick.
The Trick:-
I thought if somehow I could load the called page into an iframe rather than the whole window then that will solve my problem, and it worked! Then make the iframe hidden. Below is the code snippet.
License: GNU Public License version 3.
Code:
[code lang=”html”]
<html>
<pre id="codebox-pseudo-ajax"><code> <head>
<title>Pseudo AJAX call trick by AppleGrew</title>
<script type=’text/javascript’>
function callUpdate(chkbox) {
<strong>frames[‘proxy’].location.href = ‘ServletController?pg=updateCart&itemId=’ + chkbox.value + "&chosen=" + chkbox.checked;</strong>
//alert(frames[‘proxy’].document.body.innerHTML); //Use to retrieve the value returned by ServletController.
}
</script>
</head>
<body>
<br/>
<br/>
<br/>
<br/>
<br/>
<center>
<input name="itemId" type="checkbox" value="1" <strong>onclick="javascript:callUpdate(this);"</strong> /> Item1<br/>
<br/>
<input name="itemId" type="checkbox" value="2" <strong>onclick="javascript:callUpdate(this);"</strong> /> Item2<br/>
</center>
<!–The purpose of this iframe is to imitate a sort of AJAX call. The javascript calls the ServletController and
the loaded page is loaded into this iframe w/o replacing the current page –>
<strong><iframe id="proxy" name="proxy" style="display:none;"></iframe></strong>
</body>
</html></code>[/code]
Where ServletController is the servelt controller of your project or just any other page. Note that if you need to retrieve any value returned from ServletController then it must return generated page as below.
<html>
<head></head>
<body>Put the value to be returned here.</body>
</html>