RE: PHP version of Struts

2003-06-12 Thread Phillip Qin
From the Hello application, coding is quite neat.

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED] 
Sent: June 11, 2003 6:30 PM
To: Struts Users Mailing List
Subject: RE: PHP version of Struts

It's PHP... what do you think?

Brandon Goodin 

-Original Message-
From: Lai, Kenny [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 4:22 PM
To: 'Struts Users Mailing List'
Subject: RE: PHP version of Struts


the question is, is it as good as struts

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 6:22 PM
To: Struts User List
Subject: PHP version of Struts


Would you use it?

http://phrame.sourceforge.net/

Brandon Goodin 

-
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]


nested:hidden setValue deprecated in rc2?

2003-06-12 Thread Phillip Qin
page.jsp:

nested:define id=hdate property=nextTxnDate/
nested:hidden property=historicalNextTxnDate value=%= hdate %/

I got following error when this page is loading:

[ServletException in:/page.jsp] Unable to compile class for JSP An error
occurred at line: 63 in the jsp file: /page.jsp Generated servlet error:
[javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1
source file [javac] Since fork is true, ignoring compiler setting. [javac]
/usr/local/jakarta-tomcat-4.1.24/work/Standalone/myhost.com/myapp/page_jsp.j
ava:296: cannot resolve symbol [javac] symbol : method setValue
(java.lang.Object) [javac] location: class
org.apache.struts.taglib.nested.html.NestedHiddenTag [javac]
_jspx_th_nested_hidden_0.setValue( hamount ); [javac] ^ [javac] Note:
/usr/local/jakarta-tomcat-4.1.24/work/Standalone/myhost.com/myapp/page_jsp.j
ava uses or overrides a deprecated API. [javac] Note: Recompile with
-deprecation for details. [javac] 1 error '



Regards,

 
 
PQ

The difference between 'involvement' and 'commitment'
is like an eggs-and-ham breakfast: the chicken was
'involved' - the pig was 'committed'.



RE: nested:hidden setValue deprecated in rc2?

2003-06-12 Thread Phillip Qin
Yes, I figured out since rc2 I have to use String.valueOf or xxx.toString()
for scriplet.

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED] 
Sent: June 12, 2003 2:49 PM
To: Struts Users Mailing List
Subject: Re: nested:hidden setValue deprecated in rc2?

Try:

nested:define id=hdate
   property=nextTxnDate
   type=java.lang.String/

or:

nested:hidden property=historicalNextTxnDate
   value=%= String.valueOf(hdate) %/

Quoting Phillip Qin [EMAIL PROTECTED]:

 page.jsp:
 
 nested:define id=hdate property=nextTxnDate/
 nested:hidden property=historicalNextTxnDate value=%= hdate %/
 
 I got following error when this page is loading:
 
 [ServletException in:/page.jsp] Unable to compile class for JSP An error
 occurred at line: 63 in the jsp file: /page.jsp Generated servlet error:
 [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1
 source file [javac] Since fork is true, ignoring compiler setting. [javac]

/usr/local/jakarta-tomcat-4.1.24/work/Standalone/myhost.com/myapp/page_jsp.j
 ava:296: cannot resolve symbol [javac] symbol : method setValue
 (java.lang.Object) [javac] location: class
 org.apache.struts.taglib.nested.html.NestedHiddenTag [javac]
 _jspx_th_nested_hidden_0.setValue( hamount ); [javac] ^ [javac] Note:

/usr/local/jakarta-tomcat-4.1.24/work/Standalone/myhost.com/myapp/page_jsp.j
 ava uses or overrides a deprecated API. [javac] Note: Recompile with
 -deprecation for details. [javac] 1 error '
 
 
 
 Regards,
 
  
  
 PQ
 
 The difference between 'involvement' and 'commitment'
 is like an eggs-and-ham breakfast: the chicken was
 'involved' - the pig was 'committed'.
 
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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


rc2 issues [WAS]nested:hidden setValue deprecated in rc2?

2003-06-12 Thread Phillip Qin
I actually have two issues for rc2. One is this type. Another one is

parentjsp:
nested:root name=myparentbean
nested:notMatch property=testProp value=testValue
jsp:include page=anotherjsp flush=true/
/nested:notMatch
/nested:root

anotherjsp:
nested:root name=myparentbean
%-- .. --%
/nested:root

I will get no getter method for nestOne.testProp of myparent. To solve it,
I have use logic in parentjsp.

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED] 
Sent: June 12, 2003 2:49 PM
To: Struts Users Mailing List
Subject: Re: nested:hidden setValue deprecated in rc2?

Try:

nested:define id=hdate
   property=nextTxnDate
   type=java.lang.String/

or:

nested:hidden property=historicalNextTxnDate
   value=%= String.valueOf(hdate) %/

Quoting Phillip Qin [EMAIL PROTECTED]:

 page.jsp:
 
 nested:define id=hdate property=nextTxnDate/
 nested:hidden property=historicalNextTxnDate value=%= hdate %/
 
 I got following error when this page is loading:
 
 [ServletException in:/page.jsp] Unable to compile class for JSP An error
 occurred at line: 63 in the jsp file: /page.jsp Generated servlet error:
 [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1
 source file [javac] Since fork is true, ignoring compiler setting. [javac]

/usr/local/jakarta-tomcat-4.1.24/work/Standalone/myhost.com/myapp/page_jsp.j
 ava:296: cannot resolve symbol [javac] symbol : method setValue
 (java.lang.Object) [javac] location: class
 org.apache.struts.taglib.nested.html.NestedHiddenTag [javac]
 _jspx_th_nested_hidden_0.setValue( hamount ); [javac] ^ [javac] Note:

/usr/local/jakarta-tomcat-4.1.24/work/Standalone/myhost.com/myapp/page_jsp.j
 ava uses or overrides a deprecated API. [javac] Note: Recompile with
 -deprecation for details. [javac] 1 error '
 
 
 
 Regards,
 
  
  
 PQ
 
 The difference between 'involvement' and 'commitment'
 is like an eggs-and-ham breakfast: the chicken was
 'involved' - the pig was 'committed'.
 
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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


RE: welcome file in web.xml

2003-06-11 Thread Phillip Qin
- use index.jsp
- in index. jsp,

[EMAIL PROTECTED] uri=/tags/struts-logic prefix=logic %
logic:redirect href=mylocation/

-Original Message-
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED] 
Sent: June 11, 2003 2:29 AM
To: Struts Users Mailing List
Subject: RE: welcome file in web.xml

It doesnt work  .. 

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 11:35 AM
To: Struts Users Mailing List; Nagendra Kumar O V S
Subject: RE: welcome file in web.xml


I have not tried but it should work. let us know if tastes success ;-)

-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 10:32 AM
To: [EMAIL PROTECTED]
Subject: welcome file in web.xml


hi,
 can i use this in web.xml

  welcome-file-list

welcome-filejsp/login.do?action=initMethodamp;targetAction=directLogin/w
elcome-file
  /welcome-file-list
TIA
--nagi
Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 500033
Contact(O): 23544671
Cell: 98482-41789



  IncrediMail - Email has finally evolved - Click Here


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


RE: ActionServlet can't find web.xml

2003-06-10 Thread Phillip Qin
How did you create your digester instance?

-Original Message-
From: Thompson, David [mailto:[EMAIL PROTECTED] 
Sent: June 10, 2003 3:45 PM
To: '[EMAIL PROTECTED]'
Subject: ActionServlet can't find web.xml

Using Weblogic 7.0sp2 on win2k, I'm trying to deploy a struts app (1.1b3) in
'exploded' format.  I give it the root directory, which includes the WEB-INF
folder, and in the WEB-INF folder is web.xml and struts-config.xml among
others.  But when I try to deploy it, it dies at ActionServlet:1381
input = getServletContext().getResourceAsStream(/WEB-INF/web.xml);
digester.parse(input);
with a SAXException, File  not found.  Stepping through it in the
debugger, getResourceAsStream returns null.  I'm stumped.  Which means it's
probably something incredibly obvious.  Any ideas are much appreciated.
 
Thanks,
david
+1-303-218-4716 work³
+1-303-521-8967 mobile
 


RE: Why is dbcp / pool removed?

2003-06-10 Thread Phillip Qin
Off topic, but I like oracle implementation's ability to increase number of
connections automatically. I actually have a factory class return different
pooling data source so that I can switch between dbcp and oracle.

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED] 
Sent: June 10, 2003 4:19 PM
To: Struts Users Mailing List
Subject: RE: Why is dbcp / pool removed?

If you want to keep your data source config within Struts but don't want to
use
DBCP, it looks like you need to find an alternative implementation of
javax.sql.DataSource. If you're using Oracle for your DB, you might want to
take
a look at oracle.jdbc.pool.OracleConnectionCacheImpl. Other JDBC drivers may
provide something similar.

Quoting Kruse, Matt [EMAIL PROTECTED]:

  The Struts distribution no longer includes DBCP but it does 
  still work with
  it. You can continue to use DBCP in your app as you did 
  before. 
 
 I know :)  But, I was having some problems already that I suspect are due
 to
 that way DBCP is (or isn't!) working, so I did want to replace it with the
 new approach in RC2, until I explore JNDI further.
 
 So, I don't want to use DBCP anymore, but I want to continue using
 struts-config to define my db so as not to disrupt the current state of
the
 app too much. So I'm learning how the DBCP-independent RC2 handles the db
 connections all internally, and trying to figure out if that will work and
 what problems might exist with it. Having some luck so far, but I need to
 do
 a lot more playing around to make sure this doesn't replace my old
problems
 with new ones :)
 
 Matt
 


-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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


RE: nested form of bean:write doesn't work but plain does.

2003-06-06 Thread Phillip Qin
When struts says no getter method, it always gives you something like
myClass.myFiled of MyActionForm no getter method. It is because of a bad
reference or wrong hierarchy. You better show us the error message,
hierarchy of your ActionForm and how you reference them.

-Original Message-
From: Rick Mann [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 8:31 PM
To: Struts Users Mailing List
Subject: nested form of bean:write doesn't work but plain does.

Hi.

I've got a situation where I'm using nested:iterate to iterate over a List
of beans, and then using nested:write to render some property (a string).

We do this in multiple places in our app, but every now and again, in some
instance of the code, it doesn't want to work. In these cases, we get a no
getter method exception.

However, if the code is switched to use the bean:write form, adding the
name attribute, it works fine.

Explicitly setting the type on the iterate tag makes no difference.

Any ideas?

P.S. I would have searched the archives, but they are down for a few days.

TIA,

-- 
Rick



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


RE: Using nested tags

2003-06-05 Thread Phillip Qin
visit keyboardmonkey.com

-Original Message-
From: lcl [mailto:[EMAIL PROTECTED] 
Sent: June 5, 2003 5:34 AM
To: [EMAIL PROTECTED]
Subject: Re: Using nested tags

I need online tutorial :-)
Mark Galbreath [EMAIL PROTECTED]
:[EMAIL PROTECTED]
 you didn't. would you like lessons?

 -Original Message-
 From: lcl [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 11:55 PM

 Hi Dan,

 Sorry for post it to your email directly.




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


RE: Using nested tags

2003-06-04 Thread Phillip Qin
Sounds like THAT classical issue. Override reset method of the ActionForm to
instantiate and populate the List. Or - use session-scope ActiopnForm.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: June 3, 2003 3:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Using nested tags

It would be more helpful if you actually posted the usage that is causing
this.  Apparently, you have one tag driving the across array bounds.
Classic fencepost error.

Mark

-Original Message-
From: Huan Le [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 2:59 PM
To: [EMAIL PROTECTED]
Subject: Using nested tags


Hello:

Could somebody explain this error message for me?
E SRVE0026E: [Servlet Error]-[BeanUtils.populate]:
java.lang.ArrayIndexOutOfBoundsException

I'm using nested tags to display a list of info.  Whenever, clicking the
submit button, I get the error above.  Do you know any solutions to resolve
this problem or any tutorial discussing this situation.

Thank you very much.

Huan










-
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: Nesting logic tags

2003-05-31 Thread Phillip Qin
If ansm is a member variable of your ActionForm, use

html:hidden property=ansm.entryType

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 30, 2003 10:53 AM
To: '[EMAIL PROTECTED]'
Subject: Nesting logic tags

Hey,
I'm using a table to display a form, but there's one row that I want to
hide, depending on a previous user selection.
Right now, my code is:

table
tr
td
b
bean:message key=app.label.numberType/: 
/b
/td
td
html:hidden name=ansm property=numberType
write=true/
/td
/tr

logic:equal value=subformat name=ansm property=entryType
tr
td
b
bean:message
key=app.label.subType/: 
/b
/td
td
html:hidden name=ansm property=subType
write=true/
/td
/tr
/logic:equal

tr
td
b
bean:message key=app.label.typeDesc/: 
/b
/td
td
html:text name=ansm property=typeDesc size=50
maxlength=50/
/td
/tr

logic:notEqual value=group name=ansm property=entryType
tr
td
b
bean:message
key=app.label.typeFormat/: 
/b
/td
td
html:text name=ansm property=typeFormat
size=60 maxlength=60/
/td
/tr
tr
td
b
bean:message
key=app.label.tabulatedFormat/: 
/b
/td
td
html:text name=ansm
property=tabulatedFormat size=60 maxlength=60/
/td
tr
td
b
bean:message
key=app.label.lastUsed/: 
/b
/td
td
html:text name=ansm property=lastUsed
size=30 maxlength=30/
/td
/tr
/logic:notEqual

/table

Unfortunately, it doesn't like me nesting the logic tags in the table code.
I've never used the struts nested taglib, would this be an appropriate place
to use it?  If not, does anyone know of a workaround I could use?

Thanks in advance.


~ Keith

http://www.buffalo.edu/~kkamholz



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


RE: Nesting logic tags

2003-05-31 Thread Phillip Qin
OK. Assume you use nested, your form is called ansm.

nested:form ..

table
tr
tdbbean:message key=app.label.numberType/: /b/td
tdnetsed:hidden property=numberType write=true//td
/tr

nested:equal value=subformat property=entryType
tr
tdbbean:message key=app.label.subType/:
/b/td
tdnested:hidden property=subType write=true/
/td
/tr
/nested:equal


/table
/nested:form

Correct me if I still didn't understand your question.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 30, 2003 11:14 AM
To: 'Struts Users Mailing List'
Subject: RE: Nesting logic tags

The issue isn't getting entryType into the form.  The issue is conditionally
displaying a couple rows in the table/form.  I already have the entryType in
a hidden input earlier in the form.
Input anybody?
I'd really appreciate it.

~ Keith

http://www.buffalo.edu/~kkamholz



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 11:09 AM
To: 'Struts Users Mailing List'
Subject: RE: Nesting logic tags


If ansm is a member variable of your ActionForm, use

html:hidden property=ansm.entryType

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 30, 2003 10:53 AM
To: '[EMAIL PROTECTED]'
Subject: Nesting logic tags

Hey,
I'm using a table to display a form, but there's one row that I want to
hide, depending on a previous user selection.
Right now, my code is:

table
tr
td
b
bean:message key=app.label.numberType/: 
/b
/td
td
html:hidden name=ansm property=numberType
write=true/
/td
/tr

logic:equal value=subformat name=ansm property=entryType
tr
td
b
bean:message
key=app.label.subType/: 
/b
/td
td
html:hidden name=ansm property=subType
write=true/
/td
/tr
/logic:equal

tr
td
b
bean:message key=app.label.typeDesc/: 
/b
/td
td
html:text name=ansm property=typeDesc size=50
maxlength=50/
/td
/tr

logic:notEqual value=group name=ansm property=entryType
tr
td
b
bean:message
key=app.label.typeFormat/: 
/b
/td
td
html:text name=ansm property=typeFormat
size=60 maxlength=60/
/td
/tr
tr
td
b
bean:message
key=app.label.tabulatedFormat/: 
/b
/td
td
html:text name=ansm
property=tabulatedFormat size=60 maxlength=60/
/td
tr
td
b
bean:message
key=app.label.lastUsed/: 
/b
/td
td
html:text name=ansm property=lastUsed
size=30 maxlength=30/
/td
/tr
/logic:notEqual

/table

Unfortunately, it doesn't like me nesting the logic tags in the table code.
I've never used the struts nested taglib, would this be an appropriate place
to use it?  If not, does anyone know of a workaround I could use?

Thanks in advance.


~ Keith

http://www.buffalo.edu/~kkamholz



-
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: Login

2003-05-31 Thread Phillip Qin
I prefer servlet filter. If not logged in, redirect user to the login page.

-Original Message-
From: Jonathan Holloway [mailto:[EMAIL PROTECTED] 
Sent: May 30, 2003 11:30 AM
To: [EMAIL PROTECTED]
Subject: Login 

Could somebody tell me what the best way to implement a login mechanism is
into a Struts application.  

Is the use of a custom login tag at the top of every page recommended or is
there a better way.  We already have the server side functionality present
but want to know the best way to enforce this in the JSP's and Action
classes.

Many thanks,
Jonathan Holloway.


Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.com

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


[OT] Login

2003-05-31 Thread Phillip Qin
Be nice, TGIF.

-Original Message-
From: Paananen, Tero [mailto:[EMAIL PROTECTED] 
Sent: May 30, 2003 11:41 AM
To: 'Struts Users Mailing List'
Subject: RE: Login 

 Does anyone have example code for that handy?

They sure as hell should, considering this topic's
covered on the list at about every week.

The mailing list archive is your friend...

-TPP

-
This email may contain confidential and privileged material for the sole use
of the intended recipient(s). Any review, use, retention, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact the
sender by reply email and delete all copies of this message.  Also, email is
susceptible to data corruption, interception, tampering, unauthorized
amendment and viruses. We only send and receive emails on the basis that we
are not liable for any such corruption, interception, tampering, amendment
or viruses or any consequence thereof.


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


RE: Submit Value

2003-05-29 Thread Phillip Qin
Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value

Quick question...

I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'.  What I'm
wondering is how to get the value of the submit button that was clicked from
within the action class.

Thanx a million.

- Keith

www.buffalo.edu/~kkamholz


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


RE: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Phillip Qin
Because there is no member variable to store the value of submit button.
Plus you cannot guarantee request.getParameter(submit) returning value for
some browsers.

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:23 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value

Actually, I just tried taking the value from request and it works. 

If I do request.getParameter(submit);  it returns value, but if i go 
myForm.getSubmit(); it does not.

Weird.  Only IE I can test right now is whatever comes with XP.

Anyone have any other experiences with this?

Denis


Erik Price wrote:



 Denis Avdic wrote:

 **$* damn MICROSOFT!

 And me for not testing on IE.

 Now I have to redesign half my webapp!

 And why is this implemented if IE (90% of population out there) 
 cannot use the feature?

 /rant
 /flame

 Gah.  Now to figure out an elegant way of fixing this


 Maybe you could have JavaScript that detects which button was clicked 
 and changes the value of a hidden form field just before the 
 submission occurs?

 Kind of inelegant, but it might work.  It's only as reliable as 
 JavaScript, though.

 Good luck, that sucks if you have to re-do work.



 Erik


 -
 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: HTML 4.0 button/ Tag?

2003-05-29 Thread Phillip Qin
This is the spec you should look for

http://www.w3.org/TR/html4/interact/forms.html#h-17.5

-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:17 PM
To: Struts Users Mailing List
Subject: HTML 4.0 button/ Tag?

(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the button/ tag in HTML 4.0? I just found it 
listed in Web Design In A Nutshell.
To quote, Defines a 'button' that functions similar to buttons created 
with the input tag, but allows for richer rendering possibilities.
Buttons can contain content such as text and images. These buttons can 
function as if it were a input type=button/submit/reset,
but you can embed an image within the button (I might want to use it for 
displaying accessKeys on buttons: _S_ave).

Should there be a html: tag to deal with this tag? Is this still part of 
the specification?

- Josh




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


RE: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Phillip Qin
When you submit a form using struts framework. Every param+value pair is
saved into your ActionForm. Param is the name of your ActionForm's member
variable. If the widget is a button and you want to read the value, either
use request.getAttribute(myButton) or use ActionForm.getMyButton.

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:39 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value

Why wouldn't there be a member variable?  In the form?

html:submit property=submitButtonName value=WhateverValueIWantInHere
submit is there just because i put property=submit.

I could have called it property=yellowdinosaurwithpurplepolkadots and 
it would still work (i think, never tried a name that long).

I am really confused by what you are saying here...

Phillip Qin wrote:

Because there is no member variable to store the value of submit button.
Plus you cannot guarantee request.getParameter(submit) returning value
for
some browsers.

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:23 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value

Actually, I just tried taking the value from request and it works. 

If I do request.getParameter(submit);  it returns value, but if i go 
myForm.getSubmit(); it does not.

Weird.  Only IE I can test right now is whatever comes with XP.

Anyone have any other experiences with this?

Denis


Erik Price wrote:

  

Denis Avdic wrote:



**$* damn MICROSOFT!

And me for not testing on IE.

Now I have to redesign half my webapp!

And why is this implemented if IE (90% of population out there) 
cannot use the feature?

/rant
/flame

Gah.  Now to figure out an elegant way of fixing this
  

Maybe you could have JavaScript that detects which button was clicked 
and changes the value of a hidden form field just before the 
submission occurs?

Kind of inelegant, but it might work.  It's only as reliable as 
JavaScript, though.

Good luck, that sucks if you have to re-do work.



Erik


-
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: Referencing an application level image

2003-02-28 Thread Phillip Qin
I never tried, but what about ../../images/picture.gif?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Christopher Cheng [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:10 AM
To: [EMAIL PROTECTED]
Subject: Referencing an application level image

How can I reference an image located in the application's root image folder
with html:img in a mutiple module environment?

For example if I use
html:img page=/images/picture.gif
it will generate /myapp/mymodule/images/picture.gif

If I would like to reference /myapp/images/picture.gif instead, how could
I do it?


RE: [OT] Must be desperate times for M$

2003-02-28 Thread Phillip Qin
Shall I say it's only a matter of time before windows becomes open source?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 4:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Must be desperate times for M$

It's only a matter of time before the windows source code is leaked to 
everyone.  Will we be horrified or impressed?

David



From: James Mitchell [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: [OT] Must be desperate times for M$
Date: Fri, 28 Feb 2003 16:19:56 -0500


In order to develop its software industry and maintain security, China
has produced its own version of Linux, Red Flag Linux, as well as its
own office productivity suite, RedOffice, which go head-to-head with
Microsoft's Windows and Office packages.


Oh, I love this.  China says, 'put up or shut up'!!!

http://news.com.com/2100-1007-990526.html?tag=fd_top



--
James Mitchell
Web Developer/Struts Evangelist
http://jakarta.apache.org/struts/

People demand freedom of speech to make up for the freedom of thought
which they avoid.
 - Soren Aabye Kierkegaard (1813-1855)




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


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


RE: checkbox and iterate problem

2003-02-27 Thread Phillip Qin
Sorry, my mistake, it is Boolean

ActionForm reset method is 

((OrderEntryLineItemForm)
iterator.next()).setMarkedForRemoval(Boolean.FALSE);


jsp is

nested:checkbox property=markedForRemoval value=true/

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Neal [mailto:[EMAIL PROTECTED] 
Sent: February 26, 2003 5:51 PM
To: [EMAIL PROTECTED]
Subject: RE: checkbox and iterate problem

I'm afraid you've lost me, I thought the propery HAD to be boolean for a
checkbox.
Can you please send me a code snippet of what you have working (even if
its different then what I am trying to do).

High level: I just want to read a list a of strings items from a DB, and
then populate a form with the items and let the user select them or not.

Thanx


 Mine is Collection, so I iterate thru the collection and set false
 (String) to each checked.

 Regards,


 PQ

 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing

 -Original Message-
 From: Neal [mailto:[EMAIL PROTECTED]
 Sent: February 26, 2003 5:20 PM
 To: [EMAIL PROTECTED]
 Subject: RE: checkbox and iterate problem

 I changed everything from boolean (primative) to Boolean (Object type),
 no difference
 I still see the same behavior.
 After submit my setter function is not called.
 but for a non-indexed checkbox it is called.

 However the getter() is always called.

 Neal

 try Boolean.FALSE (Object) instead of false (which is a primitive
 type).

 Regards,


 PQ

 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: February 26, 2003 2:04 PM
 To: [EMAIL PROTECTED]
 Subject: RE: checkbox and iterate problem

 I have a Reset method, and I am calling  mFolders[i].setChecked(false)
 for each item in my array. Is that what you mean by setting the
 default value ?
 If so, it hasn't fixed my problem.

 Thanx

 Have to set default value in reset method.

 Regards,


 PQ

 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: February 26, 2003 1:18 PM
 To: [EMAIL PROTECTED]
 Subject: checkbox and iterate problem

 Hi,
  I'm having a problem with checkboxes and I was hoping someone could
 help.

  The short version is:
when using logic:iteratate over an array of checkboxes, the
 setter
 method is not called after submit

  Long version
I have class   CheckableString { String str; boolean checked =
 false;
 // etc.. };
I have a Form
HostForm extends ActionForm {
  CheckableString[] mFolders = new CheckableString[100];
 public CheckableString getFolder(int n) {
 System.err.println(HostForm getFolder a  + mFolders[n]);
 return mFolders[n];
 }
 public CheckableString[] getFolder() {
 System.err.println(HostForm getFolder b  + this);
 for (int i = 0; i != mFolders.length; i++) {
 System.err.println(HostForm getFolder b  +
 mFolders[i]);
 }
 return mFolders;
 }
 public void setFolder(int n, CheckableString folders) {
 System.err.println(HostForm setFolder a  + folders +   +
 this);
 mFolders[n] = folders;
 }
 public void setFolder(CheckableString[] folders) {
 System.err.println(HostForm setFolder b  + this);
 mFolders = folders;
 }
 public void reset(ActionMapping a, HttpServletRequest b) {
 System.err.println(HostForm reset  + this);
 flag = false;
 for (int i = 0; i != mFolders.length; i++) {
 System.err.println(HostForm reset 
 + mFolders[i]);
 if (mFolders[i] != null)

 mFolders[i].setChecked(false);
 }
 }
 }

 I have an Action class setup the form, populating values from a
 database,
 it then forwards to a jsp page
 html:form
 ..
 logic:iterate id=quack name=hostForm property=folder
 indexId=index
 logic:present name='quack'
   tr
 th align=left
html:checkbox indexed='true' value='true' property=checked
 name='quack' /
bean:write name=quack/   bean:write name=index/
 /th
   /tr
 /logic:present
 /logic:iterate
 


 The form is populated correctly, items marked as true are selected.
 And looking at the logs the getter function is called
 The problem is when I submit, the setter function is NEVER called,
 and the Form is not populated.
 note: If I have a simple non-indexed checkbox, then that works as
 expected and the setter is called

 I am using struts 1.1RC1

 Anyone got any ideas ??, I'm stumped

 Thanks

 Neal






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

RE: Session Problems

2003-02-27 Thread Phillip Qin
When you set your collection, do you use mycollection.addAll(newcollection)
or collection = newcollection?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: February 27, 2003 1:54 PM
To: Struts Users Mailing List
Subject: RE: Session Problems

Can you summarize the form bean you are using for the first page?  What are
its properties?  How is the Collection maintained?  How is the bean being
created?

Sri

-Original Message-
From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 12:01 PM
To: Struts Users Mailing List
Subject: Session Problems


Hi,

I'm curerntly having problems with sessions in Struts.

I have two JSP's both of which point to the same action.

In my first JSP I have a number of basic properties and a list of addresses
as shown below:

*Name:  Bill Blah
*Age:  23

* Addresses (list)
23 Glamorgan Street  |  ER34 5RT  | Edit | Delete
13 Glamorgan Street  |  ER34 6TT  | Edit | Delete

The addresses are simply displayed using a logic:iterate tag.  

I also supply a link on this page to add an address in a seperate page, this
JSP allows a user to add an address to the list in the first page. 
When the page is submitted it is simply added to in the actionform.

Once I've entered the new address using this second page I'm returned tot he
first page where the new address is shown in the list of addresses. the
problem I have is that when I add a second address it removes the first
address and only the second address is shown here as:

* Addresses (list)
13 Glamorgan Street  |  ER34 6TT  | Edit | Delete

instead of 

* Addresses (list)
23 Glamorgan Street  |  ER34 5RT  | Edit | Delete
13 Glamorgan Street  |  ER34 6TT  | Edit | Delete

I'm assuming this is a problem with the session, could somebody please
explain to me why this happening.  I have set the scope to session for both
JSP pages and both JSP pages use the same action form so why is this
happening?

Many thanks,
Jon.


*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*

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


RE: [OT] DBCP Pool Closed connection problem

2003-02-27 Thread Phillip Qin
I had similar problem before. I read the first row in the ResultSet and
accidentally put a ; so I was actually at the end of the ResultSet and I was
trying to read from next row. That's exhausted!

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Miller, Jason [mailto:[EMAIL PROTECTED] 
Sent: February 27, 2003 3:57 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] DBCP Pool Closed connection problem

I had this problem once.  At the time, I was positive everything was closed
correctly, but it turned out at one point, where I was unwrapping the
connection, I had closed it.  This inadvertently caused the pool to be
exhausted.

This occurred before I had a quality check on my connections, so it didn't
replace the closed ones.  Still, check exhaustively before you say you are
positive all closings are correct.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 3:52 PM
 To: [EMAIL PROTECTED]
 Subject: [OT] DBCP Pool Closed connection problem
 
 
 Hi,
   I'm using commons DBCP in conjuction with STRUTS.
   When a lot of users start using  our application, we 
 start getting a
 lot of exceptions related to Connections, like Exhausted 
 Resultset or
 Connection is Closed. The first one happens when we try to 
 retrieve a
 column from a resultset. The second one happens when we try to open a
 connection.
   Neither of these errors happen in a predictable fashion.
   Right now we have set the pool max active connections 
 to 50 and the
 number of users testing is about 5.
   I'm absolutely positive, that all connections, resultsets and
 statements have been closed at the appropriate places by the pool. 
   Is it a problem with the way I've configured the pool? 
 has anyone
 faced a similar problem before?
 
 Thanks,
 Gaurav
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: [OT] DBCP Pool Closed connection problem

2003-02-27 Thread Phillip Qin
Would it be a multi-threading problem, another user moves cursor to next row
of the ResultSet?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: February 27, 2003 4:29 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT] DBCP Pool Closed connection problem

Thanks for the replies.
How can turn on the validation which checks for a good connection before
returning.
I guess i need to setTestOnBorrow(true). Do I need to do any thing else?

We actually have automated JTest which checks for all closed connections. So
that's what makes me certain that connections are all closed properly.
What i did is that i made only one connection available to the pool. and
when i'm the only user, things work fine even with one available connection.


-Original Message-
From: Miller, Jason [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 2:57 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] DBCP Pool Closed connection problem


I had this problem once.  At the time, I was positive everything was closed
correctly, but it turned out at one point, where I was unwrapping the
connection, I had closed it.  This inadvertently caused the pool to be
exhausted.

This occurred before I had a quality check on my connections, so it didn't
replace the closed ones.  Still, check exhaustively before you say you are
positive all closings are correct.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 3:52 PM
 To: [EMAIL PROTECTED]
 Subject: [OT] DBCP Pool Closed connection problem
 
 
 Hi,
   I'm using commons DBCP in conjuction with STRUTS.
   When a lot of users start using  our application, we 
 start getting a
 lot of exceptions related to Connections, like Exhausted 
 Resultset or
 Connection is Closed. The first one happens when we try to 
 retrieve a
 column from a resultset. The second one happens when we try to open a
 connection.
   Neither of these errors happen in a predictable fashion.
   Right now we have set the pool max active connections 
 to 50 and the
 number of users testing is about 5.
   I'm absolutely positive, that all connections, resultsets and
 statements have been closed at the appropriate places by the pool. 
   Is it a problem with the way I've configured the pool? 
 has anyone
 faced a similar problem before?
 
 Thanks,
 Gaurav
 
 -
 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]