How to realize ajax in struts2

2007-04-23 Thread red phoenix

I want to use ajax within Struts to realize following function,there is a
textfield an a submit button which use register a username in a JSP
page,then you can put you name into textfield and click register button,then
will call ajax to search name is exist,if exist,there will be a message
behind textfield,say "name is exist,please use another name",like follows:
---
Name:| |
---
Register button

My code is follows,but my code can't reach my goal,I don't know how to
realize it?  Anybody could tell me how to do it? Thanks!

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



 



Name:







Set language in JSP

2007-04-23 Thread bjorn.de.bakker
I've encountered a rather annoying issue.  To select the language in which our 
labels should be displayed, we use fmt:setLocale.  Everything works fine, 
everybody's happy.

But.  To validate our forms, we use DynaValidator.  In our webapp, we have 1 
form which has only 1 field.  When validation fails, the browser redisplays the 
form, with an appropriate error message.  The problem is that we show our error 
message with  and since struts doesn't know the locale which was 
set with fmt:setLocale, this message is retrieved from the resource bundle of 
the standard browser language.  

Is there anyone who knows how to set the language in a JSP, for that particular 
page?  It has to be on the page itself, it can't be done in an action or 
somewhere else.  Or maybe another way to show the error message with 
logic:messagesPresent and retrieval of the error message from a resource bundle.

Thanks in advance

Kind regards,
Bjorn De Bakker



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Re: List of beans in a bean on a form

2007-04-23 Thread David Conrad

I added the  tag i.e.,


  
 

   

 
  


It doesn't seem to have made any difference. I still get
"customer[0].cost" instead of "firstLob.customer[0].cost".

Is there something else I'm missing? Something I need to configure? Do
I need to upgrade from 1.3.5 to 1.3.8?

On 4/20/07, Will Budreau <[EMAIL PROTECTED]> wrote:

You need to set the form as the root nesting context.
I usually do this by wrapping the nested form content with
   
   

In theory the nested taglib is supposed to override html:form to
automatically set the root node, but I haven't got that to work.

-Original Message-
From: David Conrad [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 1:43 PM
To: Struts Users Mailing List
Subject: List of beans in a bean on a form

I'm using Struts 1.3.5 and have a problem with a nested field.









The  tag is outputting:



The problem is, the customers come from the customers collection on
the firstLob object, which is a java bean on the form bean.

Doesn't this need to be either "firstLob.customer[0].cost" in order
for the form bean to get
populated when I post it back? Right now, it isn't working. It
populates the form okay when generating the page, but just ignores the
customer fields (cost is just one of them) when I post it back.

I just switched to using nested tags. I was hoping that it would fix
it, but no such luck. Originally, I was using  and
, but that produced the same results. (After reading a
bit, I think I understand why; nested is just for convenience, right,
kind of like a "with" statement in certain languages?)

I suspect I'm thinking about this wrong, somehow. Maybe I need to be
putting nested form beans on my form bean, instead of plain ol' java
beans? Maybe I need a different syntax on my Struts tags, like
name="firstLob.customer" (that doesn't work, though)? Maybe I'm
trapped in a maze of twisty little passages, all alike?

Please help this newbie, any suggestions at all will be greatly
appreciated.

David Conrad

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



Could not load 'dojo.widget.html.Tooltip':last tried '__package__.js'

2007-04-23 Thread red phoenix

I want to use ajax in struts2,but when run my code like
http://localhost:8080/test/index.html,it raise following Javascript error:
Line:95
Char:1
Error:Could not load 'dojo.widget.html.Tooltip':last tried '__package__.js'
Code:0
URL:http://localhost:8080/test/test/Test.action

My code is follows:
/*index.html*/



   


Loading ...



/*Test.jsp*/
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>


   Ajax Examples
   
   
   function doSomething() {
   alert('you can manipulate the form before it gets submitted');
   return true;
   }
   


Remote form replacing another div:
initial content

   
   




/*Test.java*/
package test;
import java.io.*;
import com.opensymphony.xwork2.*;
public class Test extends ActionSupport implements Action, Serializable{
   private static int counter = 0;
   private String data;
   public long getServerTime() {
   return System.currentTimeMillis();
   }
   public int getCount() {
   return ++counter;
   }
   public String getData() {
   return data;
   }
   public void setData(String data) {
   this.data = data;
   }
   public String execute() throws Exception {
   return SUCCESS;
   }
}

/*struts.xml*/

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

   
   
   
   


/*test.xml*/
?xml version="1.0" encoding="UTF-8" ?>
http://struts.apache.org/dtds/struts-2.0.dtd";>

   

   
   /test/Test.jsp
   
   
   


I don't know where wrong in my code? I want to know if I lost some js or jar
file? How to correct my code? My code structure is follows:
D:\tomcat6\webapps\test\index.html
D:\tomcat6\webapps\test\test\Test.jsp
D:\tomcat6\webapps\test\WEB-INF\web.xml
D:\tomcat6\webapps\test\WEB-INF\classes\struts.xml
D:\tomcat6\webapps\test\WEB-INF\classes\test.xml
D:\tomcat6\webapps\test\WEB-INF\classes\test\Test.class
D:\tomcat6\webapps\test\WEB-INF\lib\commons-logging-1.1.jar
D:\tomcat6\webapps\test\WEB-INF\lib\freemarker-2.3.8.jar
D:\tomcat6\webapps\test\WEB-INF\lib\ognl-2.6.11.jar
D:\tomcat6\webapps\test\WEB-INF\lib\struts2-core-2.0.6.jar
D:\tomcat6\webapps\test\WEB-INF\lib\xwork-2.0.1.jar

Thanks


Technology choice?

2007-04-23 Thread Sullivan, David
Hi,

Does anyone know if I will run into problems (the really hard to solve
kind) using the struts2 framework with EJB3 and the updated servlet2.5
and JSP2.1 jars with java 1.5

I am assuming that I wont. However many of the examples I have seen
using the interceptor framework use Springs IoC container and I probably
wont be using that given the EJB3 specification (Glassfish and Toplink)

If anyone thinks there could be serious problems with these choices of
tech - any help / info would be appreciated?

David.


RE: Including javascript in a plugin

2007-04-23 Thread Kertis, Dennis
Actually, I have a lot of javascript in JS files and would like to be
able to include them from an FTL file.  But from looking at the plugin
examples it doesn't seem like I am able to do this.  Anyone have any
ideas???

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 23, 2007 4:17 PM
To: Struts Users Mailing List
Subject: Re: Including javascript in a plugin

Good Afternoon Dennis-

I dont know if this will help your specific requirement but
there is script coded in test.ftl (freemarker script) from 
struts-showcase-2.0.1



  <@s.head theme="ajax" debug="true" />


 click
 
  var anchor = dojo.byId("myAnchor");
  alert(anchor);
  dojo.event.connect(anchor, "onclick", function(event) {
   alert('Custom onclick handler triggered before submitting form...
Press 
OK!');
  });
 



M--
This email message and any files transmitted with it contain
confidential
information intended only for the person(s) to whom this email message
is
addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Kertis, Dennis" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 23, 2007 3:41 PM
Subject: Including javascript in a plugin


Is it possible to include javascript in a plugin that will be included
by freemarker files?  Also, can I include jar libs since I don't expect
the project including my plugin to need them?



Thanks,

Dennis





-
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: [S2] Formatting inside Iterator tag

2007-04-23 Thread Rod Bollinger
The JSTL format tags are always a viable option as well.

-Rod

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 23, 2007 18:31
To: Struts Users Mailing List
Subject: Re: [S2] Formatting inside Iterator tag

if you can somehow cast to bean you can use bean:write (with format option)
//assuming this starts off as  a hashtable

Next element is 

http://www.servlets.com/archive/servlet/ReadMsg?msgId=361774&listName=struts
-dev
link courtesy of Martin Cooper

Anyone?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Mark Menard" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Monday, April 23, 2007 5:44 PM
Subject: Re: [S2] Formatting inside Iterator tag


> On 4/23/07 5:37 PM, "chengas123" <[EMAIL PROTECTED]> wrote:
>
>>
>> I am using the iterator tag as follows:
>>   
>> 
>>   
>>   
>>   
>> 
>>   
>>
>> This will give me an order date such as "20040513" and a total such as
>> "68.7700" when what I really want is 05/13/2004 and $68.77.  I have not 
>> been
>> able to figure out how to do this.  Any recommendations?
>
>  />
>
> That will do the date, there are some other formats listed on the Wiki I
> think. *shrug*
>
> 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: [S2] Formatting inside Iterator tag

2007-04-23 Thread Martin Gainty

if you can somehow cast to bean you can use bean:write (with format option)
//assuming this starts off as  a hashtable

Next element is 

http://www.servlets.com/archive/servlet/ReadMsg?msgId=361774&listName=struts-dev
link courtesy of Martin Cooper

Anyone?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Mark Menard" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, April 23, 2007 5:44 PM
Subject: Re: [S2] Formatting inside Iterator tag



On 4/23/07 5:37 PM, "chengas123" <[EMAIL PROTECTED]> wrote:



I am using the iterator tag as follows:
  

  
  
  

  

This will give me an order date such as "20040513" and a total such as
"68.7700" when what I really want is 05/13/2004 and $68.77.  I have not 
been

able to figure out how to do this.  Any recommendations?




That will do the date, there are some other formats listed on the Wiki I
think. *shrug*

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]



Re: [S2] Formatting inside Iterator tag

2007-04-23 Thread Dave Newton
--- Mark Menard <[EMAIL PROTECTED]> wrote:
> On 4/23/07 5:37 PM, "chengas123" wrote:
>  value="orderDate"
> />
> 
> That will do the date, there are some other formats
> listed on the Wiki I
> think. *shrug*

Yes, and money is also supported (see thread from a
week or two ago, but in a nutshell you need a money
format in your properties, such as:

format.money={0,number,currency}

and in the JSP:


  


d.


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

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



Re: [S2] Formatting inside Iterator tag

2007-04-23 Thread Mark Menard
On 4/23/07 5:37 PM, "chengas123" <[EMAIL PROTECTED]> wrote:

> 
> I am using the iterator tag as follows:
>   
> 
>   
>   
>   
> 
>   
> 
> This will give me an order date such as "20040513" and a total such as
> "68.7700" when what I really want is 05/13/2004 and $68.77.  I have not been
> able to figure out how to do this.  Any recommendations?



That will do the date, there are some other formats listed on the Wiki I
think. *shrug*

Mark

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



[S2] Formatting inside Iterator tag

2007-04-23 Thread chengas123

I am using the iterator tag as follows:

  



  


This will give me an order date such as "20040513" and a total such as
"68.7700" when what I really want is 05/13/2004 and $68.77.  I have not been
able to figure out how to do this.  Any recommendations?

-- 
View this message in context: 
http://www.nabble.com/-S2--Formatting-inside-Iterator-tag-tf3635036.html#a10150309
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Including javascript in a plugin

2007-04-23 Thread Musachy Barroso

If what you mean is including js files that you can use from your pages, or
freemarker, I don't think so. I think it would nice to have a way to map
resources to paths in a plugin, like:



that would at least solve the problem of packaging js and css files in
plugins, as for jsps, I kind of gave up on it :)

musachy

On 4/23/07, Martin Gainty <[EMAIL PROTECTED]> wrote:


Good Afternoon Dennis-

I dont know if this will help your specific requirement but
there is script coded in test.ftl (freemarker script) from
struts-showcase-2.0.1



  <@s.head theme="ajax" debug="true" />


click

  var anchor = dojo.byId("myAnchor");
  alert(anchor);
  dojo.event.connect(anchor, "onclick", function(event) {
   alert('Custom onclick handler triggered before submitting form... Press
OK!');
  });




M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message -
From: "Kertis, Dennis" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 23, 2007 3:41 PM
Subject: Including javascript in a plugin


Is it possible to include javascript in a plugin that will be included
by freemarker files?  Also, can I include jar libs since I don't expect
the project including my plugin to need them?



Thanks,

Dennis





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





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


doubleList not getting pupulated..

2007-04-23 Thread אלחנן מעין

hi...

trying this:
name="selectedclient" label="Client and task" listKey="id" listValue="name" 
list="clients"
doubleName="selectedTask" doubleListKey="id" doubleListValue="name" 
doubleList="tasks"  />


on my action i have:

public List getClients(){
List l=new ArrayList();
l.add(new Client(1,"Migdal"));
l.add(new Client(2,"Archive"));
return l;
}

public List getTasks(){
List l=new ArrayList();
l.add(new Task(1,"Dev"));
l.add(new Task(2,"Prog"));
System.out.println(l);
return l;

}

on the debugger i can see the getTask being called, however , on the view, 
it's not being pupoulated.


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



Re: Including javascript in a plugin

2007-04-23 Thread Martin Gainty

Good Afternoon Dennis-

I dont know if this will help your specific requirement but
there is script coded in test.ftl (freemarker script) from 
struts-showcase-2.0.1




 <@s.head theme="ajax" debug="true" />


click

 var anchor = dojo.byId("myAnchor");
 alert(anchor);
 dojo.event.connect(anchor, "onclick", function(event) {
alert('Custom onclick handler triggered before submitting form... Press OK!');
 });




M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Kertis, Dennis" <[EMAIL PROTECTED]>

To: 
Sent: Monday, April 23, 2007 3:41 PM
Subject: Including javascript in a plugin


Is it possible to include javascript in a plugin that will be included
by freemarker files?  Also, can I include jar libs since I don't expect
the project including my plugin to need them?



Thanks,

Dennis





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



Including javascript in a plugin

2007-04-23 Thread Kertis, Dennis
Is it possible to include javascript in a plugin that will be included
by freemarker files?  Also, can I include jar libs since I don't expect
the project including my plugin to need them?

 

Thanks,

Dennis

 



Re: Iterating through a map

2007-04-23 Thread Dave Newton
--- Christopher Schultz wrote:
> Did you actually try this? I would be surprised it
> it worked.

I'm pretty sure iterating over maps works; I don't see
anything weird about it. It's just minor syntactic
sugar around normal map iteration.

d.


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

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



Re: Iterating through a map

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

meeboo wrote:
> Just read from the WW in action book - 
> 
> "One of the nicest features about the iterator tag is that it can iterate
> over just about any data type that has a concept of iteration. When
> iterating over a Map, it iterates over the Set returned by Map.entrySet(),
> which is a set of Map.Entry
> objects, which in turn has the methods getKey() and getValue() to retrieve
> the associated key/value pairs."

Apologies for guessing that iterating over a Map didn't make sense (I
still think so) and would therefore not work using an iterate tag. It
looks like JSP + tag libs is finally becoming Perl ;)

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLQs69CaO5/Lv0PARAirsAJ0cuWnyXdUhrvI/lqs7Ee7yleoAowCguAeW
cLonp8t18XDyDTLJcQ6rogk=
=CfR7
-END PGP SIGNATURE-

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



Re: Iterating through a map

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Musachy,

Musachy Barroso wrote:
> The value attribute for the iterator tag can be either a Collection or an
> Interator.

Uh... a Map is neither a Collection nor an Iterator.

> If it is a map, then each entry is going to be a
> Map.Entryobject, with a key and a value.

Nope. Each entry in Map.entrySet() is a Map.Entry... the Map contains
only mappings that you can look up by key.

> 
>   - 
> 
> 
> should print:
> 
> name-John Galt

Did you actually try this? I would be surprised it it worked.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLQrK9CaO5/Lv0PARAvNzAJwInFJnPgevVu+NQeVSu0z7QZlhCwCdE6mG
QajOMasxCLNXU9u2Vam1GY4=
=TdH7
-END PGP SIGNATURE-

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



Re: [S2] Data entry form for nested beans

2007-04-23 Thread Mark Menard
On 4/23/07 1:03 PM, "Skip Hollowell" <[EMAIL PROTECTED]> wrote:

> I have the following Bean, which represents an Account I am working on:
> 
> public class PaymentBean {
>   String acctNumber;
>   DebtorBean debtor;
>   PayorBean   payor;
>   CreditCardBean cc;
>   SinglePaymentBean[] singlePayment;
> }
> 
> I have tried several different ways in my AccountAction to populate this
> bean from the data entered on the form.   I can, of course, read
> multiple layers down inside my nested beans and display it in a JSP, but
> how I do I allow for data entry into them?

Yes, reading is more intuitive than writing into the data model.

I don't know how others do this, but this is what I do.

You have the PaymentBean which has dependencies. So, in my action's
prepare() method I would instantiate those beans and wire them together.

Public class MyAction extends ActionSupport implements Preparable {

  private PaymentBean paymentBean;

  public void prepare () {
this.paymentBean = new PaymentBean ();
paymentBean.setDebtor (new DebtorBean () );

// Continue this pattern of instantiating and wiring.
  }

  ...

  public PaymentBean getPaymentBean() {
return this.paymentBean;
  }

  ...

}

There might be a way of doing this using the type conversion support, but
I'm personally not familiar with it. (I use factory methods to produce my
various prototype entities, so my controller layer is not tied to a
particular domain model implementation.)

To fill in the DebtorBean.firstName property, if there was one, would be
like this in the JSP:



That will OGNL expression will get the paymentBean from your action, call
getDebtor() on the paymentBean, then call setFirstName() on the DebtorBean.


> Does one create a simple form that has a bunch of simple text fields,
> and the action then uses all of these to populate the pieces of the
> various beans that make up Payment Bean.

You could but it is cumbersome and error prone in my opinion.

Mark
-- 
Mark Menard
Business: http://www.vitarara.net/
Personal: http://www.vitarara.org/
Mark's Struts 2 Cookbook: http://www.vitarara.org/cms/struts_2_cookbook

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



Re: [OT] Re: Iterating through a map

2007-04-23 Thread Musachy Barroso

I will use "El Zorro" next time ;)

On 4/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> name-John Galt

Who is John Galt?

(That's the third time I've gotten to say that,
legitimately, in the last two weeks!!! Must be a
resurgence in reading Rand lately or something.)

d.


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

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





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


RE: [S1] The proper way to define taglibs in a jsp file

2007-04-23 Thread Crawford, Preston
Nevermind. I figured it out. It's a WAS problem. You have to use the full
URI in the Web.xml if you want to use it on the JSP page in the taglib
declaration. So like this.


http://struts.apache.org/tags-bean
/WEB-INF/struts-bean.tld


Preston 

-Original Message-
From: Crawford, Preston [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 23, 2007 10:33 AM
To: 'Struts Users Mailing List'
Subject: RE: [S1] The proper way to define taglibs in a jsp file

This is really strange. So it works if I reference the taglibs as defined in
the web.xml (i.e. define /bean in the web.xml and then declare the taglib in
the JSP referring to that uri).

So now this works...

<%@ taglib uri="/bean" prefix="bean" %>

But this doesn't work...

<%@ taglib uri="http://struts.apache.org/tags-bean"; prefix="bean" %>

And for an error in WebSphere 6.1 I get the following error.

JSPG0047E: Unable to locate tag library for uri
http://struts.apache.org/tags-bean

Any ideas?

Preston

-Original Message-
From: Crawford, Preston [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 19, 2007 7:31 PM
To: 'Struts Users Mailing List'
Subject: RE: [S1] The proper way to define taglibs in a jsp file

I did. It's expecting the one you listed. I just get a "Not Found" error if
I go there.

I tried declaring it inside the web.xml instead (newly converted to 2.4) and
that doesn't work either.

Preston 

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY
NOTICE: This e-mail message, including any attachments, is for the sole use
of the intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

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



[s2] struts2-portlet-2.0.6 example

2007-04-23 Thread Bruyn, Bill-p6141c
Hi all,
 
Is the Ajax example bundled with struts2-portlet-2.0.6 example app
supposed to work out of the box?  I've deployed to WebLogic 9.2, and
seem to have at least a few problems with it:
 
1.  Tags containing 'nested' quotation marks yield some sort of
"attribute not recgnized" error.  e.g.,  href="" is a problem, so I switched that to an el
expression as illustrated in the documentation:  



href="%{ajaxExampleAction}"

which seems to work, except that

 

2.  The inclusion of the Ajax result on more than one place crashes my
IE 6.0 browser pretty consistently (I don't have another browser to test
with yet, unfortunately).  e.g.,





is a problem.  Hacked the example to include just a single ajax-enabled
div and

 

3.  it all seems to work, except that the portal has aggregated the
content instead of allowing the browser to do it in-place.  i.e., the
ajaxData.jsp content is surrounded by portal markup (title bar, window
state controls, etc.) which is clearly not the desired result.

I've fooled around a bit with the configuration, but I have to say that
I'm relatively new to both Struts and Portlets, and have so far not been
able to get the results I expected.  Appreicate any help I can get.

 

TIA,

Bill Bruyn

(BTW, the Velocity example doesn't seem to work either, although the
resource in question is in fact where it's supposed to be:
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource '/WEB-INF/view/helloWorld.vm')

 

 



[OT] Re: Iterating through a map

2007-04-23 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> name-John Galt

Who is John Galt?

(That's the third time I've gotten to say that,
legitimately, in the last two weeks!!! Must be a
resurgence in reading Rand lately or something.)

d.


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

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



Re: Iterating through a map

2007-04-23 Thread meeboo

Just read from the WW in action book - 

"One of the nicest features about the iterator tag is that it can iterate
over just about any data type that has a concept of iteration. When
iterating over a Map, it iterates over the Set returned by Map.entrySet(),
which is a set of Map.Entry
objects, which in turn has the methods getKey() and getValue() to retrieve
the associated key/value pairs."

The key to retrieving the values is to use  and



Felipe Rodrigues wrote:
> 
> I'm not so sure if you can iterate over a Map. Even in Plain Old Java Code
> you can't do that.
> A good solution is create a keySet or a list from Map's keys and iterate
> over that, using each object to get the Map values. 
> 
> Good look,
> 
> 
> Felipe
> 
> 
> 
> meeboo wrote:
>> 
>> Hey all
>> 
>> How do I iterate through a map? My current method returns a
>> LinkedHashMap - the map is populated and accessed by the
>> view as my debugger shows, but it is never iterated through. Here's the
>> JSP fragment
>> 
>> 
>>  Should iterate 12 times  
>> 
>> 
>> 
>> Thanks!
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Iterating-through-a-map-tf3633177.html#a10146427
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Iterating through a map

2007-04-23 Thread Musachy Barroso

The value attribute for the iterator tag can be either a Collection or an
Interator. If it is a map, then each entry is going to be a
Map.Entryobject, with a key and a value.


  - 


should print:

name-John Galt

musachy

On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:



I'm not so sure if you can iterate over a Map. Even in Plain Old Java Code
you can't do that.
A good solution is create a keySet or a list from Map's keys and iterate
over that, using each object to get the Map values.

Good look,


Felipe



meeboo wrote:
>
> Hey all
>
> How do I iterate through a map? My current method returns a
> LinkedHashMap - the map is populated and accessed by the
> view as my debugger shows, but it is never iterated through. Here's the
> JSP fragment
>
> 
>   Should iterate 12 times
> 
>
> Thanks!
>

--
View this message in context:
http://www.nabble.com/Iterating-through-a-map-tf3633177.html#a10145984
Sent from the Struts - User mailing list archive at Nabble.com.


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





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


Re: DateTimePicker in time format not working with today

2007-04-23 Thread אלחנן מעין
you say the dojo DateTimePicker, as if there was another DateTimePicker? is 
there? is there an eta on 2.1?
aside from that, is there another way to enter in dates and have them 
validated ? (aside from using text fields).


what about time fields?



From: "Musachy Barroso" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: "Struts Users Mailing List" 
Subject: Re: DateTimePicker in time format not working with today
Date: Mon, 23 Apr 2007 12:05:24 -0400

I think this question was posted the other day. You can set
startDate="dateInThePast" and have a getInThePast()  methodin your action
(which needs to return an string, in 2.1 it will take a Date object also).

As for the time picker, the dojo datepicker widget, in version 0.4.1 was so
broken that it was barely functional, some workarounds were added to make 
it

work, but I'm sure it has plenty of bugs. It has been fixed on 2.1 (that
won't help you, but it is good to know :) )

regards
musachy

On 4/23/07, אלחנן מעין <[EMAIL PROTECTED]> wrote:


hi all..
i've finally started to learn struts2 and trying work a sample application
of an hours reporting app.

i'm trying to use the DateTimePicker time format, however i have 2 issues
with it:

trying to specify today in the value, does not display the current time
(it
doesn't even work in showcase app) it only displays 00:00.

also is there a way to convert the time from a string to date object ? i'm
not sure it's possible, but maybe create a date object with the current
date
as default and the time specfied.

anoter issue in date enddate and startdate attributes, i know of only one
function called today, but is there a way to limit and start date, and end
date dynamically with something like today-1, that would allow dates to be
entered up to 1 month back?

_
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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





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


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



RE: DateTimePicker in time format not working with today

2007-04-23 Thread אלחנן מעין
well thanks none the less, maybe somehow, somewhere, somebody will make use 
of it while searching the mail list (even though i have no idea ) how to 
search a mailling list.





From: "Rod Bollinger" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: "'Struts Users Mailing List'" 
Subject: RE: DateTimePicker in time format not working with today
Date: Mon, 23 Apr 2007 12:13:31 -0400

Sorry about the last post, I guess I didn't read closely enough. The 
solution provided, although it works very well, will most likely not 
address your DateTimePicker issue. Again, my apologies for the list 
clutter.


-Rod

-Original Message-
From: ××œ×—× ×Ÿ מעין [mailto:[EMAIL PROTECTED]
Sent: Monday, April 23, 2007 11:43
To: user@struts.apache.org
Subject: DateTimePicker in time format not working with today

hi all..
i've finally started to learn struts2 and trying work a sample application
of an hours reporting app.

i'm trying to use the DateTimePicker time format, however i have 2 issues
with it:

trying to specify today in the value, does not display the current time (it
doesn't even work in showcase app) it only displays 00:00.

also is there a way to convert the time from a string to date object ? i'm
not sure it's possible, but maybe create a date object with the current 
date

as default and the time specfied.

anoter issue in date enddate and startdate attributes, i know of only one
function called today, but is there a way to limit and start date, and end
date dynamically with something like today-1, that would allow dates to be
entered up to 1 month back?

_
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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



_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/



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



Re: Iterating through a map

2007-04-23 Thread Felipe Rodrigues

I'm not so sure if you can iterate over a Map. Even in Plain Old Java Code
you can't do that.
A good solution is create a keySet or a list from Map's keys and iterate
over that, using each object to get the Map values. 

Good look,


Felipe



meeboo wrote:
> 
> Hey all
> 
> How do I iterate through a map? My current method returns a
> LinkedHashMap - the map is populated and accessed by the
> view as my debugger shows, but it is never iterated through. Here's the
> JSP fragment
> 
> 
>   Should iterate 12 times  
> 
> 
> 
> Thanks!
> 

-- 
View this message in context: 
http://www.nabble.com/Iterating-through-a-map-tf3633177.html#a10145984
Sent from the Struts - User mailing list archive at Nabble.com.


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



Type Conversion Issue

2007-04-23 Thread Andrew Penrose
Hi Guys,

I have an ArrayList of say Car models which we are displaying on a page.
The status field of the model sets the default value of a select
dropdown using a  tag on the page. When I go to update the
status we can't seem to get type conversion working.the id of the
collection object returned is always null...and when we try the below
with %{car.id}) it gives us a null error on the setProperty for status.



Our bean has the following with apprropriate getters and setters:
.
.
@Entity
@Table(name = "tblCar")
public class Car extends BaseObject implements Serializable {

protected long id=-1; protected String status;.
.
.


Our Action class has a list called carList:

.
.
public class MyCarAction extends BaseAction {

private List carList = new ArrayList();

public List getCarList() {
return this.carList;
} 

   public void setCarList(List carList) {
this.carList = carList;
}

.
.

Our conversion file MyCarAction-conversion.properties contains:

 
KeyProperty_carList=id
Element_carList=CreateIfNull_carList=true

 

Our iterator in jsp page is:

 



   



   
   


 

Any help appreciated,



 

Yours Sincerely,

 

Andrew 



RE: [S1] The proper way to define taglibs in a jsp file

2007-04-23 Thread Crawford, Preston
This is really strange. So it works if I reference the taglibs as defined in
the web.xml (i.e. define /bean in the web.xml and then declare the taglib in
the JSP referring to that uri).

So now this works...

<%@ taglib uri="/bean" prefix="bean" %>

But this doesn't work...

<%@ taglib uri="http://struts.apache.org/tags-bean"; prefix="bean" %>

And for an error in WebSphere 6.1 I get the following error.

JSPG0047E: Unable to locate tag library for uri
http://struts.apache.org/tags-bean

Any ideas?

Preston

-Original Message-
From: Crawford, Preston [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 7:31 PM
To: 'Struts Users Mailing List'
Subject: RE: [S1] The proper way to define taglibs in a jsp file

I did. It's expecting the one you listed. I just get a "Not Found" error if
I go there.

I tried declaring it inside the web.xml instead (newly converted to 2.4) and
that doesn't work either.

Preston 

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

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



Re: Issue w/ ActionServlet.init()...

2007-04-23 Thread David Lehrian

Hello Naill,
I put a bunch of System.out.print statements in the init method and learned 
it is actually being called.  I figured I could set a breakpoint in the 
init() method and that Netbeans would break at that point but this doesn't 
appear to be the case.  I find this behavior odd.  Thanks for the idea 
though of trying to make something show up on the console from inside the 
method.

Warm Regards,
Dave

- Original Message - 
From: "Niall Pemberton" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, April 23, 2007 2:45 AM
Subject: Re: Issue w/ ActionServlet.init()...



The init() and init(ServletConfig) methods are part of the servlet API
- the container calls  init(ServletConfig) and that method then fires
init() - so if they are not getting called then I don't think it has
anything to do with Struts. Have you checked your logs for any errors?

Niall

On 4/23/07, David Lehrian <[EMAIL PROTECTED]> wrote:
I have an old application written using Struts 1.1 that has a subclass of 
ActionServlet which overrides the init() method to load data from some 
XML files.  It works fine w/ Struts 1.1.  I haven't touched it for years 
but now need to do some work on it.  My current Netbeans environment has 
Struts 1.2.9 and I figured I would just update it to the newer version 
but for the life of me I can't get the system to call the init() method. 
I have the subclass listed as the action servlet in web.xml (snippet 
below) and I can break in the doGet and doPost methods so the servlet is 
definitely being used as the ActionServlet in the application.  Why isn't 
it calling the init() and/or init(ServletConfig config) methods?



action

TimeClockServlet2.TimeClockActionServlet

config
/WEB-INF/struts-config.xml


debug
2


detail
2

2


action
*.do


Warm Regards,
Dave



-
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: [S1] Is JSTL 1.1 compatible with Struts 1.2.9?

2007-04-23 Thread Crawford, Preston
Thanks! That helped.

Preston 

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 12:24 PM
To: Struts Users Mailing List
Subject: Re: [S1] Is JSTL 1.1 compatible with Struts 1.2.9?

On 4/19/07, Crawford, Preston <[EMAIL PROTECTED]> wrote:

> Anyone know? I know Struts 1.2 comes with JSTL 1.0. I read somewhere 
> that you have to use JSTL 1.1 with a 2.4 container, which is what we 
> have. I just need to figure out what version of JSTL we can/should run.

The combinations are described here:

http://wiki.apache.org/struts/StrutsAndJSTL

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

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



Iterating through a map

2007-04-23 Thread meeboo

Hey all

How do I iterate through a map? My current method returns a
LinkedHashMap - the map is populated and accessed by the view
as my debugger shows, but it is never iterated through. Here's the JSP
fragment


Should iterate 12 times  



Thanks!
-- 
View this message in context: 
http://www.nabble.com/Iterating-through-a-map-tf3633177.html#a10145180
Sent from the Struts - User mailing list archive at Nabble.com.


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



[S2] Data entry form for nested beans

2007-04-23 Thread Skip Hollowell

I have the following Bean, which represents an Account I am working on:

public class PaymentBean {
   String acctNumber;
   DebtorBean debtor;  // The person who owes money(s).  MAkes sense to 
use this bean as I used it throughout the app
   PayorBean   payor;   // The person making the payment(s)  Same 
reason as above.

   CreditCardBean cc;  // The card used to make the payment(s).
   SinglePaymentBean[] singlePayment;   // A bunch of singlePayments to 
be made, with a $ amount, a fee,  and a date

}

I have tried several different ways in my AccountAction to populate this 
bean from the data entered on the form.   I can, of course, read 
multiple layers down inside my nested beans and display it in a JSP, but 
how I do I allow for data entry into them? 

Does one create a simple form that has a bunch of simple text fields, 
and the action then uses all of these to populate the pieces of the 
various beans that make up Payment Bean.  Or is there a correct way to 
represent this structure inside of my form so that the data goes 
directly into the appropriate subBean upon form submittal?  I went 
through the person showcase, and thought I was on the right track, but 
based upon that simple example, i was never able to get the data from 
the form to the bean.  Yes, I can get errors to you from the experiment 
if it helps.


I could supply jsp and action code examples, but they are all just 
failed tests at this point. I am so in need of direction on how best to 
design and implement this base concept in Struts 2.  Any, ANY, advice 
and help would be greatly appreciated.


Skip Hollowell


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



RE: DateTimePicker in time format not working with today

2007-04-23 Thread Rod Bollinger
Sorry about the last post, I guess I didn't read closely enough. The solution 
provided, although it works very well, will most likely not address your 
DateTimePicker issue. Again, my apologies for the list clutter.

-Rod

-Original Message-
From: ××œ×—× ×Ÿ מעין [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 23, 2007 11:43
To: user@struts.apache.org
Subject: DateTimePicker in time format not working with today

hi all..
i've finally started to learn struts2 and trying work a sample application 
of an hours reporting app.

i'm trying to use the DateTimePicker time format, however i have 2 issues 
with it:

trying to specify today in the value, does not display the current time (it 
doesn't even work in showcase app) it only displays 00:00.

also is there a way to convert the time from a string to date object ? i'm 
not sure it's possible, but maybe create a date object with the current date 
as default and the time specfied.

anoter issue in date enddate and startdate attributes, i know of only one 
function called today, but is there a way to limit and start date, and end 
date dynamically with something like today-1, that would allow dates to be 
entered up to 1 month back?

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


-
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: DateTimePicker in time format not working with today

2007-04-23 Thread Rod Bollinger
Hello,

A cool little trick on the "today" issue is to use a little known aspect of the 
 tag. The useBean exposes its creation datetime as a scoped 
variable!

Beacause of this you can do the following:




Now you can use ${today} anywhere you like. Personally, I use the 
 tag to format into whatever display format I need.

HTH,
-Rod

-Original Message-
From: ××œ×—× ×Ÿ מעין [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 23, 2007 11:43
To: user@struts.apache.org
Subject: DateTimePicker in time format not working with today

hi all..
i've finally started to learn struts2 and trying work a sample application 
of an hours reporting app.

i'm trying to use the DateTimePicker time format, however i have 2 issues 
with it:

trying to specify today in the value, does not display the current time (it 
doesn't even work in showcase app) it only displays 00:00.

also is there a way to convert the time from a string to date object ? i'm 
not sure it's possible, but maybe create a date object with the current date 
as default and the time specfied.

anoter issue in date enddate and startdate attributes, i know of only one 
function called today, but is there a way to limit and start date, and end 
date dynamically with something like today-1, that would allow dates to be 
entered up to 1 month back?

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


-
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: DateTimePicker in time format not working with today

2007-04-23 Thread Musachy Barroso

I think this question was posted the other day. You can set
startDate="dateInThePast" and have a getInThePast()  methodin your action
(which needs to return an string, in 2.1 it will take a Date object also).

As for the time picker, the dojo datepicker widget, in version 0.4.1 was so
broken that it was barely functional, some workarounds were added to make it
work, but I'm sure it has plenty of bugs. It has been fixed on 2.1 (that
won't help you, but it is good to know :) )

regards
musachy

On 4/23/07, אלחנן מעין <[EMAIL PROTECTED]> wrote:


hi all..
i've finally started to learn struts2 and trying work a sample application
of an hours reporting app.

i'm trying to use the DateTimePicker time format, however i have 2 issues
with it:

trying to specify today in the value, does not display the current time
(it
doesn't even work in showcase app) it only displays 00:00.

also is there a way to convert the time from a string to date object ? i'm
not sure it's possible, but maybe create a date object with the current
date
as default and the time specfied.

anoter issue in date enddate and startdate attributes, i know of only one
function called today, but is there a way to limit and start date, and end
date dynamically with something like today-1, that would allow dates to be
entered up to 1 month back?

_
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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





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


RE: Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread Rod Bollinger
Hi Piloupy,

You can use JSTL to format the link before passing it to the 
tag:




Also, take a look at:
http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/link.html, you can
actually specify a bundle and access key for the tooltip message directly in
the  tag.

HTH
-Rod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of piloupy
GOTTAPIL
Sent: Monday, April 23, 2007 11:29
To: Struts Users Mailing List
Subject: Re: Use EL to access to a key from the MessageResources.properties

I precisely want to use the  to benefit from the relative
context path.

Thanks,

piloupy

On 4/23/07, Lance <[EMAIL PROTECTED]> wrote:
> ">Email Link

-
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 2 Lifecycycle

2007-04-23 Thread stanlick

Hi Antonio --

I have been teaching for the past couple weeks and now returning to
S2/Tiles.  I would like to understand how Tiles affects the S2 lifecycle.

Scott

On 4/15/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:


2007/4/13, stanlick <[EMAIL PROTECTED]>:
>
> Antonio --
>
> Can you explain this using this example?

I am sorry, I did not understand you and gave you a bad answer.
But I am wondering what you exactly wanted: do you want to inject
beans in Tiles definitions, or JSP pages? Or possibly in the view
preparer?

Antonio

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





--
Scott
[EMAIL PROTECTED]


DateTimePicker in time format not working with today

2007-04-23 Thread אלחנן מעין

hi all..
i've finally started to learn struts2 and trying work a sample application 
of an hours reporting app.


i'm trying to use the DateTimePicker time format, however i have 2 issues 
with it:


trying to specify today in the value, does not display the current time (it 
doesn't even work in showcase app) it only displays 00:00.


also is there a way to convert the time from a string to date object ? i'm 
not sure it's possible, but maybe create a date object with the current date 
as default and the time specfied.


anoter issue in date enddate and startdate attributes, i know of only one 
function called today, but is there a way to limit and start date, and end 
date dynamically with something like today-1, that would allow dates to be 
entered up to 1 month back?


_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



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



Re: Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread piloupy GOTTAPIL

I precisely want to use the  to benefit from the relative
context path.

Thanks,

piloupy

On 4/23/07, Lance <[EMAIL PROTECTED]> wrote:

">Email Link


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



Re: [S2] How to keep a reference to a bean without using a session scope?

2007-04-23 Thread Mark Menard
Hi Alexis,

On 4/23/07 5:16 AM, "Alexis Pigeon" <[EMAIL PROTECTED]> wrote:
> Just as a follow-up, you may have missed my message asking for the
> updated version of your conversation scope interceptor.

I'm sorry, quite busy the last few weeks. I have attached my latest version
to the WW-1514 ticket.

> Moreover, any news about the issue you entered in JIRA concerning this
> implementation? http://issues.apache.org/struts/browse/WW-1514

There really isn't any news. I've personally been very busy with project
work, and the S2 guys have been busy just getting a stable release out. I
think I might have time in the 2.1 cycle to work on this some more.

Mark

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



Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues

Yes,
So good. I've setted the showLoading text to subimmit button, but I've
forgot to remove in the div.
We must take it out from both.

Thanks a lot man, You've saved my job. :-)

Regards,

Felipe Rodrigues


Musachy Barroso wrote:
> 
> it is the "bug" I've been talking about all time long :), there are other
> threads about this on the list. The thing is: before the request is made,
> "loading..." (or the loading text) is set as the content of the targets,
> in
> FF, this doesn't destroy the form(form to be submitted), but in IE it
> does,
> so the form never gets submitted. To fix this, just set
> showLoadingText="false". I think it should be "false" by default, giving
> that so many people are having this problem.
> 
> musachy
> 
> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>
>>
>> I also don't thing it is a generic bug. Not so sure as well if it is a
>> real
>> bug. But to make sure we I would like somebody else try to reproduce this
>> issue.
>> The scenario is, a form with some fields that are not Action Attributes,
>> try
>> to get these fields using ActionContext or even the ParametersAware
>> interceptor. When submiting the form, use targets pointing to the div
>> that
>> contains the form.
>>
>> If it is not a bug, at least we can create a doc page to this context.
>>
>> I fixed it in my app using 2 topics. One to get the after and through
>> javaScript I notify the second one.
>>
>> Regards,
>>
>> Felipe
>>
>>
>> Musachy Barroso wrote:
>> >
>> > I'm not sure about that, there is a ton of examples using targets in
>> > showcase, I'm not saying there isn't a bug, just that if there is one
>> is
>> > not
>> > as generic as "not working with targets at all". Keep going, I got the
>> > feeling you will find it soon :)
>> >
>> > musachy
>> >
>> > On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Ok. I found out one more thing.
>> >> I think we are getting close to the real bug.
>> >> Button (or even anchor) doesn't works when I use targets. If I remove
>> >> target, then all the thing works fine.
>> >> But I need to refresh my screen after submit this form. I tried use
>> >> notifyTopics, but how can I say to some div only
>> >> listen the after topic without use javascript? Or even using
>> javaScript?
>> >>
>> >> Thanks once again,
>> >>
>> >> Felipe
>> >>
>> >>
>> >> Felipe Rodrigues wrote:
>> >> >
>> >> > I've tried it.
>> >> > An interesting thing is: With anchor it works fine. using . I
>> can
>> >> do
>> >> > my system using anchor, but I would suggest someone else try do that
>> in
>> >> > order to figure out if it is a real bug or not. If so, could create
>> a
>> >> JIRA
>> >> > Issue.
>> >> >
>> >> > What do you think? Did you tried to reproduce the same issue there?
>> >> >
>> >> > Thanks,
>> >> >
>> >> > Felipe
>> >> >
>> >> >
>> >> > Musachy Barroso wrote:
>> >> >>
>> >> >> Try setting formId="formVariaveis" in the submit button.
>> >> >>
>> >> >> musachy
>> >> >>
>> >> >> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >> >>>
>> >> >>>
>> >> >>> Hi,
>> >> >>>
>> >> >>> After a weekend, we are back to reality...
>> >> >>>
>> >> >>> Some other clue to help me fix this issue?
>> >> >>>
>> >> >>> Thanks,
>> >> >>>
>> >> >>> Felipe
>> >> >>>
>> >> >>>
>> >> >>> Felipe Rodrigues wrote:
>> >> >>> >
>> >> >>> > yes. But this is not the div I'm trying to update.
>> >> >>> >
>> >> >>> >
>> >> >>> > Musachy Barroso wrote:
>> >> >>> >>
>> >> >>> >> Is the submit button inside the div? something like:
>> >> >>> >>
>> >> >>> >> 
>> >> >>> >> 
>> >> >>> >> 
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> musachy
>> >> >>> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >> >>> >>>
>> >> >>> >>>
>> >> >>> >>> DEBUG:  widget ID collision on ID: btGravar. I've changed this
>> ID
>> >> >>> and
>> >> >>> I
>> >> >>> >>> don't
>> >> >>> >>> get this error anymore.
>> >> >>> >>> But the problem persist. IE doesn't send any parameter.
>> >> >>> >>>
>> >> >>> >>> That was the message!
>> >> >>> >>>
>> >> >>> >>>
>> >> >>> >>> Musachy Barroso wrote:
>> >> >>> >>> >
>> >> >>> >>> > Well we are getting closer then, it is not related to the
>> >> >>> >>> ActionContext
>> >> >>> >>> > (which I doubted anyway) but to ajax. Set debug="true" on
>> the
>> >> head
>> >> >>> tag
>> >> >>> >>> and
>> >> >>> >>> > see if there are any errors. The other thing, is the submit
>> >> >>> button,
>> >> >>> or
>> >> >>> >>> the
>> >> >>> >>> > anchor inside the div that you are trying to update (if it
>> is
>> >> then
>> >> >>> you
>> >> >>> >>> > need
>> >> >>> >>> > to set showLoadingText="false" in the submit button or the
>> the
>> >> >>> >>> anchor)?
>> >> >>> >>> >
>> >> >>> >>> > regards
>> >> >>> >>> > musachy
>> >> >>> >>> >
>> >> >>> >>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]>
>> wrote:
>> >> >>> >>> >>
>> >> >>> >>> >>
>> >> >>> >>> >> Hi again,
>> >> >>> >>> >>
>> >> >>> >>> >> I tried without the theme="ajax" in the submit button. It
>> >> worked
>>

Re: Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread Lance

">Email Link

piloupy GOTTAPIL wrote:

Hi,

I'd like to do something like this in a JSP file :

Email Link

where contact.mail is a key from my MessageResources.properties.

I think the solution is quite simple, but I can't find how to do.

Thanks in advance,

piloupy

-
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: ActionContext not working properly with IE

2007-04-23 Thread Musachy Barroso

it is the "bug" I've been talking about all time long :), there are other
threads about this on the list. The thing is: before the request is made,
"loading..." (or the loading text) is set as the content of the targets, in
FF, this doesn't destroy the form(form to be submitted), but in IE it does,
so the form never gets submitted. To fix this, just set
showLoadingText="false". I think it should be "false" by default, giving
that so many people are having this problem.

musachy

On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:



I also don't thing it is a generic bug. Not so sure as well if it is a
real
bug. But to make sure we I would like somebody else try to reproduce this
issue.
The scenario is, a form with some fields that are not Action Attributes,
try
to get these fields using ActionContext or even the ParametersAware
interceptor. When submiting the form, use targets pointing to the div that
contains the form.

If it is not a bug, at least we can create a doc page to this context.

I fixed it in my app using 2 topics. One to get the after and through
javaScript I notify the second one.

Regards,

Felipe


Musachy Barroso wrote:
>
> I'm not sure about that, there is a ton of examples using targets in
> showcase, I'm not saying there isn't a bug, just that if there is one is
> not
> as generic as "not working with targets at all". Keep going, I got the
> feeling you will find it soon :)
>
> musachy
>
> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>
>>
>> Ok. I found out one more thing.
>> I think we are getting close to the real bug.
>> Button (or even anchor) doesn't works when I use targets. If I remove
>> target, then all the thing works fine.
>> But I need to refresh my screen after submit this form. I tried use
>> notifyTopics, but how can I say to some div only
>> listen the after topic without use javascript? Or even using
javaScript?
>>
>> Thanks once again,
>>
>> Felipe
>>
>>
>> Felipe Rodrigues wrote:
>> >
>> > I've tried it.
>> > An interesting thing is: With anchor it works fine. using . I
can
>> do
>> > my system using anchor, but I would suggest someone else try do that
in
>> > order to figure out if it is a real bug or not. If so, could create a
>> JIRA
>> > Issue.
>> >
>> > What do you think? Did you tried to reproduce the same issue there?
>> >
>> > Thanks,
>> >
>> > Felipe
>> >
>> >
>> > Musachy Barroso wrote:
>> >>
>> >> Try setting formId="formVariaveis" in the submit button.
>> >>
>> >> musachy
>> >>
>> >> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>>
>> >>> Hi,
>> >>>
>> >>> After a weekend, we are back to reality...
>> >>>
>> >>> Some other clue to help me fix this issue?
>> >>>
>> >>> Thanks,
>> >>>
>> >>> Felipe
>> >>>
>> >>>
>> >>> Felipe Rodrigues wrote:
>> >>> >
>> >>> > yes. But this is not the div I'm trying to update.
>> >>> >
>> >>> >
>> >>> > Musachy Barroso wrote:
>> >>> >>
>> >>> >> Is the submit button inside the div? something like:
>> >>> >>
>> >>> >> 
>> >>> >> 
>> >>> >> 
>> >>> >>
>> >>> >>
>> >>> >> musachy
>> >>> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>> >>>
>> >>> >>>
>> >>> >>> DEBUG:  widget ID collision on ID: btGravar. I've changed this
ID
>> >>> and
>> >>> I
>> >>> >>> don't
>> >>> >>> get this error anymore.
>> >>> >>> But the problem persist. IE doesn't send any parameter.
>> >>> >>>
>> >>> >>> That was the message!
>> >>> >>>
>> >>> >>>
>> >>> >>> Musachy Barroso wrote:
>> >>> >>> >
>> >>> >>> > Well we are getting closer then, it is not related to the
>> >>> >>> ActionContext
>> >>> >>> > (which I doubted anyway) but to ajax. Set debug="true" on the
>> head
>> >>> tag
>> >>> >>> and
>> >>> >>> > see if there are any errors. The other thing, is the submit
>> >>> button,
>> >>> or
>> >>> >>> the
>> >>> >>> > anchor inside the div that you are trying to update (if it is
>> then
>> >>> you
>> >>> >>> > need
>> >>> >>> > to set showLoadingText="false" in the submit button or the
the
>> >>> >>> anchor)?
>> >>> >>> >
>> >>> >>> > regards
>> >>> >>> > musachy
>> >>> >>> >
>> >>> >>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]>
wrote:
>> >>> >>> >>
>> >>> >>> >>
>> >>> >>> >> Hi again,
>> >>> >>> >>
>> >>> >>> >> I tried without the theme="ajax" in the submit button. It
>> worked
>> >>> even
>> >>> >>> at
>> >>> >>> >> IE,
>> >>> >>> >> but then, I lost the ajax behavior. I need update a div. So
I
>> >>> think
>> >>> >>> it
>> >>> >>> is
>> >>> >>> >> a
>> >>> >>> >> bug of ajax theme vs IE.
>> >>> >>> >>
>> >>> >>> >> What do you think?
>> >>> >>> >>
>> >>> >>> >> Thanks,
>> >>> >>> >>
>> >>> >>> >> Felipe
>> >>> >>> >>
>> >>> >>> >>
>> >>> >>> >> Felipe Rodrigues wrote:
>> >>> >>> >> >
>> >>> >>> >> > Thanks for the help,
>> >>> >>> >> > Now I'm trying with this simple form, simpler than the
>> first.
>> >>> For
>> >>> >>> my
>> >>> >>> >> > surprise I got the same problem.
>> >>> >>> >> > In Firefox works, in IE doesn't.
>> >>> >>> >> > Here goes my code, first the part I getti

Re: [S2][interceptors]Inserted my own interceptor => no more params value

2007-04-23 Thread Mark Menard
On 4/23/07 2:36 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I try to insert my "AuthentificatedInterceptor" in the stack, but now
> nothing works.

Hi Michaël,

I just did this last week. I didn't use a LoginAction though. I did all the
work in the interceptor, with a backing service bean.
(http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor)

I found it easier to just do the login attempt in the interceptor rather
than having to sometimes pass through the interceptor if an attempt was
occurring, and other times passing it through if they are logged in.

Mark

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



Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues

I also don't thing it is a generic bug. Not so sure as well if it is a real
bug. But to make sure we I would like somebody else try to reproduce this
issue.
The scenario is, a form with some fields that are not Action Attributes, try
to get these fields using ActionContext or even the ParametersAware
interceptor. When submiting the form, use targets pointing to the div that
contains the form.

If it is not a bug, at least we can create a doc page to this context. 

I fixed it in my app using 2 topics. One to get the after and through
javaScript I notify the second one.

Regards,

Felipe


Musachy Barroso wrote:
> 
> I'm not sure about that, there is a ton of examples using targets in
> showcase, I'm not saying there isn't a bug, just that if there is one is
> not
> as generic as "not working with targets at all". Keep going, I got the
> feeling you will find it soon :)
> 
> musachy
> 
> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>
>>
>> Ok. I found out one more thing.
>> I think we are getting close to the real bug.
>> Button (or even anchor) doesn't works when I use targets. If I remove
>> target, then all the thing works fine.
>> But I need to refresh my screen after submit this form. I tried use
>> notifyTopics, but how can I say to some div only
>> listen the after topic without use javascript? Or even using javaScript?
>>
>> Thanks once again,
>>
>> Felipe
>>
>>
>> Felipe Rodrigues wrote:
>> >
>> > I've tried it.
>> > An interesting thing is: With anchor it works fine. using . I can
>> do
>> > my system using anchor, but I would suggest someone else try do that in
>> > order to figure out if it is a real bug or not. If so, could create a
>> JIRA
>> > Issue.
>> >
>> > What do you think? Did you tried to reproduce the same issue there?
>> >
>> > Thanks,
>> >
>> > Felipe
>> >
>> >
>> > Musachy Barroso wrote:
>> >>
>> >> Try setting formId="formVariaveis" in the submit button.
>> >>
>> >> musachy
>> >>
>> >> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>>
>> >>> Hi,
>> >>>
>> >>> After a weekend, we are back to reality...
>> >>>
>> >>> Some other clue to help me fix this issue?
>> >>>
>> >>> Thanks,
>> >>>
>> >>> Felipe
>> >>>
>> >>>
>> >>> Felipe Rodrigues wrote:
>> >>> >
>> >>> > yes. But this is not the div I'm trying to update.
>> >>> >
>> >>> >
>> >>> > Musachy Barroso wrote:
>> >>> >>
>> >>> >> Is the submit button inside the div? something like:
>> >>> >>
>> >>> >> 
>> >>> >> 
>> >>> >> 
>> >>> >>
>> >>> >>
>> >>> >> musachy
>> >>> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>> >>>
>> >>> >>>
>> >>> >>> DEBUG:  widget ID collision on ID: btGravar. I've changed this ID
>> >>> and
>> >>> I
>> >>> >>> don't
>> >>> >>> get this error anymore.
>> >>> >>> But the problem persist. IE doesn't send any parameter.
>> >>> >>>
>> >>> >>> That was the message!
>> >>> >>>
>> >>> >>>
>> >>> >>> Musachy Barroso wrote:
>> >>> >>> >
>> >>> >>> > Well we are getting closer then, it is not related to the
>> >>> >>> ActionContext
>> >>> >>> > (which I doubted anyway) but to ajax. Set debug="true" on the
>> head
>> >>> tag
>> >>> >>> and
>> >>> >>> > see if there are any errors. The other thing, is the submit
>> >>> button,
>> >>> or
>> >>> >>> the
>> >>> >>> > anchor inside the div that you are trying to update (if it is
>> then
>> >>> you
>> >>> >>> > need
>> >>> >>> > to set showLoadingText="false" in the submit button or the the
>> >>> >>> anchor)?
>> >>> >>> >
>> >>> >>> > regards
>> >>> >>> > musachy
>> >>> >>> >
>> >>> >>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>> >>> >>
>> >>> >>> >>
>> >>> >>> >> Hi again,
>> >>> >>> >>
>> >>> >>> >> I tried without the theme="ajax" in the submit button. It
>> worked
>> >>> even
>> >>> >>> at
>> >>> >>> >> IE,
>> >>> >>> >> but then, I lost the ajax behavior. I need update a div. So I
>> >>> think
>> >>> >>> it
>> >>> >>> is
>> >>> >>> >> a
>> >>> >>> >> bug of ajax theme vs IE.
>> >>> >>> >>
>> >>> >>> >> What do you think?
>> >>> >>> >>
>> >>> >>> >> Thanks,
>> >>> >>> >>
>> >>> >>> >> Felipe
>> >>> >>> >>
>> >>> >>> >>
>> >>> >>> >> Felipe Rodrigues wrote:
>> >>> >>> >> >
>> >>> >>> >> > Thanks for the help,
>> >>> >>> >> > Now I'm trying with this simple form, simpler than the
>> first.
>> >>> For
>> >>> >>> my
>> >>> >>> >> > surprise I got the same problem.
>> >>> >>> >> > In Firefox works, in IE doesn't.
>> >>> >>> >> > Here goes my code, first the part I getting the
>> ActionContext
>> >>> and
>> >>> >>> >> getting
>> >>> >>> >> > the parameters:
>> >>> >>> >> >
>> >>> >>> >> > ActionContext ac = ActionContext.getContext();
>> >>> >>> >> > Map session = ac.getSession();
>> >>> >>> >> > Map parameters = ac.getParameters();
>> >>> >>> >> >
>> >>> >>> >> > and my form:
>> >>> >>> >> >
>> >>> >>> >> >  - BEGIN OF CODE
>> >>> >>> >> > -
>> >>> >>> >> > <[EMAIL PROTECTED] prefix="c" 
>> >>> >>> >> > uri="http://java.sun.com/jsp/jst

RE: Initializing Struts

2007-04-23 Thread Lavezzo Joseph F
The war file is definatley being fully expanded.  Also, I am using
Oracle 10g Application Server. 

-Original Message-
From: Harring Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 3:53 PM
To: Struts Users Mailing List
Subject: Re: Initializing Struts

Hi Joseph,

Check the expanded directory of you web application (in Tomcat, it is
under $CATALINA_HOME/webapps).

See if the war file was indeed fully expanded (unzipped).  This could be
the cause of the problem.

If you are using Windows, Tomcat has trouble re-deplying due to file
locking. This causes the war file not to expand correctly.

Regards,
hff.

On 4/19/07, Lavezzo Joseph F <[EMAIL PROTECTED]> wrote:
>
> Updated Error Message:
>
> 2007-04-19 15:38:49 ERROR [ActionServlet - initServlet] - The 
> /WEB-INF/web.xml was not found.
> java.net.UnknownHostException: java.sun.com
> at
> org.apache.commons.digester.Digester.createSAXException(Digester.java:
> 31
> 81)
> at
> org.apache.commons.digester.Digester.createSAXException(Digester.java:
> 32
> 07)
> at
> org.apache.commons.digester.Digester.resolveEntity(Digester.java:1617)
> at
> oracle.xml.parser.v2.NonValidatingParser.pushExternalDTD(NonValidating
> Pa
> rser.java:510)
> at
> oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatin
> gP
> arser.java:468)
> at
> oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingPars
> er
> .java:301)
> at
> oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingPa
> rs
> er.java:280)
> at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)
> at
> org.apache.commons.digester.Digester.parse(Digester.java:1765)
> at
> org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:
> 17
> 85)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:349)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
> com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.j
> av
> a:2354)
> at
> com.evermind.server.http.HttpApplication.findServlet(HttpApplication.j
> av
> a:4795)
> at
> com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppli
> ca
> tion.java:4889)
> at
> com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.j
> av
> a:1015)
> at
> com.evermind.server.http.HttpApplication.(HttpApplication.java:5
> 49
> )
> at
>
com.evermind.server.Application.getHttpApplication(Application.java:890)
> at
> com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java
> :7
> 07)
> at
> com.evermind.server.http.HttpSite.getApplication(HttpSite.java:438)
> at
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequest
> Ha
> ndler.java:455)
> at
>
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
> 285)
> at
>
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
> 126)
> at
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Releas
> ab
> leResourcePooledExecutor.java:186)
> at java.lang.Thread.run(Thread.java:534)
> 2007-04-19 15:38:49 ERROR [ActionServlet - init] - Unable to 
> initialize Struts ActionServlet due to an unexpected exception or 
> error thrown, so marking the servlet as unavailable.  Most likely, 
> this is due to an incorrect or missing library dependency.
> javax.servlet.ServletException: Error at line 3 char 51: java.sun.com
> at
> org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:
> 17
> 91)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:349)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
> com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.j
> av
> a:2354)
> at
> com.evermind.server.http.HttpApplication.findServlet(HttpApplication.j
> av
> a:4795)
> at
> com.evermind.server.http.HttpApplication.initPreloadServlets(HttpAppli
> ca
> tion.java:4889)
> at
> com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.j
> av
> a:1015)
> at
> com.evermind.server.http.HttpApplication.(HttpApplication.java:5
> 49
> )
> at
>
com.evermind.server.Application.getHttpApplication(Application.java:890)
> at
> com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java
> :7
> 07)
> at
> com.evermind.server.http.HttpSite.getApplication(HttpSite.java:438)
> at
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequest
> Ha
> ndler.java:455)
> at
>
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
> 285)
> at
>
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
> 126)
> at
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Releas
> ab
> leResourcePooledExecutor.j

Re: URL parameters separator

2007-04-23 Thread Antonio Petrelli

2007/4/23, Christopher Schultz <[EMAIL PROTECTED]>:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Harring,

Harring Figueiredo wrote:
> I am not sure if the DTD declares that (I did not take a look at it), but
> basically the way to pass param on a HTML URL is the way it was generated -
> Every single HTTP server will not parse the parameters correctly if it
> is in the form that you want.

No, Marcello is right. If you're using some minimum version of HTML or
any version of XHTML, the URLs must use & instead of bare & symbols
in URLs. It's the browser's job to send the URL with bare & symbols to
the server, but the HTML source should have them encoded.


Wait a minute! the  tag produces the URL itself, not the 
tag! So, the URL must not be escaped, but, when put into a  it
should. As I wrote in my previous post, he should use the "escapeXml"
EL function.

Antonio

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



Re: URL parameters separator

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Harring,

Harring Figueiredo wrote:
> I am not sure if the DTD declares that (I did not take a look at it), but
> basically the way to pass param on a HTML URL is the way it was generated -
> Every single HTTP server will not parse the parameters correctly if it
> is in the form that you want.

No, Marcello is right. If you're using some minimum version of HTML or
any version of XHTML, the URLs must use & instead of bare & symbols
in URLs. It's the browser's job to send the URL with bare & symbols to
the server, but the HTML source should have them encoded.

Marcello, is there any configuration for the c:url tag (or possibly the
c:html tag?) that allows you to set a flag like "xhtml" or something
similar?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLLUP9CaO5/Lv0PARAmQMAKCDsMnu3Lewj1NGFpBR0neTRTobiACgsUwL
3TVeiQRyuUa/rKx5s5vcESM=
=1sDF
-END PGP SIGNATURE-

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



Re: ActionContext not working properly with IE

2007-04-23 Thread Musachy Barroso

I'm not sure about that, there is a ton of examples using targets in
showcase, I'm not saying there isn't a bug, just that if there is one is not
as generic as "not working with targets at all". Keep going, I got the
feeling you will find it soon :)

musachy

On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:



Ok. I found out one more thing.
I think we are getting close to the real bug.
Button (or even anchor) doesn't works when I use targets. If I remove
target, then all the thing works fine.
But I need to refresh my screen after submit this form. I tried use
notifyTopics, but how can I say to some div only
listen the after topic without use javascript? Or even using javaScript?

Thanks once again,

Felipe


Felipe Rodrigues wrote:
>
> I've tried it.
> An interesting thing is: With anchor it works fine. using . I can
do
> my system using anchor, but I would suggest someone else try do that in
> order to figure out if it is a real bug or not. If so, could create a
JIRA
> Issue.
>
> What do you think? Did you tried to reproduce the same issue there?
>
> Thanks,
>
> Felipe
>
>
> Musachy Barroso wrote:
>>
>> Try setting formId="formVariaveis" in the submit button.
>>
>> musachy
>>
>> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> Hi,
>>>
>>> After a weekend, we are back to reality...
>>>
>>> Some other clue to help me fix this issue?
>>>
>>> Thanks,
>>>
>>> Felipe
>>>
>>>
>>> Felipe Rodrigues wrote:
>>> >
>>> > yes. But this is not the div I'm trying to update.
>>> >
>>> >
>>> > Musachy Barroso wrote:
>>> >>
>>> >> Is the submit button inside the div? something like:
>>> >>
>>> >> 
>>> >> 
>>> >> 
>>> >>
>>> >>
>>> >> musachy
>>> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>> >>>
>>> >>>
>>> >>> DEBUG:  widget ID collision on ID: btGravar. I've changed this ID
>>> and
>>> I
>>> >>> don't
>>> >>> get this error anymore.
>>> >>> But the problem persist. IE doesn't send any parameter.
>>> >>>
>>> >>> That was the message!
>>> >>>
>>> >>>
>>> >>> Musachy Barroso wrote:
>>> >>> >
>>> >>> > Well we are getting closer then, it is not related to the
>>> >>> ActionContext
>>> >>> > (which I doubted anyway) but to ajax. Set debug="true" on the
head
>>> tag
>>> >>> and
>>> >>> > see if there are any errors. The other thing, is the submit
>>> button,
>>> or
>>> >>> the
>>> >>> > anchor inside the div that you are trying to update (if it is
then
>>> you
>>> >>> > need
>>> >>> > to set showLoadingText="false" in the submit button or the the
>>> >>> anchor)?
>>> >>> >
>>> >>> > regards
>>> >>> > musachy
>>> >>> >
>>> >>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>> >>> >>
>>> >>> >>
>>> >>> >> Hi again,
>>> >>> >>
>>> >>> >> I tried without the theme="ajax" in the submit button. It
worked
>>> even
>>> >>> at
>>> >>> >> IE,
>>> >>> >> but then, I lost the ajax behavior. I need update a div. So I
>>> think
>>> >>> it
>>> >>> is
>>> >>> >> a
>>> >>> >> bug of ajax theme vs IE.
>>> >>> >>
>>> >>> >> What do you think?
>>> >>> >>
>>> >>> >> Thanks,
>>> >>> >>
>>> >>> >> Felipe
>>> >>> >>
>>> >>> >>
>>> >>> >> Felipe Rodrigues wrote:
>>> >>> >> >
>>> >>> >> > Thanks for the help,
>>> >>> >> > Now I'm trying with this simple form, simpler than the first.
>>> For
>>> >>> my
>>> >>> >> > surprise I got the same problem.
>>> >>> >> > In Firefox works, in IE doesn't.
>>> >>> >> > Here goes my code, first the part I getting the ActionContext
>>> and
>>> >>> >> getting
>>> >>> >> > the parameters:
>>> >>> >> >
>>> >>> >> > ActionContext ac = ActionContext.getContext();
>>> >>> >> > Map session = ac.getSession();
>>> >>> >> > Map parameters = ac.getParameters();
>>> >>> >> >
>>> >>> >> > and my form:
>>> >>> >> >
>>> >>> >> >  - BEGIN OF CODE
>>> >>> >> > -
>>> >>> >> > <[EMAIL PROTECTED] prefix="c" 
uri="http://java.sun.com/jsp/jstl/core
"%>
>>> >>> >> > <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%>
>>> >>> >> > >> >>> method="post">
>>> >>> >> >   
>>> >>> >> > 
>>> >>> >> >   Variável
>>> >>> >> >   Unid
>>> >>> >> >   Valor
>>> >>> >> >   Valor anterior
>>> >>> >> >   OUT
>>> >>> >> >   INV
>>> >>> >> > 
>>> >>> >> > 
>>> >>> >> >   DSC
>>> >>> >> >   UNID
>>> >>> >> >   >> >>> >> > cssClass="inputField" theme="simple" />
>>> >>> >> >   Valor
>>> Ant
>>> >>> >> >   >> >>> theme="simple"
>>> >>> >> > value="true" />
>>> >>> >> >   >> >>> >> > theme="simple" value="false" />
>>> >>> >> > 
>>> >>> >> >   
>>> >>> >> >   >> >>> >> > showLoadingText="Loading..." />
>>> >>> >> > 
>>> >>> >> >  - END OF CODE
>>> >>> >> > -
>>> >>> >> >
>>> >>> >> > Thanks,
>>> >>> >> >
>>> >>> >> > Felipe
>>> >>> >> >
>>> >>> >> >
>>> >>> >> > Musachy Barroso wrote:
>>> >>> >> >>
>>> >>> >> >> You could compare what is getting submitted to the server by
>>> both
>>> >>> FF
>>> >>> >> and
>>> >>> >> 

Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues

Ok. I found out one more thing.
I think we are getting close to the real bug.
Button (or even anchor) doesn't works when I use targets. If I remove
target, then all the thing works fine.
But I need to refresh my screen after submit this form. I tried use
notifyTopics, but how can I say to some div only
listen the after topic without use javascript? Or even using javaScript?

Thanks once again,

Felipe


Felipe Rodrigues wrote:
> 
> I've tried it.
> An interesting thing is: With anchor it works fine. using . I can do
> my system using anchor, but I would suggest someone else try do that in
> order to figure out if it is a real bug or not. If so, could create a JIRA
> Issue.
> 
> What do you think? Did you tried to reproduce the same issue there?
> 
> Thanks,
> 
> Felipe
> 
> 
> Musachy Barroso wrote:
>> 
>> Try setting formId="formVariaveis" in the submit button.
>> 
>> musachy
>> 
>> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> Hi,
>>>
>>> After a weekend, we are back to reality...
>>>
>>> Some other clue to help me fix this issue?
>>>
>>> Thanks,
>>>
>>> Felipe
>>>
>>>
>>> Felipe Rodrigues wrote:
>>> >
>>> > yes. But this is not the div I'm trying to update.
>>> >
>>> >
>>> > Musachy Barroso wrote:
>>> >>
>>> >> Is the submit button inside the div? something like:
>>> >>
>>> >> 
>>> >> 
>>> >> 
>>> >>
>>> >>
>>> >> musachy
>>> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>> >>>
>>> >>>
>>> >>> DEBUG:  widget ID collision on ID: btGravar. I've changed this ID
>>> and
>>> I
>>> >>> don't
>>> >>> get this error anymore.
>>> >>> But the problem persist. IE doesn't send any parameter.
>>> >>>
>>> >>> That was the message!
>>> >>>
>>> >>>
>>> >>> Musachy Barroso wrote:
>>> >>> >
>>> >>> > Well we are getting closer then, it is not related to the
>>> >>> ActionContext
>>> >>> > (which I doubted anyway) but to ajax. Set debug="true" on the head
>>> tag
>>> >>> and
>>> >>> > see if there are any errors. The other thing, is the submit
>>> button,
>>> or
>>> >>> the
>>> >>> > anchor inside the div that you are trying to update (if it is then
>>> you
>>> >>> > need
>>> >>> > to set showLoadingText="false" in the submit button or the the
>>> >>> anchor)?
>>> >>> >
>>> >>> > regards
>>> >>> > musachy
>>> >>> >
>>> >>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>> >>> >>
>>> >>> >>
>>> >>> >> Hi again,
>>> >>> >>
>>> >>> >> I tried without the theme="ajax" in the submit button. It worked
>>> even
>>> >>> at
>>> >>> >> IE,
>>> >>> >> but then, I lost the ajax behavior. I need update a div. So I
>>> think
>>> >>> it
>>> >>> is
>>> >>> >> a
>>> >>> >> bug of ajax theme vs IE.
>>> >>> >>
>>> >>> >> What do you think?
>>> >>> >>
>>> >>> >> Thanks,
>>> >>> >>
>>> >>> >> Felipe
>>> >>> >>
>>> >>> >>
>>> >>> >> Felipe Rodrigues wrote:
>>> >>> >> >
>>> >>> >> > Thanks for the help,
>>> >>> >> > Now I'm trying with this simple form, simpler than the first.
>>> For
>>> >>> my
>>> >>> >> > surprise I got the same problem.
>>> >>> >> > In Firefox works, in IE doesn't.
>>> >>> >> > Here goes my code, first the part I getting the ActionContext
>>> and
>>> >>> >> getting
>>> >>> >> > the parameters:
>>> >>> >> >
>>> >>> >> > ActionContext ac = ActionContext.getContext();
>>> >>> >> > Map session = ac.getSession();
>>> >>> >> > Map parameters = ac.getParameters();
>>> >>> >> >
>>> >>> >> > and my form:
>>> >>> >> >
>>> >>> >> >  - BEGIN OF CODE
>>> >>> >> > -
>>> >>> >> > <[EMAIL PROTECTED] prefix="c" 
>>> >>> >> > uri="http://java.sun.com/jsp/jstl/core"%>
>>> >>> >> > <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%>
>>> >>> >> > >> >>> method="post">
>>> >>> >> >   
>>> >>> >> > 
>>> >>> >> >   Variável
>>> >>> >> >   Unid
>>> >>> >> >   Valor
>>> >>> >> >   Valor anterior
>>> >>> >> >   OUT
>>> >>> >> >   INV
>>> >>> >> > 
>>> >>> >> > 
>>> >>> >> >   DSC
>>> >>> >> >   UNID
>>> >>> >> >   >> >>> >> > cssClass="inputField" theme="simple" />
>>> >>> >> >   Valor
>>> Ant
>>> >>> >> >   >> >>> theme="simple"
>>> >>> >> > value="true" />
>>> >>> >> >   >> >>> >> > theme="simple" value="false" />
>>> >>> >> > 
>>> >>> >> >   
>>> >>> >> >   >> >>> >> > showLoadingText="Loading..." />
>>> >>> >> > 
>>> >>> >> >  - END OF CODE
>>> >>> >> > -
>>> >>> >> >
>>> >>> >> > Thanks,
>>> >>> >> >
>>> >>> >> > Felipe
>>> >>> >> >
>>> >>> >> >
>>> >>> >> > Musachy Barroso wrote:
>>> >>> >> >>
>>> >>> >> >> You could compare what is getting submitted to the server by
>>> both
>>> >>> FF
>>> >>> >> and
>>> >>> >> >> IE.
>>> >>> >> >> But it does sound weird. Try to narrow it down to a simple
>>> form,
>>> >>> with
>>> >>> >> a
>>> >>> >> >> simple action, with no extra-interceptors, etc.
>>> >>> >> >>
>>> >>> >> >> musachy
>>> >>> >> >>
>>> >>> >> >>
>>> >>> >> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTE

Re: ActionContext not working properly with IE

2007-04-23 Thread Musachy Barroso

Anchor and Submit use the same Widget. That's weird.

musachy

On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:



I've tried it.
An interesting thing is: With anchor it works fine. using . I can do
my
system using anchor, but I would suggest someone else try do that in order
to figure out if it is a real bug or not. If so, could create a JIRA
Issue.

What do you think? Did you tried to reproduce the same issue there?

Thanks,

Felipe


Musachy Barroso wrote:
>
> Try setting formId="formVariaveis" in the submit button.
>
> musachy
>
> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> After a weekend, we are back to reality...
>>
>> Some other clue to help me fix this issue?
>>
>> Thanks,
>>
>> Felipe
>>
>>
>> Felipe Rodrigues wrote:
>> >
>> > yes. But this is not the div I'm trying to update.
>> >
>> >
>> > Musachy Barroso wrote:
>> >>
>> >> Is the submit button inside the div? something like:
>> >>
>> >> 
>> >> 
>> >> 
>> >>
>> >>
>> >> musachy
>> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>>
>> >>> DEBUG:  widget ID collision on ID: btGravar. I've changed this ID
and
>> I
>> >>> don't
>> >>> get this error anymore.
>> >>> But the problem persist. IE doesn't send any parameter.
>> >>>
>> >>> That was the message!
>> >>>
>> >>>
>> >>> Musachy Barroso wrote:
>> >>> >
>> >>> > Well we are getting closer then, it is not related to the
>> >>> ActionContext
>> >>> > (which I doubted anyway) but to ajax. Set debug="true" on the
head
>> tag
>> >>> and
>> >>> > see if there are any errors. The other thing, is the submit
button,
>> or
>> >>> the
>> >>> > anchor inside the div that you are trying to update (if it is
then
>> you
>> >>> > need
>> >>> > to set showLoadingText="false" in the submit button or the the
>> >>> anchor)?
>> >>> >
>> >>> > regards
>> >>> > musachy
>> >>> >
>> >>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>> >>
>> >>> >>
>> >>> >> Hi again,
>> >>> >>
>> >>> >> I tried without the theme="ajax" in the submit button. It worked
>> even
>> >>> at
>> >>> >> IE,
>> >>> >> but then, I lost the ajax behavior. I need update a div. So I
>> think
>> >>> it
>> >>> is
>> >>> >> a
>> >>> >> bug of ajax theme vs IE.
>> >>> >>
>> >>> >> What do you think?
>> >>> >>
>> >>> >> Thanks,
>> >>> >>
>> >>> >> Felipe
>> >>> >>
>> >>> >>
>> >>> >> Felipe Rodrigues wrote:
>> >>> >> >
>> >>> >> > Thanks for the help,
>> >>> >> > Now I'm trying with this simple form, simpler than the first.
>> For
>> >>> my
>> >>> >> > surprise I got the same problem.
>> >>> >> > In Firefox works, in IE doesn't.
>> >>> >> > Here goes my code, first the part I getting the ActionContext
>> and
>> >>> >> getting
>> >>> >> > the parameters:
>> >>> >> >
>> >>> >> > ActionContext ac = ActionContext.getContext();
>> >>> >> > Map session = ac.getSession();
>> >>> >> > Map parameters = ac.getParameters();
>> >>> >> >
>> >>> >> > and my form:
>> >>> >> >
>> >>> >> >  - BEGIN OF CODE
>> >>> >> > -
>> >>> >> > <[EMAIL PROTECTED] prefix="c" 
uri="http://java.sun.com/jsp/jstl/core"%>
>> >>> >> > <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%>
>> >>> >> > > >>> method="post">
>> >>> >> >   
>> >>> >> > 
>> >>> >> >   Variável
>> >>> >> >   Unid
>> >>> >> >   Valor
>> >>> >> >   Valor anterior
>> >>> >> >   OUT
>> >>> >> >   INV
>> >>> >> > 
>> >>> >> > 
>> >>> >> >   DSC
>> >>> >> >   UNID
>> >>> >> >   > >>> >> > cssClass="inputField" theme="simple" />
>> >>> >> >   Valor
>> Ant
>> >>> >> >   > >>> theme="simple"
>> >>> >> > value="true" />
>> >>> >> >   > >>> >> > theme="simple" value="false" />
>> >>> >> > 
>> >>> >> >   
>> >>> >> >   > >>> >> > showLoadingText="Loading..." />
>> >>> >> > 
>> >>> >> >  - END OF CODE
>> >>> >> > -
>> >>> >> >
>> >>> >> > Thanks,
>> >>> >> >
>> >>> >> > Felipe
>> >>> >> >
>> >>> >> >
>> >>> >> > Musachy Barroso wrote:
>> >>> >> >>
>> >>> >> >> You could compare what is getting submitted to the server by
>> both
>> >>> FF
>> >>> >> and
>> >>> >> >> IE.
>> >>> >> >> But it does sound weird. Try to narrow it down to a simple
>> form,
>> >>> with
>> >>> >> a
>> >>> >> >> simple action, with no extra-interceptors, etc.
>> >>> >> >>
>> >>> >> >> musachy
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]>
wrote:
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> I don't want to screw up, but doesn't it sound like a bug?
>> >>> >> >>> I have nowhere more to look for a solution.
>> >>> >> >>>
>> >>> >> >>> {}
>> >>> >> >>>
>> >>> >> >>> Felipe
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> Felipe Rodrigues wrote:
>> >>> >> >>> >
>> >>> >> >>> > Sure,
>> >>> >> >>> >
>> >>> >> >>> > Pls, excuse the names in portuguese. It is not a simple
>> form,
>> >>> and
>> >>> >> it
>> >>> >> >>> is
>> >>> >> >>> in
>> >>> >> >>> > this way becau

Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues

I've tried it.
An interesting thing is: With anchor it works fine. using . I can do my
system using anchor, but I would suggest someone else try do that in order
to figure out if it is a real bug or not. If so, could create a JIRA Issue.

What do you think? Did you tried to reproduce the same issue there?

Thanks,

Felipe


Musachy Barroso wrote:
> 
> Try setting formId="formVariaveis" in the submit button.
> 
> musachy
> 
> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> After a weekend, we are back to reality...
>>
>> Some other clue to help me fix this issue?
>>
>> Thanks,
>>
>> Felipe
>>
>>
>> Felipe Rodrigues wrote:
>> >
>> > yes. But this is not the div I'm trying to update.
>> >
>> >
>> > Musachy Barroso wrote:
>> >>
>> >> Is the submit button inside the div? something like:
>> >>
>> >> 
>> >> 
>> >> 
>> >>
>> >>
>> >> musachy
>> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>>
>> >>> DEBUG:  widget ID collision on ID: btGravar. I've changed this ID and
>> I
>> >>> don't
>> >>> get this error anymore.
>> >>> But the problem persist. IE doesn't send any parameter.
>> >>>
>> >>> That was the message!
>> >>>
>> >>>
>> >>> Musachy Barroso wrote:
>> >>> >
>> >>> > Well we are getting closer then, it is not related to the
>> >>> ActionContext
>> >>> > (which I doubted anyway) but to ajax. Set debug="true" on the head
>> tag
>> >>> and
>> >>> > see if there are any errors. The other thing, is the submit button,
>> or
>> >>> the
>> >>> > anchor inside the div that you are trying to update (if it is then
>> you
>> >>> > need
>> >>> > to set showLoadingText="false" in the submit button or the the
>> >>> anchor)?
>> >>> >
>> >>> > regards
>> >>> > musachy
>> >>> >
>> >>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>> >>
>> >>> >>
>> >>> >> Hi again,
>> >>> >>
>> >>> >> I tried without the theme="ajax" in the submit button. It worked
>> even
>> >>> at
>> >>> >> IE,
>> >>> >> but then, I lost the ajax behavior. I need update a div. So I
>> think
>> >>> it
>> >>> is
>> >>> >> a
>> >>> >> bug of ajax theme vs IE.
>> >>> >>
>> >>> >> What do you think?
>> >>> >>
>> >>> >> Thanks,
>> >>> >>
>> >>> >> Felipe
>> >>> >>
>> >>> >>
>> >>> >> Felipe Rodrigues wrote:
>> >>> >> >
>> >>> >> > Thanks for the help,
>> >>> >> > Now I'm trying with this simple form, simpler than the first.
>> For
>> >>> my
>> >>> >> > surprise I got the same problem.
>> >>> >> > In Firefox works, in IE doesn't.
>> >>> >> > Here goes my code, first the part I getting the ActionContext
>> and
>> >>> >> getting
>> >>> >> > the parameters:
>> >>> >> >
>> >>> >> > ActionContext ac = ActionContext.getContext();
>> >>> >> > Map session = ac.getSession();
>> >>> >> > Map parameters = ac.getParameters();
>> >>> >> >
>> >>> >> > and my form:
>> >>> >> >
>> >>> >> >  - BEGIN OF CODE
>> >>> >> > -
>> >>> >> > <[EMAIL PROTECTED] prefix="c" 
>> >>> >> > uri="http://java.sun.com/jsp/jstl/core"%>
>> >>> >> > <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%>
>> >>> >> > > >>> method="post">
>> >>> >> >   
>> >>> >> > 
>> >>> >> >   Variável
>> >>> >> >   Unid
>> >>> >> >   Valor
>> >>> >> >   Valor anterior
>> >>> >> >   OUT
>> >>> >> >   INV
>> >>> >> > 
>> >>> >> > 
>> >>> >> >   DSC
>> >>> >> >   UNID
>> >>> >> >   > >>> >> > cssClass="inputField" theme="simple" />
>> >>> >> >   Valor
>> Ant
>> >>> >> >   > >>> theme="simple"
>> >>> >> > value="true" />
>> >>> >> >   > >>> >> > theme="simple" value="false" />
>> >>> >> > 
>> >>> >> >   
>> >>> >> >   > >>> >> > showLoadingText="Loading..." />
>> >>> >> > 
>> >>> >> >  - END OF CODE
>> >>> >> > -
>> >>> >> >
>> >>> >> > Thanks,
>> >>> >> >
>> >>> >> > Felipe
>> >>> >> >
>> >>> >> >
>> >>> >> > Musachy Barroso wrote:
>> >>> >> >>
>> >>> >> >> You could compare what is getting submitted to the server by
>> both
>> >>> FF
>> >>> >> and
>> >>> >> >> IE.
>> >>> >> >> But it does sound weird. Try to narrow it down to a simple
>> form,
>> >>> with
>> >>> >> a
>> >>> >> >> simple action, with no extra-interceptors, etc.
>> >>> >> >>
>> >>> >> >> musachy
>> >>> >> >>
>> >>> >> >>
>> >>> >> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> I don't want to screw up, but doesn't it sound like a bug?
>> >>> >> >>> I have nowhere more to look for a solution.
>> >>> >> >>>
>> >>> >> >>> {}
>> >>> >> >>>
>> >>> >> >>> Felipe
>> >>> >> >>>
>> >>> >> >>>
>> >>> >> >>> Felipe Rodrigues wrote:
>> >>> >> >>> >
>> >>> >> >>> > Sure,
>> >>> >> >>> >
>> >>> >> >>> > Pls, excuse the names in portuguese. It is not a simple
>> form,
>> >>> and
>> >>> >> it
>> >>> >> >>> is
>> >>> >> >>> in
>> >>> >> >>> > this way because it is dinamicaly generated.
>> >>> >> >>> >
>> >>> >> >>> > - BEGIN OF CODE
>> >>> >

Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread piloupy GOTTAPIL

Hi,

I'd like to do something like this in a JSP file :

Email Link

where contact.mail is a key from my MessageResources.properties.

I think the solution is quite simple, but I can't find how to do.

Thanks in advance,

piloupy

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



Re: bean scope in ApplicationContext-struts.xml

2007-04-23 Thread Antonio Petrelli

2007/4/23, arunabh <[EMAIL PROTECTED]>:




2007/4/23, arunabh <[EMAIL PROTECTED]>:
>
> Hi ,
> In the ApplicationContext-struts.xml  what are the different values for
> the
> scope attribute of bean tag . And what different values mean over there .
> I desperately heed help in that .

Are you writing about Struts or Spring?
In the latter case, write to the Spring team.

Antonio

Hi,
I am asking about Struts .


See:
http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-scopes
Are you still sure that you were asking about Struts? :-)

Antonio

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



Re: bean scope in ApplicationContext-struts.xml

2007-04-23 Thread arunabh



2007/4/23, arunabh <[EMAIL PROTECTED]>:
>
> Hi ,
> In the ApplicationContext-struts.xml  what are the different values for
> the
> scope attribute of bean tag . And what different values mean over there .
> I desperately heed help in that .

Are you writing about Struts or Spring?
In the latter case, write to the Spring team.

Antonio

Hi,
I am asking about Struts .

Arunabh
-- 
View this message in context: 
http://www.nabble.com/bean-scope-in-ApplicationContext-struts.xml-tf3631100.html#a10139307
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: bean scope in ApplicationContext-struts.xml

2007-04-23 Thread Antonio Petrelli

2007/4/23, arunabh <[EMAIL PROTECTED]>:


Hi ,
In the ApplicationContext-struts.xml  what are the different values for the
scope attribute of bean tag . And what different values mean over there .
I desperately heed help in that .


Are you writing about Struts or Spring?
In the latter case, write to the Spring team.

Antonio

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



bean scope in ApplicationContext-struts.xml

2007-04-23 Thread arunabh

Hi ,
In the ApplicationContext-struts.xml  what are the different values for the
scope attribute of bean tag . And what different values mean over there . 
I desperately heed help in that .  

with regards
Arunabh Dash
-- 
View this message in context: 
http://www.nabble.com/bean-scope-in-ApplicationContext-struts.xml-tf3631100.html#a10139034
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: ActionContext not working properly with IE

2007-04-23 Thread Musachy Barroso

Try setting formId="formVariaveis" in the submit button.

musachy

On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:



Hi,

After a weekend, we are back to reality...

Some other clue to help me fix this issue?

Thanks,

Felipe


Felipe Rodrigues wrote:
>
> yes. But this is not the div I'm trying to update.
>
>
> Musachy Barroso wrote:
>>
>> Is the submit button inside the div? something like:
>>
>> 
>> 
>> 
>>
>>
>> musachy
>> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> DEBUG:  widget ID collision on ID: btGravar. I've changed this ID and
I
>>> don't
>>> get this error anymore.
>>> But the problem persist. IE doesn't send any parameter.
>>>
>>> That was the message!
>>>
>>>
>>> Musachy Barroso wrote:
>>> >
>>> > Well we are getting closer then, it is not related to the
>>> ActionContext
>>> > (which I doubted anyway) but to ajax. Set debug="true" on the head
tag
>>> and
>>> > see if there are any errors. The other thing, is the submit button,
or
>>> the
>>> > anchor inside the div that you are trying to update (if it is then
you
>>> > need
>>> > to set showLoadingText="false" in the submit button or the the
>>> anchor)?
>>> >
>>> > regards
>>> > musachy
>>> >
>>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >>
>>> >> Hi again,
>>> >>
>>> >> I tried without the theme="ajax" in the submit button. It worked
even
>>> at
>>> >> IE,
>>> >> but then, I lost the ajax behavior. I need update a div. So I think
>>> it
>>> is
>>> >> a
>>> >> bug of ajax theme vs IE.
>>> >>
>>> >> What do you think?
>>> >>
>>> >> Thanks,
>>> >>
>>> >> Felipe
>>> >>
>>> >>
>>> >> Felipe Rodrigues wrote:
>>> >> >
>>> >> > Thanks for the help,
>>> >> > Now I'm trying with this simple form, simpler than the first. For
>>> my
>>> >> > surprise I got the same problem.
>>> >> > In Firefox works, in IE doesn't.
>>> >> > Here goes my code, first the part I getting the ActionContext and
>>> >> getting
>>> >> > the parameters:
>>> >> >
>>> >> > ActionContext ac = ActionContext.getContext();
>>> >> > Map session = ac.getSession();
>>> >> > Map parameters = ac.getParameters();
>>> >> >
>>> >> > and my form:
>>> >> >
>>> >> >  - BEGIN OF CODE
>>> >> > -
>>> >> > <[EMAIL PROTECTED] prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
>>> >> > <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%>
>>> >> > >> method="post">
>>> >> >   
>>> >> > 
>>> >> >   Variável
>>> >> >   Unid
>>> >> >   Valor
>>> >> >   Valor anterior
>>> >> >   OUT
>>> >> >   INV
>>> >> > 
>>> >> > 
>>> >> >   DSC
>>> >> >   UNID
>>> >> >   >> >> > cssClass="inputField" theme="simple" />
>>> >> >   Valor
Ant
>>> >> >   >> theme="simple"
>>> >> > value="true" />
>>> >> >   >> >> > theme="simple" value="false" />
>>> >> > 
>>> >> >   
>>> >> >   >> >> > showLoadingText="Loading..." />
>>> >> > 
>>> >> >  - END OF CODE
>>> >> > -
>>> >> >
>>> >> > Thanks,
>>> >> >
>>> >> > Felipe
>>> >> >
>>> >> >
>>> >> > Musachy Barroso wrote:
>>> >> >>
>>> >> >> You could compare what is getting submitted to the server by
both
>>> FF
>>> >> and
>>> >> >> IE.
>>> >> >> But it does sound weird. Try to narrow it down to a simple form,
>>> with
>>> >> a
>>> >> >> simple action, with no extra-interceptors, etc.
>>> >> >>
>>> >> >> musachy
>>> >> >>
>>> >> >>
>>> >> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>> >> >>>
>>> >> >>>
>>> >> >>> I don't want to screw up, but doesn't it sound like a bug?
>>> >> >>> I have nowhere more to look for a solution.
>>> >> >>>
>>> >> >>> {}
>>> >> >>>
>>> >> >>> Felipe
>>> >> >>>
>>> >> >>>
>>> >> >>> Felipe Rodrigues wrote:
>>> >> >>> >
>>> >> >>> > Sure,
>>> >> >>> >
>>> >> >>> > Pls, excuse the names in portuguese. It is not a simple form,
>>> and
>>> >> it
>>> >> >>> is
>>> >> >>> in
>>> >> >>> > this way because it is dinamicaly generated.
>>> >> >>> >
>>> >> >>> > - BEGIN OF CODE
>>> >> >>> >
>>> >> >>>
>>> >>
>>>
---
>>> >> >>> > >> >> >>> theme="simple"
>>> >> >>> > method="post">
>>> >> >>> >   
>>> >> >>> > 
>>> >> >>> >   Variável
>>> >> >>> >   Unid
>>> >> >>> >   Valor
>>> >> >>> >   Valor anterior
>>> >> >>> >   OUT
>>> >> >>> >   INV
>>> >> >>> > 
>>> >> >>> > 
>>> >> >>> > 
>>> >> >>> >   
>>> >> >>> > >> >> align="left">*
>>> >> >>> > 
>>> >> >>> >   
>>> >> >>> > 
>>> >> >>> > 
>>> >> >>> >   
>>> >> >>> >   >> />
>>> >> >>> >   >> >> >>> > value="%{movimentoMap['${mesSel}'].valor}"
>>> cssClass="inputField"
>>> >> >>> > theme="simple" />
>>> >> >>> >   >> >> >>> > value="%{movimentoMap['${mesSel}'].valor}" />
>>> >> >>> >   >> >> >>> > theme="simple" value="%{movimentoMa

Struts Validation Problems

2007-04-23 Thread Ferruh Zamangör
Hi,

I have some problems with using the following regular expression in the 
validation framework from Struts. 



 


mask
^\w{2}-\w{6}(-\w{2}){0,5}$ | 
^[0-9]{4,6}$



I have tested with the following scenarios:

333 ==> validation works and a validation message is displayed.
 ==> validation OK
1234567 ==> validation does not work, no validation error is displayed

When I use the same pattern in a java class it works fine???


String input = "1234567";
String pattern = "^\\w{2}-\\w{6}(-\\w{2}){0,5}|([0-9]{4,6})$";
Pattern p = Pattern.compile(pattern);
Matcher match = p.matcher(input);
boolean result = match.matches();


Can anybody tell me what is wrong in the above definition of the field ??

Regards
Ferruh


Re: ActionContext not working properly with IE

2007-04-23 Thread Felipe Rodrigues

Hi,

After a weekend, we are back to reality...

Some other clue to help me fix this issue?

Thanks,

Felipe


Felipe Rodrigues wrote:
> 
> yes. But this is not the div I'm trying to update.
> 
> 
> Musachy Barroso wrote:
>> 
>> Is the submit button inside the div? something like:
>> 
>> 
>> 
>> 
>> 
>> 
>> musachy
>> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> DEBUG:  widget ID collision on ID: btGravar. I've changed this ID and I
>>> don't
>>> get this error anymore.
>>> But the problem persist. IE doesn't send any parameter.
>>>
>>> That was the message!
>>>
>>>
>>> Musachy Barroso wrote:
>>> >
>>> > Well we are getting closer then, it is not related to the
>>> ActionContext
>>> > (which I doubted anyway) but to ajax. Set debug="true" on the head tag
>>> and
>>> > see if there are any errors. The other thing, is the submit button, or
>>> the
>>> > anchor inside the div that you are trying to update (if it is then you
>>> > need
>>> > to set showLoadingText="false" in the submit button or the the
>>> anchor)?
>>> >
>>> > regards
>>> > musachy
>>> >
>>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >>
>>> >> Hi again,
>>> >>
>>> >> I tried without the theme="ajax" in the submit button. It worked even
>>> at
>>> >> IE,
>>> >> but then, I lost the ajax behavior. I need update a div. So I think
>>> it
>>> is
>>> >> a
>>> >> bug of ajax theme vs IE.
>>> >>
>>> >> What do you think?
>>> >>
>>> >> Thanks,
>>> >>
>>> >> Felipe
>>> >>
>>> >>
>>> >> Felipe Rodrigues wrote:
>>> >> >
>>> >> > Thanks for the help,
>>> >> > Now I'm trying with this simple form, simpler than the first. For
>>> my
>>> >> > surprise I got the same problem.
>>> >> > In Firefox works, in IE doesn't.
>>> >> > Here goes my code, first the part I getting the ActionContext and
>>> >> getting
>>> >> > the parameters:
>>> >> >
>>> >> > ActionContext ac = ActionContext.getContext();
>>> >> > Map session = ac.getSession();
>>> >> > Map parameters = ac.getParameters();
>>> >> >
>>> >> > and my form:
>>> >> >
>>> >> >  - BEGIN OF CODE
>>> >> > -
>>> >> > <[EMAIL PROTECTED] prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
>>> >> > <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%>
>>> >> > >> method="post">
>>> >> >   
>>> >> > 
>>> >> >   Variável
>>> >> >   Unid
>>> >> >   Valor
>>> >> >   Valor anterior
>>> >> >   OUT
>>> >> >   INV
>>> >> > 
>>> >> > 
>>> >> >   DSC
>>> >> >   UNID
>>> >> >   >> >> > cssClass="inputField" theme="simple" />
>>> >> >   Valor Ant
>>> >> >   >> theme="simple"
>>> >> > value="true" />
>>> >> >   >> >> > theme="simple" value="false" />
>>> >> > 
>>> >> >   
>>> >> >   >> >> > showLoadingText="Loading..." />
>>> >> > 
>>> >> >  - END OF CODE
>>> >> > -
>>> >> >
>>> >> > Thanks,
>>> >> >
>>> >> > Felipe
>>> >> >
>>> >> >
>>> >> > Musachy Barroso wrote:
>>> >> >>
>>> >> >> You could compare what is getting submitted to the server by both
>>> FF
>>> >> and
>>> >> >> IE.
>>> >> >> But it does sound weird. Try to narrow it down to a simple form,
>>> with
>>> >> a
>>> >> >> simple action, with no extra-interceptors, etc.
>>> >> >>
>>> >> >> musachy
>>> >> >>
>>> >> >>
>>> >> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
>>> >> >>>
>>> >> >>>
>>> >> >>> I don't want to screw up, but doesn't it sound like a bug?
>>> >> >>> I have nowhere more to look for a solution.
>>> >> >>>
>>> >> >>> {}
>>> >> >>>
>>> >> >>> Felipe
>>> >> >>>
>>> >> >>>
>>> >> >>> Felipe Rodrigues wrote:
>>> >> >>> >
>>> >> >>> > Sure,
>>> >> >>> >
>>> >> >>> > Pls, excuse the names in portuguese. It is not a simple form,
>>> and
>>> >> it
>>> >> >>> is
>>> >> >>> in
>>> >> >>> > this way because it is dinamicaly generated.
>>> >> >>> >
>>> >> >>> > - BEGIN OF CODE
>>> >> >>> >
>>> >> >>>
>>> >>
>>> ---
>>> >> >>> > >> >> >>> theme="simple"
>>> >> >>> > method="post">
>>> >> >>> >   
>>> >> >>> > 
>>> >> >>> >   Variável
>>> >> >>> >   Unid
>>> >> >>> >   Valor
>>> >> >>> >   Valor anterior
>>> >> >>> >   OUT
>>> >> >>> >   INV
>>> >> >>> > 
>>> >> >>> > 
>>> >> >>> > 
>>> >> >>> >   
>>> >> >>> > >> >> align="left">*
>>> >> >>> > 
>>> >> >>> >   
>>> >> >>> > 
>>> >> >>> > 
>>> >> >>> >   
>>> >> >>> >   >> />
>>> >> >>> >   >> >> >>> > value="%{movimentoMap['${mesSel}'].valor}"
>>> cssClass="inputField"
>>> >> >>> > theme="simple" />
>>> >> >>> >   >> >> >>> > value="%{movimentoMap['${mesSel}'].valor}" />
>>> >> >>> >   >> >> >>> > theme="simple" value="%{movimentoMap['${mesSel}'].foraMedia}"
>>> >> />
>>> >> >>> >   >> name="desprezaValor%{id}"
>>> >> >>> > theme="simple"
>>

Re: Regarding tag libraries

2007-04-23 Thread Antonio Petrelli

2007/4/23, Kapil Sharma <[EMAIL PROTECTED]>:


Hello to all,

I am very new to struts. I am using struts 1.0. I have developed a small
application.


Curious, you're new to Struts and you are using the 1.0 version?


Therefore i would like to know the libraries present in the best appliation.
I heard of JSTL


http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/forEach.html

Antonio

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



Regarding tag libraries

2007-04-23 Thread Kapil Sharma

Hello to all,

I am very new to struts. I am using struts 1.0. I have developed a small
application. 

I just want to know the best tag libraries to get the elements out of
collection. e.g  Arraylist

I m now using a lots of for loop inside the <% %> tags in jsp. But do you
think it is a nice way. I myself think not.

Therefore i would like to know the libraries present in the best appliation.
I heard of JSTL


Thanks
Kapil

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

Re: Issue w/ ActionServlet.init()...

2007-04-23 Thread Niall Pemberton

The init() and init(ServletConfig) methods are part of the servlet API
- the container calls  init(ServletConfig) and that method then fires
init() - so if they are not getting called then I don't think it has
anything to do with Struts. Have you checked your logs for any errors?

Niall

On 4/23/07, David Lehrian <[EMAIL PROTECTED]> wrote:

I have an old application written using Struts 1.1 that has a subclass of 
ActionServlet which overrides the init() method to load data from some XML 
files.  It works fine w/ Struts 1.1.  I haven't touched it for years but now 
need to do some work on it.  My current Netbeans environment has Struts 1.2.9 
and I figured I would just update it to the newer version but for the life of 
me I can't get the system to call the init() method.  I have the subclass 
listed as the action servlet in web.xml (snippet below) and I can break in the 
doGet and doPost methods so the servlet is definitely being used as the 
ActionServlet in the application.  Why isn't it calling the init() and/or 
init(ServletConfig config) methods?


action
TimeClockServlet2.TimeClockActionServlet

config
/WEB-INF/struts-config.xml


debug
2


detail
2

2


action
*.do


Warm Regards,
Dave



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



Re: [S2] How to keep a reference to a bean without using a session scope?

2007-04-23 Thread Alexis Pigeon

Hi again Mark,

Just as a follow-up, you may have missed my message asking for the
updated version of your conversation scope interceptor.
Moreover, any news about the issue you entered in JIRA concerning this
implementation?
< http://issues.apache.org/struts/browse/WW-1514 >

Thanks,
alexis

On 11/04/07, Alexis Pigeon <[EMAIL PROTECTED]> wrote:


On 10/04/07, Mark Menard <[EMAIL PROTECTED]> wrote:


[...]


> You could also take a
> look at a simple interceptor I created for this purpose.
> (http://www.vitarara.org/cms/node/84) I have since updated that method to
> simply be an extension of ModelDriven, if you're interested in the most
> recent version let me know.

The concept of conversation scope is exactly what I was looking for.
The most common situation where I would need it is when having a
select input which content depends on the item chosen from another one
(for example, a set of two selects representing countries and cities,
the content of the latter representing the cities of the chosen
country only).
In my case, the generation of the "subselect" can be quite
time-consuming, thus the need to keep it in some higher scope than the
request.
As for the Interceptor you wrote, I would be most interested in the
most recent version.

Thanks for the help,
alexis



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



Issue w/ ActionServlet.init()...

2007-04-23 Thread David Lehrian
I have an old application written using Struts 1.1 that has a subclass of 
ActionServlet which overrides the init() method to load data from some XML 
files.  It works fine w/ Struts 1.1.  I haven't touched it for years but now 
need to do some work on it.  My current Netbeans environment has Struts 1.2.9 
and I figured I would just update it to the newer version but for the life of 
me I can't get the system to call the init() method.  I have the subclass 
listed as the action servlet in web.xml (snippet below) and I can break in the 
doGet and doPost methods so the servlet is definitely being used as the 
ActionServlet in the application.  Why isn't it calling the init() and/or 
init(ServletConfig config) methods?  


action
TimeClockServlet2.TimeClockActionServlet

config
/WEB-INF/struts-config.xml


debug
2


detail
2

2


action
*.do


Warm Regards,
Dave


Re: struts-menu plugin

2007-04-23 Thread Darryl Culverwell
Great!

Thanx Martin

On Fri, 2007-04-20 at 11:08 -0400, Martin Gainty wrote:
> Hi Darryl-
> 
> I would deploy struts-menu-2.4.war
> http://sourceforge.net/project/showfiles.php?group_id=48726&package_id=44658
> the backend jsps are missing but you can easily create those
> 
> M--
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
> 
> - Original Message - 
> From: "Darryl Culverwell" <[EMAIL PROTECTED]>
> To: "struts" 
> Sent: Friday, April 20, 2007 10:11 AM
> Subject: struts-menu plugin
> 
> 
> > Has anyone managed to get the struts-menu stuff working in struts 2
> >
> > -- 
> > -=Darryl Culverwell=-
> > Cell:  +27 82 494 1678
> > Phone: +21 21 448 1395
> >
> >
> >
> >
> > -
> > 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]
> 
> 
-- 
-=Darryl Culverwell=-
Cell:  +27 82 494 1678
Phone: +21 21 448 1395




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