Design consideration: Client side validation

2001-10-26 Thread Hitesh Parashar

Hi:

Struts puts emaphasis on server-side validations.
However, lotsa times it makes sense to do some
validations before we hit the server. 

How the client side validations should be done while
keeping the sanctity of the design principles for
struts? Is it a good practice to use use JavaScript to
do this? What are the possible ways to do this?

TIA,

Hitesh.

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Struts Sample Code Repository!!!

2001-10-25 Thread Hitesh Parashar

Hi Guys:

Is there a place where I can get the exhaustive list
of struts sample code?

In particular, I am looking for following set of
sample code / tutorial / How-TOs / user-guides:

(1) Model involving entity EJB (CMP) and talking to
Oracle database.
(2) View involving table of dynamically generated
result set obtained from the EJB based model.
(3) View involving dynamically generated forms based
on the resultset.
(4) Login/authentication/authorization using LDAP
server (We are using IBM SecureWay implementation).
(5) View involving more glizy stuff than normal HTML
buttons. The buttons can be images / Macromedia flash
components.
(6) Forms which can be more than the normal HTML forms
(involving the sleek looking Flash forms).

TIA,

Hitesh.


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Flash button and forms with struts

2001-10-24 Thread Hitesh Parashar

Hi All:

How can we use Macromedia flash buttons and forms with
struts?

It is really important for us at the moment because we
want to use struts and we also want to leverage the
Flash forms/buttons already present with us. 

The decision of whether to use struts or not hinges on
the fact how easily can we integrate Flash components
in struts.

TIA,

Hitesh.

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Re: IBM VisualAge WTE and struts

2001-10-19 Thread Hitesh Parashar

Thanks Stephen/Eric/Alan/David:

Stephen: Could you please send the .war file to me.
Also, could you please tell us in this thread, what
are the specific changes that you made for this sample
to work with WTE / WAS?

Eric: It is really a great idea to separate the VAJ
projects along the product/API lines. This is a clean
approach. It is really a good idea to have a base
project built for general stuff used by multiple
projects e.g. the XML parser.

Thanks,

Hitesh.
--- Eric Rizzo [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:
 
  Hitesh,
  
  Included are the instructions for getting the
 struts-example (under 
  Struts v1.0) running in both VAJ 4.0/WTE and WAS
 4.0 that I posted a 
  while ago...
 
 
 Cool, I think it's good idea to write this stuff up.
  But I would make one 
 suggestion: instead of just opening the current
 edition of the IBM XML Parser 
 project and letting it be updated when you import
 Xerces/JAXP, I recommend 
 separating out the various XML API's as I have
 described in a message in this 
 thread a few minutes ago.
 
 HTH,
   Eric
 -- 
 Eric Rizzo
 VAJ Frequently Asked Questions at
 http://www.jguru.com/faq/VAJ
 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Re: IBM VisualAge WTE and struts

2001-10-19 Thread Hitesh Parashar

Hi Stephen:

Did you miss some steps in this for conversion of
web.xml file to strutsexample.webapp file using the
XSL provided with WTE (webapp.xsl)?

Thanks,

Hitesh.

--- [EMAIL PROTECTED] wrote:
 Hitesh,
 
 Included are the instructions for getting the
 struts-example (under Struts 
 v1.0) running in both VAJ 4.0/WTE and WAS 4.0 that I
 posted a while ago...
 
 (Note: The WAS instructions make reference to a .war
 file that is too big to 
 upload to this group but I will send it directly to
 anyone who needs it.)
 
 Here to help,
 Stephen :-{)
 
 Stephen Brand
 Software Architect
 [EMAIL PROTECTED]
 

 ATTACHMENT part 2 application/zip name=Installing
Struts.zip



__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



IBM VisualAge and struts

2001-10-18 Thread Hitesh Parashar

Hi:

Did anybody try to setup VisualAge for struts? If
anybody can give some pointers, it would be of great
help.

Thanks,

Hitesh.

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



IBM VisualAge WTE and struts

2001-10-18 Thread Hitesh Parashar

Hi:

I am having tough time establishing peace between VAJ 
4.0 WTE and struts. I am following the WebSphere
Version 4 Application Development Handbook.

WTE requires IBM XML Parser for Java and struts
requires me to use Xerces. The following packages are
conflicting between the two

- org.w3c.dom
- org.xml.sax
- org.xml.sax.helpers

I created open editions of org.w3c.dom, org.xml.sax,
and org.xml.sax.helpers in the IBM XML Parser for Java
project and then created a new Xerces project and
imported all the source from the Xerces. I get
warnings on doing this. Can I live with these
warnings? 

Any suggestion how should I go about importing struts
in VisualAge 4.0?

Thanks,

Hitesh.

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Invalid attribute Prefix error

2001-10-18 Thread Hitesh Parashar

Hi:

I am trying to run a struts sample with VisualAge 4.0
WTE. I get an error as follows:

Message: Directive: Invalid attribute, prefix

My JSP file is:

%@taglib uri=/WEB-INF/struts-html.tld
prefix=html%
html:html locale=false
html:errors/
html:form action=processNewEmployee.do
*First Name: html:text property=firstName/BR
*Last Name: html:text property=lastName/BR
*Phone Number: html:text property=phoneNumber/BR
Office Number: html:text
property=officeNumber/BR
Backup: html:text property=backup/BR
Backup Phone Number: html:text
property=backupPhoneNumber/BR
html:submit /
/html:form
/html:html

Any idea, what might be going wrong.

Thanks,

Hitesh.

The detailed error message is:



Error 500
An error has occured while processing
request:http://localhost:8080/jsp/employeesearch.jsp
Message: Directive: Invalid attribute, prefix

Target Servlet: jsp
StackTrace: 

Root Error-1: Directive: Invalid attribute, prefix

com.ibm.servlet.engine.webapp.WebAppErrorReport:
Directive: Invalid attribute, prefix
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)

com.ibm.websphere.servlet.error.ServletErrorReport(java.lang.String)

com.ibm.servlet.engine.webapp.WebAppErrorReport(java.lang.String)
void
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(int,
java.lang.String)
void
com.sun.jsp.runtime.JspServlet.unknownException(javax.servlet.http.HttpServletResponse,
java.lang.Throwable)
void
com.sun.jsp.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engine.webapp.StrictLifecycleServlet,
javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.servlet.engine.webapp.ServletInstanceReference,
javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(com.ibm.servlet.engine.webapp.WebAppRequest,
javax.servlet.http.HttpServletResponse, boolean)
void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, boolean)
void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Object)
void
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lang.Object)
void
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.String,
com.ibm.servlet.engine.srp.ISRPConnection)
void
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.servlet.engine.oselistener.api.IOSEConnection)
void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(java.net.Socket)
void
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
void java.lang.Thread.run()





__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com