Finally, here’s how to compare a number value against a property within an ActionForm: 8.5.2 Substring Matching The substring-matching tags take all the same arguments as the value-comparison tags. You compare the string specified by the value attribute to any of the comparison values you give it, specified by cookie, header, parameter, property, or name. Matching tags also have an additional location attribute that informs the tag where to start matching from (either “start” or “end”). In this example, the matchTag is being used to determine whether the request parameter action begins with the string “processLogin”: Processing Login…. If the location attribute is not specified, a match between the variable and the value may occur at any position within the variable string. 8.5.3 Redirecting and Forwarding The forwardand redirect tags within the Logic tag library might have been better suited to the HTML tag library. However, the fact that they are in the Logic tag library doesn’t make them any less valuable. In fact, combined with one of the other Logic tags, these two tags become extremely useful. The redirect tag is responsible for sending a redirect to the client’s browser, complete with URL- rewriting if the container supports it. Its attributes are consistent with the Struts HTML link tag. The base URL is calculated based on which of the following attributes you specify (you must specify exactly one of them): forward Use the value of this attribute as the name of a global ActionForwardto be looked up, and use the context-relative URI found there. href Use the value of this attribute unchanged.
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.
This entry was posted
on Friday, July 20th, 2007 at 1:28 pm and is filed under Domain.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.