Re: Problems using JSTL with struts

2005-03-27 Thread Rodolfo García Esteban/CYII
That's right. Now it works. Thank you

Rodolfo García Esteban
Canal Isabel II
División de Aplicaciones Técnicas
C/ Santa Engracia, 125
Edificio 8
Tel. 91 545 10 00 - Ext. 2128
Fax. 91 545 14 41
___




Vamsee Kanakala <[EMAIL PROTECTED]>
18/03/2005 11:03
Por favor, responda a "Struts Users Mailing List"

 
Para:   Struts Users Mailing List 
cc: (cco: Rodolfo García Esteban/CYII)
Asunto: Re: Problems using JSTL with struts


Rodolfo García Esteban/CYII wrote:

>2. when I do content of , I see as a literal "${}".
> 
>
EL is not working for you. Most probable culprit is web.xml. It should 
have webapp 2.4 DTD like so:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">

Vamsee.

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





Re: Problems using JSTL with struts

2005-03-27 Thread Rodolfo García Esteban/CYII
It was de web-app descriptor, that you say in your first response thank 
you

Rodolfo García Esteban
Canal Isabel II
División de Aplicaciones Técnicas
C/ Santa Engracia, 125
Edificio 8
Tel. 91 545 10 00 - Ext. 2128
Fax. 91 545 14 41
___




Tom Ziemer <[EMAIL PROTECTED]>
23/03/2005 09:14
Por favor, responda a "Struts Users Mailing List"

 
Para:   Struts Users Mailing List 
cc: (cco: Rodolfo García Esteban/CYII)
Asunto: Re: Problems using JSTL with struts


Hi again!

Maybe you can try to deploy the (jstl) standard-examples.war from the 
jakarta project. If that doesn't work, your appserver is causing this 
problem.

If these examples work, compare your web.xml to the one from the 
standard-examples.war. I am quite sure it's just a little mistake in 
your configuration that is responsible for this error.

Hope this helps,

Tom

Rodolfo García Esteban/CYII wrote:
> I have done that and I keep having the same problem. I'm completly 
loose.
> 
> Rodolfo García Esteban
> Canal Isabel II
> División de Aplicaciones Técnicas
> C/ Santa Engracia, 125
> Edificio 8
> Tel. 91 545 10 00 - Ext. 2128
> Fax. 91 545 14 41
> ___
> 
> 
> 
> 
> Tom Ziemer <[EMAIL PROTECTED]>
> 18/03/2005 11:00
> Por favor, responda a "Struts Users Mailing List"
> 
> 
> Para:   Struts Users Mailing List 
> cc: (cco: Rodolfo García Esteban/CYII)
> Asunto: Re: Problems using JSTL with struts
> 
> 
> Hi,
> 
> I had a similar problem. What I did was:
> a) put jstl.jar and standard.jar in WEB-INF/lib
> b) modify your web.xml - it should start with this line:
> 
> http://java.sun.com/xml/ns/j2ee"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd" 
> version="2.4">
> 
> When I used my "old" web.xml with "web-app_2_2.dtd", it didn't work. Can 

> anybody explain this?
> 
> Regards,
> 
> Tom
> 
> Rodolfo García Esteban/CYII wrote:
> 
>>Hi,
>>
>>I have a little application done with struts 1.2 and hibernate 2.1, I 
> 
> want 
> 
>>to migrate it to JSTL 2.0, and struts-EL. I have done the next:
>>
>>1. Install jstl, adding to the WEB-INF/lib jstl.jar 
>>2. Writing in the pages then taglib clause to import the tags.
>>
>>But I have the next problems.
>>
>>1 when I do  for get the actionForm return null, I can manage 
> 
> the 
> 
>>form.
>>2. when I do >content of , I see as a literal "${}".
>>
>>Has somebody use JSTL and Struts-EL with Struts 1.2? Do somebody knows 
> 
> the 
> 
>>solution for my problem?
>>
>>I would apreciatte any help
>>
>>Best regards
>>
>>Rodolfo
>>
> 
> 
> -
> 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: Source code for Struts 1.1

2005-03-27 Thread Antony Paul
http://archive.apache.org/dist/jakarta/struts/source/ has 1.1 source code


On Mon, 28 Mar 2005 01:27:14 -0300, Saulo de Oliveira <[EMAIL PROTECTED]> wrote:
> I'm not sure, but i think you can checkout using svn
> url: http://svn.apache.org/repos/asf/struts/
> branch's url: 
> http://svn.apache.org/repos/asf/struts/core/branches/STRUTS_1_1_BRANCH/
> 
> regards,
> Eugênio Saulo
> 
> 
> On Mon, 28 Mar 2005 12:17:19 +0800, Keng Onn <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Does anyone know how I can get a copy of the Struts 1.1 source code?
> > It's to help in debugging a web-app I'm working on which is developed
> > using Struts 1.1.
> >
> > I've looked at the Apache website, but all it offers is the Struts 1.2.4
> > source / binaries / lib :(
> >
> > Regards,
> > Keng Onn.
> >
> > -
> > 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]
> 
> 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



RE: focussing on image in jsp

2005-03-27 Thread Raghuveer Vellanki
Vilpesh,
you mean focusing on anchor tag???
Are you sure does it works.If yes how?


-Original Message-
From: Vilpesh Mistry [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 7:08 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: focussing on image in jsp


hi
why not have a anchor near or above image and focus or
move to that anchor

thanks
--- Raghuveer Vellanki <[EMAIL PROTECTED]>
wrote:

> 
> can any one provide information on ,
> focussing on image in jsp when page loads.
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more. 
http://info.mail.yahoo.com/mail_250

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



Re: Source code for Struts 1.1

2005-03-27 Thread Saulo de Oliveira
I'm not sure, but i think you can checkout using svn
url: http://svn.apache.org/repos/asf/struts/
branch's url: 
http://svn.apache.org/repos/asf/struts/core/branches/STRUTS_1_1_BRANCH/

regards,
Eugênio Saulo


On Mon, 28 Mar 2005 12:17:19 +0800, Keng Onn <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Does anyone know how I can get a copy of the Struts 1.1 source code?
> It's to help in debugging a web-app I'm working on which is developed
> using Struts 1.1.
> 
> I've looked at the Apache website, but all it offers is the Struts 1.2.4
> source / binaries / lib :(
> 
> Regards,
> Keng Onn.
> 
> -
> 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: user Digest 24 Mar 2005 14:53:20 -0000 Issue 5708

2005-03-27 Thread David G. Friedman
Keng Onn,

If you just want the "groupId" and "action" variables, you could always put
them in session scope, perform a forward with redirect="true", then read the
groupId and action from the session scope in the new action.  Just be sure
to remove those variables from session scope IF you don't need them anymore.

Regards,
David, an Caucasian with an English name :)

-Original Message-
From: Keng Onn [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 27, 2005 11:15 PM
To: user@struts.apache.org
Subject: Re: user Digest 24 Mar 2005 14:53:20 - Issue 5708


Hi David,

Thanks for your advice :) - I think I now know what's happening.

I understand what you mean by suggesting that I add the request="true"
attribute to the forward, but it's actually the intention of the
original author to use the "groupId" and "action" variables that are
passed to the second action to initialise the presentation JSP page that
is presented to the user - so that the user can edit the pre-populated
fields for his contact group.

Thanks again for your help! Really didn't expect an answer so fast... :)
[I'm kinda new to Struts - just started to pick it up ard 2nd week Jan,
and It's my first time posting to this mailing list.]

Cheers,
Keng Onn. (not "Ken" btw; I'm Asian and don't have an English name :) )

Ken,

>> Am I missing something?
>
>

You are indeed missing something.   Your configuration shows ACTION
CHAINING.  That has complications.  The Struts framework is internally
called and EVERY step in the RequestProcessor class is performed AGAIN using
the same data in the buffer (i.e. whatever came in with the POST or GET to
"/contactgroup.do").  THAT is why your "groupId" and "action" fields are
populated with the same data - the client never got a message to ask for
"/editcontactgroup.do" because you bypassed the client and had the framework
perform all of this behind the scenes, INTERNALLY to the webapp.

If you wish to LOSE all of that data and start fresh, I recommend you change
your forward to:



The redirect="true" sends an HTTP redirect back to the client's browser
resulting in a brand new request (and obviously a new/blank request scope).

Regards,
David ([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]



Source code for Struts 1.1

2005-03-27 Thread Keng Onn
Hi,
Does anyone know how I can get a copy of the Struts 1.1 source code? 
It's to help in debugging a web-app I'm working on which is developed 
using Struts 1.1.

I've looked at the Apache website, but all it offers is the Struts 1.2.4 
source / binaries / lib :(

Regards,
Keng Onn.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: user Digest 24 Mar 2005 14:53:20 -0000 Issue 5708

2005-03-27 Thread Keng Onn
Hi David,
Thanks for your advice :) - I think I now know what's happening.
I understand what you mean by suggesting that I add the request="true" 
attribute to the forward, but it's actually the intention of the 
original author to use the "groupId" and "action" variables that are 
passed to the second action to initialise the presentation JSP page that 
is presented to the user - so that the user can edit the pre-populated 
fields for his contact group.

Thanks again for your help! Really didn't expect an answer so fast... :) 
[I'm kinda new to Struts - just started to pick it up ard 2nd week Jan, 
and It's my first time posting to this mailing list.]

Cheers,
Keng Onn. (not "Ken" btw; I'm Asian and don't have an English name :) )
Ken,
Am I missing something?
 

You are indeed missing something.   Your configuration shows ACTION
CHAINING.  That has complications.  The Struts framework is internally
called and EVERY step in the RequestProcessor class is performed AGAIN using
the same data in the buffer (i.e. whatever came in with the POST or GET to
"/contactgroup.do").  THAT is why your "groupId" and "action" fields are
populated with the same data - the client never got a message to ask for
"/editcontactgroup.do" because you bypassed the client and had the framework
perform all of this behind the scenes, INTERNALLY to the webapp.
If you wish to LOSE all of that data and start fresh, I recommend you change
your forward to:

The redirect="true" sends an HTTP redirect back to the client's browser
resulting in a brand new request (and obviously a new/blank request scope).
Regards,
David ([EMAIL PROTECTED])
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DispatchAction defaults

2005-03-27 Thread Dakota Jack
Not sure what you mean here, but there is an "unspecified" method for
methods that are unspecified.

Jack


On Sun, 27 Mar 2005 08:57:39 -0800, Nic Werner <[EMAIL PROTECTED]> wrote:
> That was exactly what I needed, thanks Wendy.
> 
> Wendy Smoak wrote:
> 
> > From: "Nic Werner" <[EMAIL PROTECTED]>
> >
> >> I call this with: addDevice.do?method=edit
> >> and: addDevice.do?method=update
> >>
> >> The param for the first page seems a bit extraneous, is there a way
> >> that DispatchAction can just call a default method if the param isn't
> >> specified? I would like to just call: addDevice.do and have it bring
> >> up the form. I haven't seen mention of this practice or ability in
> >> any docs.
> >
> >
> > Take a look at DispatchAction.unspecified(...)
> > http://struts.apache.org/api/org/apache/struts/actions/DispatchAction.html
> >
> >
> > (And just looking ahead:  are you using any JavaScript?  I remember
> > having trouble with either "method" or "action" as a form element
> > name.  If you're trying to set the value of one of those as a form
> > property, it seems that there is confusion between the action and
> > method attributes of the  tag vs. actual form elements with
> > those names.)
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: DispatchAction defaults

2005-03-27 Thread Nic Werner
That was exactly what I needed, thanks Wendy.
Wendy Smoak wrote:
From: "Nic Werner" <[EMAIL PROTECTED]>
I call this with: addDevice.do?method=edit
and: addDevice.do?method=update
The param for the first page seems a bit extraneous, is there a way 
that DispatchAction can just call a default method if the param isn't 
specified? I would like to just call: addDevice.do and have it bring 
up the form. I haven't seen mention of this practice or ability in 
any docs.

Take a look at DispatchAction.unspecified(...)
http://struts.apache.org/api/org/apache/struts/actions/DispatchAction.html 

(And just looking ahead:  are you using any JavaScript?  I remember 
having trouble with either "method" or "action" as a form element 
name.  If you're trying to set the value of one of those as a form 
property, it seems that there is confusion between the action and 
method attributes of the  tag vs. actual form elements with 
those names.)


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


with multiple="true" - creating an appropriate Model

2005-03-27 Thread Simon MARTIN
Hi,
I'm using a form which is defined like this:

  


The part with the html:select tag in my JSP looks like this:

  

   

  


(the schuelerMatura array is put into the model manually in the Action)
Showing the page works pretty fine, put selecting on ore more of the items in 
the list and submitting
the form produces an servlet-exception regarding the 'BeanUtils.populate' method.

The getter and the setter for the schuelerDiplomarbeiten array are wrapped 
around an internal Set,
which is required as Hibernate can't map to an array in my case.

public SchuelerDiplomarbeiten[] getSchuelerDiplomarbeiten() {
SchuelerDiplomarbeiten[] schuelerDiplomarbeiten =
new 
SchuelerDiplomarbeiten[schuelerDiplomarbeitenInternal.size()];
int i = 0;
for (Iterator it = schuelerDiplomarbeitenInternal.iterator(); 
it.hasNext(); ) {
schuelerDiplomarbeiten[i] = (SchuelerDiplomarbeiten) 
it.next();
i++;
}
return schuelerDiplomarbeiten;
}
public void setSchuelerDiplomarbeiten(SchuelerDiplomarbeiten[] 
schuelerDiplomarbeiten) {
		schuelerDiplomarbeitenInternal = new HashSet();

for (int i=0; i < schuelerDiplomarbeiten.length; i++) {

schuelerDiplomarbeitenInternal.add(schuelerDiplomarbeiten[i]);
}
}
So, I assume something's wrong with my setter, but I can't see any mistake.
Any suggestions?
Thanks in advance.
Kind regards,
  Simon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: DispatchAction defaults

2005-03-27 Thread Ruben Cepeda
Hello  Nic,
I may be over simplyfing the problem but why not just set the default value 
of the dispath hidden field [what ever that may be i.e. in your case method] 
in the form to the default value that you wanted insted of the default null. 
 Anyhow, in case I was over simplifing the problem here is a like to a page 
that I found very useful when using the DispatchAciton:

http://husted.com/struts/tips/002.html
Also you may wanted to look into the LookupDispachAction which in my option 
is a better choice due to the fact that it is javascript free.

*
Ruben Cepeda
[EMAIL PROTECTED]
*

Original Message Follows
From: Nic Werner <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List 
Subject: DispatchAction defaults
Date: Sat, 26 Mar 2005 16:07:48 -0800
Hi,
   I'm using DispatchAction for grouping common items together, and one of 
them is to just load a form page, and the other action is to 'update' this 
page.

I call this with: addDevice.do?method=edit
and: addDevice.do?method=update
The param for the first page seems a bit extraneous, is there a way that 
DispatchAction can just call a default method if the param isn't specified? 
I would like to just call: addDevice.do and have it bring up the form. I 
haven't seen mention of this practice or ability in any docs.

Does everybody else just work around this and add extra params?
- Nic.
-
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]