About
Satya
Aspire/J2EE
Java.net
OnJava.com
Build Related
Release Notes
Download
Help
More...
White Papers
What is Aspire
Aspire's Benefits
Aspire's Features
Database Development
Architecture
More ..
Howtos
Base Framework
Data Access
Web
Advanced
Related Reading
Satya's AKC Blog
Satya's java.net Blog
Articles
Properties
Cheat sheet 1
Cheat sheet 2
property files
html files
jsp files
More documents like this are at: Howto-Advanced
10-Dec-04
More documents like this are at: Data Access
It is common to make use of stored procedures to encapsulate business logic that operates on data. There are fairly well documented benefits of doing this despite, also, the known drawbacks. For one thing these procedures represent a chunk of work with minimal infrstructural accoutrements. For example you don't need to worry about transactions or connections. You just write the logic. The connections and transactions are handled by the container, in this case the database.
At times a database may not support stored procedures or even when they do due to the complex nature of manipulation you may need to use the power of Java to write that logic. But when we step into java, you start needing to know about transactions and connections, statements, result sets etc.
This article shows how to imitate stored procedure like logic in Java while borrowing the same connection agnostic benefits that are inherent in stored procedures.
8-Dec-04
Works like an oracle decoder for field values including default values
More documents like this are at: Howto
6-Dec-04
This document shows how to declare public urls and public update requests using Trivial authentication
request.aspire.authentication.authenticationObject.className=\ com.ai.aspire.authentication.TrivialAuthentication request.aspire.authentication.authenticationObject.publicRequestNames=\ AppendFeedbackRequest request.aspire.authentication.authenticationObject.publicURLs=\ url1,url2
29-Nov-04
Supports the login process Improves on the original version Keeps the target url when directed Further documentation will follow
26-Nov-04
6-Nov-04
21-Oct-04
Calls another part or business logic, by translating the input arguments to match the expected names of the receiver
1. originalNames: comma separated list of key names that needs to be copied from
2. newNames: comma separated list of keys to which the above key values will be copied to
3. propagateParams: yes|no: yes
4. reuseRequestName: Name of the reusable target request
if Propagateparams is "yes", then the incomign map is passed down. if it is set to "no" then a freshmap is created for the receiver Use "no" with caution, as this will result in a new transaction if the called parts have any database calls.
1.resultName: What ever the target request returns
18-Oct-04
As of June 6th 2004
Choose a an authentication implementation that is appropriate in the aspire properties file. Here is an example with Trivial authentication.
request.aspire.authentication.authenticationObject.className=\ com.ai.aspire.authentication.TrivialAuthentication request.aspire.authentication.authenticationObject.publicURLs=\ LoginPageURL,WelcomePublicJSPURL request.aspire.authentication.authenticationObject.publicRequestNames=\ LoginRequest
See how public urls are defined as a comma separated list aspire url names. Also see how aspires update requests can also be mentioned as public.
Notice that the lines are broken for clarity. You may want to put them on the sameline
14-Oct-04
The context string looks like
<Context path="/akc" docBase="w:/satya/webapps/akc" debug="0"/>
The question is what is the parent node to the "Context" node. Here is the hierarchy in that xml file
<Server><Service><Engine><Host> <Context path="/akc" docBase="w:/satya/webapps/akc" debug="0"/> </Host></Engine></Service></Server>
This is based on tomcat 5. Probably the same for earlier and later tomcats as well. But just check in case
12-Oct-04
# USing the URLStringReader to retrieve a url as a string # request.GetBodyText.classname=com.ai.parts.URLStringReaderPart request.GetBodyText.URL=\ /webapp/display?url=DisplayURL&ordid={ordid}&useid1={useid1} request.GetBodyText.resultName=bodyText
More documents like this are at: Questions
6-Oct-04
More documents like this are at: Known Problems
http://groups.yahoo.com/group/aspirej2ee/
5-Oct-04
Read this for sending a JSP page as an email using smtp mailer
More documents like this are at: Release Notes
4-Oct-04
3-Oct-04
Use this part
30-Sep-04
29-Sep-04
1. Login 2. Logout 3. Login/Logout buttons 4. Simple master page 5. JSP includes
Download loginapp3
25-Sep-04
Starting with build 21 look for a session variable called
profile_aspire_loggedin_status
The values are "true" or "false"
Previously this used to be called
aspire.loggedin_status
More documents like this are at: Property file examples: AKC
24-Sep-04
YourJSPURL=/login/logout.jsp YourJSPURL.transformType=JSP request.YourJSPURL.transform.className=com.ai.jsp.JSPTransform YourJSPURL.formHandlerName=YourJSPURLData # #Data definition # request.YourJSPURLData.form_handler.class_request.className=\ com.ai.htmlgen.DBHashTableFormHandler1
16-Sep-04
public interface IAuthentication2 extends IAuthentication1 { //from original public boolean verifyPassword(final String userid, final String passwd ) throws AuthorizationException; public boolean isAccessAllowed(final String userid, final String resource ) throws AuthorizationException; //from 1 public boolean isAccessAllowed(final String userid , HttpServletRequest request ,HttpServletResponse response) throws AuthorizationException; //from 2 public boolean isAPublicURL(HttpServletRequest request ,HttpServletResponse response) throws AuthorizationException; }
14-Sep-04
10-Sep-04
>>> Click here for the next set of documents
Page Menu
Visit my Library
Global Menu
My Web Logs
My Library
My Home
Other libraries
Author Content
data format