Re: How to integrate Tomcat server with Apache webserver pls urgent

2004-06-29 Thread Nicolas De Loof

You will need the JK (or JK2) connector to connect tomcat to apache :

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html


A simple "tomcat apache howto" gogle search will give you lot's of infos.

You have to
1. (compile and) add mod_jk module to your apache httpd server
2. set the AJP connector in tomcat server.xml
3. configure a workers.properties file for your tomcat
4. write (or auto-generate) the mod_jk.conf


You may need to add some directives to httpd.conf to handle tomcat URLs with 
jsessionid :

RewriteEngine on
RewriteRule ^([^;]*);jsessionid=.$ /tomcat/webapps$1

Notice my apache server has been compiled with rewrite module enabled. You may need to 
add loadmodule directive for a
lodable module.

Nico.



> Hi group,
>
> Could anybody tell me how to integrate apache webserver with tomcat.
> Or can u give me the websites address.
> Pls urgent
> awaiting ur reply
>
> Thanks
> Ganesh
>
>
> -
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.



Our name has changed.  Please update your address book to the following format: 
"[EMAIL PROTECTED]".

This message contains information that may be privileged or confidential and is the 
property of the Capgemini Group. It is intended only for the person to whom it is 
addressed. If you are not the intended recipient,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem Please Help me.....

2004-06-29 Thread Srinivas Rao
Hi Ajay,
Thanks replay to me and  is it possible to get the popup window value to parent 
window? 
 
This is the information ur asking ...
1.) popup window come up properly and i am not getting any error.
2.) I have wrote the append() funtion in child window but i am not getting the initial 
value from the parent window .
3.) I am not getting any error from parent window or child window.
 
 
Actualy my problem is, i am getting the list of files and i display the files one by 
one,and I enter the relavent comment to the each files. This is the problem.I traid 
but i am not getting the values from popup window.
 
Is it possible enter comment to each files,what is the way to solve this problem.
 
Here is the code >
 
Parent window 
 

  
 
Child Window...
 
function append()
{
alert(window.opener.document.forms["supervisorDeskActionForm"].getElementById("stockBox").value);
document.getElementById("comment").value=window.opener.document.forms["supervisorDeskActionForm"].getElementById("stockBox").value;
}
function pickinf() {
  if (window.opener && !window.opener.closed)
 {
window.opener.document.forms["supervisorDeskActionForm"].stockBox.value = 
document.getElementById("comment").value;
 }
  window.close();
}










Plz tell me the way to solve this problem...
 
Thanks
Srinivas
Ajay Patil <[EMAIL PROTECTED]> wrote:
Dear Srinivas, 

You have mentioned that you are facing a small problem, but you
havent given any information on where the problem is coming.

1. Does the child window (popup) come up properly ?

2. Does it contain the initial value correctly ?
i.e does you append function in child window work correctly ?

3. Do you get any error message in browser ?
If yes, what is it ?

4. Does the browser crash ? If yes, did you try to debug ?

If you can give above information, maybe I can try to help you.

Anyways, looking at your code,
TRY CHANGING THE FOLLOWING IN ALL JAVASCRIPT FUNCTION

ORIGINAL -->
window.opener.document.supervisorDeskActionForm.getElementById
("stockBox").value

MODIFIED -->
window.opener.document.forms["supervisorDeskActionForm"].stockBox.value

Let me know if this is helping you,
Ajay







Date: Sun, 27 Jun 2004 21:25:31 -0700 (PDT)
From: Srinivas Rao 
Subject: problem Please Help me.
To: [EMAIL PROTECTED]

Hi guys,

I am facing samll problem , it's a simple one but i don't know what is 
the wrong i am doing ...Please help me..
My problem is ...
I have parent window and child window (ie popup window)..If i entered 
the value into text field to popup window then the value come to the 
parent window if i close the child window. the code is here .

This is Parent window code.

 
function showList() {
 alert("Call Show List");
  sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", 
"width=750,height=510");
}

 




property="audioList">
styleId="stockBox" value=""/>
onclick="showList()"/>


Chile window Code..


function append()
{
alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value);
document.getElementById("comment").value=window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value;
}
function pickinf() {
  if (window.opener & !window.opener.closed)
 {
window.opener.document.supervisorDeskActionForm.stockBox.value = 
document.getElementById("comment").value;
 }
  window.close();
}











This is the code 

Please tell me what is the wrong i am doing now...

Thanks to replay to me.

Thanks 
Srinivas.



-



-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

RE: How to integrate Tomcat server with Apache webserver pls urgent

2004-06-29 Thread David Friedman
Use the JK2 connector:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/

I've done it. The connector is available for download
on the standard Tomcat download are:
http://jakarta.apache.org/site/binindex.cgi

Under the title "Tomcat Connectors" you'll find JK 1.2 and 2 connectors for
various platforms, including Win32, if you are running Tomcat (4 or 5) on
that particular platform.

Good luck and good night,
David

-Original Message-
From: ganesh gadi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 2:25 AM
To: user
Subject: How to integrate Tomcat server with Apache webserver pls urgent


Hi group,

Could anybody tell me how to integrate apache webserver with tomcat.
Or can u give me the websites address.
Pls urgent
awaiting ur reply

Thanks
Ganesh


-
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: Struts and PL/SQL

2004-06-29 Thread Grassi Fabio
Here is e that maps a PL/SQL package. More examples can be found in the Jpublisher 
documentation (see http://otn.oracle.com or www.oracle.com or the documentation cd 
that ships with Oracle RDBMS).

Bye, bye, Fabio.

/*** CODE START /


/[EMAIL PROTECTED]:filename=DALVoceDAO*//[EMAIL PROTECTED]:user-code*//[EMAIL 
PROTECTED]:1^1*/package it.ggs.iris.modello.jpub;

import java.sql.SQLException;
import sqlj.runtime.ref.DefaultContext;
import sqlj.runtime.ConnectionContext;
import java.sql.Connection;

public class DALVoceDAO
{

  /* connection management */
  protected DefaultContext __tx = null;
  protected Connection __onn = null;
  public void setConnectionContext(DefaultContext ctx) throws SQLException
  { release(); __tx = ctx; }
  public DefaultContext getConnectionContext() throws SQLException
  { if (__tx==null)
{ __tx = (__onn==null) ? DefaultContext.getDefaultContext() : new 
DefaultContext(__onn); }
return __tx;
  };
  public Connection getConnection() throws SQLException
  { return (__onn==null) ? ((__tx==null) ? null : __tx.getConnection()) : __onn; }
  public void release() throws SQLException
  { if (__tx!=null && __onn!=null) __tx.close(ConnectionContext.KEEP_CONNECTION);
__onn = null; __tx = null;
  }


  /* constructors */
  public DALVoceDAO() throws SQLException
  { __tx = DefaultContext.getDefaultContext();
 }
  public DALVoceDAO(DefaultContext c) throws SQLException
  { __tx = c; }
  public DALVoceDAO(Connection c) throws SQLException
  {__onn = c; __tx = new DefaultContext(c); }

  public DALVoci leggere (
DSZChiaveSezione chiaveSezione[])
  throws SQLException
  {
DALVoci __jPt_result;
/[EMAIL PROTECTED]:generated-code*//[EMAIL PROTECTED]:43^5*/

//  
//  #sql [getConnectionContext()] __jPt_result = { VALUES(IRIS.DALK_VOCE.LEGGERE(
//:chiaveSezione[0]))  };
//  

{
  // declare temps
  oracle.jdbc.OracleCallableStatement __sJT_st = null;
  sqlj.runtime.ref.DefaultContext __sJT_cc = getConnectionContext(); if 
(__sJT_cc==null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
  sqlj.runtime.ExecutionContext.OracleContext __sJT_ec = 
((__sJT_cc.getExecutionContext()==null) ? 
sqlj.runtime.ExecutionContext.raiseNullExecCtx() : 
__sJT_cc.getExecutionContext().getOracleContext());
  try {
   __sJT_st = 
__sJT_ec.prepareOracleCall(__sJT_cc,"0it.ggs.iris.modello.jpub.DALVoceDAO","BEGIN :1 
:= IRIS.DALK_VOCE.LEGGERE(\n   :2 )  \n; END;");
   if (__sJT_ec.isNew())
   {
  __sJT_st.registerOutParameter(1,2003,"IRIS.DALO_VOCI");
  __sJT_st.registerOutParameter(2,2002,"IRIS.DSZO_CHIAVE_SEZIONE");
   }
   // set IN parameters
   if (chiaveSezione[0]==null) __sJT_st.setNull(2,2002,"IRIS.DSZO_CHIAVE_SEZIONE"); 
else __sJT_st.setORAData(2,chiaveSezione[0]);
   // execute statement
   __sJT_ec.oracleExecuteUpdate();
   // retrieve OUT parameters
   __jPt_result = 
(it.ggs.iris.modello.jpub.DALVoci)__sJT_st.getORAData(1,it.ggs.iris.modello.jpub.DALVoci.getORADataFactory());
   chiaveSezione[0] = 
(it.ggs.iris.modello.jpub.DSZChiaveSezione)__sJT_st.getORAData(2,it.ggs.iris.modello.jpub.DSZChiaveSezione.getORADataFactory());
  } finally { __sJT_ec.oracleClose(); }
}


//  

/[EMAIL PROTECTED]:user-code*//[EMAIL PROTECTED]:44^35*/
return __jPt_result;
  }

  public void aggiornare (
DSZChiaveSezione chiaveSezione[],
DALVoci voci[])
  throws SQLException
  {
/[EMAIL PROTECTED]:generated-code*//[EMAIL PROTECTED]:53^5*/

//  
//  #sql [getConnectionContext()] { CALL IRIS.DALK_VOCE.AGGIORNARE(
//:chiaveSezione[0],
//:voci[0])  };
//  

{
  // declare temps
  oracle.jdbc.OracleCallableStatement __sJT_st = null;
  sqlj.runtime.ref.DefaultContext __sJT_cc = getConnectionContext(); if 
(__sJT_cc==null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
  sqlj.runtime.ExecutionContext.OracleContext __sJT_ec = 
((__sJT_cc.getExecutionContext()==null) ? 
sqlj.runtime.ExecutionContext.raiseNullExecCtx() : 
__sJT_cc.getExecutionContext().getOracleContext());
  try {
   __sJT_st = 
__sJT_ec.prepareOracleCall(__sJT_cc,"1it.ggs.iris.modello.jpub.DALVoceDAO","BEGIN 
IRIS.DALK_VOCE.AGGIORNARE(\n   :1 ,\n   :2 ) \n; END;");
   if (__sJT_ec.isNew())
   {
  __sJT_st.registerOutParameter(1,2002,"IRIS.DSZO_CHIAVE_SEZIONE");
  __sJT_st.registerOutParameter(2,2003,"IRIS.DALO_VOCI");
   }
   // set IN parameters
   if (chiaveSezione[0]==null) __sJT_st.setNull(1,2002,"IRIS.DSZO_CHIAVE_SEZIONE"); 
else __sJT_st.setORAData(1,chiaveSezione[0]);
   if (voci[0]==null) __sJT_st.setNull(2,2003,"IRIS.DALO_VOCI"); else 
__sJT_st.setORAData(2,voci[0]);
   // execute statement
   __sJT_ec.oracl

How to integrate Tomcat server with Apache webserver pls urgent

2004-06-29 Thread ganesh gadi
Hi group,
 
Could anybody tell me how to integrate apache webserver with tomcat.
Or can u give me the websites address.
Pls urgent
awaiting ur reply
 
Thanks
Ganesh


-
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

Re: [OT] Storing Birth Date

2004-06-29 Thread Jorge Salido
> My experience differs from Jorge.
> A generic date should do well, and still give you all the date functions.  The only 
> problem with storing dates as a number is doing date arithmetic ( say sending an 
> email to all people whose birthday is 5 days away) and things like that.  It's not a 
> tremendous burden to overcome, it's just every time I run across dates stored that 
> way, I always end up writing way more code then I need to.
> 

Right, and I agree. The main advantage I ever got with storing dates
with plain numbers was the sorting. Logic should be handled
differently, using real date-handling objects. I still think that the
best way to store a date in a DB is with a native date function. I was
just pointing out that using a number format was IMHO better than a
timestamp.

These days I rarely like to depend on any DB vendor, so I tend to keep
all the logic outside the DB. And storing and retrieving data is one
thing, doing operations is another. I would certainly use Date,
Calendar or other classes, whichever was appropiate, when retrieving
the data from the DB. Why reinvent the whole thing when you already
got the libraries to handle the data?

Jorge

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to change tiles def at runtime?

2004-06-29 Thread Janarthan Sathiamurthy
Hi,

If found this- In struts-config.xml specify for ur web application -

  
  
  






I was able to reload my definitions with these. Hope it helps.

Regards,
Janarthan S

-Original Message-
From: Stunger, Kevin J [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 5:01 AM
To: [EMAIL PROTECTED]
Subject: How to change tiles def at runtime?

Hello!

Has anyone ever had success changing tiles def values during runtime?
I'd like to point a tiles def to a different jsp and change the title,
etc. based on some value set in either the request or the session.

Example:

 
 
 
 
 
 
 
 


Changes to the below based on a conditional (note that "My" changed to
"Your", all "default" is now "default2", and "/template.jsp" is now
"/template2.jsp") :


 
 
 
 
 
 
 
 


Thanks in advance for any help!!!

--Kevin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts and PL/SQL

2004-06-29 Thread CRANFORD, CHRIS
I would be interested in seeing what one of these generated Java classes
look like internally?  Care to post an example?
Chris

-Original Message-
From: Grassi Fabio [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 24, 2004 5:31 AM
To: Lucas Gonzalez; Struts Users Mailing List
Subject: R: Struts and PL/SQL


Hi, in my application all DB access goes through PL/SQL stored procedures. I
use Oracle JPublisher to generate the Java classes that map PL/SQL packages.
It works fine enough.

Bye, Fabio.

> -Messaggio originale-
> Da: Lucas Gonzalez [mailto:[EMAIL PROTECTED]
> Inviato: mercoledì 23 giugno 2004 20:07
> A: Struts Users Mailing List
> Oggetto: Struts and PL/SQL
> 
> 
> Hi all!
> 
> I´ve been using Struts a lot with EJB and Hibernate with no problems.
> 
> But I always wondered if it´s possible to use an architecture
> that uses
> STRUTS and goes directly to PL/SQL for the database layer. I 
> know it is
> possible in many way, but I would like to know if there is any special
> product or package that integrates with PL ( the only one I found is
> http://portalstudio.oracle.com/servlet/page?_pageid=473&_dad=o
ps&_schema=OPSTUDIO ) ... any pointers?

Thanks a lot
Lucas

Ai sensi del D.Lgs. 196/2003 si precisa che le informazioni contenute in
questo messaggio sono riservate ed a uso esclusivo del destinatario. Qualora
il messaggio in parola Le fosse pervenuto per errore, La invitiamo ad
eliminarlo senza copiarlo e a non inoltrarlo a terzi, dandocene gentilmente
comunicazione. Grazie.Pursuant to Legislative Decree No. 196/2003,
you are hereby informed that this message contains confidential information
intended only for the use of the addressee. If you are not the addressee,
and have received this message by mistake, please delete it and immediately
notify us. You may not copy or disseminate this message to anyone. Thank
you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts/Tiles/Taglib/JBoss325 Deployment Error

2004-06-29 Thread Vincent Ho
Hi,
 I'm using Jboss-3.2.5 and jakarta-struts-1.1 with J2SDK 1.4.2, WinXP

 I encounter the following exception :

 java.lang.NullPointerException
  at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:153)

 ..

 java.lang.NullPointerException
  at
 org.apache.jasper.runtime.TagHandlerPool.release(TagHandlerPool.java:191)


 I suspect it is something related to tomcat-5.x because my application
was running fine with Jboss-3.2.3 (tomcat-4.x)

 Could someone give me some hint on : what is the cause of this prob?
 how to resolve this problem?
 Please let me know whether there is any other information that I need
to provide.

 Hope that someone could help me. Thank you.

 Regards,
 Vincent




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using 1 Validator definition for 2 different forms?

2004-06-29 Thread William Ferguson
You're right.

My pet hate of the validation framework - validation should be configured on
the ActionConfig instead of via the ActionConfig#path. This would provide
for Mick's requirements. It would also free Strus Forms from having to
extend from ValidatorForm or ValidatorActionForm in order to get some
validation.

William

-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 June 2004 12:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Using 1 Validator definition for 2 different forms?


Using ValidatorActionForm would result in the Validator being pointed at
Actions and not forms. I don't see how that gets one validator
definition...

Let me ask this of Mick:

Why you using two different form definitions? If they are identical,
what are you hoping to accomplish by defining it twice? 

If you had two different actions using it, why wouldn't you just reuse
one form bean definition for both of them? If that's the case, then one
ValidatorForm entry in the validator is all you'd need. Of course, this
ties the processing together and re-sundering it may be an issue later.
Don't know how wise or unwise it would be in your case.

I suspect there may be a way of getting around the problem, but I can't
see it from here.



> -Original Message-
> From: William Ferguson [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 29, 2004 10:01 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> Try extending from ValidatorActionForm instead of ValidatorForm.
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 30 June 2004 5:37 AM
> To: Struts Users Mailing List
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 12:28 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Using 1 Validator definition for 2 different forms?
> > 
> > 
> > No, I mean I have a user1Form, and user2Form.
> > They are identical forms as we are using Tiles to display them.
> 
> Validator validates on form name... if they are the same form (ie same
> class) and different names,
> I don't think you can with 1.1.  If you're using tiles to 
> display the same form, in 2+ different places on the same jsp 
> page, you don't necessarily have to have seperate form names 
> for each ( javascript may have issues with this though, I 
> don't do enough javascript to know).
> 
> You might want to look at how ValidatorForms validate method 
> works, and override it in your forms to look 
> at the correct validation name.   That's a bit of a hack though.
> 
> > 
> > 
> > -Original Message-
> > From: Jim Barrows [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 12:21 PM
> > To: Struts Users Mailing List
> > Subject: RE: Using 1 Validator definition for 2 different forms?
> > 
> > 
> > If you're talking about masks, then you can use globals.  You
> > could also
> > create your own custom validator, iirc 1.2 will have some 
> inheritance
> > features, but not sure what scope yet since I'm not using 1.2.
> > 
> > 
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, June 29, 2004 12:12 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Using 1 Validator definition for 2 different forms?
> > > 
> > > 
> > > How can I Use 1 Validator definition for 2 different forms?
> > > 
> > > 
> > > ---
> > > > Thanks...
> > > > Mick Knutson
> > > > 
> > > > 525 Market Street, SF, CA  94103
> > > > (415) 222-1020
> > > > [EMAIL PROTECTED]
> > > > MAC A0103-223
> > > ---
> > > 
> > > 
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Joe Hertz
Using ValidatorActionForm would result in the Validator being pointed at
Actions and not forms. I don't see how that gets one validator
definition...

Let me ask this of Mick:

Why you using two different form definitions? If they are identical,
what are you hoping to accomplish by defining it twice? 

If you had two different actions using it, why wouldn't you just reuse
one form bean definition for both of them? If that's the case, then one
ValidatorForm entry in the validator is all you'd need. Of course, this
ties the processing together and re-sundering it may be an issue later.
Don't know how wise or unwise it would be in your case.

I suspect there may be a way of getting around the problem, but I can't
see it from here.



> -Original Message-
> From: William Ferguson [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 29, 2004 10:01 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> Try extending from ValidatorActionForm instead of ValidatorForm.
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 30 June 2004 5:37 AM
> To: Struts Users Mailing List
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 12:28 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Using 1 Validator definition for 2 different forms?
> > 
> > 
> > No, I mean I have a user1Form, and user2Form.
> > They are identical forms as we are using Tiles to display them.
> 
> Validator validates on form name... if they are the same form (ie same
> class) and different names,
> I don't think you can with 1.1.  If you're using tiles to 
> display the same form, in 2+ different places on the same jsp 
> page, you don't necessarily have to have seperate form names 
> for each ( javascript may have issues with this though, I 
> don't do enough javascript to know).
> 
> You might want to look at how ValidatorForms validate method 
> works, and override it in your forms to look 
> at the correct validation name.   That's a bit of a hack though.
> 
> > 
> > 
> > -Original Message-
> > From: Jim Barrows [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 12:21 PM
> > To: Struts Users Mailing List
> > Subject: RE: Using 1 Validator definition for 2 different forms?
> > 
> > 
> > If you're talking about masks, then you can use globals.  You
> > could also
> > create your own custom validator, iirc 1.2 will have some 
> inheritance
> > features, but not sure what scope yet since I'm not using 1.2.
> > 
> > 
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, June 29, 2004 12:12 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Using 1 Validator definition for 2 different forms?
> > > 
> > > 
> > > How can I Use 1 Validator definition for 2 different forms?
> > > 
> > > 
> > > ---
> > > > Thanks...
> > > > Mick Knutson
> > > > 
> > > > 525 Market Street, SF, CA  94103
> > > > (415) 222-1020
> > > > [EMAIL PROTECTED]
> > > > MAC A0103-223
> > > ---
> > > 
> > > 
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using 1 Validator definition for 2 different forms?

2004-06-29 Thread William Ferguson
Try extending from ValidatorActionForm instead of ValidatorForm.

-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 June 2004 5:37 AM
To: Struts Users Mailing List
Subject: RE: Using 1 Validator definition for 2 different forms?


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:28 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> No, I mean I have a user1Form, and user2Form.
> They are identical forms as we are using Tiles to display them.

Validator validates on form name... if they are the same form (ie same
class) and different names,
I don't think you can with 1.1.  If you're using tiles to display the same
form, in 2+ different places on the same jsp page, you don't necessarily
have to have seperate form names for each ( javascript may have issues with
this though, I don't do enough javascript to know).

You might want to look at how ValidatorForms validate method works, and
override it in your forms to look 
at the correct validation name.   That's a bit of a hack though.

> 
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:21 PM
> To: Struts Users Mailing List
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> If you're talking about masks, then you can use globals.  You 
> could also
> create your own custom validator, iirc 1.2 will have some inheritance
> features, but not sure what scope yet since I'm not using 1.2.
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 12:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: Using 1 Validator definition for 2 different forms?
> > 
> > 
> > How can I Use 1 Validator definition for 2 different forms?
> > 
> > 
> > ---
> > > Thanks...
> > > Mick Knutson
> > > 
> > > 525 Market Street, SF, CA  94103
> > > (415) 222-1020
> > > [EMAIL PROTECTED]
> > > MAC A0103-223
> > ---
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to handle special characters like "®"

2004-06-29 Thread Wendy Smoak
> From: Christina Siena [mailto:[EMAIL PROTECTED] 

> I am trying to figure how to handle special characters like "®".
> When the form is posted, the form attribute contains "®" 
> instead of "®".

We heard you the first time. :)  The lack of a response after two and a half hours 
probably means that either it's a frequently asked question, or you need to provide 
more information.

In this case, it's not something I've seen come up often, but a quick trip through the 
archives suggests that you might need something like this on the page with the HTML 
form:



If that's not helpful, you might want to post more information about your Struts 
project, and see if that prompts another response.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript error

2004-06-29 Thread dangmp

Return Receipt
   
Your  Javascript error 
document   
:  
   
was   Dang Minh Phuong/MIS/MECS/SG 
received   
by:
   
at:   06/30/2004 08:35:29 AM   
   






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to handle special characters like "®"

2004-06-29 Thread Christina Siena
I am trying to figure how to handle special characters like "®".

When the form is posted, the form attribute contains "®" instead of "®".


How to change tiles def at runtime?

2004-06-29 Thread Stunger, Kevin J
Hello!

Has anyone ever had success changing tiles def values during runtime?
I'd like to point a tiles def to a different jsp and change the title,
etc. based on some value set in either the request or the session.

Example:

 
 
 
 
 
 
 
 


Changes to the below based on a conditional (note that "My" changed to
"Your", all "default" is now "default2", and "/template.jsp" is now
"/template2.jsp") :


 
 
 
 
 
 
 
 


Thanks in advance for any help!!!

--Kevin



RE: newbie question: form initialization and process

2004-06-29 Thread Jim Barrows


> -Original Message-
> From: Jen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 3:32 PM
> To: [EMAIL PROTECTED]
> Subject: newbie question: form initialization and process
> 
> 
> Hi, 
> I am new to Struts and after browsered the nightly
> build example app, found it did different way with
> what I have.
> In example app the forms's initial display action is
> different from the form's submit action. 

This is somewhat typical.  ShowFormAction->form.jsp->SubmitFormAction.

> what if after
> the form submission, it needs to forward to a jsp
> which is form too, where can I do the initial work for
> the second jsp? 

Not sure what you mean here, but if I understand you correctly, you don't do work in 
jsps.

>For mine, every page will need some
> sort of initialization, and then the page is submitted
> to itself and do the process. 

Nope, no submitting to itself in struts land :)  
All processing is done in actions.  

> Second, my form all have confirm page, that is after
> the form submitted, goesto a page show all the
> inofrmation user just entered, and it have edit and
> submit button, does this page needs a form too? 

What you're looking for is:
ShowFormAction->form.jsp->SubmitAction->confirmation.jsp->FinalSubmitAction->some.jsp
If you don't want to do this in two actions, you can include a hidden field in the 
form to indicate that
the form has/has not been verified, and have the submit action check for that and do 
things appropriately.

No, no separate form bean.

>what
> action should the eidt button go?

Back to the ShowFormAction is probably best, although you could go back to the 
form.jsp page.

> Thanks

You're welcome, hth.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to handle special characters like "®"

2004-06-29 Thread Christina Siena
I am trying to figure how to handle special characters like "®".

When the form is posted, the form attribute contains "®" instead of "®".


newbie question: form initialization and process

2004-06-29 Thread Jen
Hi, 
I am new to Struts and after browsered the nightly
build example app, found it did different way with
what I have.
In example app the forms's initial display action is
different from the form's submit action. what if after
the form submission, it needs to forward to a jsp
which is form too, where can I do the initial work for
the second jsp? For mine, every page will need some
sort of initialization, and then the page is submitted
to itself and do the process. 
Second, my form all have confirm page, that is after
the form submitted, goesto a page show all the
inofrmation user just entered, and it have edit and
submit button, does this page needs a form too? what
action should the eidt button go?
Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
Thanks Jim, I'll keep digging and let you know.



-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 22:41
To: Struts Users Mailing List
Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 -
No Context configured to process this request




> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 2:38 PM
> To: 'Struts Users Mailing List'
> Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 
> 500 - No Context configured to process this request
> 
> 
> More on this:
> 
> 
> Entering

Try changing context to something else,  and see what happens.  I'm
wondering if tomcat isn't choking on context in the url before it sets up a
context.. I doubt it.. but hey...

> http://localhost:8080/ExpenSysWT/help.do?context=LOGIN_PAGE (the 
> correct path to the action) manually in the address field produces the 
> 500 error when the login page is first displayed. After the user
> has logged in
> it works fine.
> 
> I don't understand if its the Tomcat config or is the Struts
> config. I would
> have thought that if its Tomcat it would never work.
> 
> 
> TIA - Adam
> 
> 
> 
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: 29 June 2004 20:03
> To: Struts Users Mailing List
> Subject: RE: NEWBIE: Wierd problem - Action sometimes 
> produces Status 500 -
> No Context configured to process this request
> 
> 
> This almost sounds like the action is getting executed at
> all, but is rather
> a problem with the server setup.  Context usually refers to 
> everything up to
> and including the app name, so that would make sense if 
> there's a server
> configuration issue. If it is executing the action, then at 
> what point is
> the 500 being thrown?
> 
> > -Original Message-
> > From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 10:31 AM
> > To: 'Struts Users Mailing List'
> > Subject: NEWBIE: Wierd problem - Action sometimes produces Status 
> > 500 - No Context configured to process this request
> > 
> > 
> > Folks,
> > 
> > 
> > I have a strange problem that is confusing me:
> > 
> > I have a simple login page with a Help button defined like this:
> > 
> > " > border="0"
> > height="28" name="Image10" src="images/b_help_1.gif"
> > width="32">
> > 
> > 
> > When pressed, the JavaScript displayHelp() method below is called:
> > 
> > function displayHelp(context)
> > {
> >  [snip]
> > 
> >   var url = ""  
> >   url += "?context=" + context;
> > 
> >  [snip]
> > 
> >   window.open(url, "HelpWindow", windowOptions);
> > }
> > 
> > 
> > 
> > This page is the first page that the user sees, having been 
> > redirected from index.jsp like this:
> > 
> > 
> > 
> > 
> > 
> > 
> > The problem is that before a user logs in, pressing the
> "Help" button
> > results in the error "HTTP Status 500 - No Context configured to
> > process this request" being displayed.
> > 
> > However after a user logs in (and presses the browser back button to 
> > return to the login page) the link works fine and the help is 
> > displayed OK.
> > 
> > 
> > Its as if the act of logging in sets up a context within which the 
> > actions work
> > 
> > 
> > 
> > The relevant bits of my struts-config looks like this:
> > 
> > 
> > 
> > 
> > 
> > 
> >   path="/login"
> > scope="request" type="com.expensys.expensyswt.struts.action.Login"
> > validate="true">
> >
> >  
> > 
> >   > type="com.expensys.expensyswt.struts.action.DisplayHelp"
> > validate="false" >
> >   
> >> path="/pages/help/HelpTopics.jsp" />
> >  
> > 
> > 
> > 
> > 
> > Does anyone know what is going on here?
> > Why does the "/help.do" action URL work after the user has logged in 
> > but not before?
> > Is it to do with the fact that no action has been called 
> > before the log in
> > takes place?
> > 
> > 
> > 
> > TIA - Adam
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Jim Barrows


> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 2:38 PM
> To: 'Struts Users Mailing List'
> Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status
> 500 - No Context configured to process this request
> 
> 
> More on this:
> 
> 
> Entering 

Try changing context to something else,  and see what happens.  I'm wondering if 
tomcat isn't
choking on context in the url before it sets up a context..
I doubt it.. but hey...

> http://localhost:8080/ExpenSysWT/help.do?context=LOGIN_PAGE (the
> correct path to the action) manually in the address field 
> produces the 500
> error when the login page is first displayed. After the user 
> has logged in
> it works fine.
> 
> I don't understand if its the Tomcat config or is the Struts 
> config. I would
> have thought that if its Tomcat it would never work.
> 
> 
> TIA - Adam
> 
> 
> 
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED] 
> Sent: 29 June 2004 20:03
> To: Struts Users Mailing List
> Subject: RE: NEWBIE: Wierd problem - Action sometimes 
> produces Status 500 -
> No Context configured to process this request
> 
> 
> This almost sounds like the action is getting executed at 
> all, but is rather
> a problem with the server setup.  Context usually refers to 
> everything up to
> and including the app name, so that would make sense if 
> there's a server
> configuration issue. If it is executing the action, then at 
> what point is
> the 500 being thrown?
> 
> > -Original Message-
> > From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 10:31 AM
> > To: 'Struts Users Mailing List'
> > Subject: NEWBIE: Wierd problem - Action sometimes produces
> > Status 500 -
> > No Context configured to process this request
> > 
> > 
> > Folks,
> > 
> > 
> > I have a strange problem that is confusing me:
> > 
> > I have a simple login page with a Help button defined like this:
> > 
> > " > border="0"
> > height="28" name="Image10" src="images/b_help_1.gif" 
> > width="32">
> > 
> > 
> > When pressed, the JavaScript displayHelp() method below is called:
> > 
> > function displayHelp(context)
> > {
> >  [snip]
> > 
> >   var url = ""  
> >   url += "?context=" + context;
> > 
> >  [snip]
> > 
> >   window.open(url, "HelpWindow", windowOptions);
> > }
> > 
> > 
> > 
> > This page is the first page that the user sees, having been
> > redirected from
> > index.jsp like this:
> > 
> > 
> > 
> > 
> > 
> > 
> > The problem is that before a user logs in, pressing the 
> "Help" button 
> > results in the error "HTTP Status 500 - No Context configured to 
> > process this request" being displayed.
> > 
> > However after a user logs in (and presses the browser back
> > button to return
> > to the login page) the link works fine and the help is displayed OK.
> > 
> > 
> > Its as if the act of logging in sets up a context within
> > which the actions
> > work
> > 
> > 
> > 
> > The relevant bits of my struts-config looks like this:
> > 
> > 
> >  
> > 
> > 
> > 
> >   path="/login" 
> > scope="request" type="com.expensys.expensyswt.struts.action.Login"
> > validate="true">
> >
> >  
> > 
> >   > type="com.expensys.expensyswt.struts.action.DisplayHelp"
> > validate="false" >
> >   
> >> path="/pages/help/HelpTopics.jsp" />
> >  
> > 
> > 
> > 
> > 
> > Does anyone know what is going on here?
> > Why does the "/help.do" action URL work after the user has
> > logged in but not
> > before? 
> > Is it to do with the fact that no action has been called 
> > before the log in
> > takes place?
> > 
> > 
> > 
> > TIA - Adam
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
More on this:


Entering http://localhost:8080/ExpenSysWT/help.do?context=LOGIN_PAGE (the
correct path to the action) manually in the address field produces the 500
error when the login page is first displayed. After the user has logged in
it works fine.

I don't understand if its the Tomcat config or is the Struts config. I would
have thought that if its Tomcat it would never work.


TIA - Adam




-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 20:03
To: Struts Users Mailing List
Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 -
No Context configured to process this request


This almost sounds like the action is getting executed at all, but is rather
a problem with the server setup.  Context usually refers to everything up to
and including the app name, so that would make sense if there's a server
configuration issue. If it is executing the action, then at what point is
the 500 being thrown?

> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 10:31 AM
> To: 'Struts Users Mailing List'
> Subject: NEWBIE: Wierd problem - Action sometimes produces
> Status 500 -
> No Context configured to process this request
> 
> 
> Folks,
> 
> 
> I have a strange problem that is confusing me:
> 
> I have a simple login page with a Help button defined like this:
> 
> " border="0"
> height="28" name="Image10" src="images/b_help_1.gif" 
> width="32">
> 
> 
> When pressed, the JavaScript displayHelp() method below is called:
> 
> function displayHelp(context)
> {
>  [snip]
> 
>   var url = ""  
>   url += "?context=" + context;
> 
>  [snip]
> 
>   window.open(url, "HelpWindow", windowOptions);
> }
> 
> 
> 
> This page is the first page that the user sees, having been
> redirected from
> index.jsp like this:
> 
> 
> 
> 
> 
> 
> The problem is that before a user logs in, pressing the "Help" button 
> results in the error "HTTP Status 500 - No Context configured to 
> process this request" being displayed.
> 
> However after a user logs in (and presses the browser back
> button to return
> to the login page) the link works fine and the help is displayed OK.
> 
> 
> Its as if the act of logging in sets up a context within
> which the actions
> work
> 
> 
> 
> The relevant bits of my struts-config looks like this:
> 
> 
>  
> 
> 
> 
>   scope="request" type="com.expensys.expensyswt.struts.action.Login"
> validate="true">
>
>  
> 
>   type="com.expensys.expensyswt.struts.action.DisplayHelp"
> validate="false" >
>   
>path="/pages/help/HelpTopics.jsp" />
>  
> 
> 
> 
> 
> Does anyone know what is going on here?
> Why does the "/help.do" action URL work after the user has
> logged in but not
> before? 
> Is it to do with the fact that no action has been called 
> before the log in
> takes place?
> 
> 
> 
> TIA - Adam
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Jim Barrows


> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 2:26 PM
> To: 'Struts Users Mailing List'
> Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status
> 500 - No Context configured to process this request
> 
> 
> Thanks Jim,
> 
> You are right - the action doesn't execute at all. I put a 
> breakpoint in the
> execute() method and its not called when I get the 500 error. 
> Tomcat also
> displays "MAPPING configuration error for request URI" which 
> confirms this.
> 
> But it works OK once the user has logged in, and this strikes 
> me as odd.
> What in the login process could be altering the way Tomcat behaves?

I don't know.  It shouldn't if you're not using container managed security.  I'm 
thinking
something got fat fingered in the tomcat setup.  I've seen the sysdeo plugin for 
eclipse screw
up a config, but it's never been a repeatable thing (can't confirm it wasn't a pebcak 
error either).
  
It's also interesting that it appears to be self healing.  Without being able to 
recreate this I don't think
I can help much more let me know what it turns out to be.

> 
> 
> TIA - Adam
> 
> 
> 
> 
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED] 
> Sent: 29 June 2004 20:03
> To: Struts Users Mailing List
> Subject: RE: NEWBIE: Wierd problem - Action sometimes 
> produces Status 500 -
> No Context configured to process this request
> 
> 
> This almost sounds like the action is getting executed at 
> all, but is rather
> a problem with the server setup.  Context usually refers to 
> everything up to
> and including the app name, so that would make sense if 
> there's a server
> configuration issue. If it is executing the action, then at 
> what point is
> the 500 being thrown?
> 
> > -Original Message-
> > From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 10:31 AM
> > To: 'Struts Users Mailing List'
> > Subject: NEWBIE: Wierd problem - Action sometimes produces
> > Status 500 -
> > No Context configured to process this request
> > 
> > 
> > Folks,
> > 
> > 
> > I have a strange problem that is confusing me:
> > 
> > I have a simple login page with a Help button defined like this:
> > 
> > " > border="0"
> > height="28" name="Image10" src="images/b_help_1.gif" 
> > width="32">
> > 
> > 
> > When pressed, the JavaScript displayHelp() method below is called:
> > 
> > function displayHelp(context)
> > {
> >  [snip]
> > 
> >   var url = ""  
> >   url += "?context=" + context;
> > 
> >  [snip]
> > 
> >   window.open(url, "HelpWindow", windowOptions);
> > }
> > 
> > 
> > 
> > This page is the first page that the user sees, having been
> > redirected from
> > index.jsp like this:
> > 
> > 
> > 
> > 
> > 
> > 
> > The problem is that before a user logs in, pressing the 
> "Help" button 
> > results in the error "HTTP Status 500 - No Context configured to 
> > process this request" being displayed.
> > 
> > However after a user logs in (and presses the browser back
> > button to return
> > to the login page) the link works fine and the help is displayed OK.
> > 
> > 
> > Its as if the act of logging in sets up a context within
> > which the actions
> > work
> > 
> > 
> > 
> > The relevant bits of my struts-config looks like this:
> > 
> > 
> >  
> > 
> > 
> > 
> >   path="/login" 
> > scope="request" type="com.expensys.expensyswt.struts.action.Login"
> > validate="true">
> >
> >  
> > 
> >   > type="com.expensys.expensyswt.struts.action.DisplayHelp"
> > validate="false" >
> >   
> >> path="/pages/help/HelpTopics.jsp" />
> >  
> > 
> > 
> > 
> > 
> > Does anyone know what is going on here?
> > Why does the "/help.do" action URL work after the user has
> > logged in but not
> > before? 
> > Is it to do with the fact that no action has been called 
> > before the log in
> > takes place?
> > 
> > 
> > 
> > TIA - Adam
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
Thanks Barett,


Its true that no action runs. Tomcat displays "MAPPING configuration error
for request URI" when the 500 error is generated. 
But why does it work once the user has logged in?

If I change the initial redirect to "/login" it fails with the following
displayed in the browser window:

javax.servlet.ServletException: Cannot create redirect URL:
java.net.MalformedURLException: Cannot retrieve ActionForward named /login
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:91)
  [snip]


Hmm, guess I will have to look at the Tomcat config. Its odd that it starts
working OK when the user is logged in.


TIA - Adam



-Original Message-
From: Barett McGavock [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 20:17
To: 'Struts Users Mailing List'
Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 -
No Context configured to process this request


I think you're on the right track with your idea that no action has run
first. Usually in Struts an action should run before the JSP is seen.

Does it work if you use the following tag on your index.jsp instead?



B

> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 10:31 AM
> To: 'Struts Users Mailing List'
> Subject: NEWBIE: Wierd problem - Action sometimes produces 
> Status 500 - No Context configured to process this request
> 
> 
> Folks,
> 
> 
> I have a strange problem that is confusing me:
> 
> I have a simple login page with a Help button defined like this:
> 
> " border="0" height="28" name="Image10" 
> src="images/b_help_1.gif" width="32">
> 
> 
> When pressed, the JavaScript displayHelp() method below is called:
> 
> function displayHelp(context)
> {
>  [snip]
> 
>   var url = ""  
>   url += "?context=" + context;
> 
>  [snip]
> 
>   window.open(url, "HelpWindow", windowOptions);
> }
> 
> 
> 
> This page is the first page that the user sees, having been
> redirected from index.jsp like this:
> 
> 
> 
> 
> 
> 
> The problem is that before a user logs in, pressing the
> "Help" button results in the error "HTTP Status 500 - No 
> Context configured to process this request" being displayed. 
> 
> However after a user logs in (and presses the browser back
> button to return to the login page) the link works fine and 
> the help is displayed OK.
> 
> 
> Its as if the act of logging in sets up a context within
> which the actions work
> 
> 
> 
> The relevant bits of my struts-config looks like this:
> 
> 
> 
> 
> 
> 
>   path="/login" scope="request" 
> type="com.expensys.expensyswt.struts.action.Login"
> validate="true">
>
>  
> 
>   type="com.expensys.expensyswt.struts.action.DisplayHelp" 
> validate="false" >
>   
>path="/pages/help/HelpTopics.jsp" />   
> 
> 
> 
> Does anyone know what is going on here?
> Why does the "/help.do" action URL work after the user has
> logged in but not before? 
> Is it to do with the fact that no action has been called 
> before the log in takes place?
> 
> 
> 
> TIA - Adam
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
Thanks Jim,

You are right - the action doesn't execute at all. I put a breakpoint in the
execute() method and its not called when I get the 500 error. Tomcat also
displays "MAPPING configuration error for request URI" which confirms this.

But it works OK once the user has logged in, and this strikes me as odd.
What in the login process could be altering the way Tomcat behaves?


TIA - Adam





-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 20:03
To: Struts Users Mailing List
Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 -
No Context configured to process this request


This almost sounds like the action is getting executed at all, but is rather
a problem with the server setup.  Context usually refers to everything up to
and including the app name, so that would make sense if there's a server
configuration issue. If it is executing the action, then at what point is
the 500 being thrown?

> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 10:31 AM
> To: 'Struts Users Mailing List'
> Subject: NEWBIE: Wierd problem - Action sometimes produces
> Status 500 -
> No Context configured to process this request
> 
> 
> Folks,
> 
> 
> I have a strange problem that is confusing me:
> 
> I have a simple login page with a Help button defined like this:
> 
> " border="0"
> height="28" name="Image10" src="images/b_help_1.gif" 
> width="32">
> 
> 
> When pressed, the JavaScript displayHelp() method below is called:
> 
> function displayHelp(context)
> {
>  [snip]
> 
>   var url = ""  
>   url += "?context=" + context;
> 
>  [snip]
> 
>   window.open(url, "HelpWindow", windowOptions);
> }
> 
> 
> 
> This page is the first page that the user sees, having been
> redirected from
> index.jsp like this:
> 
> 
> 
> 
> 
> 
> The problem is that before a user logs in, pressing the "Help" button 
> results in the error "HTTP Status 500 - No Context configured to 
> process this request" being displayed.
> 
> However after a user logs in (and presses the browser back
> button to return
> to the login page) the link works fine and the help is displayed OK.
> 
> 
> Its as if the act of logging in sets up a context within
> which the actions
> work
> 
> 
> 
> The relevant bits of my struts-config looks like this:
> 
> 
>  
> 
> 
> 
>   scope="request" type="com.expensys.expensyswt.struts.action.Login"
> validate="true">
>
>  
> 
>   type="com.expensys.expensyswt.struts.action.DisplayHelp"
> validate="false" >
>   
>path="/pages/help/HelpTopics.jsp" />
>  
> 
> 
> 
> 
> Does anyone know what is going on here?
> Why does the "/help.do" action URL work after the user has
> logged in but not
> before? 
> Is it to do with the fact that no action has been called 
> before the log in
> takes place?
> 
> 
> 
> TIA - Adam
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Storing Birth Date

2004-06-29 Thread Jim Barrows


> -Original Message-
> From: Jorge Salido [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 1:01 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Storing Birth Date
> 
> 


stuff I agree with


> 
> Other than that, how you store the date is your call. I usually prefer
> handling dates as numeric values, and using a MMDD format, so they
> can easily be sorted. But that's just me. If you rely on any tools for
> persistence, use what will suit them. If you depend on the database
> for date operations, use whatever date format the db provides
> natively. In any case, it depends more in which one will prove to be
> more comfortable for you in the long run.

My experience differs from Jorge.
A generic date should do well, and still give you all the date functions.  The only 
problem with storing dates as a number is doing date arithmetic ( say sending an email 
to all people whose birthday is 5 days away) and things like that.  It's not a 
tremendous burden to overcome, it's just every time I run across dates stored that 
way, I always end up writing way more code then I need to.  

> 
> BTW, on the client side, I highly recommend you to try this calendar
> picker script (javascript)
> http://dynarch.com:1979/mishoo/calendar.epl

On that note, remember that one purpose of MVC is to seperate how your data looks to 
the user, and how it is stored.  The action class is in charge of converting from the 
presentation layer to the persistance/business layers.  So you can use any 
represnetation makes sense for your users.

> 
> Jorge
> 
> 
> On Sat, 26 Jun 2004 19:24:23 +0800, Eddie Yan 
> <[EMAIL PROTECTED]> wrote:
>  
> > Anyone know what is the best practices to store a person
> > date of birth ? How should we design our detail object, JSP 
> and database
> > in such way we don't have a messy approached to populate the day,
> > month and year in Action class to be able to display in JSP 
> during UPDATE
> > process.
> > 
> > Currently, I have a JSP with combo box for day, month and year.
> > Using mySQL db, I set the dateOfBirth column to TIMESTAMP.
> > (Some told me to use DATE for this column).
> > 
> > Obviously TIMESTAMP have the limitation since date of birth before
> > Jan 1 1970 will be stored as 000. Know any workaround
> > to this one ?
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Storing Birth Date

2004-06-29 Thread Jorge Salido
I would certainly not use timestamps. A timestamp is certainly useful
when you want to record current time (like a snapshot), but not past
dates. And even then be aware of timestamps... And anyway, since
timestamp also contains time data, it is not being efficient (at least
by that standard). Cetainly, you could create some classes to
artificially handle timestamps and support other dates, but why
bother? Sound very improductive and problematic than what you can get
out of it...

Other than that, how you store the date is your call. I usually prefer
handling dates as numeric values, and using a MMDD format, so they
can easily be sorted. But that's just me. If you rely on any tools for
persistence, use what will suit them. If you depend on the database
for date operations, use whatever date format the db provides
natively. In any case, it depends more in which one will prove to be
more comfortable for you in the long run.

BTW, on the client side, I highly recommend you to try this calendar
picker script (javascript)
http://dynarch.com:1979/mishoo/calendar.epl

Jorge


On Sat, 26 Jun 2004 19:24:23 +0800, Eddie Yan <[EMAIL PROTECTED]> wrote:
 
> Anyone know what is the best practices to store a person
> date of birth ? How should we design our detail object, JSP and database
> in such way we don't have a messy approached to populate the day,
> month and year in Action class to be able to display in JSP during UPDATE
> process.
> 
> Currently, I have a JSP with combo box for day, month and year.
> Using mySQL db, I set the dateOfBirth column to TIMESTAMP.
> (Some told me to use DATE for this column).
> 
> Obviously TIMESTAMP have the limitation since date of birth before
> Jan 1 1970 will be stored as 000. Know any workaround
> to this one ?
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Jim Barrows
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:28 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> No, I mean I have a user1Form, and user2Form.
> They are identical forms as we are using Tiles to display them.

Validator validates on form name... if they are the same form (ie same class) and 
different names,
I don't think you can with 1.1.  If you're using tiles to display the same form, in 2+ 
different places on the same jsp page, you don't necessarily have to have seperate 
form names for each ( javascript may have issues with this though, I don't do enough 
javascript to know).

You might want to look at how ValidatorForms validate method works, and override it in 
your forms to look 
at the correct validation name.   That's a bit of a hack though.

> 
> 
> -Original Message-
> From: Jim Barrows [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:21 PM
> To: Struts Users Mailing List
> Subject: RE: Using 1 Validator definition for 2 different forms?
> 
> 
> If you're talking about masks, then you can use globals.  You 
> could also
> create your own custom validator, iirc 1.2 will have some inheritance
> features, but not sure what scope yet since I'm not using 1.2.
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 12:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: Using 1 Validator definition for 2 different forms?
> > 
> > 
> > How can I Use 1 Validator definition for 2 different forms?
> > 
> > 
> > ---
> > > Thanks...
> > > Mick Knutson
> > > 
> > > 525 Market Street, SF, CA  94103
> > > (415) 222-1020
> > > [EMAIL PROTECTED]
> > > MAC A0103-223
> > ---
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Mick . Knutson
No, I mean I have a user1Form, and user2Form.
They are identical forms as we are using Tiles to display them.


-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 12:21 PM
To: Struts Users Mailing List
Subject: RE: Using 1 Validator definition for 2 different forms?


If you're talking about masks, then you can use globals.  You could also
create your own custom validator, iirc 1.2 will have some inheritance
features, but not sure what scope yet since I'm not using 1.2.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:12 PM
> To: [EMAIL PROTECTED]
> Subject: Using 1 Validator definition for 2 different forms?
> 
> 
> How can I Use 1 Validator definition for 2 different forms?
> 
> 
> ---
> > Thanks...
> > Mick Knutson
> > 
> > 525 Market Street, SF, CA  94103
> > (415) 222-1020
> > [EMAIL PROTECTED]
> > MAC A0103-223
> ---
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Mick . Knutson
How can I Use 1 Validator definition for 2 different forms?


---
> Thanks...
> Mick Knutson
> 
> 525 Market Street, SF, CA  94103
> (415) 222-1020
> [EMAIL PROTECTED]
> MAC A0103-223
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Jim Barrows
If you're talking about masks, then you can use globals.  You could also create your 
own custom validator, iirc 1.2 will have some inheritance features, but not sure what 
scope yet since I'm not using 1.2.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 12:12 PM
> To: [EMAIL PROTECTED]
> Subject: Using 1 Validator definition for 2 different forms?
> 
> 
> How can I Use 1 Validator definition for 2 different forms?
> 
> 
> ---
> > Thanks...
> > Mick Knutson
> > 
> > 525 Market Street, SF, CA  94103
> > (415) 222-1020
> > [EMAIL PROTECTED]
> > MAC A0103-223
> ---
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using 1 Validator definition for 2 different forms?

2004-06-29 Thread Mick . Knutson
How can I Use 1 Validator definition for 2 different forms?


---
> Thanks...
> Mick Knutson
> 
> 525 Market Street, SF, CA  94103
> (415) 222-1020
> [EMAIL PROTECTED]
> MAC A0103-223
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Barett McGavock
I think you're on the right track with your idea that no action has run
first. Usually in Struts an action should run before the JSP is seen.

Does it work if you use the following tag on your index.jsp instead?



B

> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 29, 2004 10:31 AM
> To: 'Struts Users Mailing List'
> Subject: NEWBIE: Wierd problem - Action sometimes produces 
> Status 500 - No Context configured to process this request
> 
> 
> Folks,
> 
> 
> I have a strange problem that is confusing me:
> 
> I have a simple login page with a Help button defined like this:
> 
> " border="0" height="28" name="Image10" 
> src="images/b_help_1.gif" width="32">
> 
> 
> When pressed, the JavaScript displayHelp() method below is called:
> 
> function displayHelp(context)
> {
>  [snip]
> 
>   var url = ""  
>   url += "?context=" + context;
> 
>  [snip]
> 
>   window.open(url, "HelpWindow", windowOptions);
> }
> 
> 
> 
> This page is the first page that the user sees, having been 
> redirected from index.jsp like this:
> 
> 
> 
> 
> 
> 
> The problem is that before a user logs in, pressing the 
> "Help" button results in the error "HTTP Status 500 - No 
> Context configured to process this request" being displayed. 
> 
> However after a user logs in (and presses the browser back 
> button to return to the login page) the link works fine and 
> the help is displayed OK.
> 
> 
> Its as if the act of logging in sets up a context within 
> which the actions work
> 
> 
> 
> The relevant bits of my struts-config looks like this:
> 
> 
>  
> 
> 
> 
>   path="/login" scope="request" 
> type="com.expensys.expensyswt.struts.action.Login"
> validate="true">
>
>  
> 
>   type="com.expensys.expensyswt.struts.action.DisplayHelp" 
> validate="false" >
>   
>path="/pages/help/HelpTopics.jsp" />   
> 
> 
> 
> Does anyone know what is going on here?
> Why does the "/help.do" action URL work after the user has 
> logged in but not before? 
> Is it to do with the fact that no action has been called 
> before the log in takes place?
> 
> 
> 
> TIA - Adam
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Jim Barrows
This almost sounds like the action is getting executed at all, but is rather a problem 
with the server setup.  Context usually refers to everything up to and including the 
app name, so that would make sense if there's a server configuration issue.
If it is executing the action, then at what point is the 500 being thrown?

> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 10:31 AM
> To: 'Struts Users Mailing List'
> Subject: NEWBIE: Wierd problem - Action sometimes produces 
> Status 500 -
> No Context configured to process this request
> 
> 
> Folks,
> 
> 
> I have a strange problem that is confusing me:
> 
> I have a simple login page with a Help button defined like this:
> 
> " border="0"
> height="28" name="Image10" src="images/b_help_1.gif" 
> width="32">
> 
> 
> When pressed, the JavaScript displayHelp() method below is called:
> 
> function displayHelp(context)
> {
>  [snip]
> 
>   var url = ""  
>   url += "?context=" + context;
> 
>  [snip]
> 
>   window.open(url, "HelpWindow", windowOptions);
> }
> 
> 
> 
> This page is the first page that the user sees, having been 
> redirected from
> index.jsp like this:
> 
> 
> 
> 
> 
> 
> The problem is that before a user logs in, pressing the "Help" button
> results in the error "HTTP Status 500 - No Context configured 
> to process
> this request" being displayed. 
> 
> However after a user logs in (and presses the browser back 
> button to return
> to the login page) the link works fine and the help is displayed OK.
> 
> 
> Its as if the act of logging in sets up a context within 
> which the actions
> work
> 
> 
> 
> The relevant bits of my struts-config looks like this:
> 
> 
> 
> 
> 
> 
>   scope="request" type="com.expensys.expensyswt.struts.action.Login"
> validate="true">
>
>  
> 
>   type="com.expensys.expensyswt.struts.action.DisplayHelp" 
> validate="false" >
>   
>path="/pages/help/HelpTopics.jsp" />
>  
> 
> 
> 
> 
> Does anyone know what is going on here?
> Why does the "/help.do" action URL work after the user has 
> logged in but not
> before? 
> Is it to do with the fact that no action has been called 
> before the log in
> takes place?
> 
> 
> 
> TIA - Adam
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request

2004-06-29 Thread Adam Lipscombe
Folks,


I have a strange problem that is confusing me:

I have a simple login page with a Help button defined like this:

"


When pressed, the JavaScript displayHelp() method below is called:

function displayHelp(context)
{
 [snip]

  var url = ""  
  url += "?context=" + context;

 [snip]

  window.open(url, "HelpWindow", windowOptions);
}



This page is the first page that the user sees, having been redirected from
index.jsp like this:






The problem is that before a user logs in, pressing the "Help" button
results in the error "HTTP Status 500 - No Context configured to process
this request" being displayed. 

However after a user logs in (and presses the browser back button to return
to the login page) the link works fine and the help is displayed OK.


Its as if the act of logging in sets up a context within which the actions
work



The relevant bits of my struts-config looks like this:






 
   
 

 
  
  
 




Does anyone know what is going on here?
Why does the "/help.do" action URL work after the user has logged in but not
before? 
Is it to do with the fact that no action has been called before the log in
takes place?



TIA - Adam



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts Validator and JCIFS issue while working remotely over VPN

2004-06-29 Thread Kevin Hutson
Perhaps someone can tell me if I'm crazy here.

I have a web application using Struts 1.1. It also utilizes JCIFS 0.9.2 for NTLM 
authentication and the Struts validator among other things. I deploy to Tomcat 5.0.19.

The app runs great. However, when I try to run and debug my app while remotely 
connected through my VPN, 2 things happen

1 - JCIFS cannot see my NT domain (UnknownHostException). Fine, I can disable JCIFS 
pretty eaily and fake the user login

2 - the Struts validator doesn't work. What I mean by that is that a form submit fails 
and the validator seems to think I didn't fill out the required fields.

This behavior is very perplexing as it does not occur when I am connected to our LAN 
directly while in the office. 

Has anyone seen this strange behavior before and if so, please offer any suggestions.

These 2 things seem to be related since they can be reproduced under similiar 
circumstances.

My development laptop is a Dell Latitude. Often I use a Linksys 802.11b card but this 
can also be reproduced with a normal ethernet card. My OS is Win2K Pro SP4.

Dev environment is Eclipse 2.1.2 win32 with MyEclipse 2.7.0. I can also reproduce this 
with Eclipse 3 and a newer version of MyEclipse.

I have tried 2 versions of JCIFS (0.8.2 and 0.9.2).

Thanks for any information you can provide,

Kevin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to populate fields in a form with data retrieved from a database table...

2004-06-29 Thread Research labs
Thank you very much for your detailed and prompt
response.

Yes I "want to show a user a form with data 
pre-filled based on the database data?"  In Oracle
form means interface whereas in Struts it is a bit
ambiguous.  I will say interface or jsp next time.

More to the point, I followed your instructions to the
letter; as a result of this, I have been able to
achieve my objective - to show a user a form with data

pre-filled based on the database data.

Thank you very much indeed.

Ola Oke.


--- Joe Germuska <[EMAIL PROTECTED]> wrote: > At 1:36
PM +0100 6/28/04, Research labs wrote:
> >//***Please note that I am using DispatchAction not
> >Action***
> >
> >Please tell me how to populate fields in a form
> with
> >data retrieved from a database table.
> >Please note that I am particular about how to do
> this
> >using Struts tags etc.
> 
> Are you saying that you want to show a user a form
> with data 
> pre-filled based on the database data?
> 
> The way to do this is to have an instance of a form
> bean in the 
> action before you forward to the view, populate its
> values, and put 
> it in the request or session under the attribute
> name where the 
> html:form tag looks for it.
> 
> In a formal sense, Struts doesn't make this very
> easy, because the 
> API for requesting an instance of a form bean is not
> quite engineered 
> for it.  However, if you just want it to work, you
> could simply 
> instantiate your own form bean using a constructor
> and then put it 
> into scope.  (More on the "right way" to do
> this--one which also 
> supports DynaForms-- in a moment.)  The attribute
> name is the same 
> name you give the form bean in the action mapping
> and form-bean 
> configurations in the struts-config.xml file, and of
> course, you 
> should use the same scope that you use in your
> action-mapping.  That 
> is, for something like this:
> 
>   type="webui.PreferencesController"
>  parameter="updatePublicationDetails"
>  name="updatePublicationDetailsForm"
>  scope="request"
>  validate="true">
>   path=".EditYourPublications" />
> 
> 
> in your action, you would do:
> 
> MyActionForm viewForm = new MyActionForm();
> // populate bean here...
> request.setAttribute("updatePublicationDetailsForm",
> viewForm);
> 
> If you need a DynaForm, then you need Struts to give
> it to you, 
> because there's no simple constructor.  Depending on
> the version of 
> Struts you're using, there are one or two static
> methods in 
> org.apache.struts.util.RequestUtils called
> "createActionForm(...)" 
> If you look at the JavaDoc for RequestUtils and
> Action, you should be 
> able to "chart a path" by which you can use the
> Action to get the 
> objects you need to pass in as parameters to
> createActionForm(...) 
> Once you get the form bean, you'd do the same --
> populate its 
> properties and put it in request or session scope.
> 
> Of course, if you happen to be using session-scoped
> forms, you may 
> find that the ActionForm which is passed into your
> execute method is 
> the same type that you want in the next view, in
> which case you can 
> set properties and even take it for granted that
> it's already in 
> session scope.
> 
> There are various ideas about making this more
> straightforward in the 
> future which have been discussed thoroughly on both
> the dev and user 
> lists, but hopefully this addresses your immediate
> needs.
> 
> Joe
> 
> -- 
> Joe Germuska
> [EMAIL PROTECTED]  
> http://blog.germuska.com
> "In fact, when I die, if I don't hear 'A Love
> Supreme,' I'll turn 
> back; I'll know I'm in the wrong place."
> - Carlos Santana
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  





___ALL-NEW Yahoo! Messenger - 
so many all-new ways to express yourself http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Append parameter value using html:link

2004-06-29 Thread Bill Siggelkow
Hey Dude ... try setting 'transaction="true"' on the html:link tag -- it 
should handle the token for you.

Toll, Marvin (M.) wrote:
Per the following listing - I am appending a parameter value to a URL.
The "href" version works fine but would like to perform the equivalent
using the "html:link" tag.
The "html:link" version results in:
/ReferenceWeb/acknowledgePost.do?org.apache.struts.taglib.html.TOKEN=<%=
token%>  

Any help with syntax is appreciated.
--- Begin Listing ---
<%
String token =
(String)
request.getSession().getAttribute(org.apache.struts.Globals.TRANSACTION_
TOKEN_KEY);
%>











-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Append parameter value using html:link

2004-06-29 Thread Toll, Marvin \(M.\)

Per the following listing - I am appending a parameter value to a URL.
The "href" version works fine but would like to perform the equivalent
using the "html:link" tag.

The "html:link" version results in:

/ReferenceWeb/acknowledgePost.do?org.apache.struts.taglib.html.TOKEN=<%=
token%>  

Any help with syntax is appreciated.

--- Begin Listing ---

<%
String token =
(String)
request.getSession().getAttribute(org.apache.struts.Globals.TRANSACTION_
TOKEN_KEY);
%>












Re: Struts, Dreamweaver, and JSP

2004-06-29 Thread Mark Lowe
If you want to have valid accessible html why use dreamweaver? Seems a 
contradiction in terms. I'd be more concerned with the ropey generated 
code than the html rendered by struts tags.

On 29 Jun 2004, at 17:43, McCormack, Chris wrote:
use wget -r http://www.site.co.uk to save your html to disk then run 
the validator over the saved files.

Chris
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 16:40
To: Struts Users Mailing List
Subject: RE: Struts, Dreamweaver, and JSP

-Original Message-
From: josh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 8:24 AM
To: Struts Users Mailing List
Subject: RE: Struts, Dreamweaver, and JSP
On Tue, 2004-06-29 at 10:13, McCormack, Chris wrote:
Are there any tools that allow one to validate the html
that is generated by the jsp/struts tags?
http://validator.w3.org/
Ok, perhaps I didn't phrase that correctly.  Are there any tools that
allow one to validate a JSP.  I know that the resulting HTML
depends on
the underlying java code and so validation is a problem, but I am
looking for something to make this easier.  I thought that
perhaps there
was a better way than having to click through the app, saving the HTML
source for each page, then running through a standard validator.  Or
maybe this is just wishful thinking.
I typically validate the surrounding html, and hope that struts/jstl 
is generating good html. If it's not, then there is probably little I 
can do anyway.   I have also been known to employ a web crawling tool 
to crawl the site and save the pages to disk and then run validation 
on those pages.  It's a shell script I wrote though.





hth
Chris
-Original Message-
From: josh [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 16:11
To: Struts Users Mailing List
Subject: Struts, Dreamweaver, and JSP
I am resposible for the visual aspect of a number of struts based
applications and I was wondering if anyone knows of any way
to deal with
struts tag standards and jsp tag standards in dreamweaver.
I also have
to do validation to ensure the apps are compliant and
accessible.  Are
there any tools that allow one to validate the html that is
generated by
the jsp/struts tags?
josh
***
***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please
notify the sender immediately and delete this
e-mail from your system.
You must take no action based on this, nor must
you copy or disclose it or any part of its contents
to any person or organisation.
Statements and opinions contained in this email may
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Joshua Cronemeyer
Developer
accessKansas - a service of the Information Network of Kansas, Inc.
www.accesskansas.org 
785-296-2816 (phone)
785-296-5563 (fax)
[EMAIL PROTECTED] 
***
CONFIDENTIALITY NOTICE:
This E-mail and any attachments are confidential.  If you are not the
intended recipient, you do not have permission to disclose, copy,
distribute, or open any attachments.  If you have received this E-mail
in
error, please notify us immediately by returning it to the sender and
delete
this copy from your system.
Thank you.
accessKansas
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please
notify the sender immediately and delete this
e-mail from your system.
You must take no action based on this, nor must
you copy or disclose it or any part of its contents
to any person or organisation.
Statements and opinions contained in this email may
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.

-
To unsubscribe, e-mail: [EMAIL

RE: Struts, Dreamweaver, and JSP

2004-06-29 Thread McCormack, Chris
use wget -r http://www.site.co.uk to save your html to disk then run the validator 
over the saved files.

Chris

-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 16:40
To: Struts Users Mailing List
Subject: RE: Struts, Dreamweaver, and JSP


> -Original Message-
> From: josh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 8:24 AM
> To: Struts Users Mailing List
> Subject: RE: Struts, Dreamweaver, and JSP
> 
> 
> On Tue, 2004-06-29 at 10:13, McCormack, Chris wrote:
> > > Are there any tools that allow one to validate the html 
> that is generated by the jsp/struts tags?
> > http://validator.w3.org/
> 
> Ok, perhaps I didn't phrase that correctly.  Are there any tools that
> allow one to validate a JSP.  I know that the resulting HTML 
> depends on
> the underlying java code and so validation is a problem, but I am
> looking for something to make this easier.  I thought that 
> perhaps there
> was a better way than having to click through the app, saving the HTML
> source for each page, then running through a standard validator.  Or
> maybe this is just wishful thinking.

I typically validate the surrounding html, and hope that struts/jstl is generating 
good html. If it's not, then there is probably little I can do anyway.   I have also 
been known to employ a web crawling tool to crawl the site and save the pages to disk 
and then run validation on those pages.  It's a shell script I wrote though.  


> 
> 
> 
> 
> 
> > hth
> > Chris
> > 
> > -Original Message-
> > From: josh [mailto:[EMAIL PROTECTED]
> > Sent: 29 June 2004 16:11
> > To: Struts Users Mailing List
> > Subject: Struts, Dreamweaver, and JSP
> > 
> > 
> > I am resposible for the visual aspect of a number of struts based
> > applications and I was wondering if anyone knows of any way 
> to deal with
> > struts tag standards and jsp tag standards in dreamweaver.  
> I also have
> > to do validation to ensure the apps are compliant and 
> accessible.  Are
> > there any tools that allow one to validate the html that is 
> generated by
> > the jsp/struts tags?
> > 
> > 
> > josh
> > ***
> > 
> > ***
> > This e-mail and its attachments are confidential
> > and are intended for the above named recipient
> > only. If this has come to you in error, please 
> > notify the sender immediately and delete this 
> > e-mail from your system.
> > You must take no action based on this, nor must 
> > you copy or disclose it or any part of its contents 
> > to any person or organisation.
> > Statements and opinions contained in this email may 
> > not necessarily represent those of Littlewoods.
> > Please note that e-mail communications may be monitored.
> > The registered office of Littlewoods Limited and its
> > subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
> > Registered number of Littlewoods Limited is 262152.
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> -- 
> Joshua Cronemeyer
> Developer
> accessKansas - a service of the Information Network of Kansas, Inc.
> www.accesskansas.org 
> 785-296-2816 (phone)
> 785-296-5563 (fax)
> [EMAIL PROTECTED] 
> 
> ***
> CONFIDENTIALITY NOTICE:
> This E-mail and any attachments are confidential.  If you are not the
> intended recipient, you do not have permission to disclose, copy,
> distribute, or open any attachments.  If you have received this E-mail
> in
> error, please notify us immediately by returning it to the sender and
> delete
> this copy from your system.
> 
> Thank you.
> accessKansas
> ***
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



RE: Struts, Dreamweaver, and JSP

2004-06-29 Thread Jim Barrows
> -Original Message-
> From: josh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 8:24 AM
> To: Struts Users Mailing List
> Subject: RE: Struts, Dreamweaver, and JSP
> 
> 
> On Tue, 2004-06-29 at 10:13, McCormack, Chris wrote:
> > > Are there any tools that allow one to validate the html 
> that is generated by the jsp/struts tags?
> > http://validator.w3.org/
> 
> Ok, perhaps I didn't phrase that correctly.  Are there any tools that
> allow one to validate a JSP.  I know that the resulting HTML 
> depends on
> the underlying java code and so validation is a problem, but I am
> looking for something to make this easier.  I thought that 
> perhaps there
> was a better way than having to click through the app, saving the HTML
> source for each page, then running through a standard validator.  Or
> maybe this is just wishful thinking.

I typically validate the surrounding html, and hope that struts/jstl is generating 
good html. If it's not, then there is probably little I can do anyway.   I have also 
been known to employ a web crawling tool to crawl the site and save the pages to disk 
and then run validation on those pages.  It's a shell script I wrote though.  


> 
> 
> 
> 
> 
> > hth
> > Chris
> > 
> > -Original Message-
> > From: josh [mailto:[EMAIL PROTECTED]
> > Sent: 29 June 2004 16:11
> > To: Struts Users Mailing List
> > Subject: Struts, Dreamweaver, and JSP
> > 
> > 
> > I am resposible for the visual aspect of a number of struts based
> > applications and I was wondering if anyone knows of any way 
> to deal with
> > struts tag standards and jsp tag standards in dreamweaver.  
> I also have
> > to do validation to ensure the apps are compliant and 
> accessible.  Are
> > there any tools that allow one to validate the html that is 
> generated by
> > the jsp/struts tags?
> > 
> > 
> > josh
> > ***
> > 
> > ***
> > This e-mail and its attachments are confidential
> > and are intended for the above named recipient
> > only. If this has come to you in error, please 
> > notify the sender immediately and delete this 
> > e-mail from your system.
> > You must take no action based on this, nor must 
> > you copy or disclose it or any part of its contents 
> > to any person or organisation.
> > Statements and opinions contained in this email may 
> > not necessarily represent those of Littlewoods.
> > Please note that e-mail communications may be monitored.
> > The registered office of Littlewoods Limited and its
> > subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
> > Registered number of Littlewoods Limited is 262152.
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> -- 
> Joshua Cronemeyer
> Developer
> accessKansas - a service of the Information Network of Kansas, Inc.
> www.accesskansas.org 
> 785-296-2816 (phone)
> 785-296-5563 (fax)
> [EMAIL PROTECTED] 
> 
> ***
> CONFIDENTIALITY NOTICE:
> This E-mail and any attachments are confidential.  If you are not the
> intended recipient, you do not have permission to disclose, copy,
> distribute, or open any attachments.  If you have received this E-mail
> in
> error, please notify us immediately by returning it to the sender and
> delete
> this copy from your system.
> 
> Thank you.
> accessKansas
> ***
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JavaScript error

2004-06-29 Thread Jim Barrows
My first instinct is to ask why you changed the validation_rules.xml file at all.  You 
shouldn't have had
to change that file, except to add some functionality.  I would suggest going back to 
the original validation-rules.xml file and seeing if that helps.


> -Original Message-
> From: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 2:21 AM
> To: [EMAIL PROTECTED]
> Subject: Javascript error
> 
> 
> Hi,
> 
>   I am a new user for this group,.
>   I am using struts1.1 for my project, Am having some trouble with
> struts1.1 validator framework.
>   I have changed my validation.xml and validation-rules.xml to
> reflect my formbean  and its properties.
>   Struts also generates javascript in JSP, but once I click on
> submit button " javascript error is thrown.
> 
>   This is the error : 'required is undefined'
> 
>   this in validateRequired method in validation_rules.xml file.
> 
>   Am I doing something wrong here... Please help.
> 
>   Thanks
>   Guna
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Converting Java Code in JSP to JSTL

2004-06-29 Thread Caroline Jen
Thank you for helping me to learn different ways to
construct a web link while passing a number of
parameters along with it.

Those hyperlinks forward a request and parameters to
another servlet action.  In this servlet action, do I
receive those parameters in an usualy way?

String sort = request.getParameter("sort");
String order = request.getParameter("order");
String offset = request.getParameter("offset");

Different Ways of Constructing a Hyperlink:

 
  
  
  
 

 
  Click Me
 

Depending on how your Actions are setup you may be
able to do this:


 Click Me


James Mitchell gave this example a few weeks ago:

 
 
 
 
 ...later down the page...
 
 
  
 


--- Ron Grabowski <[EMAIL PROTECTED]> wrote:
> > 1. what is the JSTL equivalent of the <%else {%>
> ...
> > <%}%> tag?
> 
> The c:choose, c:when, and c:otherwise tags:
> 
>  http://tinyurl.com/2kqlz
> 
> > 2. how to write a  tag to replace
> the
> >  tag while passing a number of
> > parameters?
> 
> You could do this:
> 
>  
>   
>   
>   
>  
> 
>  
>   Click Me
>  
> 
> Depending on how your Actions are setup you may be
> able to do this:
> 
> 
>  Click Me
> 
> 
> James Mitchell gave this example a few weeks ago:
> 
> >  class="java.util.HashMap"/>
> >  value="${dto.id}"/>
> >  value="edit"/>
> > 
> > ...later down the page...
> > 
> >   > name="myLinkParams">
> >  
> >  
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts, Dreamweaver, and JSP

2004-06-29 Thread josh
On Tue, 2004-06-29 at 10:13, McCormack, Chris wrote:
> > Are there any tools that allow one to validate the html that is generated by the 
> > jsp/struts tags?
> http://validator.w3.org/

Ok, perhaps I didn't phrase that correctly.  Are there any tools that
allow one to validate a JSP.  I know that the resulting HTML depends on
the underlying java code and so validation is a problem, but I am
looking for something to make this easier.  I thought that perhaps there
was a better way than having to click through the app, saving the HTML
source for each page, then running through a standard validator.  Or
maybe this is just wishful thinking.





> hth
> Chris
> 
> -Original Message-
> From: josh [mailto:[EMAIL PROTECTED]
> Sent: 29 June 2004 16:11
> To: Struts Users Mailing List
> Subject: Struts, Dreamweaver, and JSP
> 
> 
> I am resposible for the visual aspect of a number of struts based
> applications and I was wondering if anyone knows of any way to deal with
> struts tag standards and jsp tag standards in dreamweaver.  I also have
> to do validation to ensure the apps are compliant and accessible.  Are
> there any tools that allow one to validate the html that is generated by
> the jsp/struts tags?
> 
> 
> josh
> ***
> 
> ***
> This e-mail and its attachments are confidential
> and are intended for the above named recipient
> only. If this has come to you in error, please 
> notify the sender immediately and delete this 
> e-mail from your system.
> You must take no action based on this, nor must 
> you copy or disclose it or any part of its contents 
> to any person or organisation.
> Statements and opinions contained in this email may 
> not necessarily represent those of Littlewoods.
> Please note that e-mail communications may be monitored.
> The registered office of Littlewoods Limited and its
> subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
> Registered number of Littlewoods Limited is 262152.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Joshua Cronemeyer
Developer
accessKansas - a service of the Information Network of Kansas, Inc.
www.accesskansas.org 
785-296-2816 (phone)
785-296-5563 (fax)
[EMAIL PROTECTED] 

***
CONFIDENTIALITY NOTICE:
This E-mail and any attachments are confidential.  If you are not the
intended recipient, you do not have permission to disclose, copy,
distribute, or open any attachments.  If you have received this E-mail
in
error, please notify us immediately by returning it to the sender and
delete
this copy from your system.

Thank you.
accessKansas
***


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts, Dreamweaver, and JSP

2004-06-29 Thread McCormack, Chris
> Are there any tools that allow one to validate the html that is generated by the 
> jsp/struts tags?
http://validator.w3.org/

hth
Chris

-Original Message-
From: josh [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 16:11
To: Struts Users Mailing List
Subject: Struts, Dreamweaver, and JSP


I am resposible for the visual aspect of a number of struts based
applications and I was wondering if anyone knows of any way to deal with
struts tag standards and jsp tag standards in dreamweaver.  I also have
to do validation to ensure the apps are compliant and accessible.  Are
there any tools that allow one to validate the html that is generated by
the jsp/struts tags?


josh
***

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts, Dreamweaver, and JSP

2004-06-29 Thread josh
I am resposible for the visual aspect of a number of struts based
applications and I was wondering if anyone knows of any way to deal with
struts tag standards and jsp tag standards in dreamweaver.  I also have
to do validation to ensure the apps are compliant and accessible.  Are
there any tools that allow one to validate the html that is generated by
the jsp/struts tags?


josh
***


signature.asc
Description: This is a digitally signed message part


RE: Converting Java Code in JSP to JSTL

2004-06-29 Thread Ricardo Cortes
Caroline,

Have you tried the following?:









-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 1:12 AM
To: Struts Users Mailing List
Subject: Re: Converting Java Code in JSP to JSTL


I pass an object ThreadBean from an action servlet in
a request scope:

request.setAttribute( "ThreadBean", threadBean );

In my JSP, there is no problem and everything works
well if I use scripting element:

<%
ThreadBean threadBean  = ( ThreadBean
)request.getAttribute( "ThreadBean" );
%>

I then re-write the above statement to:



when I tried to use the properties of the threadBean:

if ( threadID_int != threadBean.getThreadID() ) {}

I got compilation error "illegal start of expression".
 Why JSTL does not work?


--- Ron Grabowski <[EMAIL PROTECTED]> wrote:
> > 1. what is the JSTL equivalent of the <%else {%>
> ...
> > <%}%> tag?
> 
> The c:choose, c:when, and c:otherwise tags:
> 
>  http://tinyurl.com/2kqlz
> 
> > 2. how to write a  tag to replace
> the
> >  tag while passing a number of
> > parameters?
> 
> You could do this:
> 
>  
>   
>   
>   
>  
> 
>  
>   Click Me
>  
> 
> Depending on how your Actions are setup you may be
> able to do this:
> 
> 
>  Click Me
> 
> 
> James Mitchell gave this example a few weeks ago:
> 
> >  class="java.util.HashMap"/>
> >  value="${dto.id}"/>
> >  value="edit"/>
> > 
> > ...later down the page...
> > 
> >   > name="myLinkParams">
> >  
> >  
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript error

2004-06-29 Thread DGraham

Return Receipt
   
Your  Javascript error 
document   
:  
   
was   Dennis Graham/EvergreenFunds 
received   
by:
   
at:   06/29/2004 09:16:08 AM   
   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dynamic forms

2004-06-29 Thread Bill Siggelkow
You could try Nialls Pemberton's LazyActionForm ...
http://www.niallp.pwp.blueyonder.co.uk/
Xavier Noria wrote:
We have some forms whose fields are unknown until runtime. How would you 
implement them so that they worked within the framework smoothly?

-- fxn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: NEWBIE - How to submit form and display results in popup window with no browser decorations.

2004-06-29 Thread Anirudh Jayanth
The help function is for the button onclick method... Or for a 
tag...
You don't need a form for this approach.. All you need to do is to pass
the contextId to the action which you can pass as a request parameter. I
have used this technique successfully to pass params..
I guess that if you were to submit the form it would cause the current
page to submit aswell.. Which is why we will have to avoid that.
(Correct me if I am wrong on this)

Regards,

Anirudh Jayanth
SysArris Software 
120A, Elephant Rock Road, 
3rd Block, Jayanagar, 
Bangalore - 560011 
Tel: 6655165 / 052 [ ext - 243 ] 
[EMAIL PROTECTED] 


-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 5:42 PM
To: 'Struts Users Mailing List'
Subject: RE: NEWBIE - How to submit form and display results in popup
window with no browser decorations.


Thanks Anirudh,


Do you mean that the form should have no ActionForm associated with it?
(Currently I am using an ActionForm to pass the value of the contextID)

I did not know that one could pass params to an action with the
"action.do?p1=value&p2=value" technique.


Where does one place the call to the Help() function?
In the form onsubmit() method? Or on the button onclick() method? 

Should it be like this:


  
  

  




TIA -Adam




-Original Message-
From: Anirudh Jayanth [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 13:19
To: 'Struts Users Mailing List'
Subject: RE: NEWBIE - How to submit form and display results in popup
window with no browser decorations.


You could use a javascript function to achieve this..

function Help(document,val) {
window.open('Action.do&_contextId='+val,'win','toolbar=no,location=no,di
rectories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=400,
height=210,left=0,top=0')
}

In the action retrieve the context id as
request.getParameter("_contextId");
The dispatch logic then resides in the action


Anirudh Jayanth
SysArris Software 
120A, Elephant Rock Road, 
3rd Block, Jayanagar, 
Bangalore - 560011 
Tel: 6655165 / 052 [ ext - 243 ] 
[EMAIL PROTECTED] 


-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 5:16 PM
To: 'Struts Users Mailing List'
Subject: NEWBIE - How to submit form and display results in popup window
with no browser decorations.


Folks,


>From browsing the list archive I can see that this sort of questions 
>gets
asked frequently. I looked at the solutions but none seem, to fit my
case:


I am trying to implement a popup window context-sensitive help system
for a struts app.

My solution so far is to have a help button in its own form, and the
form has a hidden "contextID" field. This contextID is stored in the
ActionForm and allows the Action to decide which help screen to display.

This is easy enough do if one just wants a new window (using
target="" in the html:form tag). However the new window has
all the normal browser buttons etc.

e.g.:


 
   

  

  


Critically, I want to display the help in a popup window that has no
browser decorations (navigation buttons, text labels  etc). I need to
specify the width and height of the popup.



I looked at Ted Husted's solution "Use Struts JSP Tags to create dynamic
JavaScripts" (http://husted.com/struts/tips/010.htm). 
If I understand this solution correctly, it uses html:rewrite's to call
global forwards that pass parameters to a JSP.  In my case this could
work, but seems to imply that some dispatch logic (i.e. which help page
to display, dependent on the context) resides in the receiving JSP. 
I would rather that the dispatch logic resides in an Action.




How can this be done?


TIA - Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE - How to submit form and display results in popup window with no browser decorations.

2004-06-29 Thread Adam Lipscombe
Thanks Anirudh,


Do you mean that the form should have no ActionForm associated with it?
(Currently I am using an ActionForm to pass the value of the contextID)

I did not know that one could pass params to an action with the
"action.do?p1=value&p2=value" technique.


Where does one place the call to the Help() function?
In the form onsubmit() method? Or on the button onclick() method? 

Should it be like this:


  
  

  




TIA -Adam




-Original Message-
From: Anirudh Jayanth [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 13:19
To: 'Struts Users Mailing List'
Subject: RE: NEWBIE - How to submit form and display results in popup window
with no browser decorations.


You could use a javascript function to achieve this..

function Help(document,val) {
window.open('Action.do&_contextId='+val,'win','toolbar=no,location=no,di
rectories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=400,
height=210,left=0,top=0')
}

In the action retrieve the context id as request.getParameter("_contextId");
The dispatch logic then resides in the action


Anirudh Jayanth
SysArris Software 
120A, Elephant Rock Road, 
3rd Block, Jayanagar, 
Bangalore - 560011 
Tel: 6655165 / 052 [ ext - 243 ] 
[EMAIL PROTECTED] 


-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 5:16 PM
To: 'Struts Users Mailing List'
Subject: NEWBIE - How to submit form and display results in popup window
with no browser decorations.


Folks,


>From browsing the list archive I can see that this sort of questions
>gets
asked frequently. I looked at the solutions but none seem, to fit my
case:


I am trying to implement a popup window context-sensitive help system for a
struts app.

My solution so far is to have a help button in its own form, and the form
has a hidden "contextID" field. This contextID is stored in the ActionForm
and allows the Action to decide which help screen to display.

This is easy enough do if one just wants a new window (using
target="" in the html:form tag). However the new window has all
the normal browser buttons etc.

e.g.:


 
   

  

  


Critically, I want to display the help in a popup window that has no browser
decorations (navigation buttons, text labels  etc). I need to specify the
width and height of the popup.



I looked at Ted Husted's solution "Use Struts JSP Tags to create dynamic
JavaScripts" (http://husted.com/struts/tips/010.htm). 
If I understand this solution correctly, it uses html:rewrite's to call
global forwards that pass parameters to a JSP.  In my case this could work,
but seems to imply that some dispatch logic (i.e. which help page to
display, dependent on the context) resides in the receiving JSP. 
I would rather that the dispatch logic resides in an Action.




How can this be done?


TIA - Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEWBIE - How to submit form and display results in popup window with no browser decorations.

2004-06-29 Thread Anirudh Jayanth
You could use a javascript function to achieve this..

function Help(document,val) {
window.open('Action.do&_contextId='+val,'win','toolbar=no,location=no,di
rectories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=400,
height=210,left=0,top=0')
}

In the action retrieve the context id as
request.getParameter("_contextId");
The dispatch logic then resides in the action


Anirudh Jayanth
SysArris Software 
120A, Elephant Rock Road, 
3rd Block, Jayanagar, 
Bangalore - 560011 
Tel: 6655165 / 052 [ ext - 243 ] 
[EMAIL PROTECTED] 


-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 5:16 PM
To: 'Struts Users Mailing List'
Subject: NEWBIE - How to submit form and display results in popup window
with no browser decorations.


Folks,


>From browsing the list archive I can see that this sort of questions 
>gets
asked frequently. I looked at the solutions but none seem, to fit my
case:


I am trying to implement a popup window context-sensitive help system
for a struts app.

My solution so far is to have a help button in its own form, and the
form has a hidden "contextID" field. This contextID is stored in the
ActionForm and allows the Action to decide which help screen to display.

This is easy enough do if one just wants a new window (using
target="" in the html:form tag). However the new window has
all the normal browser buttons etc.

e.g.:


 
   

  

  


Critically, I want to display the help in a popup window that has no
browser decorations (navigation buttons, text labels  etc). I need to
specify the width and height of the popup.



I looked at Ted Husted's solution "Use Struts JSP Tags to create dynamic
JavaScripts" (http://husted.com/struts/tips/010.htm). 
If I understand this solution correctly, it uses html:rewrite's to call
global forwards that pass parameters to a JSP.  In my case this could
work, but seems to imply that some dispatch logic (i.e. which help page
to display, dependent on the context) resides in the receiving JSP. 
I would rather that the dispatch logic resides in an Action.




How can this be done?


TIA - Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



NEWBIE - How to submit form and display results in popup window with no browser decorations.

2004-06-29 Thread Adam Lipscombe
Folks,


>From browsing the list archive I can see that this sort of questions gets
asked frequently. I looked at the solutions but none seem, to fit my case:


I am trying to implement a popup window context-sensitive help system for a
struts app.

My solution so far is to have a help button in its own form, and the form
has a hidden "contextID" field.
This contextID is stored in the ActionForm and allows the Action to decide
which help screen to display.

This is easy enough do if one just wants a new window (using
target="" in the html:form tag).
However the new window has all the normal browser buttons etc.

e.g.:


 
   

  

  


Critically, I want to display the help in a popup window that has no browser
decorations (navigation buttons, text labels  etc). I need to specify the
width and height of the popup.



I looked at Ted Husted's solution "Use Struts JSP Tags to create dynamic
JavaScripts" (http://husted.com/struts/tips/010.htm). 
If I understand this solution correctly, it uses html:rewrite's to call
global forwards that pass parameters to a JSP.  In my case this could work,
but seems to imply that some dispatch logic (i.e. which help page to
display, dependent on the context) resides in the receiving JSP. 
I would rather that the dispatch logic resides in an Action.




How can this be done?


TIA - Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JSP 2.0 + JSTL 1.1 or Velocity?

2004-06-29 Thread Jozef Hribik
One year ago when i started my first Struts-based project i was very
frustrated with Struts Tag libraries. I have decided to use Velocity.
Our HTML designer have learned 5 Velocity keywords very quickly too
(if-else-end-foreach-parse).
Now we start new project. There are some pressures to abandon Velocity
and use JSP. I do not want to use the Struts html-el tags because
designers are not able to grasp it (too many attributes, etc.) I have
looked at JSTL core and fmt libraries. I think the designers could
grasp these libs in combination with plain HTML. It should be simple
like in previous project with Velocity.
My question is:
Is Struts 1.1 + Tomcat 5 + JSP 2.0 + JSTL 1.1 a good combination?
Or should we use Struts 1.1 + Tomcat 4 + JSP
1.2 + JSTL 1.0? Are there any troubles using JSTL with Struts?
Thanks
Jozef Hribik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [OT] Sending multipart alternative emails (HTML and text)

2004-06-29 Thread Robert Taylor
Thanks Matthias, 

robert

> -Original Message-
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 2:07 AM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] Sending multipart alternative emails (HTML and text)
> 
> 
> Robert,
> 
> perhaps you may look at:
> http://jakarta.apache.org/commons/sandbox/email/
> 
> there is allready an implemented multipartemail.clazz
> 
> i used them successfully in my application. they are
> easy to use, you are *free* from the java-mail-api
> 
> Cheers,
> matthias
> 
> > -Original Message-
> > From: Robert Taylor [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, June 28, 2004 11:21 PM
> > To: [EMAIL PROTECTED]
> > Subject: [OT] Sending multipart alternative emails (HTML and text)
> > 
> > 
> > I've been tasked with sending out emails which contain both 
> > HTML and text. I have successfully implemented this and 
> > tested it in Outlook 2000, 2002, 2003, 
> > Outlook Express and various web email clients (Yahoo, 
> > Hotmail, etc...).
> > 
> > The problem I have is that some users, get the emails 
> > with a message like the following:
> > 
> > "This message uses a character set that is not supported by 
> > the Internet Service.  To view the original message content,  
> > open the attached message. If the text doesn't display 
> > correctly, save the attachment to disk, and then open it 
> > using a viewer that can display the original character set."
> > 
> > Googling produced the following semi-helpful result:
> > 
> http://www.jguru.com/faq/view.jsp?EID=132654
> 
> 
> Now, when I create the email message using the JavaMail API, I use
> something similar to the following:
> 
> String text = // get text portion of email body
> String html = // get html portion of email body
> 
> /*
> * Create a multipart mime message where
> * the client setting will determine which
> * message is rendered.
> */
>   
> MimeMultipart multipart = new MimeMultipart("alternative");
> 
> // add text body part
> MimeBodyPart textBodyPart = new MimeBodyPart();
> textBodyPart.setText(text, "US-ASCII"); //char-set for encoding
>   
> // add HTML body part
> MimeBodyPart htmlBodyPart = new MimeBodyPart();
> htmlBodyPart.setContent(html, "text/html");
>   
> multipart.addBodyPart(text);
> multipart.addBodyPart(html);
>   
> msg.setContent(multipart);
> 
> 
> Has anyone run into a simliar issue? It seems to only happen with
> Outlook 2003 users, but since I cannot reproduce the problem, it's hard
> for me to solve it.
> 
> 
> robert
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: dynamic forms

2004-06-29 Thread Matthias Wessendorf
and that one

http://jakarta.apache.org/struts/faqs/indexedprops.html

there is described how to create 
a "dynamic" form based on indexed-properties:


like that:
 
   

   
   Submit Changes
  

Hope that helps


> -Original Message-
> From: Xavier Noria [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 29, 2004 12:09 PM
> To: [EMAIL PROTECTED]
> Subject: dynamic forms
> 
> 
> We have some forms whose fields are unknown until runtime. How would 
> you implement them so that they worked within the framework smoothly?
> 
> -- fxn 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: dynamic forms

2004-06-29 Thread Matthias Wessendorf
Xavier,

did you looked at:
http://wiki.apache.org/struts/StrutsCatalogMappedBeans

all properties are stored in a map.

cheers,



> -Original Message-
> From: Xavier Noria [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 29, 2004 12:09 PM
> To: [EMAIL PROTECTED]
> Subject: dynamic forms
> 
> 
> We have some forms whose fields are unknown until runtime. How would 
> you implement them so that they worked within the framework smoothly?
> 
> -- fxn 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript error

2004-06-29 Thread lukasz.lenart


Return Receipt

 Your Javascript error  
 document:  

 was received Lukasz Lenart/pl/delphiauto   
 by:

 at:  12:43:01 PM CED Today 






Note: The information contained in this message may be privileged and confidential and 
thus protected from disclosure. If the reader of this message is not the intended 
recipient, or an employee or agent responsible for delivering this message to the 
intended recipient, you are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to the message and 
deleting it from your computer. Thank you. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Regarding DynaActionForms

2004-06-29 Thread Bryan Hunt
The point is to use google first and then go to a mailing list
for specific questions and clarification.
Asking smart questions on mailing lists by eric stallman.
http://www.catb.org/~esr/faqs/smart-questions.html 


--b
Ashutosh Satyam wrote:
I never meant to write an application for me.
I suppose mailing list are meant for where one
can get pin point information.
If Google was the only solution then there is
no point for the existence of any forum like this.
-Original Message-
From: Bryan Hunt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 2:47 PM
To: Struts Users Mailing List
Subject: Re: Regarding DynaActionForms
This sounds a little like ... please write the application for me 
there is plenty of stuff that can be found on
google that is exactly like this ...

--b

Ashutosh Satyam wrote:
 

I need a sample jsp page where someone can show me,
how i can retrieve the values populated in a dynaactionform.
Also, once I get the resultset after qureying the DB.
How exactly the benas will be populated to be used in pages
Kindly provide inputs on the same.
Regards,
Ashutosh 

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Regarding DynaActionForms
Hi,
It's exactly the same as Actionform. Struts
Will treat ur dynaactionform as a normal action form.
Beware though that you may encounter problems if some of the
Fields of your actionforms are null..
Regards
marco
-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 06:03
To: Struts Users Mailing List
Subject: Regarding DynaActionForms

Hi,
I'm a novice as far as usage of tag libraries are concerned.
I intend to use DynaActionForm in my application. Would someone 
explain how this could be used in conjunction with available struts 
tag library to populate the beans?

For simplicity, consider a simple application, which stores User
information 
like name, id and password. How during modification, these tag libraries
in 
combination with DynaActionForm can be used to pre populate my JSP page.

The application will read the values from a database.
Any pointer on this will be greatly appreciated.
Regards,
Ashutosh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



dynamic forms

2004-06-29 Thread Xavier Noria
We have some forms whose fields are unknown until runtime. How would 
you implement them so that they worked within the framework smoothly?

-- fxn 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts 1.1

2004-06-29 Thread Pedro Salgado

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>


Pedro Salgado


On 04/06/29 10:46, "Kote, Nijaguna Sangankal"
<[EMAIL PROTECTED]> wrote:

> What is the equalant of
>  "-//Apache Software Foundation//DTD Commons Validator Rules
> Configuration 1.0//EN"
> "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
> 
> For struts 1.1??
> 
> Thanks
> Guna
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts 1.1

2004-06-29 Thread Kote, Nijaguna Sangankal
What is the equalant of 
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>

For struts 1.1??

Thanks
Guna


2 Actions Again?

2004-06-29 Thread Michael McGrady
have some code where an action is called in an  and in an 
 as a value for the src attribute of the  
tag.  Also, I have extended the ImageTag class or  to mine some 
other values regarding the image, color, font, etc., because I intend to 
use the action which is the value of the src attribute to build the button 
on the fly to match whatever the name of the Button is, e.g. 
"Submit.gif".  My only question is:

Is there any reason why the action which gets the image as the value of the 
src attribute cannot access the values of the form needed to build the 
button if it does not already exist?

Thanks!  The code will look something like the following:

<%@ page language='java' %>
<%@ page contentType='text/html; charset=UTF-8' %>
<%@ taglib uri='struts-html'prefix='html' %>
<%@ taglib uri='crackwillow'prefix='crackwillow' %>





  FIRST NAME
LASTNAME
EMAIL




So, I want the resource.do action class to mine the buttonFrom action form. One thing is for sure, the logON.do action must precede the resource.do action, because it creates the text the browser uses to call the second action. Seems like it should work fine to me. It involves enough work that I thought I would run it by you chiefs and indians first. Thanks for any pointers. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

2 Actions + 1 Form + 1 Submit

2004-06-29 Thread Michael McGrady
I have some code where an action is called in an  and in an 
 as a value for the src attribute of the  
tag.  Also, I have extended the ImageTag class or  to mine some 
other values regarding the image, color, font, etc., because I intend to 
use the action which is the value of the src attribute to build the button 
on the fly to match whatever the name of the Button is, e.g. 
"Submit.gif".  My only question is:

Is there any reason why the action which gets the image as the value of the 
src attribute cannot access the values of the form needed to build the 
button if it does not already exist?

Thanks!  The code will look something like the following:
<%@ page language='java' %>
<%@ page contentType='text/html; charset=UTF-8' %>
<%@ taglib uri='struts-html'prefix='html' %>
<%@ taglib uri='crackwillow'prefix='crackwillow' %>





  FIRST NAME
LASTNAME
EMAIL




So, I want the resource.do action class to mine the buttonFrom action form. One thing is for sure, the logON.do action must precede the resource.do action, because it creates the text the browser uses to call the second action. Seems like it should work fine to me. It involves enough work that I thought I would run it by you chiefs and indians first. Thanks for any pointers. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Regarding DynaActionForms

2004-06-29 Thread Marco Mistroni
HI,

>I need a sample jsp page where someone can show me,
>how i can retrieve the values populated in a dynaactionform.

For this, it's enough that u pick a jsp from struts-sample application,
Or anywhere in the web where they are talking about actionforms


>Also, once I get the resultset after qureying the DB.
>How exactly the benas will be populated to be used in pages

this is a task that you have to do it on your own, struts won't
do It for you.
You may want to have a look at commons.beanutils, it has some
Utilities for doing exactly what you want

Regards
marco




Kindly provide inputs on the same.

Regards,
Ashutosh 


-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Regarding DynaActionForms


Hi,
It's exactly the same as Actionform. Struts
Will treat ur dynaactionform as a normal action form.
Beware though that you may encounter problems if some of the
Fields of your actionforms are null..


Regards
marco

-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 06:03
To: Struts Users Mailing List
Subject: Regarding DynaActionForms

Hi,
I'm a novice as far as usage of tag libraries are concerned.
I intend to use DynaActionForm in my application. Would someone 
explain how this could be used in conjunction with available struts 
tag library to populate the beans?

For simplicity, consider a simple application, which stores User
information 
like name, id and password. How during modification, these tag libraries
in 
combination with DynaActionForm can be used to pre populate my JSP page.

The application will read the values from a database.

Any pointer on this will be greatly appreciated.

Regards,
Ashutosh





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Regarding DynaActionForms

2004-06-29 Thread Ashutosh Satyam
I never meant to write an application for me.
I suppose mailing list are meant for where one
can get pin point information.

If Google was the only solution then there is
no point for the existence of any forum like this.

-Original Message-
From: Bryan Hunt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 2:47 PM
To: Struts Users Mailing List
Subject: Re: Regarding DynaActionForms


This sounds a little like ... please write the application for me 
there is plenty of stuff that can be found on
google that is exactly like this ...

--b



Ashutosh Satyam wrote:

>I need a sample jsp page where someone can show me,
>how i can retrieve the values populated in a dynaactionform.
>
>Also, once I get the resultset after qureying the DB.
>How exactly the benas will be populated to be used in pages
>
>Kindly provide inputs on the same.
>
>Regards,
>Ashutosh 
>
>
>-Original Message-
>From: Marco Mistroni [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 29, 2004 1:58 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Regarding DynaActionForms
>
>
>Hi,
>   It's exactly the same as Actionform. Struts
>Will treat ur dynaactionform as a normal action form.
>Beware though that you may encounter problems if some of the
>Fields of your actionforms are null..
>
>
>Regards
>   marco
>
>-Original Message-
>From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] 
>Sent: 29 June 2004 06:03
>To: Struts Users Mailing List
>Subject: Regarding DynaActionForms
>
>Hi,
>I'm a novice as far as usage of tag libraries are concerned.
>I intend to use DynaActionForm in my application. Would someone 
>explain how this could be used in conjunction with available struts 
>tag library to populate the beans?
>
>For simplicity, consider a simple application, which stores User
>information 
>like name, id and password. How during modification, these tag libraries
>in 
>combination with DynaActionForm can be used to pre populate my JSP page.
>
>The application will read the values from a database.
>
>Any pointer on this will be greatly appreciated.
>
>Regards,
>Ashutosh
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript error

2004-06-29 Thread Kote, Nijaguna Sangankal
Hi,

I am a new user for this group,.
I am using struts1.1 for my project, Am having some trouble with
struts1.1 validator framework.
I have changed my validation.xml and validation-rules.xml to
reflect my formbean  and its properties.
Struts also generates javascript in JSP, but once I click on
submit button " javascript error is thrown.

This is the error : 'required is undefined'

this in validateRequired method in validation_rules.xml file.

Am I doing something wrong here... Please help.

Thanks
Guna



Re: Regarding DynaActionForms

2004-06-29 Thread Bryan Hunt
This sounds a little like ... please write the application for me 
there is plenty of stuff that can be found on
google that is exactly like this ...

--b

Ashutosh Satyam wrote:
I need a sample jsp page where someone can show me,
how i can retrieve the values populated in a dynaactionform.
Also, once I get the resultset after qureying the DB.
How exactly the benas will be populated to be used in pages
Kindly provide inputs on the same.
Regards,
Ashutosh 

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Regarding DynaActionForms
Hi,
It's exactly the same as Actionform. Struts
Will treat ur dynaactionform as a normal action form.
Beware though that you may encounter problems if some of the
Fields of your actionforms are null..
Regards
marco
-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 06:03
To: Struts Users Mailing List
Subject: Regarding DynaActionForms

Hi,
I'm a novice as far as usage of tag libraries are concerned.
I intend to use DynaActionForm in my application. Would someone 
explain how this could be used in conjunction with available struts 
tag library to populate the beans?

For simplicity, consider a simple application, which stores User
information 
like name, id and password. How during modification, these tag libraries
in 
combination with DynaActionForm can be used to pre populate my JSP page.

The application will read the values from a database.
Any pointer on this will be greatly appreciated.
Regards,
Ashutosh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Regarding DynaActionForms

2004-06-29 Thread Ashutosh Satyam
I need a sample jsp page where someone can show me,
how i can retrieve the values populated in a dynaactionform.

Also, once I get the resultset after qureying the DB.
How exactly the benas will be populated to be used in pages

Kindly provide inputs on the same.

Regards,
Ashutosh 


-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Regarding DynaActionForms


Hi,
It's exactly the same as Actionform. Struts
Will treat ur dynaactionform as a normal action form.
Beware though that you may encounter problems if some of the
Fields of your actionforms are null..


Regards
marco

-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 06:03
To: Struts Users Mailing List
Subject: Regarding DynaActionForms

Hi,
I'm a novice as far as usage of tag libraries are concerned.
I intend to use DynaActionForm in my application. Would someone 
explain how this could be used in conjunction with available struts 
tag library to populate the beans?

For simplicity, consider a simple application, which stores User
information 
like name, id and password. How during modification, these tag libraries
in 
combination with DynaActionForm can be used to pre populate my JSP page.

The application will read the values from a database.

Any pointer on this will be greatly appreciated.

Regards,
Ashutosh





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Regarding DynaActionForms

2004-06-29 Thread Marco Mistroni
Hi,
It's exactly the same as Actionform. Struts
Will treat ur dynaactionform as a normal action form.
Beware though that you may encounter problems if some of the
Fields of your actionforms are null..


Regards
marco

-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] 
Sent: 29 June 2004 06:03
To: Struts Users Mailing List
Subject: Regarding DynaActionForms

Hi,
I'm a novice as far as usage of tag libraries are concerned.
I intend to use DynaActionForm in my application. Would someone 
explain how this could be used in conjunction with available struts 
tag library to populate the beans?

For simplicity, consider a simple application, which stores User
information 
like name, id and password. How during modification, these tag libraries
in 
combination with DynaActionForm can be used to pre populate my JSP page.

The application will read the values from a database.

Any pointer on this will be greatly appreciated.

Regards,
Ashutosh





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Source for Jakarta JSTL 1.0.2

2004-06-29 Thread Steve Raeburn
http://archive.apache.org/dist/jakarta/taglibs/standard-1.0/source/


The link to the Archives is available from the bottom of the Jakarta
download page (http://jakarta.apache.org/site/sourceindex.cgi). Look for
"The Apache Archives".

Steve


> -Original Message-
> From: Derek Richardson [mailto:[EMAIL PROTECTED]
> Sent: June 28, 2004 8:13 AM
> To: Struts Users Mailing List
> Subject: OT: Source for Jakarta JSTL 1.0.2
>
>
> I'm looking for the source distribution for the Jakarta
> Standard taglib
> v1.0.2. I am unable to find it archived on the Jakarta website. Can
> anyone point me to a copy?
>
> Thanks,
>
> Derek Richardson
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]