sharing message resources with jstl

2005-10-20 Thread michael michael

I have three message resources defined in struts-config.xml:





In web.xml, I define a context parameter as follows,

   javax.servlet.jsp.jstl.fmt.localizationContext
   ApplicationMessageResources


Questions:
 (1). Can I define more than message resources in context param?
 (2). In jsp, how do I access these three message resources?


I am using JBoss 4.1 and Struts 1.2.4.


Levy Johnson

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



Wiki Struts: combo of best and easiest to use.

2004-06-27 Thread michael
What is the combination of the best and easiest wiki out there that uses 
struts in your humble opinion?


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


Referencing Forms from Dual Actions

2004-07-02 Thread michael
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:

   FIRST NAME
  LAST NAME
  EMAIL
  
  font="Broadway" size="16" button="true" 
src="resource.do?file_type=gif&file_name=SUBMIT.gif"/>
  
  font="Broadway" size="16" button="true" 
src="resource.do?file_type=gif&file_name=CLEAR.gif"/>
  
  font="Broadway" size="16" button="true" 
src="resource.do?file_type=gif&file_name=CANCEL.gif"/>
  
  font="Broadway" size="16" button="true" 
src="resource.do?file_type=gif&file_name=RESET.gif"/>


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]


Velocity in Struts2

2007-04-17 Thread Michael

Hello,

I have scratched my head and googled this for hours to no avail, so maybe
you folks can give me a hand.

I am trying to migrate a Struts1 site to Struts2 (from maven, struts-core
2.0.6).  So far everything is fine, except for Velocity (verison 1.4). The
Action is being called and returning successfully, the correct Velocity
template is being loaded and parsed, but the Action is no where to be found
for the Velocity template. In http://cwiki.apache.org/WW/velocity.html it
states that the Action's properties will be present for the template
context, along with other help variables (i.e. $stack, $action, etc ). My
Velocity template has nothing, just $struts.valueStack in the request
attributes.

Seems like there is a final step missing that processes the Action into the
Velocity context?

The entire site is already using Velocity, so migrating to Freemaker is not
really an option at this time.


thanks,
Michael


Re: Velocity in Struts2

2007-04-17 Thread Michael

The problem was in my spring config. I was proxying the Action with the
TransactionProxyFactoryBean. When that was removed (juggling the Hibernate
Session management somewhere else) the Action was correctly set into the
Velocity context.

Thanks for the prompt reply, it forced to me to review my setup (which I
should have done in the first place)
--Michael

On 4/17/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:


I'm not sure what the problem is, but adding $action to example.vm in
showcase, I see that it prints "
[EMAIL PROTECTED]" on the page, so the
reference is there. Can you post more details, like the mapping for your
action, the package declaration, etc?

regards
musachy

On 4/17/07, Michael <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have scratched my head and googled this for hours to no avail, so
maybe
> you folks can give me a hand.
>
> I am trying to migrate a Struts1 site to Struts2 (from maven,
struts-core
> 2.0.6).  So far everything is fine, except for Velocity (verison 1.4).
The
> Action is being called and returning successfully, the correct Velocity
> template is being loaded and parsed, but the Action is no where to be
> found
> for the Velocity template. In http://cwiki.apache.org/WW/velocity.htmlit
> states that the Action's properties will be present for the template
> context, along with other help variables (i.e. $stack, $action, etc ).
My
> Velocity template has nothing, just $struts.valueStack in the request
> attributes.
>
> Seems like there is a final step missing that processes the Action into
> the
> Velocity context?
>
> The entire site is already using Velocity, so migrating to Freemaker is
> not
> really an option at this time.
>
>
> thanks,
> Michael
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd



Re: Submit with a link

2004-05-05 Thread Michael McGrady
I am a notice in JavaScript.  I have wondered in my brief perusal of 
JavaScript books how you tell which form is the referent of the formindex 
numbers?

At 10:37 AM 5/5/2004, Henrique VIECILI wrote:
you can use javascript to do this job...

like this:

Enviar 
Formulário

where  is the index of the form you want to submit (starts in 0 -
zero)
Henrique Viecili

- Original Message -
From: "cacau_braga" <[EMAIL PROTECTED]>
To: "user" <[EMAIL PROTECTED]>
Sent: Wednesday, May 05, 2004 2:17 PM
Subject: Submit with a link
Hi All,

   I need a help. I have a page that contains many forms
   each form represents a record of database.
   I am need to submit that information when a user
click on link, because i can´t use the buttons
(
My code (a part of):
. 
__ 
Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É 
grátis! http://antipopup.uol.com.br/ 
- 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]


i18n Mavens: i18n Unicode Encoding/Decoding Buttons

2004-05-15 Thread Michael McGrady
I am starting to build a Struts related utility that takes advantage of the 
work done by the taglibs image people (thanks! great work!) and dynamically 
creates cached buttons in i18n by writing i18ned text over button GIFs and 
JPEGs.  Anyone with any knowledge of stuff that would assist this project, 
please contact me on this list or, better yet, privately at 
[EMAIL PROTECTED]  (These emails are checked more carefully than 
those at [EMAIL PROTECTED])  All results will be shared.  Thanks.

Michael McGrady

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


RE: Maintaining form data across pages...

2004-05-16 Thread Michael McGrady
I fear that some of this contains a misunderstanding at a deeper 
level.  You can control all this by coding what you want in the reset() 
method.  The actual code (in part) is as follows:

form.setServlet(this.servlet);
form.reset(mapping, request);
if (mapping.getMultipartClass() != null) {
  request.setAttribute(Globals.MULTIPART_KEY,
 mapping.getMultipartClass());
}
RequestUtils.populate(form, mapping.getPrefix(), mapping.getSuffix(),
request);
The RequestUtils code (in part) follows:
while (names.hasMoreElements()) {
String name = (String) names.nextElement();
String stripped = name;
if (prefix != null) {
if (!stripped.startsWith(prefix)) {
continue;
}
stripped = stripped.substring(prefix.length());
}
if (suffix != null) {
if (!stripped.endsWith(suffix)) {
continue;
}
stripped = stripped.substring(0, stripped.length() - 
suffix.length());
}
if (isMultipart) {
properties.put(stripped, multipartParameters.get(name));
} else {
properties.put(stripped, request.getParameterValues(name));
}
}

// Set the corresponding properties of our bean
try {
BeanUtils.populate(bean, properties);
} catch (Exception e) {
throw new ServletException("BeanUtils.populate", e);
}
The BeanUtils code follows:
// Loop through the property name/value pairs to be set
Iterator names = properties.keySet().iterator();
while (names.hasNext()) {
// Identify the property name and value(s) to be assigned
String name = (String) names.next();
if (name == null) {
continue;
}
Object value = properties.get(name);
// Perform the assignment for this property
setProperty(bean, name, value);
}
This is all there is to it.  That is fairly easy to track and does not 
provide any mysteries that cannot be controlled by the judicious coding of 
the reset() method.

Hope this is helpful.
Michael McGrady
At 04:58 AM 5/16/2004, ayouaa0a wrote:
Sounds great,
ISA, I will make a sample and post it over the group :)
-Original Message-
From: Jonathan Roberts [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 16, 2004 2:44 PM
To: Struts Users Mailing List
Subject: RE: Maintaining form data across pages...
Ashraf,
Why dont you add this to the site once you have resolved the architecture
and code issues - sounds like an issue that alot of people may come across!
Jon
ayouaa0a <[EMAIL PROTECTED]> wrote:
Thanks very much, u have been of a great help :)
-Original Message-
From: Andrea M [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 16, 2004 2:06 PM
To: 'Struts Users Mailing List'
Subject: R: Maintaining form data across pages...
Yes that's the way it works
It does not matter in which scope the form is set
1. JSP submits the form
2. Struts goes to find one in the scope you told him
3. if it finds one, then it calls reset() (so to avoid having stale data),
then populates it
4. it it doesn't find any form in the scope, then istantiates a new one then
carries on
This is because Struts doesn't know if the actionform it founds is being
populated by a multiple-page form, or is simply a stale one.
And this is why reset() takes httpServletRequest as parameter: so you can
implement your own reset logic depending on your particular application flow
-Messaggio originale-
Da: ayouaa0a [mailto:[EMAIL PROTECTED]
Inviato: domenica 16 maggio 2004 12.40
A: 'Struts Users Mailing List'
Oggetto: RE: Maintaining form data across pages...
Yes, that's what I want, I will give it a try.
but what do u mean struts "always calls reset()" everytime it access the
form, this is very strange, even the form is in session!!
Plz domonstrate more, as far as I understood:
1- When a JSP submits a form.
2- Struts calls reset for the form.
3- Try to populate the form from the JSP controls, even it was in session.
-Original Message-
From: Andrea M [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 16, 2004 1:11 PM
To: 'Struts Users Mailing List'
Subject: R: Maintaining form data across pages...
Hi
I'm not sure I've understood properly what you need
What I understand is that you are trying to populate the same actionform
using several pages.
The problem is that struts *always calls reset()* every time it access the
form.
What you can do is making your pages set a flag in the request, so your form
can know where it's called from.
Reset() method takes httpServletRequest as parameter, so you can implement
conditional logic there... sometimes like:
public void reset(ActionMa

UTF8 and Chinese

2004-05-16 Thread Michael McGrady
I am trying to use the image tags from Commons sandbox taglibs.  I am 
trying to use them with Chinese.  The Western European languages work fine 
with them, but the same thing does not work with Chinese.  I am doing the 
following, in essence:

// Welcome in Chinese
String original = new String("\u6b22\u8fce");
and
// "Welcome" in Chinese
String original = new String("\u6b22\u8fce");
byte[] utf8Bytes = original.getBytes("UTF8");
original = new String(utf8Bytes,"UTF8");
Neither works.  I just get the proverbial square boxes on the resultant 
images.  Anyone have any ideas?

Thanks, Michael 

RE: UTF8 and Chinese

2004-05-17 Thread Michael McGrady
UTF-8 works fine with Chinese and everything else.  I am doing it.  It can 
be used, and I do use it, on each JSP page no matter what the language.  I 
am presently using 19 which all work fine with UTF-8.  I wondered about 
that.  And, I am not saying that UTF-8 is always the way to go.  But it 
does work.  The problem was not the UTF-8 but getting a physical Font 
address.  For Hebrew and other Arabic languages I had to reference 
LucidaSans which is with the jre and for the Eastern language I used Arial 
Unicode MS.  One can use the Netscape font too, which is Bitsteam 
Cyberbit.  Unfortunately, I had to work this out on my own.  Wish I had 
gotten more interest, but I have to admit I did not approach the list 
intelligently with this request.  I just assumed that people would figure 
out why I was on the list rather than the reverse.  Oh well, live and 
learn.  My mistake.

Thank you for this interest.  If you have any further interest, please feel 
free to contact me personally.  I have it all working acey duecy as of today.

Michael
At 01:42 AM 5/17/2004, Kransen, J. wrote:
Anyone tell me if I'm wrong, but I doubt if UTF-8 covers Chinese. As I see
it, it only contains 8 bits per character, instead of ASCII's 7 bits, and
for that reason I assume it only covers 2* the number of chars. Maybe you
can try UTF-16 instead?
Jeroen
> -Oorspronkelijk bericht-
> Van: Michael McGrady [mailto:[EMAIL PROTECTED]
> Verzonden: zondag 16 mei 2004 17:47
> Aan: Struts Users Mailing List
> Onderwerp: UTF8 and Chinese
>
> I am trying to use the image tags from Commons sandbox taglibs.  I am
> trying to use them with Chinese.  The Western European languages work fine
> with them, but the same thing does not work with Chinese.  I am doing the
> following, in essence:
>
> // Welcome in Chinese
> String original = new String("\u6b22\u8fce");
>
> and
> // "Welcome" in Chinese
> String original = new String("\u6b22\u8fce");
> byte[] utf8Bytes = original.getBytes("UTF8");
> original = new String(utf8Bytes,"UTF8");
>
> Neither works.  I just get the proverbial square boxes on the resultant
> images.  Anyone have any ideas?
>
> Thanks, Michael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Struts Validation for just current page

2004-05-18 Thread Morowitz, Michael
Rick,

I would suggest having that page submit to another action path that maps
to the same Action and Form you need, but with the validate option set
to false.  This is the tactic that I normally use.  It allows you to
keep your code base intact, but submit to a customized path.

Michael

-Original Message-
From: Adams, Richard K [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 18, 2004 7:34 AM
To: Struts Users Mailing List
Subject: Struts Validation for just current page


I am running Struts 1.1 on Tomcat 4.1.24.  How can I use the validator
to use just the current page, and not all pages <= current page.  I am
using Tiles with a tab structure so each Tile is it's own page number.
When I select a tab, I just want the validation to work on just the
current page, and not all pages <= current page

   Thank you.



Rick Adams   

Lockheed Martin Maritime Systems & Sensors
M.S. 137-233
199 Borton Landing Road, P.O. Box 1027  
Moorestown, N.J. 08057-0927 
Voice:   856-722-3611
Fax:  856-273-5165
E-Mail:  [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


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



Re: Multiple Forms per Submits

2004-05-18 Thread Michael McGrady
The technical answer to your question, if it is taken literally to be about 
the client side, is that with HTML you can only have the values of one form 
on a response page submitted with a request from the client.  If you are 
thinking truly about submitting multiple forms on one page, why not just 
make it one form?  I think you probably, as James apparently also thinks, 
must mean something else.  The reason you must is that extending forms on 
the server side really is fairly unrelated to what you do on the client side.

If you are talking about the server, there is also an answer.  You can do 
just about anything you want to do with form objects.  Most of the things 
you can do are ill-advised, but the alternatives are vast indeed.

Michael McGrady
At 07:38 PM 5/18/2004, James Mitchell wrote:
Could you please restate (or at least clarify) your question?
I don't think I fully understand what you are asking.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 9:32 PM
Subject: Mulitple Forms per Submits
>
> Is there a clean way to have multiple Forms posted when the user click
> the Submit buttons ?
> Basically, instead of  extending various Forms to have some code re-use
> I think it would be much more interresting  to have the possibility to
> post multiple Forms instead of having a Specific form extending generic
> forms... ?
>
> Tx for any help,
>
> \T,
>
>
>
>
>
> --
>
>
> Thomas SMETS
> rue J. Wytsmanstraat 62
> 1050 Brussels
> Tel. : +32 (0)2 742 05 94
> GSM : +32 (0)497 44 68 12
>
>
>
>
> -
> 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: Controller for web services

2004-05-20 Thread Michael McGrady
That is pretty much the reason for Struts, isn't it?  Literally, of course, 
no one can do an MVC implementation for web services, but the older dogs 
get pretty mad when you point that out.  They don't want to hear it for 
some reason.  But, in terms of providing the idea MVC-Like implementation, 
Struts is just what you ordered, I think.  I personally think Struts is 
even much better than its stellar reputation.

Michael McGrady
At 10:20 PM 5/20/2004, Pedro Salgado wrote:
  Is there any MVC implementation for web services (I am not seeing any wasy
way to do that with Struts)?
  Thank you,
Pedro Salgado
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tiles and changing the title based on content

2004-05-21 Thread Michael McGrady
I am not sure why this is a problem.  All you have to do if you want part 
of the response object to be dynamic is put your dynamic value in the 
tile.  Presumably you have some dynamic factor choosing the tiles content 
page.  Just have that same factor decide what the value of the title 
is.  There are lots of ways to introduce dynamic content.  I don't see the 
problem.

Michael
At 11:24 AM 5/21/2004, Tim Penhey wrote:
That requires a static titleKey in the tiles-def.xml, whereas I am dealing 
with a name
property from a bean that comes from a database.

Tim
> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: 21 May 2004 17:48
> To: Struts Users Mailing List
> Subject: Re: Tiles and changing the title based on content
>
>
> 
>
> - Original Message -
> From: "Tim Penhey" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, May 21, 2004 4:59 PM
> Subject: Tiles and changing the title based on content
>
>
> > I was wondering if there is any way to change the title based on the
> content of a tiles
> > based page?
> >
> > I have a current JSP where the title is:
> > ${item.name}
> >
> > Do people have any solutions to this?  At the moment my layout has the
> following:
> >
> > 
> > 
> >
> > Preferably a simple solution, otherwise I'll have to move my dynamic
> titles to something
> > static.
> >
> > Tim
> >
> >
> >
> >
> >
> > -
> > 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: Tiles and changing the title based on content

2004-05-21 Thread Michael McGrady
I assume by the "tile" you mean the JSP page that is referenced in the 
tiles xml, if that is how you are doing it.  If so, you just reference a 
bean property on the JSP page.  Again, what is the problem.  This is 
simple.  I always do this without any difficulty.  Here is something I have 
in one tiles layout JSP page:


This obviously calls a bean referenced as "gui_data" and calls another 
object in that bean with a getScheme() method and the title with a 
getTitle() method. I must misunderstanding the problem, because this is 
simple to do and you must know this.  'Hope this is helpful.

Michael
At 03:41 PM 5/21/2004, David Friedman wrote:
Tim,
Why not use a TilesAction (org.apache.struts.tiles.action package) and
change/set tiles attributes using the putAttribute() method of the
ComponentContext object.  For more details, see the advances tiles PDF.
-David
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Friday, May 21, 2004 6:34 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: RE: Tiles and changing the title based on content
I am not sure why this is a problem.  All you have to do if you want part
of the response object to be dynamic is put your dynamic value in the
tile.  Presumably you have some dynamic factor choosing the tiles content
page.  Just have that same factor decide what the value of the title
is.  There are lots of ways to introduce dynamic content.  I don't see the
problem.
Michael
At 11:24 AM 5/21/2004, Tim Penhey wrote:
>That requires a static titleKey in the tiles-def.xml, whereas I am dealing
>with a name
>property from a bean that comes from a database.
>
>Tim
>
> > -Original Message-
> > From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> > Sent: 21 May 2004 17:48
> > To: Struts Users Mailing List
> > Subject: Re: Tiles and changing the title based on content
> >
> >
> > 
> >
> > - Original Message -
> > From: "Tim Penhey" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, May 21, 2004 4:59 PM
> > Subject: Tiles and changing the title based on content
> >
> >
> > > I was wondering if there is any way to change the title based on the
> > content of a tiles
> > > based page?
> > >
> > > I have a current JSP where the title is:
> > > ${item.name}
> > >
> > > Do people have any solutions to this?  At the moment my layout has the
> > following:
> > >
> > > 
> > > 
> > >
> > > Preferably a simple solution, otherwise I'll have to move my dynamic
> > titles to something
> > > static.
> > >
> > > Tim
> > >
> > >
> > >
> > >
> > >
> > > -
> > > 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: URL Rewriting

2004-05-24 Thread Michael McGrady
Why don't you rewrite UrlRedirect to UrlForward?
At 10:34 PM 5/23/2004, Morten wrote:
Hi!
We are using Struts 1.1 and Tomcat 4.1.x at our company.
We are considering to separate our urls from our struts configuration.
Instead of /news.do?articleid=43 we would like the url to look like this:
/news/article/43. Furthermore the generated html should contain urls of the
form /news/article/43. This change should happen as transparently as
possible for our Action classes.
We have found the UrlRewriteFilter at tuckey.org. However it only solves
part of the problem. The incoming requests will be translated correctly.
However,
the anchors in the generated html remains unchanged.
A solution could be to write our own HttpConnector and then implement our
own HttpServetResponse.encodeURL, which in turn will translate the links.
Do anyone on this list have an (better) alternative to this problem?
Thanks in advance
Morten Knudsen

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


linking to specified FRAMES

2004-05-24 Thread Michael McGrady
At 10:47 PM 5/23/2004, Paresh Patel wrote:
Dear Michael:
1.  Pardon me for sending this mail to you, but I need a bit of help.
2.  Saw that you have done work using frames.
3.  I need to learn about using frames in Struts.
 This is what I would like to do:
- have two frames in a page
- user clicks say catalog in one frame
- and the catalog should get loaded in adjacent frame
4.  Can you please let me know where I can read up so I can do the above ?
Thanks,
a novice,
paresh


Don't know why you had the topic as "Re: resetting values in 
.  But I have changed that.

I have copied the struts user list, Paresh, because I think this is a 
recurrent issue.  I wish I had this email when I started this.

I understand why this recurs, even though experienced people will likely 
say "duh" or think that this is not a good question.  There is something a 
bit different about this situation that throws new people.  I think it is 
because the answer depends upon the value of a tag attribute and not the 
attribute itself.  If one thinks rigorously, this can be confusing.

If one is lucky enough to have formal schooling, this sort of thing does 
not cause a problem.  If you are self-taught like myself, and I suspect 
yourself, this is an issue.  I had the same problem with trying to find out 
why "?" was referenced in Java code dealing with the Internet.  If you have 
to find that out on your own, it is surprisingly hard.  It is like trying 
to find the blank key on a keyboard.

Anyway, pedagogical issues aside, the answer follows.
The key is really simply knowing how the frameset and frame tags work 
generally.  The tags allow you to identify which frame will be called.  The 
frame tag has a name attribute which is mirrored by the name value for the 
target attribute in the related  tag used to call a link.  The best 
thing is to just make a simple html page with a frameset and do a little 
experimenting.  It becomes clear quick when you do that.

Michael


Re: [ot] testing 1 2 3 4

2004-05-24 Thread Michael McGrady
Your messages are coming through, Peter.
At 03:19 AM 5/24/2004, Pilgrim, Peter wrote:
testing 1 2 3 4
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston,
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447
==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: how to send the 'index' to javascript function

2004-05-28 Thread Michael McGrady
This is not true.
At 02:36 AM 5/28/2004, Mark Lowe wrote:
Scirptlets will not work within a html struts tag. If you want to use
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" /> wouldn't render (assuming the form and with the property foo is 
configured) to Despite my gratitude for your insights into this, may I be 
as bold as to ask "Are you absolutely sure?" ,because I'd say perhaps with 
less degree of certainty than your unambiguous statement communicates, 
that "scriptlets work in html struts tags" which I'd hesitate in putting 
forward in the face of such conviction. On 28 May 2004, at 11:25, 
[EMAIL PROTECTED] wrote: > > Scirptlets will not work within a 
html struts tag. If you want to use > scriplets use a normal html tag 
instead. > > Brati Sankar Ghosh > Tata Consultancy Services > Mailto: 
[EMAIL PROTECTED] > Website: http://www.tcs.com > > > > > Mark 
Lowe > > 05/28/2004 02:47 PM > > > Please respond to > "Struts Users 
Mailing List" > > > > To > "Struts Users Mailing List" > > cc > > 
Subject > Re: how to send the 'index' to javascript 
function > > > > > > > > What happens if you try this in your page? > > 
<%= "JSP Works!!!" %> > > > On 28 May 2004, at 11:05, 
[EMAIL PROTECTED] wrote: > > > > > Hi Janarthanan, > > > > I 
tried that, Im getting '<%= index.intValue()%>' in > doThis()   > > and 
not the value. > > > > Regards > >  Subramaniam > > > > > > > > > > > > 
"Janarthan Sathiamurthy" > > > > 05/28/2004 02:12 PM > > > > > > Please 
respond to > >  "Struts Users Mailing List" > > > > > > > > To > > "Struts 
Users Mailing List" > > > > cc > > > > Subject > > RE: how to send the 
'index' to javascript function > > > > > > > > > > > > > > > > try this 
- > >   > onblur="doThis('<%= index.intValue() 
%>')"/> > > > >  Regards, > >  Janarthan S > > > >  -Original 
Message- > >  From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] > >  Sent: Friday, May 28, 2004 9:55 
AM > >  To: Struts Users Mailing List > >  Subject: how to send the 
'index' to javascript function > > > > > > > >  Hi, > > This is my 
jsp. > >  > >  indexed="true"   > > 
onblur="doThis()"/> > >  > >  > > how to send the 
'index' as input to 'doThis()' [javascript   > > 
Function] > > > >  Thanks > >  Subramaniam > > > > > > > > 
ForwardSourceID:NTD4D2 > > > 
- > > 
 > > 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] > > > 
ForwardSourceID:NTA1F6 > 
- >  > 
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]


Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
I have no difficulty running my site with Netscape or IE but Opera 
fails.  Here is the readout I get:

javax.servlet.ServletException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NullPointerException
com.crackwillow.struts.action.ForwardAction.execute(ForwardAction.java:30)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

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


Re: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Michael McGrady
I probably should have added that in my ForwardAction I convert a path from 
the ActionMapping so that users can be allocated a particular look and feel 
that they have chosen on the website.  The line that is related to the 
Opera failure is:

return new ActionForward(layout1.layout + "_" + path);
With Opera, the Layout object referenced as layout1 here is not set in the 
session on my index page.  This difficulty is overcome by putting code in 
to log that the Layout object has been put into the session.  That 
mystifies me.  Any demystification chiefs on this one?

Michael McGrady

At 06:52 AM 5/28/2004, Michael McGrady wrote:
I have no difficulty running my site with Netscape or IE but Opera 
fails.  Here is the readout I get:

javax.servlet.ServletException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NullPointerException
com.crackwillow.struts.action.ForwardAction.execute(ForwardAction.java:30)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

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



Re: Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
Hi, Rick,
I am an Opera fan myself, but this problem ONLY occurs with Opera and not 
the other browsers.  I have posted some more details on this.  Take a look 
at my next posting and get the more mysterious details.  What do you think 
is up?

Michael McGrady
At 07:03 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
I have no difficulty running my site with Netscape or IE but Opera fails.
Can you provide any more information? I highly doubt this is an Opera 
problem. I use Opera every day for my development and haven't run into a 
single "J2EE" problem ( javascript/DHTML/css challenges.. sure .. but 
that's not Opera's fault :)

Are you spawning a new window maybe and trying to use a Session variable? 
Different browsers handle the Session differently in child windows.

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



Re: Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
I am not spawning a new window, Rick, but it is a session variable problem 
as explained in prior emails.  It also is an intermittant 
problem.  Sometimes it happens, and sometimes it does not.  There is no 
apparent reason for the changes.  So, hacks to fix it are regarded by me as 
equally suspicious.  The intermittant problem does not occur with IE and 
Netscape.

Michael McGrady
At 07:03 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
I have no difficulty running my site with Netscape or IE but Opera fails.
Can you provide any more information? I highly doubt this is an Opera 
problem. I use Opera every day for my development and haven't run into a 
single "J2EE" problem ( javascript/DHTML/css challenges.. sure .. but 
that's not Opera's fault :)

Are you spawning a new window maybe and trying to use a Session variable? 
Different browsers handle the Session differently in child windows.

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



[OT] Re: RE : how to send the 'index' to javascript function

2004-05-28 Thread Michael McGrady
No, mine was the only sensible answer.  LOL  ///;-)  Heh, the guy just made 
a mistake.  Leave the poor bugger some dignity.  Someday he is going to 
know a lot more and be of help to us all, in the Xtreme view of 
things.  LOL  I love giving Mark advice because he is such a sweetheart as 
a rule and rarely provides one the opportunity to be all puffy.  LOL

Michael
At 06:27 AM 5/28/2004, Mark Lowe wrote:
But then again, the only sensible answer on this thread was martin's.

On 28 May 2004, at 15:25, Mark Lowe wrote:
Interesting.. Didn't work as i originally predicted..
But as you said this puppy did..
" />
On 28 May 2004, at 14:38, David Gagnon wrote:
Hi
If I remembrer correctly
1) Use: 
2) For the original example do it this way:

When using <%= %> you need to put everything in it.
Hope it help .. hope I'm right :-)
Ciao
/David

-Message d'origine-
De : Mark Lowe [mailto:[EMAIL PROTECTED]
Envoyé : May 28, 2004 05:54
À : Struts Users Mailing List
Objet : Re: how to send the 'index' to javascript function
I've just done the following in a struts html:text tag
" />
This is using the 1.1 release version of struts.. On TC5 and with el
enabled on the page to boot.
The page rendered as I predicted.
Perhaps just a freak accident, and as I said before I wouldn't like to
go up against such a confident statement, but I fear I'm right.
On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:
Hey Mark,
I am sure you r wrong.
If u check the struts-html.tld for 'text' u find -

   onblur
   false
true

This means we can specify the onblur value as a run time expression.
Regards,
Janarthan S
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:07 PM
To: Struts Users Mailing List
Subject: Re: how to send the 'index' to javascript function

Scirptlets will not work within a html struts tag. If you want to
use
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" />
wouldn't render (assuming the form and with the property foo is
configured)
to

Despite my gratitude for your insights into this, may I be as bold as
to ask "Are you absolutely sure?" ,because I'd say perhaps with less
degree of certainty than your unambiguous statement communicates,
that
"scriptlets work in html struts tags" which I'd hesitate in putting
forward in the face of such conviction.
On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:
Scirptlets will not work within a html struts tag. If you want to
use
scriplets use a normal html tag instead.
 Brati Sankar Ghosh
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com

Mark Lowe <[EMAIL PROTECTED]>
05/28/2004 02:47 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
Re: how to send the 'index' to javascript function



What happens if you try this in your page?
 <%= "JSP Works!!!" %>
 On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
Hi Janarthanan,
I tried that, Im getting '<%= index.intValue()%>' in
doThis()
and not the value.
Regards
 Subramaniam


"Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
05/28/2004 02:12 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
RE: how to send the 'index' to javascript function



try this -
 
 Regards,
 Janarthan S
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 28, 2004 9:55 AM
 To: Struts Users Mailing List
 Subject: how to send the 'index' to javascript function

 Hi,
This is my jsp.

indexed="true"
onblur="doThis()"/>

how to send the 'index' as input to 'doThis()' [javascript
Function]
 Thanks
 Subramaniam

ForwardSourceID:NTD4D2
-- --
-

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]
ForwardSourceID:NTA1F6
-- --
-

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

RE: Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
I am not sure why this would be affected.  I put a value in the session 
myself.  Opera should not have to know anything about this, right?  I am 
mystified by this, since it seems that Opera should be unaffected by the 
situation and the problem is intermittant.

Michael
At 07:54 AM 5/28/2004, Slattery, Tim - BLS wrote:
> I am not spawning a new window, Rick, but it is a session
> variable problem as explained in prior emails.
Sessions are kept track of by a cookie. Is it possible that your Opera
browser has been configured to not send or accept cookies?
--
Tim Slattery
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Michael McGrady
No, this is not correct, Rick.  The null pointer is for the reference to 
the Layout object in the session, which in fact is there.  When I have the 
index page check to see if the object is there, Opera does not have a 
problem on OTHER pages.  Odd?  It is as if the placement of that object in 
the session does not happen with Opera unless you check that it has 
happened.  BUT THAT IS ABSURD.  Opera has no knowledge of any of this.  RIght?

Michael
At 07:50 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
I probably should have added that in my ForwardAction I convert a path 
from the ActionMapping so that users can be allocated a particular look 
and feel that they have chosen on the website.  The line that is related 
to the Opera failure is:
return new ActionForward(layout1.layout + "_" + path);
With Opera, the Layout object referenced as layout1 here is not set in 
the session on my index page.  This difficulty is overcome by putting 
code in to log that the Layout object has been put into the session.
That mystifies me.  Any demystification chiefs on this one?
I'm still a bit confused. I'm guessing the NPE is coming from not being 
able to find the forward created by the layout1.layout + "_" + path 
section? Setting it up like:

String forwardName = layout1.layout + "_" + path;
log.debug( forwardname );
return new ActionForward( forwardName );
I'd be curious if that forwardName looks the same under all situations? 
Are you sure you are following the exact same steps for each browser after 
bouning the server? In otherwords, maybe you aren't getting the NPE on 
netscape/IE because you are having layout1.layout set into Session scope 
at some other point that you aren't doing when testing with Opera? Using 
Session vars for this seems a bit odd anyway. Could you avoid using 
layout1.layout as Session attribute?

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



Re: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Michael McGrady
Heh, Rick, I said it was impossible first.  I agree with everything you say 
and I know the computer is always right.  But, this is what I see and I 
have reported it accurately, I think.

Regarding what you did not know I meant.  I thought I explained it but I 
will try again, and try to do better.  I provide different look and feels 
to different clients.  They choose.  Thus, my urls are modified so that I 
can have a constant url in the struts-conf.xml under, e.g. "input" for the 
action mapping, and a variable one in the tiles.xml.  Thus, I have to have 
between the struts xml and the tiles xml readings a way of converting.  I 
do this with a Layout object that is spawned from the ServletContext and 
placed in the session on the index.jsp page.  This is the object that is 
showing null in Opera but is not null in IE or Netscape and I have checked 
to make sure that it is there.  This should not, I know, affect 
Opera.  But, these are the facts and all the facts I know.

The fact is I don't have trouble with IE and Netscape and I do with 
Opera.  Here is the code that Opera seems (in impossible terms) to conflict 
with and is in my index.jsp page which merely FORWARDS to  another page:

  
session.setAttribute(SiteConstant.LAYOUT,session.getServletContext().getAttribute(SiteConstant.LAYOUT));
The FORWARD is  where String 
indexUrl = layout + "_index"; and where layout is presently hardcoded for 
these tests.  When the session gets to "indexUrl", with Opera sometimes the 
session does not have the default layout object in the session.  I can cure 
this in Opera by having the index.jsp FORWARD page contain the following code:

At 11:54 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
No, this is not correct, Rick.  The null pointer is for the reference to 
the Layout object in the session, which in fact is there.  When I have 
the index page check to see if the object is there, Opera does not have a 
problem on OTHER pages.  Odd?  It is as if the placement of that object 
in the session does not happen with Opera unless you check that it has 
happened.  BUT THAT IS ABSURD.  Opera has no knowledge of any of this.  RIght?
If you are sure you haven't changed some cookie settings and you aren't 
spawning a new window, then my guess is there will be a way to duplicate 
the exact same problem in IE/Netscape/Mozilla. I don't get what you mean by:

"The null pointer is for the reference to
the Layout object in the session, which in fact is there."
The above would have nothing to do with a browser and is impossible, 
unless you think you are refering to the same Session but you are not.

In other words, you are setting something in Session scope and then later 
on you do some stuff which somehow spawns a new Session.

To say you are getting a null pointer for a reference to an object that 
really is there in Session is impossible:) In other words if you do

Object obj = session.getAttribute("someOjbect");
and obj is null then there is no way "someObject" is refering to a handle 
to an object in this session.

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



RE: Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
Everyone is saying sensible things and these are my thoughts exactly.  But, 
that is not what I am getting.  I am tending to think that the only option 
is that the problem has happened to appear when Opera is running and that 
really there is something wrong with the session management.  That is the 
direction I have started to go.  I have been buoyed by the fact that you 
all agree that the problem with Opera seems nuts to you too.  Thanks.

Michael
At 08:19 AM 5/28/2004, [EMAIL PROTECTED] wrote:
If that were the case, wouldn't it be a constant, and not an imtermediate, 
problem?

Dennis

"Slattery, Tim - BLS" <[EMAIL PROTECTED]>
05/28/2004 10:54 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc
Subject
RE: Problems with Opera and Struts?

> I am not spawning a new window, Rick, but it is a session
> variable problem as explained in prior emails.
Sessions are kept track of by a cookie. Is it possible that your Opera
browser has been configured to not send or accept cookies?
--
Tim Slattery
[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: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Michael McGrady
This is an excellent suggestion.  I tried hard coding the value that 
layout1.layout should be giving and everything worked.  I also tried 
testing to see if layout1 was null, and it was.  Since layout1.layout is a 
value I want to use throughout the session, always, and is a value that is 
only used in the session, it seems that the session is the proper place to 
put this value.  I am setting the value of the default layout in 
application scope with a plugin.  Then, I am putting that value into a 
session Layout when people come on board.  They can then choose their own 
layout later, or their "host" can have prefigured the Layout for them.  The 
same site has multiple hosts with their own "guests".

Michael
At 07:50 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
I probably should have added that in my ForwardAction I convert a path 
from the ActionMapping so that users can be allocated a particular look 
and feel that they have chosen on the website.  The line that is related 
to the Opera failure is:
return new ActionForward(layout1.layout + "_" + path);
With Opera, the Layout object referenced as layout1 here is not set in 
the session on my index page.  This difficulty is overcome by putting 
code in to log that the Layout object has been put into the session.
That mystifies me.  Any demystification chiefs on this one?
I'm still a bit confused. I'm guessing the NPE is coming from not being 
able to find the forward created by the layout1.layout + "_" + path 
section? Setting it up like:

String forwardName = layout1.layout + "_" + path;
log.debug( forwardname );
return new ActionForward( forwardName );
I'd be curious if that forwardName looks the same under all situations? 
Are you sure you are following the exact same steps for each browser after 
bouning the server? In otherwords, maybe you aren't getting the NPE on 
netscape/IE because you are having layout1.layout set into Session scope 
at some other point that you aren't doing when testing with Opera? Using 
Session vars for this seems a bit odd anyway. Could you avoid using 
layout1.layout as Session attribute?

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



Re: What was the name of this application? [was] Re: Are there any IDE's that understand Struts tags?

2004-05-28 Thread Michael McGrady
Isn't that "HOOyah!"?  LOL
At 03:04 AM 5/28/2004, bOOyah wrote:
Rick Reumann wrote:
Actually there was a struts application/IDE  that was for demo that was 
quite impressive but now I forgot the name.
Was it NitroX from M7?  http://www.m7.com/
The pricetag isn't *that* hefty.
--
bOOyah
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Why do you keep torturing me shaikh.sohrab!

2004-05-30 Thread Michael McGrady
I didn't even know you had a "shaikh.sohrab", Rick!  LOL
At 07:58 AM 5/30/2004, Rick Reumann wrote:
"Why do you keep torturing me shaikh.sohrab of rave-tech dot com!"
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page pre-processing - reply

2004-05-30 Thread Michael McGrady
I am interested in finding a solution for this recurrent problem, as I know 
many are.  My first question, however, is what do Struts and Tomcat use to 
keep track of sesssions?  Anyone have a reference to that information?  I 
think the solution might be to keep something other than a session which is 
a function of time and ip address with a hidden token.

At 09:58 PM 5/29/2004, Rick Reumann wrote:
[EMAIL PROTECTED] wrote:
I was wondering if anybody had already thought about an additional
parameter linked to a struts-forward allowing page pre-processing. This
parameter could point to a new kind of model action that will complete
the model with information needed by the view any time the forward is
activated.
Or... I'm missing something ...
How do you handle such a case?

This question comes up a lot, and I've never been content with any of the 
solutions provided and I've been following this list for a while. My first 
choice is to use the Session for these lists... I know there will be 
garbage in there but to me it's the cleanest solution (and hey RAM is 
cheap:). Another solution proposed is when validation fails set up a 
scenario where you forward to the 'prepare' action again. I haven't used 
this later approach so there might be some issues with it like making sure 
the rest of the form data is populated etc. Another solution that 
everybody hates because it puts business logic in your Form beans is to 
have the validate method in there make a call to repopulate what your page 
needs. I've seen the reset used for this also... and although it breaks 
the MVC structure, it's actually sort of neat since the reset acts as your 
"prepare" making sure the page that is form is going to be used on has 
everything it needs. I still don't recommend you use the FormBean for this 
though - makes it difficult later on to debug and figure out what's going 
on since most expect the form beans to be "dumb"
since they are really only part of the view layer.

If the Session isn't an option for you, I wouldn't even mess with using 
the default validation stuff, and call validation directly from your 
Action (either in execute or the appropriate dispatch method), this way 
you'll have feedback on failure and can repopulate what you need 
accordingly. (I've never run into performance problems using the Session 
though).

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



Re: Struts/tiles: Run-time definition of which tile to include

2004-05-30 Thread Michael McGrady
There are hundreds of ways to do this.  Why don't you just use an 
ActionForward to go to the tiles definition in tiles-defs.xml you 
want?  you are using Struts, right?  Actually I am surprised that what you 
are doing works.  I don't know from the code you showed how the application 
knows to insert the tile in relation to status.  Maybe I will be the one to 
learn on this one, even though I do all my applications with tiles or some 
similar application.

Mike
At 05:14 PM 5/30/2004, David Stevenson wrote:
Bear with a beginner's question, please.  Loads of docs imply this is
possible, but I haven't found ones that actually illustrate how to do it.
Standard scenario, a user can be logged in or out. I want to determine which
Tile is included based on whether they're logged in. This can be determined
from a bean in the session scope.
I have it working, but there must be a better way. My version uses
struts-logic in a JSP to use the bean value to determine which Tile to
insert.  But I want to do away with this JSP and make that decision in the
tiles-defs.xml file to reduce the coupling between the various components.
>From tiles-defs.xml












>From loggedinout.jsp (this is the file that I want do do away with):


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


Re: Struts/tiles: Run-time definition of which tile to include

2004-05-30 Thread Michael McGrady
I also would recommend you read Chapter 11 of Cedric Dumoulin's treat of 
tiles in Ted Husted's book Struts in Action.  That Ted has a sense of 
humour, no?  Struts in ACTION?  LOL

Mike
At 05:14 PM 5/30/2004, David Stevenson wrote:
Bear with a beginner's question, please.  Loads of docs imply this is
possible, but I haven't found ones that actually illustrate how to do it.
Standard scenario, a user can be logged in or out. I want to determine which
Tile is included based on whether they're logged in. This can be determined
from a bean in the session scope.
I have it working, but there must be a better way. My version uses
struts-logic in a JSP to use the bean value to determine which Tile to
insert.  But I want to do away with this JSP and make that decision in the
tiles-defs.xml file to reduce the coupling between the various components.
>From tiles-defs.xml












>From loggedinout.jsp (this is the file that I want do do away with):


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


Re: Error messages in tiles using tiles-defs.xml

2004-06-01 Thread Michael McGrady
I would recommend any of the standard textbooks, Ganesh.  Do you have 
access?  You can also look at the manuals on the struts sight.  There is a 
lot of documentation on this.  The fact that you use tiles is irrelevant to 
this question.  I think I own all the books, etc., so if you get stuck, 
please feel free to inquire about what they mean.  Maybe I will 
know?  ///;-)  If you don't have access to books, please let me know and I 
will go into detail.

Michael
At 10:31 PM 5/31/2004, Ganesh Rao wrote:
Hi everybody!
Can anybody tell  me how to display error messages using saveErrors()
from resouecebundle properties.
Here i'm using tiles.So i need to follow tiles-defs.xml file 
configureation rules.

Ur help thankfully accepted.
Ganesh

-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now


[OT] JSF Tutorial

2004-06-01 Thread Michael McGrady
Anyone have a good manual, tutorial, etc. on JavaServer Faces they would 
recommend?  I saw the O'Reilly book, but it was a bit pricey, I thought.  I 
paged through the book a bit, though, and became convinced that this is a 
direction to take.  Thanks.  Michael


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


RE: [OT] JSF Tutorial

2004-06-01 Thread Michael McGrady
Thanks, James,
Much appreciated!
Michael
At 05:59 AM 6/1/2004, James Holmes wrote:
Hi Mike,
I've compiled an exhaustive list of JavaServer Faces articles, tutorials,
presentations, etc. on my website at:
http://www.jamesholmes.com/JavaServerFaces/
I would recommend you take a look at one of the more recent articles as JSF
has recently finalized and then just last week 1.1 was released.  Older
articles are on the beta versions and are out of date.
Hope that helps,
James Holmes
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 7:48 AM
To: Struts Users Mailing List
Subject: [OT] JSF Tutorial
Anyone have a good manual, tutorial, etc. on JavaServer Faces they would
recommend?  I saw the O'Reilly book, but it was a bit pricey, I thought.  I
paged through the book a bit, though, and became convinced that this is a
direction to take.  Thanks.  Michael

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

2004-06-01 Thread Michael McGrady
Excellent!  Thank you!
At 02:07 PM 6/1/2004, snpe wrote:
You try http://horstmann.com/corejsf/
regards
On Tuesday 01 June 2004 12:47 pm, Michael McGrady wrote:
> Anyone have a good manual, tutorial, etc. on JavaServer Faces they would
> recommend?  I saw the O'Reilly book, but it was a bit pricey, I 
thought.  I
> paged through the book a bit, though, and became convinced that this is a
> direction to take.  Thanks.  Michael
>
>
>
> -
> 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: R: Struts Tag Library

2004-06-02 Thread Michael McGrady
One reason for using struts tags is that people are trained to use 
them.  Business is not always bending to the best coding 
solution.  Business has to bend to the best business decision.

Michael
At 02:55 AM 6/2/2004, Andrea M wrote:
I agree with Rick
Of corse you could use struts tags without Struts framework, but there's no
point in doing so:
Tags like bean, logic and iterate are almost entirely supplanted by JSTL
The only struts tag that is still useful is  but is designed to work
together with ActionServlet, so using it outside the framework would
probably be more trouble than it's worth.
So the answer is: yes you can, but it's useless.
-Messaggio originale-
Da: Rick Reumann [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 2 giugno 2004 2.04
A: Struts Users Mailing List
Oggetto: Re: Struts Tag Library
Srinivasa Jagannadh Gade wrote:
> I've a question with Tag Library.
>
> Can we use only the Struts Tag Library without using Struts Framework as
> a whole(Controller ,Action,Form etc).
It does you no good to use the Struts tags without using tags. The ones
you need from Struts are used in conjunction with ActionForms, which you
wouldn't be using if not using the framework.
Any other tags you 'think' are useful from the Struts tag library you
cold get from using JSTL.
--
Rick
-
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]


validating indexed properties

2004-06-02 Thread Michael Muller
I have a form with a list of 10 assets.  Each asset has a name and a 
cash value.  I've successfully set up the validator to catch when a 
non-numeric cash value is entered.  I would like to display a little 
exclamation point icon next to the field with the bad cash value.

Is this possible?  I don't see any support in the "messagesPresent" tag 
for indexed properties, nor do I see any support for indexed items in 
ActionMessages.

Thanks for your help,
  -- Mike

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


[OT] Struts and Procedural Weight

2004-06-18 Thread Michael McGrady
The following improvement of a DTO could be considered "procedural 
weight":  But, is it?

clientMethod
{
   PersonVO person = PersonDAO.getPersonById(666);
  OrderVO order = person.getOrder();
  CostVO cost = order.getCost();
}

clientMethod
{
  Person person = PersonDAO.getPersonByIdIncludingOrderAndCost(666);
  Order order = person.getOrder();
  Cost cost = order.getCost();
}


no struts classes (jar files) found by application

2004-06-22 Thread Michael Kastner
Hello,
maybe someone can help. I've tried to deploy two struts applications to 
two tomcat test servers (one running tomcat 5.0 and one running tomcat 
4.1) but I can't get it to work on neither of them.

For development purposes I had all required jar files in the 
application's WEB-INF lib. Then I've removed them all and deployed my 
war files to the servers.

I've put all the struts _war_ files from the jakarta-struts-1.1/webapps 
dir into my server's _webapps_ dir as described in the installation part 
of the struts documentation.

After restarting the _servers_ all applications in my webapps folder 
were properly deployed but my own struts application (which is not 
located in the webapps dir) could neither find the struts classes nor 
any other classes required.

Does anybody know why?
How can I make Tomcat (4 and 5) find the struts jar files i.e. classes?
The only way I can get my application running is to put all required 
jars into the application's WEB-INF/lib directory. Since this is not my 
only struts application I end up with multiple copies of theses jar 
files on the same server.

It works that way, but that's not how it's supposed to work, or is there 
something I am missing?

Any help is appreciated.
Greetings
Michael Kastner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: no struts classes (jar files) found by application

2004-06-22 Thread Michael Kastner
Hello Dirk,
thanks for your answer.
That means that I end up with tons of redundant struts packages on my 
production machines and many redundantdantdant class loading processes 
on server startup. Oh well, hard to digest ...

BTW, do you know by any chance whether this applies to the velocity 
packages and to the commons libraries too?

It seems that struts also requires that all the libraries that it 
depends on are located in the WEB-INF/lib diretory as well.

Is that also right?
Greetings
Michael Kastner

Dirk Markert schrieb:
Hello Michael,
  

***
MK> Hello,
MK> maybe someone can help. I've tried to deploy two struts applications to
MK> two tomcat test servers (one running tomcat 5.0 and one running tomcat
MK> 4.1) but I can't get it to work on neither of them.
MK> For development purposes I had all required jar files in the 
MK> application's WEB-INF lib. Then I've removed them all and deployed my
MK> war files to the servers.

MK> I've put all the struts _war_ files from the jakarta-struts-1.1/webapps
MK> dir into my server's _webapps_ dir as described in the installation part
MK> of the struts documentation.
MK> After restarting the _servers_ all applications in my webapps folder
MK> were properly deployed but my own struts application (which is not
MK> located in the webapps dir) could neither find the struts classes nor
MK> any other classes required.
MK> Does anybody know why?
MK> How can I make Tomcat (4 and 5) find the struts jar files i.e. classes?
MK> The only way I can get my application running is to put all required
MK> jars into the application's WEB-INF/lib directory. Since this is not my
MK> only struts application I end up with multiple copies of theses jar
MK> files on the same server.
MK> It works that way, but that's not how it's supposed to work, or is there
MK> something I am missing?
That's exactly the way it is supposed to work. Don't try anything
else.
MK> Any help is appreciated.
MK> Greetings
MK> Michael Kastner
MK> -
MK> To unsubscribe, e-mail: [EMAIL PROTECTED]
MK> For additional commands, e-mail: [EMAIL PROTECTED]

Regards,
Dirk
+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-->>>>>>> to success! <<<<<<-+ 



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


Re: tiles sidebar,header,footer

2004-06-23 Thread Michael McGrady
Are you talking about frames?
At 02:15 AM 6/23/2004, [EMAIL PROTECTED] wrote:
Jignesh
What do you mean by static and called back?
If by this you mean the tiles for these areas do not change, then yes,
this is possible.  The "called back" has me puzzling though.
Cheers
Christopher Marsh-Bourdon
Pyplia Limited


<[EMAIL PROTECTED]>
23/06/2004 10:10
Please respond to "Struts Users Mailing List"
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc:
Subject:tiles sidebar,header,footer
Hi All,
We are using tiles. Is it possible to make header,footer static means all
the time
they will not be called back,when page is submmitted. Also sometimes
sidebar also
remains nonmovable only content gets changed.
-Jignesh

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


-
The information in this e-mail is confidential. It is intended solely for 
the addressee. If you are not the intended recipient please notify the 
sender immediately and delete this message. Any review, dissemination, 
distribution, copying or other use of this communication or the 
information in it is strictly prohibited.

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


Re: no struts classes (jar files) found by application

2004-06-23 Thread Michael Kastner
Hello,
I just wanted to thank all those, who replied to my question. Thanks for 
all the useful hints.

I must have been blind. The link, mentioned by Bill, really explains it:
http://jakarta.apache.org/struts/userGuide/configuration.html#config_add
Thanks for your patience
Michael Kastner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: delete a record

2004-06-23 Thread Michael McGrady
This is not a struts issue.  You have a few choices.  JavaScript is a poor 
one, in my opinion.  Use two response objects: one to give them the option 
and the second to give them the option the second time.  Another way to do 
this is to archive the record instead of deleting it and only delete it 
upon confirmation.  You can archive the record by creating a boolean 
archive value in the record.  There are lots of solutions, of course.

At 08:41 AM 6/23/2004, Julia Weaver wrote:
Thank you Geeta,
What I want to do is when user click DELETE button,
will show a pop-window with information "Are you sure
you want to delete the record?", and with YES and NO
buttons.


--- Geeta Ramani <[EMAIL PROTECTED]> wrote:
> Julia:
>
> I think your question may not be too clear. First
> what do you mean by "delete a record in struts"?
> Strictly speaking, I believe Struts does not (should
> not) have code which properly belongs the
> business/database layer. So assuming that you want
> to show a confirmation page when your application
> successfully deletes a record in the database, all
> you have to do is forward the user to a success.jsp.
> Which is similar to what you always do in Struts. So
> what exactly is your problem? If you explain your
> problem more and/or show some code, maybe someone
> can help you out.
>
> Regards,
> Geeta
>
> > -Original Message-
> > From: Julia Weaver
> [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 23, 2004 11:27 AM
> > To: Struts Users Mailing List
> > Subject: delete a record
> >
> >
> > Hi,
> >
> > Can anyone please tell me:
> > How to do a confirmation when delete a record in
> > struts?
> >
> > Thank you,
> >
> >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Address AutoComplete - You start. We
> finish.
> > 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]
>
>

__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
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]


Re: LabelValueBeans

2004-06-23 Thread Michael McGrady
You can rewrite or extend the class to suit yourself, of course.
At 10:52 AM 6/23/2004, James Mitchell wrote:
No, look at the source for the class and you'll see why.

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 23, 2004 1:31 PM
Subject: LabelValueBeans
> Is there anyway to have a property in my ActionForm class be defined as
> follows:
>
> private LabelValueBean[] myItems;
>
> And be able to have struts automatically populate this collection when the
> form is submitted?  If so, how do I go about storing those values in the
> form so they're seen and populated properly upon submission?
>
> Thanks!
> Chris
>

-
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 can i put a dynamic value to an ?

2004-06-25 Thread Michael McGrady
This is not accurate.  You can use <%= blah_blah %> in other tags.
At 03:37 AM 6/25/2004, Paul McCulloch wrote:
As other posters have said, you can't use a jsp tag to provide the value of
an attribute in another tag. Ever.
However, what you are doing is (probably) redundant. The purpose of the
html:hidden tag is to *automatically* create an 
element in your form with the value already set according to the value in
your form bean.
If you just want to create a hidden input with a value from something other
than your form bean just use the html tag directly. As this is not a jsp tag
you can use a jsp tag as an attribute:
"/>
Paul
> -Original Message-
> From: John Antonakos [mailto:[EMAIL PROTECTED]
> Sent: 25 June 2004 11:17
> To: [EMAIL PROTECTED]
> Subject: How can i put a dynamic value to an  ?
>
>
> I want to do something like the following:
>  property="firstname"/>"/>
>
> is this possible ?
> The above statement produces an error.
> Can i use another statement to do this thing ?
> Give a dynamic value, coming from another bean,
> to an  field ?
>
> Regards, John
>
**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If 
you are not the addressee indicated in this message (or responsible for 
delivery of the message to such person), you may not copy or deliver this 
message to anyone. In such case, you should destroy this message, and 
notify us immediately. If you or your employer does not consent to 
Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are 
not given or endorsed by my Company or employer unless otherwise indicated 
by an authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being 
transmitted via electronic mail attachments we cannot guarantee that 
attachments do not contain computer virus code.  You are therefore 
strongly advised to undertake anti virus checks prior to accessing the 
attachment to this electronic mail.  Axios Systems Ltd grants no 
warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**

-
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: Converting Java Code in JSP to JSTL

2004-06-25 Thread Michael McGrady
Looks like a test, Caroline!
At 05:20 PM 6/25/2004, Caroline Jen wrote:
I was told that JSTL can convert most of the Java code
in JSP.  I still have some problem with initializing
variables and if statments; for example, I do not know
how to write in JSTL of the following:
1. int i = 0;
2. i++;
3. String prevArticle = null;
4. if ( numberOfPosts - 1 == 1 ) {}
5. if ( nextTopic != 0 )
6. String threadID = String.valueOf( threadID_int );
7. if ( threadRows.size() == 0 ) {}
8. if ( previousOffset >= 0 || nextOffset >= 0 ) {}
9. if ( prevArticle != null ) && ( !article.equals(
prevArticle ) ) {}
if anybody could kindly show me the JSTL equivalents?


__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
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]


[OT -- for Martin: bounce backs from Brian Husted] Fwd: Undeliverable: Re: Converting Java Code in JSP to JSTL

2004-06-25 Thread Michael McGrady
These are the bounce backs we are getting, Martin, if you did not get the 
emails.


Envelope-to: [EMAIL PROTECTED]
Subject: Undeliverable: Re: Converting Java Code in JSP to JSTL
Date: Fri, 25 Jun 2004 20:33:48 -0400
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
Thread-Topic: Converting Java Code in JSP to JSTL
Thread-Index: AcRbFT2tAfiE4XwbS5iyrTN3sew/LHCt
From: "System Administrator" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
X-OriginalArrivalTime: 26 Jun 2004 00:33:33.0698 (UTC) 
FILETIME=[3651AE20:01C45B15]

Your message
  To:  Struts Users Mailing List
<[EMAIL PROTECTED]>@[EMAIL PROTECTED];
[EMAIL PROTECTED]@[EMAIL PROTECTED]
  Subject: Re: Converting Java Code in JSP to JSTL
  Sent:Fri, 25 Jun 2004 20:33:17 -0400
did not reach the following recipient(s):
Brian Husted on Sat, 26 Jun 2004 00:33:17 -0400
User Brian Husted/AMS/AMSINC (Brian Husted/AMS/[EMAIL PROTECTED]) not
listed in public Name & Address Book
Original-Envelope-ID: c=us;a= ;p=AMS;l={52F5B406-3C-040626003341Z-28290
Reporting-MTA: dns; CARNEY.ams.com
Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.0
X-Display-Name: Brian Husted
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
Subject: Re: Converting Java Code in JSP to JSTL
Date: Fri, 25 Jun 2004 20:33:17 -0400
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Re: Converting Java Code in JSP to JSTL
Thread-Index: AcRbFT2tAfiE4XwbS5iyrTN3sew/LA==
From: "<[EMAIL PROTECTED]>@[EMAIL PROTECTED]" 
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List <[EMAIL PROTECTED]>@[EMAIL PROTECTED]" 
<[EMAIL PROTECTED]>,
"[EMAIL PROTECTED]@[EMAIL PROTECTED]" 
<[EMAIL PROTECTED]>

Looks like a test, Caroline!
At 05:20 PM 6/25/2004, Caroline Jen wrote:
>I was told that JSTL can convert most of the Java code
>in JSP.  I still have some problem with initializing
>variables and if statments; for example, I do not know
>how to write in JSTL of the following:
>
>1. int i = 0;
>2. i++;
>3. String prevArticle = null;
>4. if ( numberOfPosts - 1 == 1 ) {}
>5. if ( nextTopic != 0 )
>6. String threadID = String.valueOf( threadID_int );
>7. if ( threadRows.size() == 0 ) {}
>8. if ( previousOffset >= 0 || nextOffset >= 0 ) {}
>9. if ( prevArticle != null ) && ( !article.equals(
>prevArticle ) ) {}
>
>if anybody could kindly show me the JSTL equivalents?
>
>
>
>
>
>__
>Do you Yahoo!?
>Yahoo! Mail - 50x more storage than other providers!
>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]

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


Re: A Strange Title Tile Problem

2004-06-26 Thread Michael McGrady
I am surprised, if you have been working with messages much, that you have 
not seen this.  It means that the "message" was put into the properties 
files after you last started your server instance in most cases.  Restart 
the application, and if you have the message in the properties file, it 
should show up.

At 11:57 PM 6/25/2004, you wrote:
I have been using tiles for a while.  All of a sudden,
a piece of "title" tile in one of my web pages behaves
weird; e.g. all others work fine except this one.  It
is 2:30 am in the morning.  Maybe, I am not sober
enough to see the problem:
In my application.properties, I have:
#-- message pages --
message.Form.title=Send A New Message
thread.Form.title=List of All Discussion Topics
posting.Form.title=Postings Under Each Topic
The values of message.Form.title and thread.Form.title
all get picked up properly and displayed in the
browser.  Something went wrong with
posting.Form.title.  In the browser, I got:
???en_US.posting.Form.title???
What could cause this kind of problem?
In my tiles-defs.xml:

  





  
   ...
   ...
  


   
  


  
  


  
   ...
   ...

My page layout looks like:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/tiles" prefix="tiles" %>
__ Do you Yahoo!? Yahoo! Mail Address 
AutoComplete - You start. We finish. 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]


Re: A Strange Title Tile Problem

2004-06-26 Thread Michael McGrady
Oh!  I see, Caroline.  You don't know how to use Struts messages.  Or I 
don't.  One of us doesn't.  If you can reference a property message with 
plain text and no tag, that is a surprise to me.

At 11:57 PM 6/25/2004, you wrote:
I have been using tiles for a while.  All of a sudden,
a piece of "title" tile in one of my web pages behaves
weird; e.g. all others work fine except this one.  It
is 2:30 am in the morning.  Maybe, I am not sober
enough to see the problem:
In my application.properties, I have:
#-- message pages --
message.Form.title=Send A New Message
thread.Form.title=List of All Discussion Topics
posting.Form.title=Postings Under Each Topic
The values of message.Form.title and thread.Form.title
all get picked up properly and displayed in the
browser.  Something went wrong with
posting.Form.title.  In the browser, I got:
???en_US.posting.Form.title???
What could cause this kind of problem?
In my tiles-defs.xml:

  





  
   ...
   ...
  


   
  


  
  


  
   ...
   ...

My page layout looks like:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/tiles" prefix="tiles" %>
__ Do you Yahoo!? Yahoo! Mail Address 
AutoComplete - You start. We finish. 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]


Re: [OT] Storing Birth Date

2004-06-26 Thread Michael McGrady
There are lots of ways to do this, of course, but I have found over the 
years that working from a long value works best for me.  From there you can 
go any direction.

Michael
At 09:46 AM 6/26/2004, Rick Reumann wrote:
Eddie Yan 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).
I tend to do it slightly different than Mark's approach or yours above 
using combo boxes. I like to let the user be able to free form type in the 
date and also provide the option of calendar date picker (plenty of free 
javascript ones out there). I hate having to select each part of the date 
from a drop down since I can type in a date pretty quickly (If the user 
hates typing that's what the calendar picker is for).

I usually put the format I want next to the date field in the JSP as 
defined as bean message property that can be looked up in the 
ApplicationResources file (ie form.date.format=mm/dd/yy ). Not only is 
this good in case you want to deal with localization issues, but it's nice 
if someone comes to you and says "Product Manager John Doe would rather 
the user's enter the date as mm-dd- instead of mm/dd/yy"

The form field I take is a simple String. I then validate using the 
validator framework or simply validate in the Action itself. (If you use 
the validator framework you have to register your date converter, but once 
registered it's set for the whole application so you only do it once. If 
you want to go that route I can show you how to do it.. there are some 
posts in the archives here how to do it also). When needing to display the 
date back in the form it's just as easy when you have that converter 
registered since BeanUtils can convert it correctly for you.

I like the flexibility of this approach. I can see the benefit also of 
having the ActionForm return the Date formats you want, but it's not my 
preferred way of doing it.

--
Rick
-
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: Tag

2004-06-26 Thread Michael McGrady
Looks as if the value of the page attribute begins with " and ends with 
'.  That won't work if that is accurate.

At 07:59 PM 6/26/2004, Caroline Jen wrote:
<%@ taglib uri="/tags/struts-html" prefix="html" %>
in the beginning of my JSP.
This statement that makes an image clickable:
<%if ( previousTopic != 0 ) {%><%}%>
gives me an error message:
/article/content/viewpostings.jsp(163,101) According
to TLD, tag html:img must be empty, but is not'
I have checked two things:
1. the JSP works if I replace the  tag
with some text:
<%if ( previousTopic != 0 ) {%>[previous
topic]<%}%>
2. the image left.gif ( I have checked the spelling
and the extension) is in the
MyApplication/article/common/images directory.
I do not understand the error message.  Please help.

__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
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]


Re: Nested dispatch action

2004-06-27 Thread Michael McGrady
Danged if I can make out what it is you are trying to do, Mark.  You say:
"The situation is that i need to add an item to the the levelOne object. 
But when submitting there's no way of grabbing the index and thus knowing 
which of the levelOne objects to add a new rows of nested object to."

This means, I gather, that you want to add a "course" to forEach 
iteration.  Is that right?  You might, for example, want to add 
"dessert"?  Where is this being "added" in the sense of where the decision 
is being made.  Is it the client using the form or the server making the form?

Others may clearly see what the question is.  Sorry if it is obvious and I 
am just being thick headed.

Michael


At 04:15 AM 6/27/2004, Mark Lowe wrote:
The only means i've thought this could be possible would be to iterate 
through the parameter names enumeration like this..

Enumeration parameterNames = request.getParameterNames();
String parameter = mapping.getParameter();
while(parameterNames.hasMoreElements()) {
String paramName = parameterNames.nextElement();
if(paramName.indexOf(parameter) != -1) {
// find the index using substring
nestedDispatchMethod([struts gubbins],parameter, index);
}
}
But given such forms are likely to have a lot of parameter names this 
would seem a bit heavy going.


On 27 Jun 2004, at 12:42, Mark Lowe wrote:
I've been looking through the struts source with a view to trying to find 
a way of handling nested dispatch actions.

Basically the problem is passing through an index or  key to the 
getMethodName (MappedDispatchAction) or the getKeyMethodMap 
(LookupDispatchAction) and running a method based on that.







..

The situation is that i need to add an item to the the levelOne object. 
But when submitting there's no way of grabbing the index and thus knowing 
which of the levelOne objects to add a new rows of nested object to.

So far I've been using the unspecified method and searching the parameter 
names for a custom button name. So not really dispatching any thing. But 
If i wanted to go another level i would arrive at the same problem.

So far it looks like adding a nestedDispatchMethod or 
indexedDispatchMethod which also passes the index through.

Anyone else looked into this? It would seem a common enough problem.
Mark





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



Returned From List

2004-06-27 Thread Michael McGrady
Anyone know why we keep getting these irritating messages every time we 
send something to the list?

Subject: Undeliverable: Re: Nested dispatch action
To: <[EMAIL PROTECTED]>
Your message
  To:  Struts Users Mailing List
<[EMAIL PROTECTED]>@[EMAIL PROTECTED]; Struts Users Mailing List
<[EMAIL PROTECTED]>@[EMAIL PROTECTED]
  Subject: Re: Nested dispatch action
  Sent:Sun, 27 Jun 2004 09:51:09 -0400
did not reach the following recipient(s):
Brian Husted on Sun, 27 Jun 2004 13:51:09 -0400
User Brian Husted/AMS/AMSINC (Brian Husted/AMS/[EMAIL PROTECTED]) not
listed in public Name & Address Book
Original-Envelope-ID: c=us;a= ;p=AMS;l={52F5B406-3C-040627135157Z-31353
Reporting-MTA: dns; CARNEY.ams.com
Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.0
X-Display-Name: Brian Husted
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
Subject: Re: Nested dispatch action
Date: Sun, 27 Jun 2004 09:51:09 -0400
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Re: Nested dispatch action
Thread-Index: AcRcTfJdl3589VHLQUGlqrO4Nj9WAw==
From: "<[EMAIL PROTECTED]>@[EMAIL PROTECTED]" 
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List <[EMAIL PROTECTED]>@[EMAIL PROTECTED]" 
<[EMAIL PROTECTED]>,
	"Struts Users Mailing List <[EMAIL PROTECTED]>@[EMAIL PROTECTED]" 
<[EMAIL PROTECTED]>

Danged if I can make out what it is you are trying to do, Mark.  You say:
"The situation is that i need to add an item to the the levelOne object.
But when submitting there's no way of grabbing the index and thus knowing
which of the levelOne objects to add a new rows of nested object to."
This means, I gather, that you want to add a "course" to forEach
iteration.  Is that right?  You might, for example, want to add
"dessert"?  Where is this being "added" in the sense of where the decision
is being made.  Is it the client using the form or the server making the form?
Others may clearly see what the question is.  Sorry if it is obvious and I
am just being thick headed.
Michael


At 04:15 AM 6/27/2004, Mark Lowe wrote:
>The only means i've thought this could be possible would be to iterate
>through the parameter names enumeration like this..
>
>Enumeration parameterNames = request.getParameterNames();
>String parameter = mapping.getParameter();
>
>while(parameterNames.hasMoreElements()) {
> String paramName = parameterNames.nextElement();
> if(paramName.indexOf(parameter) != -1) {
> // find the index using substring
> nestedDispatchMethod([struts gubbins],parameter, index);
> }
>}
>
>
>But given such forms are likely to have a lot of parameter names this
>would seem a bit heavy going.
>
>
>
>
>On 27 Jun 2004, at 12:42, Mark Lowe wrote:
>
>>I've been looking through the struts source with a view to trying to find
>>a way of handling nested dispatch actions.
>>
>>Basically the problem is passing through an index or  key to the
>>getMethodName (MappedDispatchAction) or the getKeyMethodMap
>>(LookupDispatchAction) and running a method based on that.
>>
>>
>>
>>
>>
>> > varStatus="nestedIndex">
>> 
>> 
>> ..
>>
>>The situation is that i need to add an item to the the levelOne object.
>>But when submitting there's no way of grabbing the index and thus knowing
>>which of the levelOne objects to add a new rows of nested object to.
>>
>>So far I've been using the unspecified method and searching the parameter
>>names for a custom button name. So not really dispatching any thing. But
>>If i wanted to go another level i would arrive at the same problem.
>>
>>So far it looks like adding a nestedDispatchMethod or
>>indexedDispatchMethod which also passes the index through.
>>
>>Anyone else looked into this? It would seem a common enough problem.
>>
>>Mark
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>-
>>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: EJB + Struts + Hibernate

2004-06-27 Thread Michael McGrady
What's so special about SPRING?  I am always interested in application 
frameworks.  Can anyone give a quick synopsis of the pluses and minuses?

Micahel
At 07:42 AM 6/27/2004, Mark Lowe wrote:
+1
You'll want to look at spring whether you want to use EJB or Hibernate.
On 27 Jun 2004, at 16:02, Bryan Hunt wrote:
I don't believe it is unless you feel that the application will need to 
be distributed across a cluster.

I use the (excellent) spring framework ( springframework.org ) so that I 
can plug into a EJB layer if necessary in the future.

--b
Irfandhy Franciscus wrote:
Hi,
Does any of you guys has eve developed Web Apps using Struts and 
hibernate ? If you have, do you think EJB is a necessary  layer on
top of hibernate ?

Thanks in advance  ^^
Regards,
Irfandhy Franciscus
-
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: LookupDispatchAction Default Action

2004-06-27 Thread Michael McGrady
The easy answer is that you can have your framework do whatever you want it 
to do when it receives a URL.  If the URL is directed to the Struts 
ActionServlet by your server, you can also code further choices, etc. there.

At 08:33 PM 6/27/2004, Rodney Paul wrote:
Hi All,
I have a problem in regards to the LookupDispatchAction Struts class.
My problem is in regards to a user pressing the "Enter" key on a keyboard.
In this scenario, a form submit has been activated via html, with no 
submit buttons having been pressed.
When Struts see's this, the Struts engine displays a java error indicating 
that the parameter being used for lookup's doesnt exist in the request.

Now is there a way of indicating to Struts that if the user presses the 
"Enter" key a default action will occur.
In other words, without using Javascript for trapping the "Enter" key, is 
there a way to tell struts to execute a default method
if the user presses the "Enter" key. In particular a descriptor value 
indicating the default method to execute.

If possible could anyone help me with a solution to this problem.
Cheers
Rodney Paul
ps. Could Ted Husted please have a look at this.
-
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: multiple submit buttons/one form

2004-06-28 Thread Michael McGrady
Try:
http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript
At 03:19 AM 6/28/2004, Axel Groß wrote:
just don't forget to keep the messages unique per form
had once delete property and delete main entries in one form, so the message
shouldn't be 'delete' for both of them...
ciao,
Axel
On 2004-06-28 at 14:56:32 +1200, [EMAIL PROTECTED] wrote:
> There is a nice solution described here
>
> http://husted.com/struts/tips/003.html
>
> using the LookupDispatchAction  action.
>
> Cheers, Martin
>
>
>
> Eric Schneider <[EMAIL PROTECTED]>
> 28/06/2004 14:47
> Please respond to
> "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
>
> To
> "Struts Users Mailing List" <[EMAIL PROTECTED]>
> cc
>
> Subject
> multiple submit buttons/one form
>
>
>
>
>
>
> Hi,
>
> What is best approach using Struts for a forms that have multiple
> submit buttons.   Is it possible to bind actions to submit buttons
> instead of forms?   Ideally, I'd like each submit button to execute
> different actions.
>
> Looking at the docs, a solution hasn't jumped out at me.   This is
> something that must be common, no?
>
> Thanks,
> Eric
>
>
> -
> 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]


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' %>
<html:html locale='true'>
<head>
</head>
<body bgcolor='red'>
<html:form
  name="buttonForm"
  type="com.crackwillow.struts.form.CrackWillowButtonForm"
  method="get"
  action='/logOnWebmaster.do'>
  <input type="text" name="firstName" value="">FIRST NAME<BR>
  <input type="text" name="lastName" value="">LASTNAME<BR>
  <input type="text" name="email" value="">EMAIL<BR>
  <crackwillow:image property="button.reset" 
src="resource.do?file_type=gif&file_name=RESET.gif"/><BR>
  <crackwillow:image property="button.submit" 
src="resource.do?file_type=gif&file_name=SUBMIT.gif"/><BR>
  <crackwillow:image property="button.clear" 
src="resource.do?file_type=gif&file_name=CLEAR.gif"/><BR>
  <crackwillow:image property="button.cancel" 
src="resource.do?file_type=gif&file_name=CANCEL.gif"/><BR>

</html:form>
</html:html>

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 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' %>
<html:html locale='true'>
<head>
</head>
<body bgcolor='red'>
<html:form
  name="buttonForm"
  type="com.crackwillow.struts.form.CrackWillowButtonForm"
  method="get"
  action='/logOnWebmaster.do'>
  <input type="text" name="firstName" value="">FIRST NAME<BR>
  <input type="text" name="lastName" value="">LASTNAME<BR>
  <input type="text" name="email" value="">EMAIL<BR>
  <crackwillow:image property="button.reset" 
src="resource.do?file_type=gif&file_name=RESET.gif"/><BR>
  <crackwillow:image property="button.submit" 
src="resource.do?file_type=gif&file_name=SUBMIT.gif"/><BR>
  <crackwillow:image property="button.clear" 
src="resource.do?file_type=gif&file_name=CLEAR.gif"/><BR>
  <crackwillow:image property="button.cancel" 
src="resource.do?file_type=gif&file_name=CANCEL.gif"/><BR>

</html:form>
</html:html>

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: returning to the calling page

2004-06-30 Thread Michael McGrady
I really hate to have to address this, Brian, but this language is clearly 
inappropriate for a public forum.

Michael
At 05:35 AM 6/23/2004, you wrote:
Hi ,
I have the following action
http://localhost:8080/jestate-jsp/client-property-view-for-rent-action.do?id=1
On this page I have a form for adding a house to the shopping basket.
The shopping basket is displayed all the time on the left side of the site.
When someone calls this action ( client-add-to-basket.do ) I wanted the house
to be added to the basket and then have them bounce back to the original page.
I did try this approach 
if (mapping.getInput() != null) {
   //  return new ActionForward(mapping.getInput());
   return mapping.getInputForward();
   } else //we're fucked !{
   System.out.println("we're fscked ");
   return null;
   }
. but it didn't seem to work, I believe I would have to specify the 
input in the struts config
file and I intend for this page to be called from any page in the application.

Anyone got any suggestions ?
--b
-
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: returning to the calling page

2004-06-30 Thread Michael McGrady
LOL -- Did you notice my name, Brian?  No worries!
At 07:06 AM 6/23/2004, you wrote:
sorry i'm irish, we curse a lot. slaps self on wrist 
--b
Michael McGrady wrote:
I really hate to have to address this, Brian, but this language is 
clearly inappropriate for a public forum.

Michael
At 05:35 AM 6/23/2004, you wrote:
Hi ,
I have the following action
http://localhost:8080/jestate-jsp/client-property-view-for-rent-action.do?id=1 

On this page I have a form for adding a house to the shopping basket.
The shopping basket is displayed all the time on the left side of the site.
When someone calls this action ( client-add-to-basket.do ) I wanted the 
house
to be added to the basket and then have them bounce back to the original 
page.

I did try this approach 
if (mapping.getInput() != null) {
   //  return new ActionForward(mapping.getInput());
   return mapping.getInputForward();
   } else //we're fucked !{
   System.out.println("we're fscked ");
   return null;
   }
. but it didn't seem to work, I believe I would have to specify the 
input in the struts config
file and I intend for this page to be called from any page in the 
application.

Anyone got any suggestions ?
--b
-
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]


[OT] RE: how to handle special characters like "®"

2004-06-30 Thread Michael McGrady
Great article!  Thanks Steve
At 09:05 AM 6/30/2004, you wrote:
This article http://www.joelonsoftware.com/articles/Unicode.html
provides a good introduction to character encodings. It may help.
Steve
> -Original Message-
> From: Christina Siena [mailto:[EMAIL PROTECTED]
> Sent: June 29, 2004 5:07 PM
> To: [EMAIL PROTECTED]
> Subject: how to handle special characters like "®"
>
>
> I am trying to figure how to handle special characters like "®".
>
> When the form is posted, the form attribute contains "®"
> instead of "®".
>

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


[OT] Netscape 7.1 WOW!

2004-06-30 Thread Michael McGrady
I have not used Netscape regularly for a while.  But, I just tried the 
newest Netscape 7.1 and I am really impressed.  Wow!  Speed, no crappy ads, 
etc.  This is what I had hoped a browser would do!

Michael

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


Re: [OT] Netscape 7.1 WOW!

2004-06-30 Thread Michael McGrady
I will check it out, but the present Netscape  is so much better than 
anything I have used before I am sticking with it a bit.  I love the look 
too.  Maybe the difference is that I did a custom installation?

Michael
At 10:01 AM 6/30/2004, you wrote:
I think Mozilla Firefox 0.9.1 would make you WOW! (all capitals!)
http://www.mozilla.org/products/firefox/
ATTA
- Original Message -
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 30, 2004 9:51 AM
Subject: [OT] Netscape 7.1 WOW!
> I have not used Netscape regularly for a while.  But, I just tried the
> newest Netscape 7.1 and I am really impressed.  Wow!  Speed, no crappy
ads,
> etc.  This is what I had hoped a browser would do!
>
> Michael
>
>
>
> -
> 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] Netscape 7.1 WOW!

2004-06-30 Thread Michael McGrady
Isn't this parade of praise for foxfire and odd way for Netscape to 
advertise?  LOL

At 03:58 PM 6/30/2004, you wrote:
I love the extensions available for firefox.  That, and the
security/reliability compared to IE - the two reasons I was able to get
my parents to switch.  Checkout what's available here:
http://texturizer.net/firefox/extensions/
-
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: 2 Actions + 1 Form + 1 Submit

2004-07-02 Thread Michael McGrady
Thanks Niall.  I realized, too, that the best solution was to have the 
rendering of the  tag put in the needed parameters for 
the image upload.  Michael

At 05:32 AM 7/2/2004, you wrote:
Yes because you are not posting the form when the browser renders the image
button.
The only thing the action you are using to render the image will have access
to are the parameters included in the url. So for example
  
the resource.do action will have access to the file_type and file_name
parameters only - not the rest of the stuff on your form.
Niall
- Original Message -
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 29, 2004 10:33 AM
Subject: 2 Actions + 1 Form + 1 Submit
> 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' %>
>
> <html:html locale='true'>
> <head>
> </head>
> <body bgcolor='red'>
> <html:form
>name="buttonForm"
>type="com.crackwillow.struts.form.CrackWillowButtonForm"
>method="get"
>action='/logOnWebmaster.do'>
>
><input type="text" name="firstName" value="">FIRST NAME<BR>
><input type="text" name="lastName" value="">LASTNAME<BR>
><input type="text" name="email" value="">EMAIL<BR>
>
><crackwillow:image property="button.reset"
> src="resource.do?file_type=gif&file_name=RESET.gif"/><BR>
><crackwillow:image property="button.submit"
> src="resource.do?file_type=gif&file_name=SUBMIT.gif"/><BR>
><crackwillow:image property="button.clear"
> src="resource.do?file_type=gif&file_name=CLEAR.gif"/><BR>
><crackwillow:image property="button.cancel"
> src="resource.do?file_type=gif&file_name=CANCEL.gif"/><BR>
>
> </html:form>
>
>
> </html:html>
>
>
>
> 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]
>
>
>

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


Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
Hi @all!

The example struts-faces2.war (and the other example struts-faces.war)
doesn't run on my BEA weblogic 8.1 SP1.

During startup of the server the following exception is thrown:

<05.07.2004 12.19 Uhr CEST> 

Is there anybody having the same problem or better knowing the solution? ;-)

Thanks in advance for help.

Michael


AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
Hi James!

Did you copy the JSF jar files into the directory where the
struts-faces*.war files are expanded to?  The JSF jars are not packaged
inside the .war files.

Yes, I`ve done this. Not directly, but I`ve unzipped the war-file and zipped
after copying the three-jsf-jars into (jsf-api.jar, jsf-impl.jar, jstl.jar).
Though it`s not running.

If I`m debugging the first call of the example app, the LifeCycleFactory
returns null in the RequestProcessor and so nothing can go on.

Other hints?

Michael
http://www.struts-it.de

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



AW: Struts-faces2.war do not run with BEA Weblogic 8.1SP1

2004-07-05 Thread Albrecht, Michael
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:382)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:286)
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
322)
... 35 more


Because the EL-package is introduced in JSP 2.0 (J2EE 1.4) I think it fails
because of lack of EL-classes, doesn't it?!

I packed the commons-el.jar additionally to the WEB-INF\lib - directory but
nothing has been changed.

I`m not sure if anybody has ever achieved a running JSF-Tiles-Struts -
example.
If it is so, please contact me.

Thanks in advance,
Michael
http://www.struts-it.de

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



Re: Form bean scope question

2004-07-06 Thread Michael McGrady
Yes, this is the problem.
At 04:05 AM 7/6/2004, you wrote:
I have had a problem like this before and what I did is add the
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
in the included/inserted jsp pages.
HTH,
Glenn


John Moore <[EMAIL PROTECTED]>
06/07/2004 06:24 AM
Please respond to "Struts Users Mailing List"


To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc:
Subject:Re: Form bean scope question
 Classification:
Mark Lowe wrote:
> You may have stuff configured to process such requests but an out the
> box version of struts would probably need
>
> 
> to find a mapping such as
>
> 
Yes, I do. It's actually all working perfectly, the only problem I'm
having is when I try to factor out the common HTML, as I mentioned.
John
--
==
John Moore - Norwich, UK - [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]


AW: Book recommendations

2004-07-06 Thread Albrecht, Michael
Hi Nick!

I think on http://wiki.apache.org/struts/StrutsBooks you will find, what
you`re looking for.

Bye,
Michael
http://www.struts-it.de

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



AW: Book recommendations

2004-07-06 Thread Michael Albrecht
Hi Nick!

I think on
http://wiki.apache.org/struts/StrutsBooks
you will find, what you`re looking for.

Bye,
Michael
http://www.struts-it.de
--
NEUSTA Computersprachen GmbH
Ostertorsteinweg 30
28203 Bremen
Tel.: +49 421 20696-22
Fax: +49 421 20696-99
Mobil: +49 171 4289299

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



Re: Form bean scope question

2004-07-06 Thread Michael McGrady
The problem is that, no matter what that is causing the problem.  The error 
report tells you that is the problem.  The problem is that you are not 
seeing what the error tells you is not being seen.  So, track it back.  If 
the "taglib" line is there, then the URI might be set wrong elsewhere or 
not set at all, etc.  But, the problem is identified clearly, in my 
opinion, and this is it.

At 01:20 PM 7/6/2004, you wrote:
Michael McGrady wrote:
Yes, this is the problem.
At 04:05 AM 7/6/2004, you wrote:
I have had a problem like this before and what I did is add the
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
in the included/inserted jsp pages.
Unfortunately it isn't. The necessary taglib line is there. Must be 
something else, but what?

John
--
==
John Moore - Norwich, UK - [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: Form bean scope question

2004-07-06 Thread Michael McGrady
To what does this refer?  You must be trying to find this but why?
At 02:18 AM 7/6/2004, you wrote:
org.apache.struts.taglib.html.BEAN

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


Re: some best practices questions

2004-07-06 Thread Michael McGrady
I think the obvious is important with this recurrent problem.  The obvious 
is that you want to persist data for a period that is not coincident with 
the normal devices for doing that. i.e. request, session and context 
scopes.  The difficulty is matching up with storage method on the server 
with the "life-term" of the client.  There are any number of solutions to 
this problem with varying pluses and minuses, and I think you really have 
to solve what you need for your problem.  I have no doubt that there are 
recurrent problems and that some general solutions to those particular 
recurrent problems would be useful.  I have been mulling this around in my 
head for a while trying to get some sense about this.  I wouldn't mind an 
ongoing discussion group on this alone somehow, if there were a way to do 
that.  I might create a forum for that.


At 07:43 PM 7/6/2004, you wrote:
I recently developed an application with a complex UI. One of the pages 
required querying the database based on user selection and re-displaying 
the page with the retrieved data and any previous existing user 
selections. Four different fields can trigger a db query resulting in page 
re-display and validations can also result in page re-display. Each time 
the page is re-displayed, the "state" of the page must be "remembered" 
from the last time it was displayed. (still with me so far?) Most of the 
data retrieved is list data displayed in single- or multi-select lists and 
populated using html:options collection and LabelValueBean. (for those of 
you reading this post who have developed similar code, you will know what 
I'm referring to).

In the action, the retrieved data is placed in session scope to minimize 
db hits. I thought this was a good idea at the time. For some reason, 
placing data in session scope is frowned upon by some members of my team 
(even if improves performance). Anyways, what I need are some ideas of the 
best practices that fellow Struts users follow when a page requires 
querying the db and re-displaying the page with the retrieved data and 
previous selections if placing the data in session scope is not an option. 
How can I recall the previously retrieved data without requerying the db? 
Would it make sense to hide the data in the page? (i.e. either using 
hidden fields or hidden select lists or to generate a JavaScript array). 
What are the risks, if any, of hiding the data in the page? (i.e. performance).

If anyone has developed similar pages, can you tell me if you decided for 
or against placing data in session scope and why?

Any ideas would be appreciated.
Thanks in advance.

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


Re: some best practices questions

2004-07-06 Thread Michael McGrady
Ever thought about creating a new scope managed by your own manager from 
application scope?  That is an approach I have been thinking of more and 
more as of late.

At 08:35 PM 7/6/2004, you wrote:
I used hidden select lists to restore user selections since I wasn't 
"allowed" to place the whole form in session scope. The 
management/maintenance of user selections was indeed ugly (but its done 
and works fine). My question has to do with the data retrieved from the db 
(from which the user makes selections). For example, when the form is 
initially displayed, I populate a list of vehicle lines (i.e. Focus, 
Mustang, Freestar, and so on). The user can copy a vehicle line from the 
source list to the target list. The target list consists of user 
selections. When the page needs to be re-displayed as a result of some 
other query, I needed to re-populate the list of vehicle lines (the source 
list). I felt that re-retrieving the same vehicle lines from the db again 
was silly (since I got it once I simply put a map in session and use it 
when needed). When posting the form, the list of label value beans is no 
longer available in the action, so my options were: (1) either store in 
hidden lists (concatenating the key with the description) or (2) 
re-retrieve the vehicle lines from the db or (3) place them in session the 
first they are retrieved and get them from session scope. I chose the 
third and wondered about some best practices others have used in similar 
situations.
  - Original Message -
  From: Rick Reumann
  To: Struts Users Mailing List
  Sent: Tuesday, July 06, 2004 10:58 PM
  Subject: Re: some best practices questions

  Christina Siena wrote:
  > I recently developed an application with a complex UI. One of the
  > pages required querying the database based on user selection and
  > re-displaying the page with the retrieved data and any previous
  > existing user selections. Four different fields can trigger a db
  > query resulting in page re-display and validations can also result in
  > page re-display. Each time the page is re-displayed, the "state" of
  > the page must be "remembered" from the last time it was displayed.
  > (still with me so far?) Most of the data retrieved is list data
  > displayed in single- or multi-select lists and populated using
  > html:options collection and LabelValueBean. (for those of you reading
  > this post who have developed similar code, you will know what I'm
  > referring to).
  >
  > In the action, the retrieved data is placed in session scope to
  > minimize db hits. I thought this was a good idea at the time. For
  > some reason, placing data in session scope is frowned upon by some
  > members of my team (even if improves performance). Anyways, what I
  > need are some ideas of the best practices that fellow Struts users
  > follow when a page requires querying the db and re-displaying the
  > page with the retrieved data and previous selections if placing the
  > data in session scope is not an option. How can I recall the
  > previously retrieved data without requerying the db? Would it make
  > sense to hide the data in the page? (i.e. either using hidden fields
  > or hidden select lists or to generate a JavaScript array). What are
  > the risks, if any, of hiding the data in the page? (i.e.
  > performance).
  >
  > If anyone has developed similar pages, can you tell me if you decided
  > for or against placing data in session scope and why?
  Here's is my 2cents. Personally I'm not as anti-session as most people,
  and I think to use it or not use has to be taken on a case per case
  basis. If your queries to generate the lists are not going be cached in
  anyway by the backend and/or they are expensive queries to run, the
  Session can be a better place to temporarilly store this information as
  the user progresses through the 'flow' as you've described above. Sure
  the data each time might not be perfectly fresh, so if that is a
  requirement than you will need to query after each new selection is
  chosen. I'd opt for testing out performance making a new query each time
  to generate your lists for the drop downs and see how it behaves. (If
  your data in the database will never be altered by an external process
  you can really leverage something like iBATIS that will cache queries
  for you so everything is golden).
  You are asking a two part question, though, and one thing I think that
  you 'might' be confusing is the use of the lists in Session versus the
  ActionForm in Session (retaining user's selections). From what you are
  describing I would DEFIINITELY keep your form bean in Session scope for
  this. This way any chosen parameters will be remembered as you are
  brought back to the page. This is a perfectly legit use of the Session
  and don't let anyone convince you in to using a bunch of hidden
  variables and storing your form bean in request scope each time. (To me
  that is so stupid, how much memory is a Form 

Re: some best practices questions

2004-07-06 Thread Michael McGrady
Thanks for the heads up, Rick.  I think this whole area just needs a 
concerted and orchestrated look.  The standard approaches just are not 
working for people.  This is really so recurrent is more than recurrent.

At 09:59 PM 7/6/2004, you wrote:
On Tue, 06 Jul 2004 20:58:16 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
I wouldn't mind an ongoing discussion group on this alone somehow, if
there were a way to do that.  I might create a forum for that.
I created a model-struts group on yahoo groups for discussing more of the
model layer components as they relate to struts. However, this list is
rarely used. (Robert Taylor and myself are the only ones who answer the
occoassional questions there:) I suggest just bringing up any of the
discussion here on this list. Makes it nice for when you want to get info
back from the archives. Plus nice to hear about practical solutions people
have to solving common issues.
--
Rick
-
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: some best practices questions

2004-07-07 Thread Michael McGrady
I, for one and one only, think that this sort of thing is directly 
addressing the most common recurrent question on this list.  So, if 
anything, this de-spams the list.  Thanks for the suggestion.

At 04:57 AM 7/7/2004, you wrote:
Sorry if this is considered spamming the list 
Speaking of storing stuff in session scope. I've developed what I think is 
a handy class which I think it useful for
when I want to store something like a search in a session variable.

For instance if I want to page through it ( using displaytags.org (10 out 
of 10)) or simply if I don't want to fetch
from the database time and time again.
By default the data expires on an hourly basis. And if a different 
combination of parameters is sent it expires
the cached stuff.

Here is the class
snip=
package ie.jestate.struts.client;
import java.util.Date;
/**
* @author Bryan Hunt
*/
//TODO:Perhaps I should be generating a MD5 or something but I can't see a 
good reason to use any more CPU

public class HashGenerator {
   private StringBuffer buffer;
   /**
*
*/
   public HashGenerator() {
   super();
   buffer = new StringBuffer(50);
   // TODO Auto-generated constructor stub
   }
   /**
* @param urbanAreas
*/
   public void add(Integer[] array,String fieldname) {
   for (int i = 0; i < array.length; i++) {
   Integer integer = array[i];
   buffer.append(integer);
   }
   buffer.append(fieldname);
   buffer.append("-");
   }
   /**
* @param priceRangeStart
*/
   public void add(Integer integer,String fieldname) {
   // TODO Auto-generated method stub
   buffer.append(integer);
   buffer.append(fieldname);
   buffer.append("-");
   }
   /**
* @return
*/
   public String getHash() {
   //I append the hour onto the end of the string so that a hash will
   //only be good for a max of one hour.
   Date date = new Date();
   return buffer.toString()+ "-" + new Integer(date.getHours());
   }
}
=snip
And here is example usage.
snip=
/*
* Created on 24-Jun-2004
*/
package ie.jestate.struts.client;
import ie.jestate.struts.BaseAction;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.DynaActionForm;
/**
* @author Bryan Hunt
 *
*/
public class ForSaleSearchAction extends BaseAction {
   /* (non-Javadoc)
* @see 
org.apache.struts.action.Action#execute(org.apache.struts.action.ActionMapping, 
org.apache.struts.action.ActionForm, 
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
*/
   public ActionForward execute(
   ActionMapping actionMapping,
   ActionForm actionForm,
   HttpServletRequest request,
   HttpServletResponse response)
   throws Exception {

   //TODO: Database based initialization of the countries collection
   DynaActionForm dynaform = (DynaActionForm) actionForm;
   HttpSession session = request.getSession();
   String forSalePropertiesSearchCheckSum = (String) 
session.getAttribute(Constants.FOR_SALE_CHECK_SUM);
   String newForSalePropertiesSearchCheckSum = null;

   Integer[] urbanAreas = (Integer[]) dynaform.get("urbanAreas");
   Integer priceRangeStart = (Integer) dynaform.get("priceRangeStart");
   Integer priceRangeEnd = (Integer) dynaform.get("priceRangeEnd");
   Integer[] propertyTypes = (Integer[]) dynaform.get("propertyTypes");
   HashGenerator hashGenerator = new HashGenerator();
   hashGenerator.add(urbanAreas,"urbanAreas");
   hashGenerator.add(priceRangeStart,"priceRangeStart");
   hashGenerator.add(priceRangeEnd,"priceRangeEnd");
   hashGenerator.add(propertyTypes,"propertyTypes");
   newForSalePropertiesSearchCheckSum = 
hashGenerator.getHash();

   if(forSalePropertiesSearchCheckSum != null && 
forSalePropertiesSearchCheckSum.equals(newForSalePropertiesSearchCheckSum)) {
   System.out.println("Checksums match");
   }

   if (forSalePropertiesSearchCheckSum == null
   || 
!forSalePropertiesSearchCheckSum.equals(newForSalePropertiesSearchCheckSum)){

   Set forSaleProperties =
   findForSaleProperties(
   urbanAreas,
   priceRangeStart,
   priceRangeEnd,
   propertyTypes);
session.setAttribute(Constants.FOR_SALE_PROPERTIES_SEARCH_RESULT, 
forSaleProperties);
   session.setAttribute(
   Constants.FOR_SALE_CHECK_SUM,
   newForSalePropertiesSearchCheckSum);
//TODO:Add logging functionality
   System.out.println("Returning fresh search results");

   } else
   /*

RE: some best practices questions

2004-07-08 Thread Michael McGrady
At 12:36 AM 7/8/2004, you wrote:
For this particular use case I would either just use the session, or
alternatively I would just look up the dropdowns from db each time and
accept the performance hit, but its (probably) not worth the development
time - including ongoing maintenance - to do anything overly tricky just for
a few dropdowns.
my 2c
The thing is, though, Andrew, these are recurrent issues and seem to 
require a generic solution.  Having a small manager in application scope 
which can create and monitor a scope which is not application, not session, 
and not request, is worth the while for these recurrent problems, I 
think.  The persistence of such a scope can be made a function of the data 
rather than the interest of the clients.  That is worth having to use on a 
general basis, I think, and can be done with a very small performance 
hit.  In fact, my guess is that it would be a performance plus.

Michael 


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


AW: Using Log4j in Struts 1.1

2004-07-08 Thread Michael Albrecht
Hi!

1. You have to put commons.logging.jar and your favourite implementation, e.g.
log4j.jar, in the WEB-INF/lib or the server directory for common libraries
(e.g. CATALINA_HOME/commons/lib).

2. The configuration of the logging framework could be done in several ways. The
most simple one to do is to copy the log4j.properties in your WEB-INF/classes
directory.
After that you can start with logging immediately, but there are two
disadvantages:
- property file is part of deployment
- changing of log4j.xml could due to a server redeployment of the web app.

I hoe this helps you a little bit to get off.

Michael
http://www.struts-it.de

--
NEUSTA Computersprachen GmbH
Ostertorsteinweg 30
28203 Bremen
Tel.: +49 421 20696-22
Fax: +49 421 20696-99
Mobil: +49 171 4289299

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



image tag and onmouseover attribute

2004-07-08 Thread Michael McGrady
Anyone have an example on a real, live, actual, JSP page using the 
onmouseover attribute with the struts  tag?  If so, I would be very 
appreciative of a "look see" of what the JSP code looks like.  Thanks in 
advance.

QUESTION: Did you hear what Roy Rogers said to Trigger?
ANSWER: "Why the long face?"

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


log4j book out of stock

2004-07-08 Thread Michael McGrady
Is there a place to get the log4j book, and is it worth the rather hefty 
price?  Seems like everywhere I look it is not available.  Is the author 
just trying to sell it on his own?  Wazzup?


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


Re: html:image vs html:submit

2004-07-08 Thread Michael McGrady
This tells you where the problem is.  If you look at the code there you 
should be able to tell what is going wrong.

At 01:33 PM 7/8/2004, you wrote:
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837) 


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


Re: struts automation

2004-07-08 Thread Michael McGrady
Not sure what you mean here.  Presumably those class files already exist?
At 01:52 PM 7/8/2004, you wrote:
Is there a struts tool out there that will create the class files you name 
in a struts-config file automatically?  It seems to me that would be 
really useful?

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


HELP FROM THE ADMINISTRATOR re: Brian Husted not available

2004-07-08 Thread Michael McGrady
It seems that we have been getting the messages that Brian Husted is not 
available forever.  Can the administrator please solve this?  Everytime I 
send an email to the list I get this back, and others have made the same 
complaint:

Subject: Undeliverable: Re: html:image vs html:submit
To: <[EMAIL PROTECTED]>
Your message
  To:  Struts Users Mailing List
<[EMAIL PROTECTED]>@[EMAIL PROTECTED]
  Subject: Re: html:image vs html:submit
  Sent:Thu, 8 Jul 2004 16:53:00 -0400
did not reach the following recipient(s):
Brian Husted on Thu, 8 Jul 2004 20:53:00 -0400
User Brian Husted/AMS/AMSINC (Brian Husted/AMS/[EMAIL PROTECTED]) not
listed in public Name & Address Book
Original-Envelope-ID: c=us;a= ;p=AMS;l={52F5B406-3C-040708205422Z-61510
Reporting-MTA: dns; CARNEY.ams.com
Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.0
X-Display-Name: Brian Husted
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0
Subject: Re: html:image vs html:submit
Date: Thu, 8 Jul 2004 16:53:00 -0400
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Re: html:image vs html:submit
Thread-Index: AcRlLcMZx+5rrXGrQSKxkZglX8UWww==
From: "<[EMAIL PROTECTED]>@[EMAIL PROTECTED]" 
<[EMAIL PROTECTED]> 

To: "Struts Users Mailing List <[EMAIL PROTECTED]>@[EMAIL PROTECTED]" 
<[EMAIL PROTECTED]>
This tells you where the problem is.  If you look at the code there you
should be able to tell what is going wrong.
At 01:33 PM 7/8/2004, you wrote:
>org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837) 

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


RE: struts automation

2004-07-08 Thread Michael McGrady
At 02:00 PM 7/8/2004, you wrote:
> Is there a struts tool out there that will create the class
> files you name in a struts-config file automatically?  It
> seems to me that would be really useful?
>
Yes there is, several of them..

I have the following class file named in my struts-config.xml file.  Are 
you saying this will be created automatically?  That does not make sense to 
me.  How would the xml file have a clue what was in this class file? 


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


RE: struts automation

2004-07-08 Thread Michael McGrady
Oops, forgot the reference: 

At 02:04 PM 7/8/2004, you wrote:
At 02:00 PM 7/8/2004, you wrote:
> Is there a struts tool out there that will create the class
> files you name in a struts-config file automatically?  It
> seems to me that would be really useful?
>
Yes there is, several of them..

I have the following class file named in my struts-config.xml file.  Are 
you saying this will be created automatically?  That does not make sense 
to me.  How would the xml file have a clue what was in this class file?

-
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: struts automation

2004-07-08 Thread Michael McGrady
My question is how can an editor of any kind create a class when it has no 
idea what the internals of the class are?  I clearly do not see what you 
guys are talking about because this clearly cannot be done and you seem to 
be saying that this is just a piece of cake.

At 02:10 PM 7/8/2004, you wrote:

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 08, 2004 2:05 PM
> To: Struts Users Mailing List
> Subject: RE: struts automation
>
>
> At 02:00 PM 7/8/2004, you wrote:
> > > Is there a struts tool out there that will create the class
> > > files you name in a struts-config file automatically?  It
> > > seems to me that would be really useful?
> > >
> >
> >Yes there is, several of them..
>
>
> I have the following class file named in my struts-config.xml
> file.  Are
> you saying this will be created automatically?  That does not
> make sense to
> me.  How would the xml file have a clue what was in this class file?
Well WSAD allows you to click edit from it's struts-config editor, and if 
the class exists it will
pop it up in the editor, and if not it will create the class, fill in some 
basics from a template and then
pop tat up in an editor for you.  I think this is what he was asking.
MyEclipse does the same thing for Eclipse, along with probably 1/2 dozen 
other OS struts-config editors.

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


Simplifying struts-config.xml

2004-07-08 Thread Michael McGrady
Is there a way to do the following using less real-estate in 
struts-config.xml?  If not, there should be:













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


RE: struts automation

2004-07-08 Thread Michael McGrady
Okay, you meant source code.  I thought you meant class.  What are you 
talking about?  Compiling?  Loading?  Admiring?  I could learn from you, 
Barrows.  You are a real tool expert, as opposed to a real expert 
tool.  LOL  Thanks for the help.

Michael
At 02:45 PM 7/8/2004, you wrote:

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 08, 2004 2:42 PM
> To: Struts Users Mailing List
> Subject: RE: struts automation
>
>
> My question is how can an editor of any kind create a class
> when it has no
> idea what the internals of the class are?  I clearly do not
> see what you
> guys are talking about because this clearly cannot be done
> and you seem to
> be saying that this is just a piece of cake.
Because the editor takes the context from the struts-config file.
If you're looking at an action mapping, the class is there, so it just 
pops up the class
unless you're thinking .class as opposed to .java... when I say class I'm 
talking about the source code...

Can't be impossible since I do it every day, usually several times a day 
in WSAD.

-
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: struts automation

2004-07-08 Thread Michael McGrady
I must be sick!  LOL  I like to think it through each time.  That leads in 
the end with me doing something new and really getting into what seems to 
be mundane in depth.  I am a slow learner, I guess, even though I am, of 
course, just brilliant.  ///;-)

Thanks.
Michael
At 04:22 PM 7/8/2004, you wrote:

> -Original Message-
> From: Michael McGrath [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 08, 2004 4:10 PM
> To: Struts Users Mailing List
> Subject: RE: struts automation
>
>
> Okay, you meant source code.  I thought you meant class.
> What are you
> talking about?  Compiling?  Loading?  Admiring?  I could
> learn from you,
> Barrows.  You are a real tool expert, as opposed to a real expert
> tool.  LOL  Thanks for the help.
Basically what Ted and I said earlier.  In WSAD, the struts-config editor 
has an edit button
next to where the class name is displayed.  Click it, and WSAD brings up 
an editor with that class
in it.  If there is no class for the name you've provided ( i.e., you've 
typed the name in by hand, or just
filled in the mapping part and hit edit.)
then it will bring up the class creation wizard, with the defaults already 
set to create a
standard Action class all stubbed out with everything you need except the 
logic to do the action.
Looks something like:
public class FooAction extends Action {

public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward();
// return value
try {
// do something here
} catch (Exception e) {
// Report the error using the appropriate name and ID.
errors.add("name", new ActionError("id"));
}
// If a message is required, save the specified key(s)
// into the request for use by the  tag.
if (!errors.isEmpty()) {
saveErrors(request, errors);
// Forward control to the appropriate 'failure' URI (change 
name as desired)
//  forward = mapping.findForward("failure");

} else {
// Forward control to the appropriate 'success' URI (change 
name as desired)
// forward = mapping.findForward("success");

}
// Finish with
return (forward);
}
}
and you're off coding logic.
MyEclipse, IDEA and others will do something similar.
Like Ted said, really really cuts down on the nickel and dime BS quite a bit.
Any more and I think we're off topic.
>
> Michael
>
> At 02:45 PM 7/8/2004, you wrote:
>
>
> > > -Original Message-
> > > From: Michael McGrady [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, July 08, 2004 2:42 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: struts automation
> > >
> > >
> > > My question is how can an editor of any kind create a class
> > > when it has no
> > > idea what the internals of the class are?  I clearly do not
> > > see what you
> > > guys are talking about because this clearly cannot be done
> > > and you seem to
> > > be saying that this is just a piece of cake.
> >
> >Because the editor takes the context from the struts-config file.
> >If you're looking at an action mapping, the class is there,
> so it just
> >pops up the class
> >unless you're thinking .class as opposed to .java... when I
> say class I'm
> >talking about the source code...
> >
> >Can't be impossible since I do it every day, usually several
> times a day
> >in WSAD.
> >
> >-
> >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: Simplifying struts-config.xml

2004-07-09 Thread Michael McGrady
At 03:16 PM 7/8/2004, you wrote:
Sounds like you should get a new xml editor if you care about file real
estate.
BAL
Hi, BAL,
Highball?
A fundamental aspect of good programming is to avoid mindless 
repetition.  That is what this post was about.  You have focused on another 
unrelated aspect.  I probably led you astray in talking about "file real 
estate".  Those lyrics really are not consistent with the tune.

I cannot get a new xml editor.  I don't use one.  I have not seemed to have 
a need for one.  What editor do you use, since we are on that topic?  I 
might as well learn something from this, eh?

Thanks for the response.
Michael

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


Re: Theoretical debate

2004-07-09 Thread Michael McGrady
At 11:24 PM 7/8/2004, you wrote:
  If you've "cheated" on the separation of concerns issues in your 
existing app, this is going to seem harder.

Boy, HOWDIE!  This is so often the case.  The whole reason for separation 
of concerns just jumps out at us during these situations.


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


Re: Simplifying struts-config.xml

2004-07-09 Thread Michael McGrady
At 07:57 AM 7/9/2004, you wrote:
> The new wildcard support would also work, but only if all the root 
paths worked this way.
>
> > 
> > path='/*'
> > type='com.crackwillow.struts.action.ForwardAction'
> > parameter='{1}'/>

Does anyone have a quick reference to some documentation on this "new 
wildcard support"?  Thanks.

Michael

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


Re: Simplifying struts-config.xml

2004-07-09 Thread Michael McGrady
Thanks, Bill Siggelkow
At 10:14 AM 7/9/2004, you wrote:

http://struts.apache.org/userGuide/building_controller.html#action_mapping_wildcards 


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


RE: Dynamic extension of web apps

2004-07-10 Thread Michael McGrady
Struts has the mechanism to do this too, by the way.  What I do is to 
define tiles, e.g. "html_page", "wap_page", and then reference just "page" 
in the struts-config.xml.  You have the controller detect the device coming 
in and switch the tiles reference as required.  This can also be used, by 
the way, again, for "skins".  This works with, e.g. mapping.getInput(), by 
the third way.

Michael
At 02:03 PM 7/8/2004, you wrote:
If I understand you correctly (You're looking for a write once, generate 
HTML, WAP or Voice XML files from that) , I believe JSF will help you in 
your problem.  JSF will allow device independence.

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


Dynamic lookup tag lib (drop down list reverse)

2004-07-10 Thread Michael Mok
Hi all
I have created a jsp tag that will look up a collection (of  
LabelValueBeans) and return the label of the value. For example we store 
position description in a code table such as
Code  Description
1Director
2Manager
3Assistant Manager
4Staff

In the User table, we store
Logon  Position
Jack 1
Jill 2
Charlie  2
In a UserList.jsp

Logon : 
Position: 

This will produce the following list
Logon : Jack Position:  1
Logon : Jill Position: 2
Logon : Charlie  Position: 2
To display the position description instead of the position number, I 
added a list of LabelValueBeans to the session (ie 
session.setAttribute("session.positionlevel"); ) and changed the JSP to 
the following.


Logon : 
Position: 


The droplist tag will produce the following with
Logon : Jack Position:  Director
Logon : Jill Position: Manager
Logon : Charlie  Position: Manager
I am happy to contribute this back the STRUTS tag lib or if anyone is 
interested, let me know and I will send you the code. This functionality 
consists of

ma-droplist.tld
com.ma.struts.taglib.droplisttag.java
com.ma.struts.taglib.droplisttag.class
To add the functionality to your JSP you will need to
1) Add the tld to your web.xml.
2) Add the tld to your JSP.
This tag also works with indexed beans as droplisttag.java is extended 
from writetag.java.

Regards
Michael Mok
MAD ART | Lead Technical Architect
e| [EMAIL PROTECTED]
m| 0417 968 581
This e-mail is the property of MadArt Services and/or its relevant affiliate and 
may contain confidential and privileged material for the sole use of the intended 
recipient(s). Any review, use, 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 and delete all copies of the message. This 
e-mail (and any attachments hereto) are not intended to be an offer (or an acceptance) 
and do not create or evidence a binding and enforceable contract between MadArt 
Services (or any of its affiliates) and the intended recipient or any other party, and 
may not be relied on by anyone as the basis of a contract by estoppel or otherwise. 
Thank you.

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


Re: [OT] Re: HSQLDV / STRUTS - (this has nothing to do with Struts)

2004-07-12 Thread Michael McGrady
I did not see your initial post, but to help clear this, let me say that, 
if you don't want to have to keep a connection to the database, then don't 
run "all-in-memory".

At 05:37 AM 7/12/2004, you wrote:
Is this the same post that was sent last week?  or week before?  I believe I
asked you a question that you never responded to.
What mode are you running in?
 http://hsqldb.sourceforge.net/web/hsqlModes.html
A few weeks ago, as I was finishing up several database implementations of
commons-resources, I noticed that when I ran the tests with HSQLDB in
"All-In-Memory" mode, you have to keep a connection to the database or you
will lose everything, including your tables.
The only other suggestion I can make is to add  ';' to your statement.
> (queryStr = "INSERT INTO USERS (PASSWORD, EMAIL) VALUES ('?', '?');";)
^
You really should read the docs for HSQLDB.
 http://hsqldb.sourceforge.net/web/hsqlDocsFrame.html
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Bussie, Andre D" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 12, 2004 8:09 AM
Subject: HSQLDV / STRUTS
>
>
>
>
> I'm using HSQLDB I have a Java Action Class that performs an INSERT
> (queryStr = "INSERT INTO USERS (PASSWORD, EMAIL) VALUES ('?', '?')";)
> query my code indicates that the INSERT is successful however when I
> query the Database SELECT *  it doesn't show the current
> INSERT that was made. Any suggestions on why the code is not being
> reflected in the database?
>
>
>
>

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


  1   2   3   4   5   6   7   8   9   10   >