I NEED HELP

2003-03-24 Thread Richard Raquepo
Please view email:
1. error starting my struts app in tomcat
2. error in my struts config

I really need help badly.

THANKS! 

-richard

Field by field validation using validation.xml

2003-03-24 Thread Simon Kelly
Hi,

I'm stuck with a little problem on validation, where an empty field can be
valid if there is content in another field.  I can't work out how to put
this into the validation file.  I can see how to check for content, but not
dependancies on other field content.

Any help would be appreciated.

Cheers

Simon



Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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



RE: Passing arguments to Action Class

2003-03-24 Thread shirishchandra.sakhare
I don't think so that it is a bad practice if its absolute must..
...I remember I have seen something like the same in one of the tips given By Ted...To 
pass params to links...

But is this action forward created dynamically and the parameter to be passed is also 
dynamic?
Can you not use the parameter attribute of action mapping in struts config file itself?

-Original Message-
From: Gerrit [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 22, 2003 4:38 PM
To: Struts
Subject: Passing arguments to Action Class


Is it bad practice to pass a variable to an Action Class as follows:

doSomething.do?var1=x

Gerrit


-
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: error in my struts config

2003-03-24 Thread Konstantina Stamopoulou
Hello Richard,

I'm not sure if it is allowed to give the stuts-configs as comma delimited
parameters. Try the following in your web.xml


init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config-tm.xml/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config-manager.xml/param-value
/init-param

Konstnatina



- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 8:17 AM
Subject: error in my struts config


My web-app is working fine in resin but when i switched to tomcat i got this
error.

2003-03-24 14:13:57 StandardContext[/]: Servlet / threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path
/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
 at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
52)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


my web.xml looks like this
.
init-param
  param-nameconfig/param-name
  param-value

/WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-con
fig-manager.xml
   /param-value
/init-param

it works fine in resin but this seems not allowed in tomcat...

guys, what do you think is the error.

thanks a lot...


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



Re: error in my struts config

2003-03-24 Thread Richard Raquepo
i did that too... the thing is... my web app works in Resin.

but when i try to run it under tomcat i always get the errors.

i don't know what's really hapenning... can someone enlighten me...

thanks a lot
- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 4:45 PM
Subject: Re: error in my struts config


 Hello Richard,

 I'm not sure if it is allowed to give the stuts-configs as comma delimited
 parameters. Try the following in your web.xml


 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config-tm.xml/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config-manager.xml/param-value
 /init-param

 Konstnatina



 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 8:17 AM
 Subject: error in my struts config


 My web-app is working fine in resin but when i switched to tomcat i got
this
 error.

 2003-03-24 14:13:57 StandardContext[/]: Servlet / threw load() exception
 javax.servlet.UnavailableException: Parsing error processing resource path
 /WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
  at

org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
 52)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
  at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
 4)
  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
  at

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
 3420)
  at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
  at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

 
 my web.xml looks like this
 .
 init-param
   param-nameconfig/param-name
   param-value


/WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-con
 fig-manager.xml
/param-value
 /init-param
 
 it works fine in resin but this seems not allowed in tomcat...

 guys, what do you think is the error.

 thanks a lot...


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



Declaration of the Struts tag librairies

2003-03-24 Thread Heligon Sandra

I develop a web application with Tomcat4.0.1 and the Struts
framework.
In the web.xml there is an optional taglib element. I don't
understand very well the aim of this element. 
In the beginning of the development I added the following libraries:

taglib 
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri 
taglib-
location/WEB-INF/tld/struts-bean.tld/taglib-location 
/taglib 
taglib 
taglib-uri/WEB-INF/struts-html.tld/taglib-uri   

taglib-location/WEB-INF/tld/struts-html.tld/taglib-location 
/taglib 
and in the JSP that use these libraries I added in the header: 
%@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=logic % 
%@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=logic %
 In the continuation of my developments I used new libraries which I
did not declare in web.xml 
But in the JSP that use these new libraries I wrote a line 
%@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % and
it works, why ?
Is it with the fact that the two directives are identical? 
I do'nt understand well which is the aim of the taglib element ? Do
I must declare each library used in the
Struts application in the web.xml file ? 




As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 



[Design] User Customisable Views

2003-03-24 Thread Pat Quinn
Hi Guys,

I have a requirement as follows:

I want each user within my web app to be able to customise their views for 
individual screens independently, I want users to be able to customise 
attributes such as:

·   Turn on/off certain columns when displaying tabular data.
·   Customise Header colour, data row colours, onMouseOver colours
·   Text Alignment with cells, Font etc…
I’m thinking I need to persist the above attributes for each user i.e. using 
some Tables in my database. My application will have a large number of users 
i.e. (600+ but only 200 concurrent users) so I’m little concerned at this 
approach.

Has anyone out there tried something similar to this before with Struts and 
if so should you provide me a few pointers i.e.

How did you persist user view details… how did you plug it in with Struts…. 
I want to avoid adding logic to my view layer to control the displaying of 
the above attributes.

Any Ideas gurus… by the way I’m not looking for a solution just a few 
pointers.

Cheers

Pat





_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


[tiles] tiles:insert not working for relative path

2003-03-24 Thread Volker Krebs
Hello,

I've just updated our system from struts-1.1b2 to struts-1.1rc1.
It seems that tiles:insert page=/ only works for an absolute Path now.
tiles:insert page=/path/to/jsp/MyJSP.jsp flush=true/
is working while
tiles:insert page=MyJSP.jsp flush=true/
is not working.
MyJSP.jsp is in the same Directory the other JSP is.
Can anyone confirm that ? I didn't find a bug entry for that.
Or has something changed in RC1 ?
Thanks.

Volker



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


Re: I NEED HELP

2003-03-24 Thread Simon Kelly
I've just donned my psychic hat and will now solve your problems.

1)  You need to shutdown tomcat, re-deploy your war file and then restart
tomcat.

2)  Mm  you have forgotten to put a / in front of the path name. IE
path=/info NOT path=info

I thank you ... and for my next trick I will turn Mr Bush into a
Donkey!!  Damit, someone beat me too it  =:0)

Cheers

Simon

- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 9:35 AM
Subject: I NEED HELP


Please view email:
1. error starting my struts app in tomcat
2. error in my struts config

I really need help badly.

THANKS!

-richard


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



RE: [Design] User Customisable Views

2003-03-24 Thread Andrew Hill
IMHO you would probably want to create bean(s) that contain the relevant
preferences. Ie:

getFavouriteMouseOverColour()
getPreferredAlignment()
isShowColumnX()

In your business tier of course these get persisted to / retrieved from the
database (a few hundred rows isnt going to hurt much (I think)).

If these prefs dont get changed on the fly by other users (ie: only that
user changes them usually) then the best place to retrieve is when the user
does a login and you can cache the bean(s) for that user in their session.

In your JSP (or velocity template or whatever you use for rendering) you can
access the getters to provide you the appropriate values you need, and of
course make use of such things as the equals / notEquals tags etc... (this
isnt 'logic' its just hiding/showing stuff depending on whats set in your
prefs...)

If attributes of the prefs beans need to be passed as attributes to jsp tags
Id suggest you look into making the jump to JSTL (or struts EL) if you
havent done so as the expression language will save you a lot of hassle
writing the JSP code...

Havent had to do user prefs yet in my app so cant tell you from experience
how well this will work, but I cant think of a simpler way! (Though I
suppose for a lot of the simpler prefs, such as colours,  you could handle
it by generating on the fly (and caching) a css style sheet customised for
that particular user.)

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Monday, 24 March 2003 17:21
To: [EMAIL PROTECTED]
Subject: [Design] User Customisable Views


Hi Guys,

I have a requirement as follows:

I want each user within my web app to be able to customise their views for
individual screens independently, I want users to be able to customise
attributes such as:

·   Turn on/off certain columns when displaying tabular data.
·   Customise Header colour, data row colours, onMouseOver colours
·   Text Alignment with cells, Font etc…

I’m thinking I need to persist the above attributes for each user i.e. using
some Tables in my database. My application will have a large number of users
i.e. (600+ but only 200 concurrent users) so I’m little concerned at this
approach.

Has anyone out there tried something similar to this before with Struts and
if so should you provide me a few pointers i.e.

How did you persist user view details… how did you plug it in with Struts….
I want to avoid adding logic to my view layer to control the displaying of
the above attributes.

Any Ideas gurus… by the way I’m not looking for a solution just a few
pointers.

Cheers

Pat





_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


-
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: I NEED HELP

2003-03-24 Thread Richard Raquepo
here's my servlet.xml of my tomcat
 Host name=crm-test debug=0 appBase=c:\\crm-dev2 unpackWARs=true
Context path=/ docBase=c:\\crm-dev2 debug=0
 reloadable=true crossContext=true
  /Context
Logger className=org.apache.catalina.logger.FileLogger
 directory=c:\\crm-dev2\\web-inf\\logs
prefix=crmtest_log. suffix=.txt
 timestamp=true/
 /Host

- Original Message -
From: Simon Kelly [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:26 PM
Subject: Re: I NEED HELP


 I've just donned my psychic hat and will now solve your problems.

 1)  You need to shutdown tomcat, re-deploy your war file and then restart
 tomcat.

 2)  Mm  you have forgotten to put a / in front of the path name.
IE
 path=/info NOT path=info

 I thank you ... and for my next trick I will turn Mr Bush into a
 Donkey!!  Damit, someone beat me too it  =:0)

 Cheers

 Simon

 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 9:35 AM
 Subject: I NEED HELP


 Please view email:
 1. error starting my struts app in tomcat
 2. error in my struts config

 I really need help badly.

 THANKS!

 -richard


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



Object inside another Object

2003-03-24 Thread Kalaiselvan
Hi All,
   I want a help from you guys. I have created a sampleAction.class 
using extend the Action class. This Action class create a Vector and put 
it into Session. I have retrieve using bean:write property=sample 
scope=session. But here i have some problem, because this getSample() 
method return vector. This vector has another bean. Where how can i 
retrieve the properties from this bean. Please help.

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


RE: [Q] Return-to-page - is there a slick solution?

2003-03-24 Thread shirishchandra.sakhare
Hi,
We have implemented something similar in our project.

To implement internationalisdation , we do the same.

On every page,there is a link t every languiage supported(French,German etc.).

So when the user clicks on the language link, the same action is called but before 
that another action changes the locale for the users session.

So i think , some thing similar u can use which is already suggecsted by somebody to 
you.

But the way we do this is different than what has been suggested so far.
We store the action to forward to as LAST_ACTION_CALLED in session.But we do the 
following so that all the actoion as well as the query parameters are stored..
/**
 * A method which saves the URL of this action in Session so that
 * the same can be used for rendering the same page again 
 */
private void saveActionURL(HttpServletRequest request) {


String context = request.getContextPath();
StringBuffer url = new StringBuffer(request.getRequestURI());

Map map = request.getParameterMap();

if( map.size()  0 ){
url.append(?);
Iterator it = map.keySet().iterator();

while(it.hasNext()){
String param = it.next().toString();
url.append(param);
url.append(=);
url.append( request.getParameter(param) );
 
if( it.hasNext() ){
url.append();
}
}
}

String urlString = null;

int start = url.indexOf(context);
if (start != -1) {
urlString = url.substring(start + context.length());
}

if (urlString.startsWith(/)){
urlString = urlString.substring(1);
}

Logger.debug(this, Action is :  + urlString);

request.getSession().setAttribute(
WebStringConstants.LAST_ACTION_CALLED,
urlString);
}

and then u can use the same to foreward to..

Hope this helps.
regards.
Shirish

-Original Message-
From: Jeff Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 6:15 PM
To: Struts Users Mailing List
Subject: Re: [Q] Return-to-page - is there a slick solution?


 From: Ian Hunter [EMAIL PROTECTED]
 From the main page, I have the option for each user to ask for
membership
 in any group they don't currently belong in.  They can hit one button that
 forwards to a different action (groupinterest.do), with a forward called
 returnto set to the main page.  That action calls the exact same class
as
 updategroup.do, but that class knows to look for a forward called
returnto
 and either return to it or pass it along by storing it as a session
 variable.  When I do that, I store the entire ActionForward object, not
just
 the page name, so I catch requests to redirect as well as any other
strange
 config details of that forward.

So, if I follow this (and I'm not sure I do - either too much coffee or not
enough :-) you've created an indirection step in your sequence that knows
where to jump back to. I understand the part about tracking the entire
ActionForward so that you pick up all the nuances of the forward params.

Having re-read my posting, I realize I might not have been clear on one of
the problem points - there are dozens of pages from which my user may choose
to start this sequence. Doesn't your solution require a separate
indirection step for each potential starting point - in order to code the
approprite returnto forward?

But you raise a very good point, that David's suggestion (simply caching the
originating page name at sequence start time) doesn't address - capturing
the nuances of the returnto page forward, such as redirect=true/false or
perhaps even URL parameters.

Jefficus


-
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: I NEED HELP

2003-03-24 Thread Simon Kelly
The host line does not look right

name= should refer to the host for the uri.  IE where I test on the
machine I'm on I set it to localhost, or you could have 127.0.0.1. You
need something here that can be resolved into an ip address.

appBase is almost always webapps.  Put your war file in
$tomcat-base/webapps, and set appBase to webapps.

Add autoDeplaoy=true to the Host tag.  This will unpack your war for you
when tomcat starts.

So you should have .

Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=true

Logger needs to be within the Context tags.

Context . 
  Logger  /
/Context

Context should also reference you war package name.  When it deploys it will
create a directory in webapps named the same as the war file minus the .war
extention.  If you have autoDeploy set to true though, tomcat will
automatically refernce this directory when you point to it in the web
browser.  If you want the Context then rewite it as:

assume the war file is called test.war

Context path=/test docBase=test debug=0 reloadable=true
crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
directory=c:\\crm-dev2\\web-inf\\logs prefix=crmtest_log. suffix=.txt
timestamp=true/
/Context

Hope this help

Simon

PS
There is a rather good, if somewhat bussy list,
[EMAIL PROTECTED] that is more appropriate for these questions.

- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 10:50 AM
Subject: Re: I NEED HELP


 here's my servlet.xml of my tomcat
  Host name=crm-test debug=0 appBase=c:\\crm-dev2 unpackWARs=true
 Context path=/ docBase=c:\\crm-dev2 debug=0
  reloadable=true crossContext=true
   /Context
 Logger className=org.apache.catalina.logger.FileLogger
  directory=c:\\crm-dev2\\web-inf\\logs
 prefix=crmtest_log. suffix=.txt
  timestamp=true/
  /Host

 - Original Message -
 From: Simon Kelly [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 5:26 PM
 Subject: Re: I NEED HELP


  I've just donned my psychic hat and will now solve your problems.
 
  1)  You need to shutdown tomcat, re-deploy your war file and then
restart
  tomcat.
 
  2)  Mm  you have forgotten to put a / in front of the path name.
 IE
  path=/info NOT path=info
 
  I thank you ... and for my next trick I will turn Mr Bush into a
  Donkey!!  Damit, someone beat me too it  =:0)
 
  Cheers
 
  Simon
 
  - Original Message -
  From: Richard Raquepo [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Monday, March 24, 2003 9:35 AM
  Subject: I NEED HELP
 
 
  Please view email:
  1. error starting my struts app in tomcat
  2. error in my struts config
 
  I really need help badly.
 
  THANKS!
 
  -richard
 
 
  -
  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: Object inside another Object

2003-03-24 Thread Nicolas De Loof
You can use logic:iterate to get the content of your Vector, and then bean:write 
to get properties from your bean :

logic:iterate id=data name=sample
  bean write name=data property=foo
/logic:iterate

Nico.

 Hi All,
 I want a help from you guys. I have created a sampleAction.class 
 using extend the Action class. This Action class create a Vector and put 
 it into Session. I have retrieve using bean:write property=sample 
 scope=session. But here i have some problem, because this getSample() 
 method return vector. This vector has another bean. Where how can i 
 retrieve the properties from this bean. Please help.
 
 thanx
 Kalai
 
 
 -
 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: [Design] User Customisable Views

2003-03-24 Thread Pat Quinn
Cheers for prompt reply Andrew, sorry about sendind my reply direct...



From: Andrew Hill [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [Design] User Customisable Views  Date: Mon, 24 Mar 2003 
17:40:09 +0800

IMHO you would probably want to create bean(s) that contain the relevant
preferences. Ie:
getFavouriteMouseOverColour()
getPreferredAlignment()
isShowColumnX()
In your business tier of course these get persisted to / retrieved from the
database (a few hundred rows isnt going to hurt much (I think)).
If these prefs dont get changed on the fly by other users (ie: only that
user changes them usually) then the best place to retrieve is when the user
does a login and you can cache the bean(s) for that user in their session.
I personally don't like the idea of loading user preferences ever time they 
log on so i was thinking about caching their pref details e.g. a singleton 
object to cache all user prefs then having a thread to remove prefs which 
have not been accessed with a set time frame.



In your JSP (or velocity template or whatever you use for rendering) you 
can
access the getters to provide you the appropriate values you need, and of
course make use of such things as the equals / notEquals tags etc... (this
isnt 'logic' its just hiding/showing stuff depending on whats set in your
prefs...)
I was trying to avoid this... it adds more complexity to the JSP making 
mantience and UI updates a nightmare, i want to keep my jsp's
as simple as possible as i don't want to be the only who can make UI 
updates... after all i'm a java developer not a web designer.









If attributes of the prefs beans need to be passed as attributes to jsp 
tags
Id suggest you look into making the jump to JSTL (or struts EL) if you
havent done so as the expression language will save you a lot of hassle
writing the JSP code...

Havent had to do user prefs yet in my app so cant tell you from experience
how well this will work, but I cant think of a simpler way! (Though I
suppose for a lot of the simpler prefs, such as colours,  you could handle
it by generating on the fly (and caching) a css style sheet customised for
that particular user.)
-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Monday, 24 March 2003 17:21
To: [EMAIL PROTECTED]
Subject: [Design] User Customisable Views
Hi Guys,

I have a requirement as follows:

I want each user within my web app to be able to customise their views for
individual screens independently, I want users to be able to customise
attributes such as:
·   Turn on/off certain columns when displaying tabular data.
·   Customise Header colour, data row colours, onMouseOver colours
·   Text Alignment with cells, Font etc…
I’m thinking I need to persist the above attributes for each user i.e. 
using
some Tables in my database. My application will have a large number of 
users
i.e. (600+ but only 200 concurrent users) so I’m little concerned at this
approach.

Has anyone out there tried something similar to this before with Struts and
if so should you provide me a few pointers i.e.
How did you persist user view details… how did you plug it in with Struts….
I want to avoid adding logic to my view layer to control the displaying of
the above attributes.
Any Ideas gurus… by the way I’m not looking for a solution just a few
pointers.
Cheers

Pat





_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-
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]


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

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


Re: Object inside another Object

2003-03-24 Thread Kalaiselvan
Hai Nicolas
   Thanx for your reply. My problem is that bean propery return a Object.
   That's   public Object  getSampe() {
   }
ie  public addressgetAddress() {
}
public class Address {
  private String _city;
  private String _state;
  private String _country;
  public String getCity()
  {
 return _city;   
  }
  public void setCity(String aCity)
  {
 _city = aCity;
  }
  public String getState()
  {
 return _state;   
  }
  public void setState(String aState)
  {
 _state = aState;
  }
  public String getCountry()
  {
 return _country;   
  }
  public void setCountry(String aCountry)
  {
 _country = aCountry;
  }
 
}

I want to write city,state, country.

hope you understand my need

Thanx
Kalaiselvan.


[EMAIL PROTECTED] wrote:

You can use logic:iterate to get the content of your Vector, and then bean:write to get properties from your bean :

logic:iterate id=data name=sample
 bean write name=data property=foo
/logic:iterate
Nico.

 

Hi All,
   I want a help from you guys. I have created a sampleAction.class 
using extend the Action class. This Action class create a Vector and put 
it into Session. I have retrieve using bean:write property=sample 
scope=session. But here i have some problem, because this getSample() 
method return vector. This vector has another bean. Where how can i 
retrieve the properties from this bean. Please help.

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

--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof

logic:iterate id=data name=sample
  City : bean write name=data property=address.city
  State : bean write name=data property=address.state
  Country : bean write name=data property=address.country
/logic:iterate

Nico.

 Hai Nicolas
 Thanx for your reply. My problem is that bean propery return a Object.
 That's   public Object  getSampe() {
 }
 ie  public addressgetAddress() {
 }

 public class Address {
private String _city;
private String _state;
private String _country;

public String getCity()
{
   return _city;
}
public void setCity(String aCity)
{
   _city = aCity;
}
public String getState()
{
   return _state;
}
public void setState(String aState)
{
   _state = aState;
}
public String getCountry()
{
   return _country;
}
public void setCountry(String aCountry)
{
   _country = aCountry;
}

 }

 I want to write city,state, country.

 hope you understand my need

 Thanx
 Kalaiselvan.



 [EMAIL PROTECTED] wrote:

 You can use logic:iterate to get the content of your Vector, and then 
 bean:write to get properties from your bean
:
 
 logic:iterate id=data name=sample
   bean write name=data property=foo
 /logic:iterate
 
 Nico.
 
 
 
 Hi All,
 I want a help from you guys. I have created a sampleAction.class
 using extend the Action class. This Action class create a Vector and put
 it into Session. I have retrieve using bean:write property=sample
 scope=session. But here i have some problem, because this getSample()
 method return vector. This vector has another bean. Where how can i
 retrieve the properties from this bean. Please help.
 
 thanx
 Kalai
 
 
 -
 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]
 
 
 

 --
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with [EMAIL PROTECTED]
 http://shopnow.netscape.com/




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



Re: Object inside another Object

2003-03-24 Thread Kalaiselvan
Hai Nicolas
   Great. Mr. Nicolas. Thanx for your help. This is exactly what i 
want. Thank you very much.
I need another help. That' is i want to assiagn the return value into a 
varibale. how it is possible?
%
String empName = null;
%
bean:write name=data property=employee_name i want to assigan that 
value to empName.

Thanx
Kalaiselvan.


[EMAIL PROTECTED] wrote:

logic:iterate id=data name=sample
 City : bean write name=data property=address.city
 State : bean write name=data property=address.state
 Country : bean write name=data property=address.country
/logic:iterate
Nico.

 

Hai Nicolas
   Thanx for your reply. My problem is that bean propery return a Object.
   That's   public Object  getSampe() {
   }
ie  public addressgetAddress() {
}
public class Address {
  private String _city;
  private String _state;
  private String _country;
  public String getCity()
  {
 return _city;
  }
  public void setCity(String aCity)
  {
 _city = aCity;
  }
  public String getState()
  {
 return _state;
  }
  public void setState(String aState)
  {
 _state = aState;
  }
  public String getCountry()
  {
 return _country;
  }
  public void setCountry(String aCountry)
  {
 _country = aCountry;
  }
}

I want to write city,state, country.

hope you understand my need

Thanx
Kalaiselvan.


[EMAIL PROTECTED] wrote:

   

You can use logic:iterate to get the content of your Vector, and then bean:write to get properties from your bean
 

:
 

logic:iterate id=data name=sample
bean write name=data property=foo
/logic:iterate
Nico.



 

Hi All,
  I want a help from you guys. I have created a sampleAction.class
using extend the Action class. This Action class create a Vector and put
it into Session. I have retrieve using bean:write property=sample
scope=session. But here i have some problem, because this getSample()
method return vector. This vector has another bean. Where how can i
retrieve the properties from this bean. Please help.
thanx
Kalai
-
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]


 

--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/
   



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

--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof

If you wan't the user to edit some datas, you should build a form-bean, put your model 
datas into it (use
common-beanutil copyProperties, or an Adapter class) and use it in your JSP.
When user submits, get the form-bean back with all updated datas inside it.

What do you wan't to do (not technically but in term of use case)?

Nico.


 Hai Nicolas
 Great. Mr. Nicolas. Thanx for your help. This is exactly what i
 want. Thank you very much.
 I need another help. That' is i want to assiagn the return value into a
 varibale. how it is possible?
 %
 String empName = null;
 %
 bean:write name=data property=employee_name i want to assigan that
 value to empName.

 Thanx
 Kalaiselvan.



 [EMAIL PROTECTED] wrote:

 logic:iterate id=data name=sample
   City : bean write name=data property=address.city
   State : bean write name=data property=address.state
   Country : bean write name=data property=address.country
 /logic:iterate
 
 Nico.
 
 
 
 Hai Nicolas
 Thanx for your reply. My problem is that bean propery return a Object.
 That's   public Object  getSampe() {
 }
 ie  public addressgetAddress() {
 }
 
 public class Address {
private String _city;
private String _state;
private String _country;
 
public String getCity()
{
   return _city;
}
public void setCity(String aCity)
{
   _city = aCity;
}
public String getState()
{
   return _state;
}
public void setState(String aState)
{
   _state = aState;
}
public String getCountry()
{
   return _country;
}
public void setCountry(String aCountry)
{
   _country = aCountry;
}
 
 }
 
 I want to write city,state, country.
 
 hope you understand my need
 
 Thanx
 Kalaiselvan.
 
 
 
 [EMAIL PROTECTED] wrote:
 
 
 
 You can use logic:iterate to get the content of your Vector, and then 
 bean:write to get properties from your
bean
 
 
 :
 
 
 logic:iterate id=data name=sample
  bean write name=data property=foo
 /logic:iterate
 
 Nico.
 
 
 
 
 
 Hi All,
I want a help from you guys. I have created a sampleAction.class
 using extend the Action class. This Action class create a Vector and put
 it into Session. I have retrieve using bean:write property=sample
 scope=session. But here i have some problem, because this getSample()
 method return vector. This vector has another bean. Where how can i
 retrieve the properties from this bean. Please help.
 
 thanx
 Kalai
 
 
 -
 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]
 
 
 
 
 
 --
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with [EMAIL PROTECTED]
 http://shopnow.netscape.com/
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with [EMAIL PROTECTED]
 http://shopnow.netscape.com/




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



Re: Object inside another Object

2003-03-24 Thread Kalaiselvan
That is getAllowed()  is return boolean. If it return true i will do 
something. If  it returns false, i will do different . So i have to 
check values in my jsp page. Also i want to concat 2 or more return 
strings in my jsp.  So it is must that i have to capture the values into 
some jsp varibles.

Thanx
Kalaiselvan.
[EMAIL PROTECTED] wrote:

If you wan't the user to edit some datas, you should build a form-bean, put your model 
datas into it (use
common-beanutil copyProperties, or an Adapter class) and use it in your JSP.
When user submits, get the form-bean back with all updated datas inside it.
What do you wan't to do (not technically but in term of use case)?

Nico.

 

Hai Nicolas
   Great. Mr. Nicolas. Thanx for your help. This is exactly what i
want. Thank you very much.
I need another help. That' is i want to assiagn the return value into a
varibale. how it is possible?
%
String empName = null;
%
bean:write name=data property=employee_name i want to assigan that
value to empName.
Thanx
Kalaiselvan.


[EMAIL PROTECTED] wrote:

   

logic:iterate id=data name=sample
City : bean write name=data property=address.city
State : bean write name=data property=address.state
Country : bean write name=data property=address.country
/logic:iterate
Nico.



 

Hai Nicolas
  Thanx for your reply. My problem is that bean propery return a Object.
  That's   public Object  getSampe() {
  }
ie  public addressgetAddress() {
}
public class Address {
 private String _city;
 private String _state;
 private String _country;
 public String getCity()
 {
return _city;
 }
 public void setCity(String aCity)
 {
_city = aCity;
 }
 public String getState()
 {
return _state;
 }
 public void setState(String aState)
 {
_state = aState;
 }
 public String getCountry()
 {
return _country;
 }
 public void setCountry(String aCountry)
 {
_country = aCountry;
 }
}

I want to write city,state, country.

hope you understand my need

Thanx
Kalaiselvan.


[EMAIL PROTECTED] wrote:



   

You can use logic:iterate to get the content of your Vector, and then bean:write to get properties from your
 

bean
 

 

:

 

logic:iterate id=data name=sample
bean write name=data property=foo
/logic:iterate
Nico.





 

Hi All,
 I want a help from you guys. I have created a sampleAction.class
using extend the Action class. This Action class create a Vector and put
it into Session. I have retrieve using bean:write property=sample
scope=session. But here i have some problem, because this getSample()
method return vector. This vector has another bean. Where how can i
retrieve the properties from this bean. Please help.
thanx
Kalai
-
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]




 

--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/


   

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


 

--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/
   



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

--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof
Do you want your JSP to look different depending getAllowed() value
or do you want your Action to get some checkbox or hidden value from HTML form ?

Can you tell me what you want to do, not as technical but as application usage. I 
could so understand what you're
looking for.

Nico.

 That is getAllowed()  is return boolean. If it return true i will do
 something. If  it returns false, i will do different . So i have to
 check values in my jsp page. Also i want to concat 2 or more return
 strings in my jsp.  So it is must that i have to capture the values into
 some jsp varibles.

 Thanx
 Kalaiselvan.

 [EMAIL PROTECTED] wrote:

 If you wan't the user to edit some datas, you should build a form-bean, put your 
 model datas into it (use
 common-beanutil copyProperties, or an Adapter class) and use it in your JSP.
 When user submits, get the form-bean back with all updated datas inside it.
 
 What do you wan't to do (not technically but in term of use case)?
 
 Nico.
 
 
 
 
 Hai Nicolas
 Great. Mr. Nicolas. Thanx for your help. This is exactly what i
 want. Thank you very much.
 I need another help. That' is i want to assiagn the return value into a
 varibale. how it is possible?
 %
 String empName = null;
 %
 bean:write name=data property=employee_name i want to assigan that
 value to empName.
 
 Thanx
 Kalaiselvan.
 
 
 
 [EMAIL PROTECTED] wrote:
 
 
 
 logic:iterate id=data name=sample
  City : bean write name=data property=address.city
  State : bean write name=data property=address.state
  Country : bean write name=data property=address.country
 /logic:iterate
 
 Nico.
 
 
 
 
 
 Hai Nicolas
Thanx for your reply. My problem is that bean propery return a Object.
That's   public Object  getSampe() {
}
 ie  public addressgetAddress() {
 }
 
 public class Address {
   private String _city;
   private String _state;
   private String _country;
 
   public String getCity()
   {
  return _city;
   }
   public void setCity(String aCity)
   {
  _city = aCity;
   }
   public String getState()
   {
  return _state;
   }
   public void setState(String aState)
   {
  _state = aState;
   }
   public String getCountry()
   {
  return _country;
   }
   public void setCountry(String aCountry)
   {
  _country = aCountry;
   }
 
 }
 
 I want to write city,state, country.
 
 hope you understand my need
 
 Thanx
 Kalaiselvan.
 
 
 
 [EMAIL PROTECTED] wrote:
 
 
 
 
 
 You can use logic:iterate to get the content of your Vector, and then 
 bean:write to get properties from your
 
 
 bean
 
 
 
 
 :
 
 
 
 
 logic:iterate id=data name=sample
 bean write name=data property=foo
 /logic:iterate
 
 Nico.
 
 
 
 
 
 
 
 Hi All,
   I want a help from you guys. I have created a sampleAction.class
 using extend the Action class. This Action class create a Vector and put
 it into Session. I have retrieve using bean:write property=sample
 scope=session. But here i have some problem, because this getSample()
 method return vector. This vector has another bean. Where how can i
 retrieve the properties from this bean. Please help.
 
 thanx
 Kalai
 
 
 -
 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]
 
 
 
 
 
 
 
 --
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with [EMAIL PROTECTED]
 http://shopnow.netscape.com/
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 --
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with [EMAIL PROTECTED]
 http://shopnow.netscape.com/
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with [EMAIL PROTECTED]
 http://shopnow.netscape.com/




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



Re: error in my struts config

2003-03-24 Thread Joseph Fifield
I've been using multiple config files in Tomcat for a while now with no
problem. The only difference is I put each file on a new line...but I
wouldn't think that would fix the problem. Try one config file at a time and
make sure it's not having a problem with the content of one of them.

Joe

- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 4:00 AM
Subject: Re: error in my struts config


 i did that too... the thing is... my web app works in Resin.

 but when i try to run it under tomcat i always get the errors.

 i don't know what's really hapenning... can someone enlighten me...

 thanks a lot
 - Original Message -
 From: Konstantina Stamopoulou [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 4:45 PM
 Subject: Re: error in my struts config


  Hello Richard,
 
  I'm not sure if it is allowed to give the stuts-configs as comma
delimited
  parameters. Try the following in your web.xml
 
 
  init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config-tm.xml/param-value
  /init-param
  init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
  /init-param
  init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config-manager.xml/param-value
  /init-param
 
  Konstnatina
 
 
 
  - Original Message -
  From: Richard Raquepo [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Monday, March 24, 2003 8:17 AM
  Subject: error in my struts config
 
 
  My web-app is working fine in resin but when i switched to tomcat i got
 this
  error.
 
  2003-03-24 14:13:57 StandardContext[/]: Servlet / threw load() exception
  javax.servlet.UnavailableException: Parsing error processing resource
path
  /WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
   at
 

org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
  52)
   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
   at javax.servlet.GenericServlet.init(GenericServlet.java:256)
   at
 

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
  4)
   at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
   at
 

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
  3420)
   at
 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
   at
 org.apache.catalina.core.StandardService.start(StandardService.java:497)
   at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
  )
   at
 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
  .java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
  
  my web.xml looks like this
  .
  init-param
param-nameconfig/param-name
param-value
 
 

/WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-con
  fig-manager.xml
 /param-value
  /init-param
  
  it works fine in resin but this seems not allowed in tomcat...
 
  guys, what do you think is the error.
 
  thanks a lot...
 
 
  -
  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: StrutsTest issue: java.lang.VerifyError/Signature ( not able to fix this)

2003-03-24 Thread shirishchandra.sakhare
it seems that there is something in your struts test jar file which is using different 
version of some classes u are using ...

Try putting the struts test jar file last in class path..

-Original Message-
From: karthik Guru [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 22, 2003 2:08 PM
To: Struts Users Mailing List
Subject: StrutsTest issue: java.lang.VerifyError/Signature ( not able to
fix this)



All, 
Am not able to fix this error. It occurs only if i try to access any StrutsTest 
specific methods. ( eg: setRequestPathInfo(/logon);) in my test method. 

It works just fine in normal cases. 

thanks,

karthik

Original Message-
From: karthik Guru [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 11:43 AM
To: [EMAIL PROTECTED]
Subject: StrutsTest issue: java.lang.VerifyError/Signature 


Hi,

Am using strutstest for testing our Struts actionclasses . Am getting 
this error only when run from within a war file . Thoughts?? 

This occurs only when run from within a war file. Am almost done with 
automating the testing from within the daily builds (using ANT). 

But am unable to solve this issue. All the jars required on the server 
side for running cactus tests reside in the webapp/web-inf/lib 
directory.

Testcase: testSuccessfulLogin took 0.36 sec

Caused an ERROR

(class: com/i2/iquote/test/ui/actions/LoginActionTest, method: 
testSuccessfulLogin signature: ()V) Incompatible object argument for function 
call

java.lang.VerifyError: (class: 
com/i2/iquote/test/ui/actions/LoginActionTest, method: testSuccessfulLogin signature: 
()V) Incompatible object 
argument for function call

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:190)

at 
org.apache.cactus.util.ClassLoaderUtils.dispatch130_loadClassFromWebappClassLoader(ClassLoaderUtils.java;org/apache/cactus/util/log/LogAspect.aj(1k):132)

-

Source Code:

public class LoginActionTest extends BaseTestcase {

public LoginActionTest(String name) {

super(name);

}

public void testSuccessfulLogin() {

setRequestPathInfo(/logon);

addRequestParameter(UIConstants.USER_KEY, 
getTestParameter(USERNAME));

addRequestParameter(UIConstants.PASSWORD_KEY, 
getTestParameter(CORRECT_PASSWORD));

actionPerform();

verifyForward(success);

User user = (User) getSession().getAttribute(UIConstants.CURRENT_USER);

Boolean isLoggedIn =

(Boolean) getSession().getAttribute(UIConstants.IS_USER_LOGGED_IN);

assertNotNull(USER Object from session IS NULL, user);

assertNotNull(IS LOGGED IN from session is NULL, isLoggedIn);

assertTrue( USER NOT LOGGED IN , isLoggedIn.booleanValue());

String uid = user.getId();

assertEquals(user_100, uid);

Role role = user.getRole();

assertNotNull( ROLE OBTAINED FOR USER IS NULL , role);

verifyNoActionErrors();

printString(User user_100 logged in successfully.);

}

}

BaseTestCase in turn extends CactusStrutsTestCase

thanks,

regards,

karthik



-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

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




-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

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



Help...struts on iPlanet webserver 6.0

2003-03-24 Thread Ramesh_KumarP
Hi,
I am using struts applicationi on iPlanet webserver 6.0. 
When server loads the struts application it gives following exception.
Any one give hints to solve the problem ?


warning ( 1068): vs(https-CTP-VI0455)ServletException thrown in
servlet.init; context = /BP, servlet = 'action'; stack tace:
javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1337)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java:317)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java:170)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
675)
, root cause: org.xml.sax.SAXParseException: External entity not found:
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;.
at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
at
com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2506)
at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEn
tity.java:98)
at
com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java:317)
at
com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java:170)
at
com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:
675)

Regards,
 
P.RAMESHKUMAR,

** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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



[newbie] findDataSource deprecated?

2003-03-24 Thread Johan Wasserman
Hi,
Im just now converting to rc1.3 and find that findDataSource is
deprecated.  How do you find one of many datasources?
 
FYI:
--
I have a separate class called Database with method runQuery that
returns a resultset to my ActionForm class, I only pass DBName and
QueryString as parameters.  So my previous code where:
In ActionForm:
ResultSet rs = Database.runQuery(logondb, select username, password
from users where username = ' + uname + ');
 
Many thanks in advance.
Johan Wasserman.


html:option and message resource

2003-03-24 Thread Xavier Saint-Denis
Hi,

I have the following problem :

In the strust config file I declare this :

!-- == Message Resources Definitions
=== --
message-resources parameter=ApplicationRessources null=false/

Where the promt.empty= is defined in the property file and
used with no problem elsewhere in the code.


in a tiles jsp, i use a an html:action like this :

html:option key=prompt.empty value=/

but the message is not rendered and I wonder why...?

Have you any idea why this occur ?

Xav



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



Re: Object inside another Object

2003-03-24 Thread Kalaiselvan
yes. I'm using it in select tag.

I  have a hashtable that contain countrycode, countrydesc

select name=country
%if ( countries != null )
   {   
   Enumeration keys = countries.keys();
   while ( keys.hasMoreElements() )
   {
   String key = (String)keys.nextElement();
   String selectedFlag = ;
   if( key.equalsIgnoreCase(bean:write 
name=employee property=country) )
   selectedFlag = selected;
% 
   option value=%=key% %=selectedFlag% 
%=countries.get(key)%/option
%}
   }
%
/select

Thanx
Kalaiselvan.S
[EMAIL PROTECTED] wrote:

Do you want your JSP to look different depending getAllowed() value
or do you want your Action to get some checkbox or hidden value from HTML form ?
Can you tell me what you want to do, not as technical but as application usage. I 
could so understand what you're
looking for.
Nico.

 

That is getAllowed()  is return boolean. If it return true i will do
something. If  it returns false, i will do different . So i have to
check values in my jsp page. Also i want to concat 2 or more return
strings in my jsp.  So it is must that i have to capture the values into
some jsp varibles.
Thanx
Kalaiselvan.
[EMAIL PROTECTED] wrote:

   

If you wan't the user to edit some datas, you should build a form-bean, put your model 
datas into it (use
common-beanutil copyProperties, or an Adapter class) and use it in your JSP.
When user submits, get the form-bean back with all updated datas inside it.
What do you wan't to do (not technically but in term of use case)?

Nico.



 

Hai Nicolas
  Great. Mr. Nicolas. Thanx for your help. This is exactly what i
want. Thank you very much.
I need another help. That' is i want to assiagn the return value into a
varibale. how it is possible?
%
String empName = null;
%
bean:write name=data property=employee_name i want to assigan that
value to empName.
Thanx
Kalaiselvan.


[EMAIL PROTECTED] wrote:



   

logic:iterate id=data name=sample
City : bean write name=data property=address.city
State : bean write name=data property=address.state
Country : bean write name=data property=address.country
/logic:iterate
Nico.





 

Hai Nicolas
 Thanx for your reply. My problem is that bean propery return a Object.
 That's   public Object  getSampe() {
 }
ie  public addressgetAddress() {
}
public class Address {
private String _city;
private String _state;
private String _country;
public String getCity()
{
   return _city;
}
public void setCity(String aCity)
{
   _city = aCity;
}
public String getState()
{
   return _state;
}
public void setState(String aState)
{
   _state = aState;
}
public String getCountry()
{
   return _country;
}
public void setCountry(String aCountry)
{
   _country = aCountry;
}
}

I want to write city,state, country.

hope you understand my need

Thanx
Kalaiselvan.


[EMAIL PROTECTED] wrote:





   

You can use logic:iterate to get the content of your Vector, and then bean:write to get properties from your

 

bean

 

 

:



 

logic:iterate id=data name=sample
bean write name=data property=foo
/logic:iterate
Nico.







 

Hi All,
I want a help from you guys. I have created a sampleAction.class
using extend the Action class. This Action class create a Vector and put
it into Session. I have retrieve using bean:write property=sample
scope=session. But here i have some problem, because this getSample()
method return vector. This vector has another bean. Where how can i
retrieve the properties from this bean. Please help.
thanx
Kalai
-
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]






 

--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/




   

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




 

--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/


   

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


 

--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/
   




RE: html:option and message resource

2003-03-24 Thread Shabbir Khadir Md.
HI
Follow the following One step.
1.put the following lines of code in web.xml file

init-param
param-name
application
/param-name
param-value
ApplicationResources
/param-value
/init-param

Regards
Shabbir


-Original Message-
From: Xavier Saint-Denis [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 6:03 PM
To: Struts Users Mailing List
Subject: html:option and message resource

Hi,

I have the following problem :

In the strust config file I declare this :

!-- == Message Resources Definitions
=== --
message-resources parameter=ApplicationRessources null=false/

Where the promt.empty= is defined in the property file and
used with no problem elsewhere in the code.


in a tiles jsp, i use a an html:action like this :

html:option key=prompt.empty value=/

but the message is not rendered and I wonder why...?

Have you any idea why this occur ?

Xav



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

**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.



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

take over an existing HttpSession

2003-03-24 Thread Dmitri Ilyin
Hi,

i'm may be out of topic. But i think there are a lot of gurus here they
could help me.

I have to implement one feature in my application for that there is may be
already a solution here.

Szenario:
A user logged on in application. He dose some  work, dosn't  logged out and
goes to another workstation. In new workstation he logged in application
again with the same userID. The user must get in the application an exactly
the same place and have the same data from his last workstation and his last
session must be invalidated.  So the user must take over his last session.

any ideas??

thanks for any advise

regards Dmitri




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



Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof
You should use the html:select tag with html:options

Define a form-bean that will have a contry property, and two collections that will 
maintain labels and values for your
options.

Look at tag doc :
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#options

This way you will have current selected value automatically set to select in 
generated HTML, and you will
automatically get back selected value form user in form-bean.

Try using tags instead of scriptlets, your JSP will become more readable.

Nico.

 yes. I'm using it in select tag.

 I  have a hashtable that contain countrycode, countrydesc

 select name=country
 %if ( countries != null )
 {
 Enumeration keys = countries.keys();
 while ( keys.hasMoreElements() )
 {
 String key = (String)keys.nextElement();
 String selectedFlag = ;
 if( key.equalsIgnoreCase(bean:write
 name=employee property=country) )
 selectedFlag = selected;
 %
 option value=%=key% %=selectedFlag%
  %=countries.get(key)%/option
 %}
 }
 %
 /select


 Thanx
 Kalaiselvan.S

 [EMAIL PROTECTED] wrote:

 Do you want your JSP to look different depending getAllowed() value
 or do you want your Action to get some checkbox or hidden value from HTML form ?
 
 Can you tell me what you want to do, not as technical but as application usage. I 
 could so understand what you're
 looking for.
 
 Nico.
 
 
 
 That is getAllowed()  is return boolean. If it return true i will do
 something. If  it returns false, i will do different . So i have to
 check values in my jsp page. Also i want to concat 2 or more return
 strings in my jsp.  So it is must that i have to capture the values into
 some jsp varibles.
 
 Thanx
 Kalaiselvan.
 
 [EMAIL PROTECTED] wrote:
 
 
 
 If you wan't the user to edit some datas, you should build a form-bean, put your 
 model datas into it (use
 common-beanutil copyProperties, or an Adapter class) and use it in your JSP.
 When user submits, get the form-bean back with all updated datas inside it.
 
 What do you wan't to do (not technically but in term of use case)?
 
 Nico.
 
 
 
 
 
 
 Hai Nicolas
Great. Mr. Nicolas. Thanx for your help. This is exactly what i
 want. Thank you very much.
 I need another help. That' is i want to assiagn the return value into a
 varibale. how it is possible?
 %
 String empName = null;
 %
 bean:write name=data property=employee_name i want to assigan that
 value to empName.
 
 Thanx
 Kalaiselvan.
 
 
 
 [EMAIL PROTECTED] wrote:
 
 
 
 
 
 logic:iterate id=data name=sample
 City : bean write name=data property=address.city
 State : bean write name=data property=address.state
 Country : bean write name=data property=address.country
 /logic:iterate
 
 Nico.
 
 
 
 
 
 
 
 Hai Nicolas
   Thanx for your reply. My problem is that bean propery return a Object.
   That's   public Object  getSampe() {
   }
 ie  public addressgetAddress() {
 }
 
 public class Address {
  private String _city;
  private String _state;
  private String _country;
 
  public String getCity()
  {
 return _city;
  }
  public void setCity(String aCity)
  {
 _city = aCity;
  }
  public String getState()
  {
 return _state;
  }
  public void setState(String aState)
  {
 _state = aState;
  }
  public String getCountry()
  {
 return _country;
  }
  public void setCountry(String aCountry)
  {
 _country = aCountry;
  }
 
 }
 
 I want to write city,state, country.
 
 hope you understand my need
 
 Thanx
 Kalaiselvan.
 
 
 
 [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
 
 You can use logic:iterate to get the content of your Vector, and then 
 bean:write to get properties from
your
 
 
 
 
 bean
 
 
 
 
 
 
 :
 
 
 
 
 
 
 logic:iterate id=data name=sample
 bean write name=data property=foo
 /logic:iterate
 
 Nico.
 
 
 
 
 
 
 
 
 
 Hi All,
  I want a help from you guys. I have created a sampleAction.class
 using extend the Action class. This Action class create a Vector and put
 it into Session. I have retrieve using bean:write property=sample
 scope=session. But here i have some problem, because this getSample()
 method return vector. This vector has another bean. Where how can i
 retrieve the properties from this bean. Please help.
 
 thanx
 Kalai
 
 
 -
 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]
 
 
 
 
 
 
 
 
 
 --
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with [EMAIL PROTECTED]
 http://shopnow.netscape.com/
 
 
 
 
 
 
 
 
 

[newbie] Finding datasource from pool in struts-config

2003-03-24 Thread Johan Wasserman
Hi,
How do you connect to a specific datasource pool (as configured in
strusts-config).
 
I have two pools specified;
key=logindb
key=userdb
 
ActionServlet.findDataSource is depreciated in rc 1.3
 
Thanks in advance.
Johan Wasserman


[Q] Radio button

2003-03-24 Thread Chetan Sahasrabudhe



Question:
 How can I use html tag lib for radio button, I am not 
able to get help on the same.
I have a single property and depending on that property (FormBean) I want 
one of the radio button to be checked or unchecked. but only one radio button 
should be checked at a time.

Thanks in advance.
RegardsChetan_

Each pattern describes the problems which occurs over and over again in 
our environment, and then describes the core of the solution of that problem, in 
such a way that you can use this solution a million times over, without ever 
doing it the same way twice.Alexander (1977)



RE: [newbie] Finding datasource from pool in struts-config

2003-03-24 Thread Johan Wasserman
Sorry, that's in Struts 1.1 rc3 that I found
ActionServlet.findDataSource deprecated
 
-Original Message-
From: Johan Wasserman 
Sent: 24 March 2003 14:58
To: '[EMAIL PROTECTED]'
Subject: [newbie] Finding datasource from pool in struts-config
 
Hi,
How do you connect to a specific datasource pool (as configured in
strusts-config).
 
I have two pools specified;
key=logindb
key=userdb
 
ActionServlet.findDataSource is depreciated in rc 1.3
 
Thanks in advance.
Johan Wasserman


Request Attributes + Iframe

2003-03-24 Thread Pat Quinn
Hi Guys,

I've got an action which pops a java bean into the request... the action 
redirects to a jsp which in turn contains an Iframe...

How do get a handle on the java bean from within the jsp which is the src 
for my iframe i don't want to send all the parameters in
the url to the iFrame source jsp... is there another way i can do this??





_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


How do I integrate Flash with Struts?

2003-03-24 Thread Mark Galbreath
http://home.attbi.com/~no-spam/Beer.swf



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



RE: [Q] Radio button

2003-03-24 Thread shirishchandra.sakhare
did u check the html:radio documentation ?

-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 2:18 PM
To: Struts Users Mailing List
Subject: [Q] Radio button


Question:
How can I use html tag lib for radio button, I am not able to get help on the same.
I have a single property and depending on that property (FormBean) I want one of the 
radio button to be checked or unchecked. but only one radio button should be checked 
at a time.
 
Thanks in advance.
Regards
Chetan
_
 
Each pattern describes the problems which occurs over and over again in our 
environment, and then describes the core of the solution of that problem, in such a 
way that you can use this solution a million times over, without ever doing it the 
same way twice.
Alexander (1977)

 


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



RE: Request Attributes + Iframe

2003-03-24 Thread Vinh Tran
You will need to call a separate Action for the iframe src. Short of loading
up your session that's the only way I came up with.

Vinh

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 8:30 AM
To: [EMAIL PROTECTED]
Subject: Request Attributes + Iframe


Hi Guys,

I've got an action which pops a java bean into the request... the action
redirects to a jsp which in turn contains an Iframe...

How do get a handle on the java bean from within the jsp which is the src
for my iframe i don't want to send all the parameters in
the url to the iFrame source jsp... is there another way i can do this??





_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


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



How can I tell if its Friday yet? [WAS: How do I integrate Flash with Struts?]

2003-03-24 Thread Andrew Hill
Are we there yet?
Are we there yet?
Are we there yet?
Are we there yet?
Are we there yet?

No.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Monday, 24 March 2003 21:33
To: struts
Subject: How do I integrate Flash with Struts?


http://home.attbi.com/~no-spam/Beer.swf



-
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: take over an existing HttpSession

2003-03-24 Thread Stephen Smithstone
Use the servlet context to store the details in instead of the session context 
and the label it via a the users username or something



On Monday 24 March 2003 12:40 pm, Dmitri Ilyin wrote:
 Hi,

 i'm may be out of topic. But i think there are a lot of gurus here they
 could help me.

 I have to implement one feature in my application for that there is may be
 already a solution here.

 Szenario:
 A user logged on in application. He dose some  work, dosn't  logged out and
 goes to another workstation. In new workstation he logged in application
 again with the same userID. The user must get in the application an exactly
 the same place and have the same data from his last workstation and his
 last session must be invalidated.  So the user must take over his last
 session.

 any ideas??

 thanks for any advise

 regards Dmitri




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


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



Re: [newbie] Finding datasource from pool in struts-config

2003-03-24 Thread Stephen Smithstone
Action.getDataSource( httpSerlvetRequestObject , logindb );

or

Action.getDataSource( httpServletRequest , userdb );

that how i do it in rc1


On Monday 24 March 2003 1:00 pm, Johan Wasserman wrote:
 Hi,
 How do you connect to a specific datasource pool (as configured in
 strusts-config).

 I have two pools specified;
 key=logindb
 key=userdb

 ActionServlet.findDataSource is depreciated in rc 1.3

 Thanks in advance.
 Johan Wasserman


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



Re: [Q] Radio button

2003-03-24 Thread Chetan Sahasrabudhe
Got the stuff in mailing list archive. done thanks
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 7:03 PM
Subject: RE: [Q] Radio button


 did u check the html:radio documentation ?

 -Original Message-
 From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 2:18 PM
 To: Struts Users Mailing List
 Subject: [Q] Radio button


 Question:
 How can I use html tag lib for radio button, I am not able to get help
on the same.
 I have a single property and depending on that property (FormBean) I want
one of the radio button to be checked or unchecked. but only one radio
button should be checked at a time.

 Thanks in advance.
 Regards
 Chetan
 _

 Each pattern describes the problems which occurs over and over again in
our environment, and then describes the core of the solution of that
problem, in such a way that you can use this solution a million times over,
without ever doing it the same way twice.
 Alexander (1977)




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


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



Re: html:option and message resource

2003-03-24 Thread James Mitchell
On Mon, 2003-03-24 at 07:32, Xavier Saint-Denis wrote:
 Hi,
 
 I have the following problem :
 
 In the strust config file I declare this :
 
 !-- == Message Resources Definitions
 === --
 message-resources parameter=ApplicationRessources null=false/
 
 Where the promt.empty= is defined in the property file and
 used with no problem elsewhere in the code.
 
 
 in a tiles jsp, i use a an html:action like this :
 
 html:option key=prompt.empty value=/
 
 but the message is not rendered and I wonder why...?

Maybe because you mispelled 'prompt' in the bundle ???

 
 Have you any idea why this occur ?
 
 Xav
 
 


-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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



Re: [newbie] findDataSource deprecated?

2003-03-24 Thread Stephen Smithstone
try getDatasource( HttpSerlvetRequest httpServletRequest , String key );

from the Action Class

On Monday 24 March 2003 12:09 pm, Johan Wasserman wrote:
 Hi,
 Im just now converting to rc1.3 and find that findDataSource is
 deprecated.  How do you find one of many datasources?

 FYI:
 --
 I have a separate class called Database with method runQuery that
 returns a resultset to my ActionForm class, I only pass DBName and
 QueryString as parameters.  So my previous code where:
 In ActionForm:
 ResultSet rs = Database.runQuery(logondb, select username, password
 from users where username = ' + uname + ');

 Many thanks in advance.
 Johan Wasserman.


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



RE: Declaration of the Struts tag librairies

2003-03-24 Thread Sri Sankaran
Looking at the documentation for the web.xml, it reads:

taglib-uri:
  The taglib-uri element describes a URI, relative to the 
  location of the web.xml document, identifying a Tag 
  Library used in the Web Application.
taglib-location:
  the taglib-location element contains the location (as a 
  resource relative to the root of the web application) 
  where to find the Tag Libary Description file for the 
  tag library. 

So, for example, if your web.xml has

taglib
  taglib-urihttp://www.acme.com/logic/taglib-uri
  taglib-location/WEB-INF/tlds/struts-logic.tld/taglib-location
/taglib

you can place the taglib directive

%@ taglib uri=http://www.acme.com/logic; prefix=logic %

in your JSP.  The web.xml taglib provides a level of indirection thereby allowing 
you to say, move your tlds or use a newer version without having to update all your 
JSPs.

I *do* have every taglib that I use in my application declared in the web.xml.

Sri

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 4:20 AM
To: '[EMAIL PROTECTED]'
Subject: Declaration of the Struts tag librairies 



I develop a web application with Tomcat4.0.1 and the Struts framework.
In the web.xml there is an optional taglib element. I don't understand very 
well the aim of this element. 
In the beginning of the development I added the following libraries:

taglib 
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri 
taglib-
location/WEB-INF/tld/struts-bean.tld/taglib-location
/taglib 
taglib 
taglib-uri/WEB-INF/struts-html.tld/taglib-uri   

taglib-location/WEB-INF/tld/struts-html.tld/taglib-location 
/taglib 
and in the JSP that use these libraries I added in the header: 
%@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=logic % 
%@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=logic %
 In the continuation of my developments I used new libraries which I did not 
declare in web.xml 
But in the JSP that use these new libraries I wrote a line 
%@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % and it works, 
why ?
Is it with the fact that the two directives are identical? 
I do'nt understand well which is the aim of the taglib element ? Do I must 
declare each library used in the
Struts application in the web.xml file ? 




As of February 12th, 2003 Thomson unifies its email addresses on a worldwide basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 


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



Form not populating from post to struts.

2003-03-24 Thread Simon Kelly
Hi all,

Cannot for the life of me spot the problem here.

Could someone check the following and see if there is an obvoius error that
would mean struts wouldn't populate the form.

Cheers

Simon

Form, stripped from the html:

[snip]
form name=signalSelectForm
action=/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC912
method=post
[snip]
input value=fp1v1 name=tables type=checkbox
[snip]
input value=fp1v1.eg1_hv_01 name=signals type=checkbox -
eg1_hv_01br
input value=fp1v1.eg1_mag_01 name=signals type=checkbox -
eg1_mag_01br
input value=fp1v1.eg1_mag_02 name=signals type=checkbox -
eg1_mag_02br
[snip]
input value=submit type=submit


Form and action-mapping from struts-conf.xml:

[snip]
form-bean name=signalSelectForm
type=com.katrin.presentation.actionform.SignalSelectForm
/form-bean
[snip]
action path=/signal
name=signalSelectForm
scope=request
validate=false
type=com.katrin.presentation.action.SignalSelectAction
forward name=success path=/StrutsCXServlet /
/action

Form:
=

public class SignalSelectForm extends ActionForm{

private ArrayList tables = new ArrayList();
private String startDate;
private String endDate;
private String dateSearchType;
private ArrayList signals = new ArrayList();

public void setTables(String newtable) {
this.tables.add(newtable);
}

public void setStartDate(String date) {
this.startDate = new String(date);
}

public void setEndDate(String date) {
this.endDate = new String(date);
}

public void setDataSearchType(String type) {
this.dateSearchType = new String(type);
}

public void setSignals(String newsignal) {
this.signals.add(newsignal);
}

public ArrayList getTables() {
return this.tables;
}

public String getStartDate() {
return this.startDate;
}

public String getEndDate() {
return this.endDate;
}

public String getDataSearchType() {
return this.dateSearchType;
}
public ArrayList getSignals() {
return this.signals;
}

public void reset() {
this.tables.clear();
this.startDate = new String();
this.endDate = new String();
this.dateSearchType = new String();
this.signals.clear();
}
}

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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



RE: Form not populating from post to struts.

2003-03-24 Thread Angelo . Andreetto
Try this:

action=/strutscx/signal.do?jsessionid=8AF18163C316123869B5EFBFAD6BC912


 -Original Message-
 From: Simon Kelly [SMTP:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 3:18 PM
 To:   Struts Users Mailing List
 Subject:  Form not populating from post to struts.
 
 Hi all,
 
 Cannot for the life of me spot the problem here.
 
 Could someone check the following and see if there is an obvoius error
 that
 would mean struts wouldn't populate the form.
 
 Cheers
 
 Simon
 
 Form, stripped from the html:
 
 [snip]
 form name=signalSelectForm
 action=/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC912
 method=post
 [snip]
 input value=fp1v1 name=tables type=checkbox
 [snip]
 input value=fp1v1.eg1_hv_01 name=signals type=checkbox -
 eg1_hv_01br
 input value=fp1v1.eg1_mag_01 name=signals type=checkbox -
 eg1_mag_01br
 input value=fp1v1.eg1_mag_02 name=signals type=checkbox -
 eg1_mag_02br
 [snip]
 input value=submit type=submit
 
 
 Form and action-mapping from struts-conf.xml:
 
 [snip]
 form-bean name=signalSelectForm
 type=com.katrin.presentation.actionform.SignalSelectForm
 /form-bean
 [snip]
 action path=/signal
 name=signalSelectForm
 scope=request
 validate=false
 type=com.katrin.presentation.action.SignalSelectAction
 forward name=success path=/StrutsCXServlet /
 /action
 
 Form:
 =
 
 public class SignalSelectForm extends ActionForm{
 
 private ArrayList tables = new ArrayList();
 private String startDate;
 private String endDate;
 private String dateSearchType;
 private ArrayList signals = new ArrayList();
 
 public void setTables(String newtable) {
 this.tables.add(newtable);
 }
 
 public void setStartDate(String date) {
 this.startDate = new String(date);
 }
 
 public void setEndDate(String date) {
 this.endDate = new String(date);
 }
 
 public void setDataSearchType(String type) {
 this.dateSearchType = new String(type);
 }
 
 public void setSignals(String newsignal) {
 this.signals.add(newsignal);
 }
 
 public ArrayList getTables() {
 return this.tables;
 }
 
 public String getStartDate() {
 return this.startDate;
 }
 
 public String getEndDate() {
 return this.endDate;
 }
 
 public String getDataSearchType() {
 return this.dateSearchType;
 }
 public ArrayList getSignals() {
 return this.signals;
 }
 
 public void reset() {
 this.tables.clear();
 this.startDate = new String();
 this.endDate = new String();
 this.dateSearchType = new String();
 this.signals.clear();
 }
 }
 
 Institut fuer
 Prozessdatenverarbeitung
 und Elektronik,
 Forschungszentrum Karlsruhe GmbH,
 Postfach 3640,
 D-76021 Karlsruhe,
 Germany.
 
 Tel: (+49)/7247 82-4042
 E-mail : [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
IMPORTANT: 
This e-mail transmission is intended for the named addressee(s) only. 
Its contents are private, confidential and protected from disclosure and
should not be read, copied or disclosed by any other person. 
If you are not the intended recipient, we kindly ask you to notify the
sender immediately by telephone (+41-91-612 26 11), 
to redirect the message to the account [EMAIL PROTECTED] and to delete this
e-mail. 
E-mail transmissions may be intercepted, altered or read by unauthorized
persons and may contain viruses. Therefore, it is recommended that you use
regular mail or courier services for any information intended to be
confidential. However, by sending us messages through e-mail, you authorize
and instruct us to correspond by e-mail in the relevant matter. 
Thank you. 


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



RE: Form not populating from post to struts.

2003-03-24 Thread Mick . Knutson
Should it actually be:

action=/signal.do
input type=hidden name=jsessionid value=8AF18163C316123869B5EFBFAD6BC912 /

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 3:22 PM
To: [EMAIL PROTECTED]
Subject: RE: Form not populating from post to struts.


Try this:

action=/strutscx/signal.do?jsessionid=8AF18163C316123869B5EFBFAD6BC912


 -Original Message-
 From: Simon Kelly [SMTP:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 3:18 PM
 To:   Struts Users Mailing List
 Subject:  Form not populating from post to struts.
 
 Hi all,
 
 Cannot for the life of me spot the problem here.
 
 Could someone check the following and see if there is an obvoius error
 that
 would mean struts wouldn't populate the form.
 
 Cheers
 
 Simon
 
 Form, stripped from the html:
 
 [snip]
 form name=signalSelectForm
 action=/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC912
 method=post
 [snip]
 input value=fp1v1 name=tables type=checkbox
 [snip]
 input value=fp1v1.eg1_hv_01 name=signals type=checkbox -
 eg1_hv_01br
 input value=fp1v1.eg1_mag_01 name=signals type=checkbox -
 eg1_mag_01br
 input value=fp1v1.eg1_mag_02 name=signals type=checkbox -
 eg1_mag_02br
 [snip]
 input value=submit type=submit
 
 
 Form and action-mapping from struts-conf.xml:
 
 [snip]
 form-bean name=signalSelectForm
 type=com.katrin.presentation.actionform.SignalSelectForm
 /form-bean
 [snip]
 action path=/signal
 name=signalSelectForm
 scope=request
 validate=false
 type=com.katrin.presentation.action.SignalSelectAction
 forward name=success path=/StrutsCXServlet /
 /action
 
 Form:
 =
 
 public class SignalSelectForm extends ActionForm{
 
 private ArrayList tables = new ArrayList();
 private String startDate;
 private String endDate;
 private String dateSearchType;
 private ArrayList signals = new ArrayList();
 
 public void setTables(String newtable) {
 this.tables.add(newtable);
 }
 
 public void setStartDate(String date) {
 this.startDate = new String(date);
 }
 
 public void setEndDate(String date) {
 this.endDate = new String(date);
 }
 
 public void setDataSearchType(String type) {
 this.dateSearchType = new String(type);
 }
 
 public void setSignals(String newsignal) {
 this.signals.add(newsignal);
 }
 
 public ArrayList getTables() {
 return this.tables;
 }
 
 public String getStartDate() {
 return this.startDate;
 }
 
 public String getEndDate() {
 return this.endDate;
 }
 
 public String getDataSearchType() {
 return this.dateSearchType;
 }
 public ArrayList getSignals() {
 return this.signals;
 }
 
 public void reset() {
 this.tables.clear();
 this.startDate = new String();
 this.endDate = new String();
 this.dateSearchType = new String();
 this.signals.clear();
 }
 }
 
 Institut fuer
 Prozessdatenverarbeitung
 und Elektronik,
 Forschungszentrum Karlsruhe GmbH,
 Postfach 3640,
 D-76021 Karlsruhe,
 Germany.
 
 Tel: (+49)/7247 82-4042
 E-mail : [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
IMPORTANT: 
This e-mail transmission is intended for the named addressee(s) only. 
Its contents are private, confidential and protected from disclosure and
should not be read, copied or disclosed by any other person. 
If you are not the intended recipient, we kindly ask you to notify the
sender immediately by telephone (+41-91-612 26 11), 
to redirect the message to the account [EMAIL PROTECTED] and to delete this
e-mail. 
E-mail transmissions may be intercepted, altered or read by unauthorized
persons and may contain viruses. Therefore, it is recommended that you use
regular mail or courier services for any information intended to be
confidential. However, by sending us messages through e-mail, you authorize
and instruct us to correspond by e-mail in the relevant matter. 
Thank you. 


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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail 

RE: Form not populating from post to struts.

2003-03-24 Thread shirishchandra.sakhare
 jsessionid=XXX is the browsers way of passing session info..And it is not passed as a 
normal üparameter(some.do?jsessionid=XXX)..So what u have suggested will not work..

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 3:22 PM
To: [EMAIL PROTECTED]
Subject: RE: Form not populating from post to struts.


Try this:

action=/strutscx/signal.do?jsessionid=8AF18163C316123869B5EFBFAD6BC912


 -Original Message-
 From: Simon Kelly [SMTP:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 3:18 PM
 To:   Struts Users Mailing List
 Subject:  Form not populating from post to struts.
 
 Hi all,
 
 Cannot for the life of me spot the problem here.
 
 Could someone check the following and see if there is an obvoius error
 that
 would mean struts wouldn't populate the form.
 
 Cheers
 
 Simon
 
 Form, stripped from the html:
 
 [snip]
 form name=signalSelectForm
 action=/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC912
 method=post
 [snip]
 input value=fp1v1 name=tables type=checkbox
 [snip]
 input value=fp1v1.eg1_hv_01 name=signals type=checkbox -
 eg1_hv_01br
 input value=fp1v1.eg1_mag_01 name=signals type=checkbox -
 eg1_mag_01br
 input value=fp1v1.eg1_mag_02 name=signals type=checkbox -
 eg1_mag_02br
 [snip]
 input value=submit type=submit
 
 
 Form and action-mapping from struts-conf.xml:
 
 [snip]
 form-bean name=signalSelectForm
 type=com.katrin.presentation.actionform.SignalSelectForm
 /form-bean
 [snip]
 action path=/signal
 name=signalSelectForm
 scope=request
 validate=false
 type=com.katrin.presentation.action.SignalSelectAction
 forward name=success path=/StrutsCXServlet /
 /action
 
 Form:
 =
 
 public class SignalSelectForm extends ActionForm{
 
 private ArrayList tables = new ArrayList();
 private String startDate;
 private String endDate;
 private String dateSearchType;
 private ArrayList signals = new ArrayList();
 
 public void setTables(String newtable) {
 this.tables.add(newtable);
 }
 
 public void setStartDate(String date) {
 this.startDate = new String(date);
 }
 
 public void setEndDate(String date) {
 this.endDate = new String(date);
 }
 
 public void setDataSearchType(String type) {
 this.dateSearchType = new String(type);
 }
 
 public void setSignals(String newsignal) {
 this.signals.add(newsignal);
 }
 
 public ArrayList getTables() {
 return this.tables;
 }
 
 public String getStartDate() {
 return this.startDate;
 }
 
 public String getEndDate() {
 return this.endDate;
 }
 
 public String getDataSearchType() {
 return this.dateSearchType;
 }
 public ArrayList getSignals() {
 return this.signals;
 }
 
 public void reset() {
 this.tables.clear();
 this.startDate = new String();
 this.endDate = new String();
 this.dateSearchType = new String();
 this.signals.clear();
 }
 }
 
 Institut fuer
 Prozessdatenverarbeitung
 und Elektronik,
 Forschungszentrum Karlsruhe GmbH,
 Postfach 3640,
 D-76021 Karlsruhe,
 Germany.
 
 Tel: (+49)/7247 82-4042
 E-mail : [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
IMPORTANT: 
This e-mail transmission is intended for the named addressee(s) only. 
Its contents are private, confidential and protected from disclosure and
should not be read, copied or disclosed by any other person. 
If you are not the intended recipient, we kindly ask you to notify the
sender immediately by telephone (+41-91-612 26 11), 
to redirect the message to the account [EMAIL PROTECTED] and to delete this
e-mail. 
E-mail transmissions may be intercepted, altered or read by unauthorized
persons and may contain viruses. Therefore, it is recommended that you use
regular mail or courier services for any information intended to be
confidential. However, by sending us messages through e-mail, you authorize
and instruct us to correspond by e-mail in the relevant matter. 
Thank you. 


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


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



[OT] BeanUtils property copying facility

2003-03-24 Thread Daniel H. F. e Silva
Hi all,
 Forgive me for posting an off-topic e-mail but i am needing help and as some 
contributors to
Jakarta Commons-BeanUtils read messages from this list i thought you could help me.
 Is there a feature in commons-beanutils where i can copy properties from a bean to a 
map
instance?

Best regards,
 Daniel.

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



RE: Accessing resource properties

2003-03-24 Thread Binaghi Mauro
Can you explain me better, please? In witch xml-file do I have to insert the 
/bean:define tag?
Thx
Mauro


-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: venerdì 21 marzo 2003 14.36
To: Struts Users Mailing List
Subject: Re: Accessing resource properties


Something like this?

bean:define id=myValue 
   bean:message key=whatever.from.your.message.resources/
/bean:define

Then use %= myValue % where you need to.


Susan Bradeen

On 03/21/2003 06:05:14 AM Mohan Radhakrishnan wrote:

 Hi
 
 Is there a way to store what is returned by
 
 bean:message key=%=x%/
 
 in a variable in the scope directly using bean:define or something else
 instead of writing the following scriptlet in my JSP ?
 
 MessageResources messages =
 MessageResources.getMessageResources(ApplicationResources);
 messages.getMessage( information );
 
 Thanks,
 Mohan
 
 -
 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]



French Font in PDF (OT)

2003-03-24 Thread Yan, Charlene
All,

I use a third party Java library to create PDF report.  Everything works fine except 
that some French products are not displayed correctly.  Please look at the following:

LSW Product Description in PDF Report:
Ce cours, premier d'une s?rie constitu?e de deux parties, permet d'acqu?rir les 
connaissances essentielles ? la planification et ? la mise en oeuvre des strat?gies de 
sauvegarde et de restauration d'une base de donn?es. Dans ce cours, les utilisateurs 
prendront connaissance des objectifs de sauvegarde et de restauration et identifieront 
les fonctions des structures et des processus de l'architecture Oracle. Ils 
apprendront ?galement ? g?rer le processus d'archivage et ? mettre ? jour un catalogue 
de restauration. Ce cours pr?sente ?galement les concepts li?s ? l'ex?cution de 
sauvegardes physiques avec ou sans l'utilitaire Recovery Manager (RMAN).

LSW Product Description:  OK
Ce cours, premier d'une série constituée de deux parties, permet d'acquérir les 
connaissances essentielles à la planification et à la mise en oeuvre des stratégies de 
sauvegarde et de restauration d'une base de données. Dans ce cours, les utilisateurs 
prendront connaissance des objectifs de sauvegarde et de restauration et identifieront 
les fonctions des structures et des processus de l'architecture Oracle. Ils 
apprendront également à gérer le processus d'archivage et à mettre à jour un catalogue 
de restauration. Ce cours présente également les concepts liés à l'exécution de 
sauvegardes physiques avec ou sans l'utilitaire Recovery Manager (RMAN). 

I know we have a lot of French users on the list.  The third party lib user guides 
says that it supports Western European language.  I', still investigating it.  I may 
have to specify a TrueType font that can display both English and French.  I don't 
know and have never used/typed any French words.  Any insights on this?  TIA!

Charlene

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



Re: [OT] BeanUtils property copying facility

2003-03-24 Thread Kris Schneider
BeanUtils.describe or PropertyUtils.describe

Quoting Daniel H. F. e Silva [EMAIL PROTECTED]:

 Hi all,
  Forgive me for posting an off-topic e-mail but i am needing help and as some
 contributors to
 Jakarta Commons-BeanUtils read messages from this list i thought you could
 help me.
  Is there a feature in commons-beanutils where i can copy properties from a
 bean to a map
 instance?
 
 Best regards,
  Daniel.
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
 http://platinum.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



RE: Form not populating from post to struts.

2003-03-24 Thread Sri Sankaran
So, what *are* you seeing?  That 

* the action is called without the form being populated?
  * is the form being *created*?
* form-bean isn't created and action isn't called?
* ...

Sri

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 9:18 AM
To: Struts Users Mailing List
Subject: Form not populating from post to struts.


Hi all,

Cannot for the life of me spot the problem here.

Could someone check the following and see if there is an obvoius error that would mean 
struts wouldn't populate the form.

Cheers

Simon

Form, stripped from the html:

[snip]
form name=signalSelectForm 
action=/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC912
method=post
[snip]
input value=fp1v1 name=tables type=checkbox
[snip]
input value=fp1v1.eg1_hv_01 name=signals type=checkbox - eg1_hv_01br input 
value=fp1v1.eg1_mag_01 name=signals type=checkbox - eg1_mag_01br input 
value=fp1v1.eg1_mag_02 name=signals type=checkbox - eg1_mag_02br [snip] 
input value=submit type=submit


Form and action-mapping from struts-conf.xml:  [snip] 
form-bean name=signalSelectForm 
type=com.katrin.presentation.actionform.SignalSelectForm
/form-bean
[snip]
action path=/signal
name=signalSelectForm
scope=request
validate=false
type=com.katrin.presentation.action.SignalSelectAction
forward name=success path=/StrutsCXServlet / /action

Form:
=

public class SignalSelectForm extends ActionForm{

private ArrayList tables = new ArrayList();
private String startDate;
private String endDate;
private String dateSearchType;
private ArrayList signals = new ArrayList();

public void setTables(String newtable) {
this.tables.add(newtable);
}

public void setStartDate(String date) {
this.startDate = new String(date);
}

public void setEndDate(String date) {
this.endDate = new String(date);
}

public void setDataSearchType(String type) {
this.dateSearchType = new String(type);
}

public void setSignals(String newsignal) {
this.signals.add(newsignal);
}

public ArrayList getTables() {
return this.tables;
}

public String getStartDate() {
return this.startDate;
}

public String getEndDate() {
return this.endDate;
}

public String getDataSearchType() {
return this.dateSearchType;
}
public ArrayList getSignals() {
return this.signals;
}

public void reset() {
this.tables.clear();
this.startDate = new String();
this.endDate = new String();
this.dateSearchType = new String();
this.signals.clear();
}
}

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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


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



RE: [OT] BeanUtils property copying facility

2003-03-24 Thread Mick . Knutson
In the documentation, there is BeanUtil.copyProperties(...)
They have bean to bean, bean to Map etc...

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: Daniel H. F. e Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 3:31 PM
To: [EMAIL PROTECTED]
Subject: [OT] BeanUtils property copying facility


Hi all,
 Forgive me for posting an off-topic e-mail but i am needing help and as some 
contributors to
Jakarta Commons-BeanUtils read messages from this list i thought you could help me.
 Is there a feature in commons-beanutils where i can copy properties from a bean to a 
map
instance?

Best regards,
 Daniel.

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



RE: [OT] BeanUtils property copying facility

2003-03-24 Thread Ady Das O'Toole
BeanUtils.copyProperties

-Original Message-
From: Daniel H. F. e Silva [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 14:31
To: [EMAIL PROTECTED]
Subject: [OT] BeanUtils property copying facility


Hi all,
 Forgive me for posting an off-topic e-mail but i am needing help and as
some contributors to
Jakarta Commons-BeanUtils read messages from this list i thought you could
help me.
 Is there a feature in commons-beanutils where i can copy properties from a
bean to a map
instance?

Best regards,
 Daniel.

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



**
The information contained in this e-mail may be confidential. It is intended only for 
for the use
of the named recipient. If you are not the named recipient please delete this e-mail. 
If you have
received this e-mail and are not the named recipient, any disclosure, reproduction, 
distribution
or other dissemination or use of the information contained in this e-mail is strictly 
prohibited.
E-mail transmission cannot be guaranteed to be secure or error free as information 
could be 
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain 
viruses.  
The sender therefore does not accept liability for any errors or omissions in the 
contents of this 
message which arise as a result of e-mail transmission.  If verification is required 
please 
request a hard copy version.
Registered Office:
Camelot Group plc
Tolpits Lane
Watford
WD18 9RN
Tel: 01923 425000
Registered in England and Wales
No. 2822203
**



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


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



RE: Form not populating from post to struts.

2003-03-24 Thread Angelo . Andreetto
I know that, but simply I've never had to pass that info using a form. :-]
Why do you put the session id in the form?

 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 3:29 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: Form not populating from post to struts.
 
  jsessionid=XXX is the browsers way of passing session info..And it is not
 passed as a normal üparameter(some.do?jsessionid=XXX)..So what u have
 suggested will not work..
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 3:22 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Form not populating from post to struts.
 
 
 Try this:
   
 action=/strutscx/signal.do?jsessionid=8AF18163C316123869B5EFBFAD6BC912
 
 
  -Original Message-
  From:   Simon Kelly [SMTP:[EMAIL PROTECTED]
  Sent:   Monday, March 24, 2003 3:18 PM
  To: Struts Users Mailing List
  Subject:Form not populating from post to struts.
  
  Hi all,
  
  Cannot for the life of me spot the problem here.
  
  Could someone check the following and see if there is an obvoius error
  that
  would mean struts wouldn't populate the form.
  
  Cheers
  
  Simon
  
  Form, stripped from the html:
  
  [snip]
  form name=signalSelectForm
  action=/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC912
  method=post
  [snip]
  input value=fp1v1 name=tables type=checkbox
  [snip]
  input value=fp1v1.eg1_hv_01 name=signals type=checkbox -
  eg1_hv_01br
  input value=fp1v1.eg1_mag_01 name=signals type=checkbox -
  eg1_mag_01br
  input value=fp1v1.eg1_mag_02 name=signals type=checkbox -
  eg1_mag_02br
  [snip]
  input value=submit type=submit
  
  
  Form and action-mapping from struts-conf.xml:
  
  [snip]
  form-bean name=signalSelectForm
  type=com.katrin.presentation.actionform.SignalSelectForm
  /form-bean
  [snip]
  action path=/signal
  name=signalSelectForm
  scope=request
  validate=false
  type=com.katrin.presentation.action.SignalSelectAction
  forward name=success path=/StrutsCXServlet /
  /action
  
  Form:
  =
  
  public class SignalSelectForm extends ActionForm{
  
  private ArrayList tables = new ArrayList();
  private String startDate;
  private String endDate;
  private String dateSearchType;
  private ArrayList signals = new ArrayList();
  
  public void setTables(String newtable) {
  this.tables.add(newtable);
  }
  
  public void setStartDate(String date) {
  this.startDate = new String(date);
  }
  
  public void setEndDate(String date) {
  this.endDate = new String(date);
  }
  
  public void setDataSearchType(String type) {
  this.dateSearchType = new String(type);
  }
  
  public void setSignals(String newsignal) {
  this.signals.add(newsignal);
  }
  
  public ArrayList getTables() {
  return this.tables;
  }
  
  public String getStartDate() {
  return this.startDate;
  }
  
  public String getEndDate() {
  return this.endDate;
  }
  
  public String getDataSearchType() {
  return this.dateSearchType;
  }
  public ArrayList getSignals() {
  return this.signals;
  }
  
  public void reset() {
  this.tables.clear();
  this.startDate = new String();
  this.endDate = new String();
  this.dateSearchType = new String();
  this.signals.clear();
  }
  }
  
  Institut fuer
  Prozessdatenverarbeitung
  und Elektronik,
  Forschungszentrum Karlsruhe GmbH,
  Postfach 3640,
  D-76021 Karlsruhe,
  Germany.
  
  Tel: (+49)/7247 82-4042
  E-mail : [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 IMPORTANT: 
 This e-mail transmission is intended for the named addressee(s) only. 
 Its contents are private, confidential and protected from disclosure and
 should not be read, copied or disclosed by any other person. 
 If you are not the intended recipient, we kindly ask you to notify the
 sender immediately by telephone (+41-91-612 26 11), 
 to redirect the message to the account [EMAIL PROTECTED] and to delete
 this
 e-mail. 
 E-mail transmissions may be intercepted, altered or read by unauthorized
 persons and may contain viruses. Therefore, it is recommended that you use
 regular mail or courier services for any information intended to be
 confidential. However, by sending us messages through e-mail, you
 authorize
 and instruct us to correspond by e-mail in the relevant matter. 
 Thank you. 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

RE: [friday] NEWBIE - unsubscription help

2003-03-24 Thread Kandi Potter
Someone might want to check into the unsubscribe issue because over Christmas I also 
tried to unsubscribe temporarily, but it was not successful.I ended up just 
filtering instead.

-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 8:35 AM
To: Struts Users Mailing List
Subject: Re: [friday] NEWBIE - unsubscription help



James Mitchell ([EMAIL PROTECTED]) wrote:

 On Fri, 2003-03-21 at 00:37, Dan Allen wrote:
I'm sorry to bother you all with this silly question but can someone please
   tell me how to unsubscibe from this list?
   
   I've tried sending countless emails to
   [EMAIL PROTECTED] but that does not seem to work.
   As I share this email with my wife, you can imagine her 'amused' look when
   the whole screen is filled with Struts mails! :(
   Thanks.
  
  Have you ever heard of filtering?  Maybe you should look into that
  and you won't need to unsubscribe so desperately.
 
 I think what Dan was 'really trying to say' is that you should:
 1. send a blank message to [EMAIL PROTECTED]
 (using the same email address you used to subscribe)
 2. wait until the confirmation comes and then reply to that email.

Yes, that about sums it up.  But you have to wonder, with all those
great tools...

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
I'm old enough to know better, but still too young to care.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

-
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: Accessing resource properties

2003-03-24 Thread Becky Norum
Marco,

The code Susan gave you is the code you would use within your JSP file
to access a Application Resource property.

-- 
Becky Norum
Database Administrator
Center for Subsurface Sensing and Imaging Systems (CenSSIS)
Northeastern University
http://www.censsis.neu.edu


On Mon, 2003-03-24 at 09:36, Binaghi Mauro wrote:
 Can you explain me better, please? In witch xml-file do I have to insert the 
 /bean:define tag?
 Thx
 Mauro
 
 
 -Original Message-
 From: Susan Bradeen [mailto:[EMAIL PROTECTED]
 Sent: venerdì 21 marzo 2003 14.36
 To: Struts Users Mailing List
 Subject: Re: Accessing resource properties
 
 
 Something like this?
 
 bean:define id=myValue 
bean:message key=whatever.from.your.message.resources/
 /bean:define
 
 Then use %= myValue % where you need to.
 
 
 Susan Bradeen
 
 On 03/21/2003 06:05:14 AM Mohan Radhakrishnan wrote:
 
  Hi
  
  Is there a way to store what is returned by
  
  bean:message key=%=x%/
  
  in a variable in the scope directly using bean:define or something else
  instead of writing the following scriptlet in my JSP ?
  
  MessageResources messages =
  MessageResources.getMessageResources(ApplicationResources);
  messages.getMessage( information );
  
  Thanks,
  Mohan
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



One tag in other tag's attribute's value

2003-03-24 Thread Navjot Singh
geeks,

I need to have something like this

html:link action=/Delete.do?id=bean:write name=row
property=id/Delete/html:link

I might not be thinking in right direction. Any comments are welcome.

thx in advance
-navjot



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



RE: [tiles] tiles:insert not working for relative path

2003-03-24 Thread Tai Nguyen
Volker,

When you use the tiles:insert with a page attribute, it automatically
inserts the context path (without the trailing slash), so the final URI
would be something like myAppMyJSP.jsp.

Tai

-Original Message-
From: Volker Krebs [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 4:23 AM
To: [EMAIL PROTECTED]
Subject: [tiles] tiles:insert not working for relative path


Hello,

I've just updated our system from struts-1.1b2 to struts-1.1rc1.
It seems that tiles:insert page=/ only works for an absolute Path now.

tiles:insert page=/path/to/jsp/MyJSP.jsp flush=true/
is working while
tiles:insert page=MyJSP.jsp flush=true/
is not working.
MyJSP.jsp is in the same Directory the other JSP is.

Can anyone confirm that ? I didn't find a bug entry for that.
Or has something changed in RC1 ?

Thanks.

Volker



-
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: One tag in other tag's attribute's value

2003-03-24 Thread Sri Sankaran
Try

bean:define id=foo name=row property=id/
html:link
  action=%=/Delete.do?id=+foo%Delete
/html:link

Sri
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 9:45 AM
To: Struts Users List
Subject: One tag in other tag's attribute's value


geeks,

I need to have something like this

html:link action=/Delete.do?id=bean:write name=row 
property=id/Delete/html:link

I might not be thinking in right direction. Any comments are welcome.

thx in advance
-navjot



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


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



Re: [newbie] findDataSource deprecated?

2003-03-24 Thread David Graham
Well, there is no 1.1 RC3 so you must be referring to 1.1 beta 3.  It looks 
like others have answered your original question but I wanted to talk about 
your Database class.  You should never return a ResultSet into your Action 
or form classes as it maintains an open database connection.  You need to 
copy the results into a class like ResultSetDynaClass
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/RowSetDynaClass.html

so the db connection can be closed.  Also, exposing SQL to your actions 
tightly couples them to any changes you make to your database schema.  A 
useful pattern used to prevent this is called Data Access Object
http://developer.java.sun.com/developer/restricted/patterns/DataAccessObject.html

David


Hi,
Im just now converting to rc1.3 and find that findDataSource is
deprecated.  How do you find one of many datasources?
FYI:
--
I have a separate class called Database with method runQuery that
returns a resultset to my ActionForm class, I only pass DBName and
QueryString as parameters.  So my previous code where:
In ActionForm:
ResultSet rs = Database.runQuery(logondb, select username, password
from users where username = ' + uname + ');
Many thanks in advance.
Johan Wasserman.


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

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


Re: error starting my struts app in tomcat

2003-03-24 Thread David Graham
NoSuchMethodException usually means that the deployed version of the struts 
and commons jars are different than the versions you compiled your app 
against.  Delete the classes in the app's /work directory and update your 
deployed jars.

David



From: Richard Raquepo [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: error starting my struts app in tomcat
Date: Mon, 24 Mar 2003 15:39:18 +0800
i have a web-app that works fine in resin but does not work in tomcat. i 
always get this error:
Mar 24, 2003 3:32:00 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.NoSuchMethodException: Bean has no property named loginRequired
at 
org.apache.commons.digester.SetPropertyRule.begin(SetPropertyRule.jav
a:193)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at 
org.apache.commons.digester.Digester.startElement(Digester.java:1268)

at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNames
paceBinder.java:874)
at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:591)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidat
or.java:748)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:944)
at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:934)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82
1)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3420)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
608)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

===
my web.xml looks like this:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
web-app

  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value1/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value
   /WEB-INF/struts-config.xml
   /param-value
/init-param
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
init-param
  param-namemapping/param-name
  param-valuecom.fltic.crm.UserActionMapping/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  

RE: One tag in other tag's attribute's value

2003-03-24 Thread Robert Taylor
Couldn't you use this?

html:link action=/Delete paramId=id paramName=row
paramProperty=idDelete/html:link

robert

 -Original Message-
 From: Navjot Singh [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 9:45 AM
 To: Struts Users List
 Subject: One tag in other tag's attribute's value


 geeks,

 I need to have something like this

 html:link action=/Delete.do?id=bean:write name=row
 property=id/Delete/html:link

 I might not be thinking in right direction. Any comments are welcome.

 thx in advance
 -navjot



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



DynaValidatorForm question

2003-03-24 Thread Thomas . Gaudin
Hi,

There's something I am not able to figure out in the corner of
DynaValidator form, can someone give me some clues about that  ?

I have a buziness object that can be searched and edited.

I created my own ActionForm for editing pages (it is stored in the users's
session) and it has two properties : 'name' and 'description'.
It is declared in struts-config.xml and called 'myBean'

I use a DynaValidatorForm for my search page (which is also stored in the
session) and it has a 'name' and a 'description' property as well
It is declared in struts-config.xml as 'mySearchBean'.

The problem is that when I have edited and assigned values to myBean
ActionForm  (let's say I give it the name 'foo' and description 'bar')
then when I go to the search page mySearchBean has his values set with
'foo' and 'bar' whereas it is a completly different bean !

The problem disapears if I rename the properties of the DynaValidatorForm
(name - name1, description - description1) so that they are not the same
as in the normal ActionForm bean.
Is there any known issue that forbids to use same names for properties
across different beans ?
Anybody has an idea about what is the problem ?

Thanks a lot for giving insight,

Thomas



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



Re: Declaration of the Struts tag librairies

2003-03-24 Thread David Graham
Deployment of taglibs in a Servlet 2.3 container such as Tomcat 4 is 
extremely simple.  Add this line to your JSP:
%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html %

This allows you to use the Struts html taglib.  You don't need to modify 
web.xml or copy tld files anywhere.

David



From: Heligon Sandra [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Declaration of the Struts tag librairies Date: Mon, 24 Mar 2003 
10:19:57 +0100

I develop a web application with Tomcat4.0.1 and the Struts
framework.
In the web.xml there is an optional taglib element. I don't
understand very well the aim of this element.
In the beginning of the development I added the following libraries:
taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-
location/WEB-INF/tld/struts-bean.tld/taglib-location
/taglib
taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
taglib-location/WEB-INF/tld/struts-html.tld/taglib-location
/taglib
and in the JSP that use these libraries I added in the header:
%@ taglib uri=/WEB-INF/tld/struts-bean.tld prefix=logic %
%@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=logic %
 In the continuation of my developments I used new libraries which I
did not declare in web.xml
But in the JSP that use these new libraries I wrote a line
%@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic % and
it works, why ?
Is it with the fact that the two directives are identical?
I do'nt understand well which is the aim of the taglib element ? Do
I must declare each library used in the
Struts application in the web.xml file ?


As of February 12th, 2003 Thomson unifies its email addresses on a 
worldwide
basis.
Please note my new email address: [EMAIL PROTECTED]

http://www.thomson.net/



_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: [tiles] tiles:insert not working for relative path

2003-03-24 Thread Cedric Dumoulin
 Hi,

 When you use Tiles, you should better use absolute paths (relative to 
the application). This is because you never know from where a tiles is 
inserted, and so you don't know to what the path is relative with.

 The only change that can explain the behavior change between 1.1b2 and 
1.1RC1 is the internal use of RequestDispatcher.include() instead of 
PageContext.include(). This later accept relative paths, while the first 
not.
 Try to use the latest nightly build instead of the rc1: we have revert 
to a call to PageContext.include(). So, your application should work again.
 Let us know the result.
  Cedric

Volker Krebs wrote:

Hello,

I've just updated our system from struts-1.1b2 to struts-1.1rc1.
It seems that tiles:insert page=/ only works for an absolute Path 
now.

tiles:insert page=/path/to/jsp/MyJSP.jsp flush=true/
is working while
tiles:insert page=MyJSP.jsp flush=true/
is not working.
MyJSP.jsp is in the same Directory the other JSP is.
Can anyone confirm that ? I didn't find a bug entry for that.
Or has something changed in RC1 ?
Thanks.

Volker



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



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


RE: [newbie] findDataSource deprecated?

2003-03-24 Thread Johan Wasserman
Yep! My mistake, I've been brainbusting so much about getting a database
connection it seems there's not much left to get the versions right ;-)

I'm on Struts 1.1-rc1, downloaded last Friday.

Nope, I haven't yet got a connection.  Thank you for the other REALY
VALUBLE information, I was clearly way off the best practice road.

If it's at all possible for you to help, here's my situation.

I'm running postgresql.
Datapool configured in struts-config:

data-sources
  data-source type=org.apache.commons.dbcp.BasicDataSource
set-property=key value=logindb/
... lotsa more properties ...
  /data-source
  data-source type=org.apache.commons.dbcp.BasicDataSource
set-property=key value=userdb/
... lotsa more properties ...
  /data-source
/data-sources

Now for the life of me! I just cannot (or will not? Lng hours), get
any code written to connect to one of the pools. 

Any help will do.

Thanks again for your previous reply David.
Regards,
Johan Wasserman

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: 24 March 2003 16:52
To: [EMAIL PROTECTED]
Subject: Re: [newbie] findDataSource deprecated?

Well, there is no 1.1 RC3 so you must be referring to 1.1 beta 3.  It
looks 
like others have answered your original question but I wanted to talk
about 
your Database class.  You should never return a ResultSet into your
Action 
or form classes as it maintains an open database connection.  You need
to 
copy the results into a class like ResultSetDynaClass
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanu
tils/RowSetDynaClass.html

so the db connection can be closed.  Also, exposing SQL to your actions 
tightly couples them to any changes you make to your database schema.  A

useful pattern used to prevent this is called Data Access Object
http://developer.java.sun.com/developer/restricted/patterns/DataAccessOb
ject.html

David


Hi,
Im just now converting to rc1.3 and find that findDataSource is
deprecated.  How do you find one of many datasources?

FYI:
--
I have a separate class called Database with method runQuery that
returns a resultset to my ActionForm class, I only pass DBName and
QueryString as parameters.  So my previous code where:
In ActionForm:
ResultSet rs = Database.runQuery(logondb, select username, password
from users where username = ' + uname + ');

Many thanks in advance.
Johan Wasserman.


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


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


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



RE: [newbie] findDataSource deprecated?

2003-03-24 Thread David Graham
Remove the set-property elements for the keys and add the key attribute to 
the data-source element.  Look at the struts 1.1 dtd for more info.

David



From: Johan Wasserman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [newbie] findDataSource deprecated?
Date: Mon, 24 Mar 2003 17:08:22 +0200
Yep! My mistake, I've been brainbusting so much about getting a database
connection it seems there's not much left to get the versions right ;-)
I'm on Struts 1.1-rc1, downloaded last Friday.

Nope, I haven't yet got a connection.  Thank you for the other REALY
VALUBLE information, I was clearly way off the best practice road.
If it's at all possible for you to help, here's my situation.

I'm running postgresql.
Datapool configured in struts-config:
data-sources
  data-source type=org.apache.commons.dbcp.BasicDataSource
set-property=key value=logindb/
... lotsa more properties ...
  /data-source
  data-source type=org.apache.commons.dbcp.BasicDataSource
set-property=key value=userdb/
... lotsa more properties ...
  /data-source
/data-sources
Now for the life of me! I just cannot (or will not? Lng hours), get
any code written to connect to one of the pools.
Any help will do.

Thanks again for your previous reply David.
Regards,
Johan Wasserman
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 16:52
To: [EMAIL PROTECTED]
Subject: Re: [newbie] findDataSource deprecated?
Well, there is no 1.1 RC3 so you must be referring to 1.1 beta 3.  It
looks
like others have answered your original question but I wanted to talk
about
your Database class.  You should never return a ResultSet into your
Action
or form classes as it maintains an open database connection.  You need
to
copy the results into a class like ResultSetDynaClass
http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanu
tils/RowSetDynaClass.html
so the db connection can be closed.  Also, exposing SQL to your actions
tightly couples them to any changes you make to your database schema.  A
useful pattern used to prevent this is called Data Access Object
http://developer.java.sun.com/developer/restricted/patterns/DataAccessOb
ject.html
David

Hi,
Im just now converting to rc1.3 and find that findDataSource is
deprecated.  How do you find one of many datasources?

FYI:
--
I have a separate class called Database with method runQuery that
returns a resultset to my ActionForm class, I only pass DBName and
QueryString as parameters.  So my previous code where:
In ActionForm:
ResultSet rs = Database.runQuery(logondb, select username, password
from users where username = ' + uname + ');

Many thanks in advance.
Johan Wasserman.
_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Re: [newbie] findDataSource deprecated?

2003-03-24 Thread Stephen Smithstone
OK heres my actuall code for my datasources

data-sources
data-source key=Progress
  set-property value=x property=password /
  set-property value=y property=user /
  set-property value=jdbc:mysql://localhost/Portal property=url /
  set-property value=org.gjt.mm.mysql.Driver property=driverClass /
  set-property value=10 property=minCount /
/data-source
  /data-sources

Then in my action i get the datasource

javax.sql.Datasource ds = this.getDataSource( httpServletRequest , Progress 
);

then i pass the datasource to the dao's for the sql processing

ive never implemented a type what is that all about ??




On Monday 24 March 2003 3:08 pm, Johan Wasserman wrote:
 Yep! My mistake, I've been brainbusting so much about getting a database
 connection it seems there's not much left to get the versions right ;-)

 I'm on Struts 1.1-rc1, downloaded last Friday.

 Nope, I haven't yet got a connection.  Thank you for the other REALY
 VALUBLE information, I was clearly way off the best practice road.

 If it's at all possible for you to help, here's my situation.

 I'm running postgresql.
 Datapool configured in struts-config:

 data-sources
   data-source type=org.apache.commons.dbcp.BasicDataSource
 set-property=key value=logindb/
 ... lotsa more properties ...
   /data-source
   data-source type=org.apache.commons.dbcp.BasicDataSource
 set-property=key value=userdb/
 ... lotsa more properties ...
   /data-source
 /data-sources

 Now for the life of me! I just cannot (or will not? Lng hours), get
 any code written to connect to one of the pools.

 Any help will do.

 Thanks again for your previous reply David.
 Regards,
 Johan Wasserman

 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2003 16:52
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] findDataSource deprecated?

 Well, there is no 1.1 RC3 so you must be referring to 1.1 beta 3.  It
 looks
 like others have answered your original question but I wanted to talk
 about
 your Database class.  You should never return a ResultSet into your
 Action
 or form classes as it maintains an open database connection.  You need
 to
 copy the results into a class like ResultSetDynaClass
 http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanu
 tils/RowSetDynaClass.html

 so the db connection can be closed.  Also, exposing SQL to your actions
 tightly couples them to any changes you make to your database schema.  A

 useful pattern used to prevent this is called Data Access Object
 http://developer.java.sun.com/developer/restricted/patterns/DataAccessOb
 ject.html

 David

 Hi,
 Im just now converting to rc1.3 and find that findDataSource is
 deprecated.  How do you find one of many datasources?
 
 FYI:
 --
 I have a separate class called Database with method runQuery that
 returns a resultset to my ActionForm class, I only pass DBName and
 QueryString as parameters.  So my previous code where:
 In ActionForm:
 ResultSet rs = Database.runQuery(logondb, select username, password
 from users where username = ' + uname + ');
 
 Many thanks in advance.
 Johan Wasserman.

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


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


 -
 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: French Font in PDF (OT)

2003-03-24 Thread Enrico Donelli
I had a similar problem with italian, using the FOP transformation.
I don't know if this can help, but I solved definining in the xsl used 
to create the fo document the entities, like:

!DOCTYPE xsl:stylesheet [
   !ENTITY aacute #225;
   !ENTITY agrave #224;
   !ENTITY copy   #169;
 ]
and then using the defined entities .

Hope it helps.

Best regards
Enrico
Yan, Charlene wrote:

All,

I use a third party Java library to create PDF report.  Everything works fine except that some French products are not displayed correctly.  Please look at the following:

LSW Product Description in PDF Report:
Ce cours, premier d'une s?rie constitu?e de deux parties, permet d'acqu?rir les 
connaissances essentielles ? la planification et ? la mise en oeuvre des strat?gies de 
sauvegarde et de restauration d'une base de donn?es. Dans ce cours, les utilisateurs 
prendront connaissance des objectifs de sauvegarde et de restauration et identifieront 
les fonctions des structures et des processus de l'architecture Oracle. Ils 
apprendront ?galement ? g?rer le processus d'archivage et ? mettre ? jour un catalogue 
de restauration. Ce cours pr?sente ?galement les concepts li?s ? l'ex?cution de 
sauvegardes physiques avec ou sans l'utilitaire Recovery Manager (RMAN).
LSW Product Description:  OK
Ce cours, premier d'une série constituée de deux parties, permet d'acquérir les connaissances essentielles à la planification et à la mise en oeuvre des stratégies de sauvegarde et de restauration d'une base de données. Dans ce cours, les utilisateurs prendront connaissance des objectifs de sauvegarde et de restauration et identifieront les fonctions des structures et des processus de l'architecture Oracle. Ils apprendront également à gérer le processus d'archivage et à mettre à jour un catalogue de restauration. Ce cours présente également les concepts liés à l'exécution de sauvegardes physiques avec ou sans l'utilitaire Recovery Manager (RMAN). 

I know we have a lot of French users on the list.  The third party lib user guides says that it supports Western European language.  I', still investigating it.  I may have to specify a TrueType font that can display both English and French.  I don't know and have never used/typed any French words.  Any insights on this?  TIA!

Charlene

-
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: take over an existing HttpSession

2003-03-24 Thread Dan Tran
Just an idea!!

Store all your sessions's reference  in the servelt context and when a new
session is create, check against the session list in the servelt context,
copy over data from old session to new session, and destroy the old session

Then You have to deal with all kind of multithreaded  and usibility issues.
Sound scary ;-)

Good luck

- Original Message -
From: Dmitri Ilyin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:59 AM
Subject: Re: take over an existing HttpSession



 Stephen Smithstone [EMAIL PROTECTED] schrieb im Newsbeitrag
 news:[EMAIL PROTECTED]
  Use the servlet context to store the details in instead of the session
 context
  and the label it via a the users username or something
 Thank you Stephen, that's Ok but i also have to invalidate an old
session,
 so the user can only have one session at time.

 
 
 
  On Monday 24 March 2003 12:40 pm, Dmitri Ilyin wrote:
   Hi,
  
   i'm may be out of topic. But i think there are a lot of gurus here
they
   could help me.
  
   I have to implement one feature in my application for that there is
may
 be
   already a solution here.
  
   Szenario:
   A user logged on in application. He dose some  work, dosn't  logged
out
 and
   goes to another workstation. In new workstation he logged in
application
   again with the same userID. The user must get in the application an
 exactly
   the same place and have the same data from his last workstation and
his
   last session must be invalidated.  So the user must take over his last
   session.
  
   any ideas??
  
   thanks for any advise
  
   regards Dmitri
  
  
  
  
   -
   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: [friday] NEWBIE - unsubscription help

2003-03-24 Thread James Mitchell
On Mon, 2003-03-24 at 09:44, Kandi Potter wrote:
 Someone might want to check into the unsubscribe issue because over Christmas I also 
 tried to unsubscribe temporarily, but it was not successful.I ended up just 
 filtering instead.

I agree.  I've heard on a few other lists that the
subscription/unsubscription process can act like 'Hotel Apache' on
occasion.  You can unsubscribe, but you can NEVER LEAVE!!!  
BWAHAHAHAHAHAHA

Someone might want to look into that.

 
 -Original Message-
 From: Dan Allen [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 21, 2003 8:35 AM
 To: Struts Users Mailing List
 Subject: Re: [friday] NEWBIE - unsubscription help
 
 
 
 James Mitchell ([EMAIL PROTECTED]) wrote:
 
  On Fri, 2003-03-21 at 00:37, Dan Allen wrote:
 I'm sorry to bother you all with this silly question but can someone please
tell me how to unsubscibe from this list?

I've tried sending countless emails to
[EMAIL PROTECTED] but that does not seem to work.
As I share this email with my wife, you can imagine her 'amused' look when
the whole screen is filled with Struts mails! :(
Thanks.
   
   Have you ever heard of filtering?  Maybe you should look into that
   and you won't need to unsubscribe so desperately.
  
  I think what Dan was 'really trying to say' is that you should:
  1. send a blank message to [EMAIL PROTECTED]
  (using the same email address you used to subscribe)
  2. wait until the confirmation comes and then reply to that email.
 
 Yes, that about sums it up.  But you have to wonder, with all those
 great tools...
 
 Dan
 
 -- 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 I'm old enough to know better, but still too young to care.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 -
 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]
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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



Re: error in my struts config

2003-03-24 Thread asatrasala
Yes, it works for me in resin too.  I didn't try tomcat

[EMAIL PROTECTED] wrote:

i did that too... the thing is... my web app works in Resin.

but when i try to run it under tomcat i always get the errors.

i don't know what's really hapenning... can someone enlighten me...

thanks a lot
- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 4:45 PM
Subject: Re: error in my struts config
 

Hello Richard,

I'm not sure if it is allowed to give the stuts-configs as comma delimited
parameters. Try the following in your web.xml
init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config-tm.xml/param-value
   /init-param
   init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
   /init-param
init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config-manager.xml/param-value
   /init-param
Konstnatina



- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 8:17 AM
Subject: error in my struts config
My web-app is working fine in resin but when i switched to tomcat i got
   

this
 

error.

2003-03-24 14:13:57 StandardContext[/]: Servlet / threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path
/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
at
   

org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
 

52)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
   

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
 

4)
at
   

org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 

at

   

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
 

3420)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
   

org.apache.catalina.core.StandardService.start(StandardService.java:497)
 

at
   

org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 

at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
   

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 

)
at
   

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 

.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

my web.xml looks like this
.
   init-param
 param-nameconfig/param-name
 param-value
   

/WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-con
 

fig-manager.xml
  /param-value
   /init-param

it works fine in resin but this seems not allowed in tomcat...
guys, what do you think is the error.

thanks a lot...

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

--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



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


RE: Nesting tile definitions

2003-03-24 Thread Tai Nguyen
Logic tags will not work because they get evaluated after Tiles tags.  If
you define your default values at the parent definition level
(.standardPage), you would only need to specify override attributes in
child definitions.  The values you specify in .standardPage.header are
overridden in any case, so you can leave them blank.  So, if you had:

definition name=.standardPage
path=/WEB-INF/common/layouts/standardLayout.jsp
   put name=title   value=NO TITLE DEFINED /
   put name=header  value=.standardPage.header /
   put name=footer  value=/WEB-INF/common/footer.jsp /
   put name=content value=NO CONTENT DEFINED /
   put name=right   value=/WEB-INF/common/common-right.jsp/
   put name=leftvalue=/WEB-INF/common/common-left.jsp/
/definition

Then you could have:

definition name=page1 
extends=.standardPage
  put name=title value=Page 1/
  put name=content value=/WEB-INF/pages/page1.jsp/
/definition

definition name=page2 
extends=.standardPage
  put name=title value=Page 2/
  put name=content value=/WEB-INF/pages/page2.jsp/
  put name=right  value=/WEB-INF/common/other-right.jsp/
/definition

-Original Message-
From: Kevin Cramer [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 2:04 AM
To: Struts Users Mailing List
Subject: Re: Nesting tile definitions



I don't think I explained it very well.  As I understand it I would do
the following using the method you mentioned below:

definition name=page1 
extends=.standardPage
  put name=title value=Page 1/
  put name=content value=/WEB-INF/pages/page1.jsp/
  put name=right  value=/WEB-INF/common/common-right.jsp/
  put name=left  value=/WEB-INF/common/common-left.jsp/
/definition

definition name=page2 
extends=.standardPage
  put name=title value=Page 2/
  put name=content value=/WEB-INF/pages/page2.jsp/
  put name=right  value=/WEB-INF/common/other-right.jsp/
  put name=left  value=/WEB-INF/common/common-left.jsp/
/definition

This allows me to change the values of left and right at the
highest/page level.  In my application the value of right and left is
usually a certain value and in a few cases they are overriden.  That
is why I was wondering if there is anyway I could have this work:

definition name=page1 
extends=.standardPage
  put name=title value=Page 1/
  put name=content value=/WEB-INF/pages/page1.jsp/
/definition

definition name=page2 
extends=.standardPage
  put name=title value=Page 2/
  put name=content value=/WEB-INF/pages/page2.jsp/
  put name=right  value=/WEB-INF/common/other-right.jsp/
/definition

definition name=.standardPage.header 
path=/WEB-INF/common/header.jsp
  put name=bar  value=.standardPage.header.bar/
  put name=right  value=/WEB-INF/common/common-right.jsp/
  put name=left  value=/WEB-INF/common/common-left.jsp/
/definition

In the above, I only specify the right and left in the page
definitions where it differs from the usual values which are defined
in .standardPage.header.  Is it possible to do this?  I had no luck
messing around with the tiles:put tags and the logic tags.  I thought
I could conditionally do the tiles:put using the logic:present tag to
see if right and left were set.  This is what I tried but it didn't
work:

tiles:insert attribute=bar
logic:present name=right
tiles:put name=right  beanName=right beanScope=tile
/
/logic:present
logic:present name=left
tiles:put name=left beanName=left beanScope=tile /
/logic:present
/tiles:insert

I tried various settings and changing the scope on the logic:present
but I could not figure out how to detect if the tile definition
included the attribute right or left.

Thanks,
Kevin

On Mon, Mar 24, 2003 at 12:45:21AM -0500, Tai Nguyen wrote:
 Kevin,
 
 I'm pretty sure that once you have the attribute inheritance set up, it
 won't be possible to override the attribute at a lower level.  However, if
I
 get you right, you could simply define a child definition for page2 which
 extends .standardPage.  In short, it shouldn't matter at what level you
 override an attribute.
 
 Tai
 
 -Original Message-
 From: Kevin Cramer [mailto:[EMAIL PROTECTED]
 Sent: Sunday, March 23, 2003 9:48 PM
 To: Struts Users Mailing List
 Subject: Re: Nesting tile definitions
 
 
 
 Thank you.  I have this working.  The side effect is that it would
 require me to define all the attributes at the highest level.  What if
 I would like to define the attributes at a lower level and then
 override it when it changes for a certain page?  In my example I would
 like to define right at the .standardPage.header or
 .standardPage.header.bar level and override it for page2.
 
 I tried using logic:present name=right/ tags around the tiles:put
 you specified below but that didn't help.  It seems that when you use
 the tiles:put it overrides that attribute in the subtiles.  If the
 attribute is not defined at the 

Re: [newbie] findDataSource deprecated?

2003-03-24 Thread David Graham
ive never implemented a type what is that all about ??
It allows you to specify a class that implements javax.sql.DataSource.  If 
you don't supply one, Struts uses a default implementation.  See the struts 
dtd for more details.

David





On Monday 24 March 2003 3:08 pm, Johan Wasserman wrote:
 Yep! My mistake, I've been brainbusting so much about getting a database
 connection it seems there's not much left to get the versions right ;-)

 I'm on Struts 1.1-rc1, downloaded last Friday.

 Nope, I haven't yet got a connection.  Thank you for the other REALY
 VALUBLE information, I was clearly way off the best practice road.

 If it's at all possible for you to help, here's my situation.

 I'm running postgresql.
 Datapool configured in struts-config:

 data-sources
   data-source type=org.apache.commons.dbcp.BasicDataSource
 set-property=key value=logindb/
 ... lotsa more properties ...
   /data-source
   data-source type=org.apache.commons.dbcp.BasicDataSource
 set-property=key value=userdb/
 ... lotsa more properties ...
   /data-source
 /data-sources

 Now for the life of me! I just cannot (or will not? Lng hours), get
 any code written to connect to one of the pools.

 Any help will do.

 Thanks again for your previous reply David.
 Regards,
 Johan Wasserman

 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: 24 March 2003 16:52
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] findDataSource deprecated?

 Well, there is no 1.1 RC3 so you must be referring to 1.1 beta 3.  It
 looks
 like others have answered your original question but I wanted to talk
 about
 your Database class.  You should never return a ResultSet into your
 Action
 or form classes as it maintains an open database connection.  You need
 to
 copy the results into a class like ResultSetDynaClass
 http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanu
 tils/RowSetDynaClass.html

 so the db connection can be closed.  Also, exposing SQL to your actions
 tightly couples them to any changes you make to your database schema.  A

 useful pattern used to prevent this is called Data Access Object
 http://developer.java.sun.com/developer/restricted/patterns/DataAccessOb
 ject.html

 David

 Hi,
 Im just now converting to rc1.3 and find that findDataSource is
 deprecated.  How do you find one of many datasources?
 
 FYI:
 --
 I have a separate class called Database with method runQuery that
 returns a resultset to my ActionForm class, I only pass DBName and
 QueryString as parameters.  So my previous code where:
 In ActionForm:
 ResultSet rs = Database.runQuery(logondb, select username, password
 from users where username = ' + uname + ');
 
 Many thanks in advance.
 Johan Wasserman.

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


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


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


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


question about html:rewrite

2003-03-24 Thread Dan Allen
Is there any reason why action is missing from html:rewrite?
Since html:rewrite is just the abtracted part of generating the href
for an html:link, it would seem to me like it too should have an
action attribute.  Am I wrong?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
The Linux philosophy is to laugh in face of danger.  Oops. 
Wrong one. 'Do it yourself' That's it 
 -- Linus Torvalds
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: [friday] NEWBIE - unsubscription help

2003-03-24 Thread Dan Allen

 I agree.  I've heard on a few other lists that the
 subscription/unsubscription process can act like 'Hotel Apache' on
 occasion.  You can unsubscribe, but you can NEVER LEAVE!!!  
 BWAHAHAHAHAHAHA
Put that one in the top ten for this year!

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Real programmers just hate to get up in the morning, and 
contrary to Ordinary People, they're in better shape as 
it gets closer to nighttime.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



[OT] jsptag question

2003-03-24 Thread Dan Allen
Is it possible to add a tag onto an existing tag library without
adjusting the original *.tld file?  What I mean is, in a second
*.tld file, would it be possible to specify that it extends a set of
tags and then add one or two of your own.  Or do you have to use
seperate prefixes for the new set of tags.  The idea of course would
be to add a custom tag which extended a tag library such as html,
so on the same page you could use

html:link

and

html:mytag

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
[Frodo]: He deserves death. 
[Gandalf]: Deserves it! I daresay he does. Many that live 
deserve death. And some that die deserve life.  Can you give 
it to them?  Then do not be too eager to deal out death in 
judgement. For even the very wise cannot see all ends.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: take over an existing HttpSession

2003-03-24 Thread Vic Cekvenich
Read up on session fail over (based on db fail over most likely)

.V

Dmitri Ilyin wrote:
Hi,

i'm may be out of topic. But i think there are a lot of gurus here they
could help me.
I have to implement one feature in my application for that there is may be
already a solution here.
Szenario:
A user logged on in application. He dose some  work, dosn't  logged out and
goes to another workstation. In new workstation he logged in application
again with the same userID. The user must get in the application an exactly
the same place and have the same data from his last workstation and his last
session must be invalidated.  So the user must take over his last session.
any ideas??

thanks for any advise

regards Dmitri


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


struts Internationalization and fonts for jsp

2003-03-24 Thread Ashish Kulkarni
Hi,

I have to build a website which can  be viewed in
multiple languages, I am using properties to file to
get the text in different languages , but how do
people select different font for different languages, 
What i was thinking was to have a property called font
in properties file and have fonts coded for different
languages, 
like my.properties (default english) will have 
font=Verdana, Arial, Helvetica, sans-serif

any suggestion on achieveing this

Ashish


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: question about html:rewrite

2003-03-24 Thread James Mitchell
On Mon, 2003-03-24 at 10:46, Dan Allen wrote:
 Is there any reason why action is missing from html:rewrite?
 Since html:rewrite is just the abtracted part of generating the href
 for an html:link, it would seem to me like it too should have an
 action attribute.  Am I wrong?

Actually, that's a good question.  From the tests I've been writing
lately it seems that action *should* be allowed for this tag.

Also, from looking at the source (just now) it seems that this feature
may have been overlooked since the tag is calling the deprecated
computeURL instead of the newer one that allows you to specify an action
(where the previous version did not).

Can you submit an enhancement request in Bugzilla so we don't loose
track of this?

 
 Dan
 
 -- 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 The Linux philosophy is to laugh in face of danger.  Oops. 
 Wrong one. 'Do it yourself' That's it 
  -- Linus Torvalds
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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



[OT] Struts jobs

2003-03-24 Thread MagnaWorks
My apologies for straying off-topic.  I am curious about the job hunting 
resources used by this community.

Where do you go to find a Struts-related job?

M Williamson

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


Re: question about html:rewrite

2003-03-24 Thread David Graham
It has a forward attribute which can point to an action.  The standard JSTL 
c:url tag provides much of the same functionality as html:rewrite.

David



From: Dan Allen [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts-User List [EMAIL PROTECTED]
Subject: question about html:rewrite
Date: Mon, 24 Mar 2003 09:46:40 -0600
Is there any reason why action is missing from html:rewrite?
Since html:rewrite is just the abtracted part of generating the href
for an html:link, it would seem to me like it too should have an
action attribute.  Am I wrong?
Dan

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The Linux philosophy is to laugh in face of danger.  Oops.
Wrong one. 'Do it yourself' That's it
 -- Linus Torvalds
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


Re: [OT] jsptag question

2003-03-24 Thread David Graham
I think you would have to add your tag to the html taglib's tld.

David



From: Dan Allen [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts-User List [EMAIL PROTECTED]
Subject: [OT] jsptag question
Date: Mon, 24 Mar 2003 09:52:20 -0600
Is it possible to add a tag onto an existing tag library without
adjusting the original *.tld file?  What I mean is, in a second
*.tld file, would it be possible to specify that it extends a set of
tags and then add one or two of your own.  Or do you have to use
seperate prefixes for the new set of tags.  The idea of course would
be to add a custom tag which extended a tag library such as html,
so on the same page you could use
html:link

and

html:mytag

Dan

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Frodo]: He deserves death.
[Gandalf]: Deserves it! I daresay he does. Many that live
deserve death. And some that die deserve life.  Can you give
it to them?  Then do not be too eager to deal out death in
judgement. For even the very wise cannot see all ends.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Re: struts Internationalization and fonts for jsp

2003-03-24 Thread David Graham
That looks like a good approach.  You can write a css block at the top of 
the page with the font from your properties file.

David



From: Ashish Kulkarni [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: struts Internationalization and fonts for jsp
Date: Mon, 24 Mar 2003 07:57:00 -0800 (PST)
Hi,

I have to build a website which can  be viewed in
multiple languages, I am using properties to file to
get the text in different languages , but how do
people select different font for different languages,
What i was thinking was to have a property called font
in properties file and have fonts coded for different
languages,
like my.properties (default english) will have
font=Verdana, Arial, Helvetica, sans-serif
any suggestion on achieveing this

Ashish

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


Re: Struts 1.1 w/ WSAD 5.0

2003-03-24 Thread Atchutuni, Raju (MAN-Corporate)
Tiles plugin doesn't work in WSAD 5.0. Here is the entry for
plugin in struts-config.xml.

plug-in className=org.apache.struts.tiles.TilesPlugin 
  set-property property=definitions-config
value=/WEB-INF/tiles-defs.xml/
  /plug-in

  action path=/logon
type=org.apache.struts.webapp.example.LogonAction
  name=logonForm scope=session validate=true
input=/logon.jsp
  exception key=error.database.missing  path=/logon.jsp
type=java.lang.Exception/
  forward  name=success
path=/definitions/test-defenition.jsp/
  /action


Error Message :
  Invalid data for attribute property in part
definitions-config type set-property

Since i am getting the error i had to look for work around and
code my tile def in jsp file.
Can any one tell me what is wrong with WSAD 5.0







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



Re: [OT] Struts jobs

2003-03-24 Thread James Mitchell
On Mon, 2003-03-24 at 10:58, MagnaWorks wrote:
 My apologies for straying off-topic.  I am curious about the job hunting 
 resources used by this community.
 
 Where do you go to find a Struts-related job?

Glad you asked.  I am also looking for a job.  I've been using
computerjobs.com, monstor.com, dice.com.

The sad thing is that there just aren't that many jobs out there.  I'm
hoping (eventually) to get together a list for our Struts-Atlanta users
group meetings...

shameless-plug
http://struts.sourceforge.net/struts-atlanta/
/shameless-plug

... so that we can post new Atlanta opportunities on our web site as
they come up.

Good luck with it!

 
 M Williamson
 
 

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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



Re: Struts 1.1 w/ WSAD 5.0

2003-03-24 Thread David Graham
I got the same error but it had no effect on my app.  It runs fine.

David



From: Atchutuni, Raju (MAN-Corporate) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Re: Struts 1.1 w/ WSAD 5.0
Date: Mon, 24 Mar 2003 11:10:39 -0500
Tiles plugin doesn't work in WSAD 5.0. Here is the entry for
plugin in struts-config.xml.
plug-in className=org.apache.struts.tiles.TilesPlugin 
  set-property property=definitions-config
value=/WEB-INF/tiles-defs.xml/
  /plug-in
	  action path=/logon
type=org.apache.struts.webapp.example.LogonAction
  name=logonForm scope=session validate=true
input=/logon.jsp
  exception key=error.database.missing  
path=/logon.jsp
type=java.lang.Exception/
  forward  name=success
path=/definitions/test-defenition.jsp/
	  /action

Error Message :
  Invalid data for attribute property in part
definitions-config type set-property
Since i am getting the error i had to look for work around and
code my tile def in jsp file.
Can any one tell me what is wrong with WSAD 5.0






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


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

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


RE: struts Internationalization and fonts for jsp

2003-03-24 Thread Mick . Knutson
I am writing a multi-lingual APP and I did not think I had to worry about fonts.
Can someone please explain to me what about fonts I actually have to worry about?

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: struts Internationalization and fonts for jsp


That looks like a good approach.  You can write a css block at the top of 
the page with the font from your properties file.

David



From: Ashish Kulkarni [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: struts Internationalization and fonts for jsp
Date: Mon, 24 Mar 2003 07:57:00 -0800 (PST)

Hi,

I have to build a website which can  be viewed in
multiple languages, I am using properties to file to
get the text in different languages , but how do
people select different font for different languages,
What i was thinking was to have a property called font
in properties file and have fonts coded for different
languages,
like my.properties (default english) will have
font=Verdana, Arial, Helvetica, sans-serif

any suggestion on achieveing this

Ashish


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



RE: Form not populating from post to struts.

2003-03-24 Thread Trieu, Danny
Jsessionid is being generated by the html:form/ tag.  The problem is in
your form bean implementation of the indexed property named 'signals'.  In
your form bean you didn't implement your 'signals' property as indexed
property correctly.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 6:43 AM
To: [EMAIL PROTECTED]
Subject: RE: Form not populating from post to struts.


I know that, but simply I've never had to pass that info using a form. :-]
Why do you put the session id in the form?

 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 3:29 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: Form not populating from post to struts.
 
  jsessionid=XXX is the browsers way of passing session info..And it is 
 not passed as a normal üparameter(some.do?jsessionid=XXX)..So what u 
 have suggested will not work..
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 24, 2003 3:22 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Form not populating from post to struts.
 
 
 Try this:
   
 action=/strutscx/signal.do?jsessionid=8AF18163C316123869B5EFBFAD6BC91
 2
 
 
  -Original Message-
  From:   Simon Kelly [SMTP:[EMAIL PROTECTED]
  Sent:   Monday, March 24, 2003 3:18 PM
  To: Struts Users Mailing List
  Subject:Form not populating from post to struts.
  
  Hi all,
  
  Cannot for the life of me spot the problem here.
  
  Could someone check the following and see if there is an obvoius 
  error that would mean struts wouldn't populate the form.
  
  Cheers
  
  Simon
  
  Form, stripped from the html:
  
  [snip]
  form name=signalSelectForm 
  action=/strutscx/signal.do;jsessionid=8AF18163C316123869B5EFBFAD6BC
  912
  method=post
  [snip]
  input value=fp1v1 name=tables type=checkbox
  [snip]
  input value=fp1v1.eg1_hv_01 name=signals type=checkbox -
  eg1_hv_01br
  input value=fp1v1.eg1_mag_01 name=signals type=checkbox -
  eg1_mag_01br
  input value=fp1v1.eg1_mag_02 name=signals type=checkbox -
  eg1_mag_02br
  [snip]
  input value=submit type=submit
  
  
  Form and action-mapping from struts-conf.xml: 
   [snip]
  form-bean name=signalSelectForm
  type=com.katrin.presentation.actionform.SignalSelectForm
  /form-bean
  [snip]
  action path=/signal
  name=signalSelectForm
  scope=request
  validate=false
  type=com.katrin.presentation.action.SignalSelectAction
  forward name=success path=/StrutsCXServlet /
  /action
  
  Form:
  =
  
  public class SignalSelectForm extends ActionForm{
  
  private ArrayList tables = new ArrayList();
  private String startDate;
  private String endDate;
  private String dateSearchType;
  private ArrayList signals = new ArrayList();
  
  public void setTables(String newtable) {
  this.tables.add(newtable);
  }
  
  public void setStartDate(String date) {
  this.startDate = new String(date);
  }
  
  public void setEndDate(String date) {
  this.endDate = new String(date);
  }
  
  public void setDataSearchType(String type) {
  this.dateSearchType = new String(type);
  }
  
  public void setSignals(String newsignal) {
  this.signals.add(newsignal);
  }
  
  public ArrayList getTables() {
  return this.tables;
  }
  
  public String getStartDate() {
  return this.startDate;
  }
  
  public String getEndDate() {
  return this.endDate;
  }
  
  public String getDataSearchType() {
  return this.dateSearchType;
  }
  public ArrayList getSignals() {
  return this.signals;
  }
  
  public void reset() {
  this.tables.clear();
  this.startDate = new String();
  this.endDate = new String();
  this.dateSearchType = new String();
  this.signals.clear();
  }
  }
  
  Institut fuer
  Prozessdatenverarbeitung
  und Elektronik,
  Forschungszentrum Karlsruhe GmbH,
  Postfach 3640,
  D-76021 Karlsruhe,
  Germany.
  
  Tel: (+49)/7247 82-4042
  E-mail : [EMAIL PROTECTED]
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 IMPORTANT:
 This e-mail transmission is intended for the named addressee(s) only. 
 Its contents are private, confidential and protected from disclosure and
 should not be read, copied or disclosed by any other person. 
 If you are not the intended recipient, we kindly ask you to notify the
 sender immediately by telephone (+41-91-612 26 11), 
 to redirect the message to the account [EMAIL PROTECTED] and to delete
 this
 e-mail. 
 E-mail transmissions may be intercepted, altered or read by unauthorized
 persons and may contain viruses. Therefore, 

RE: French Font in PDF (OT)

2003-03-24 Thread Yan, Charlene
Thank you for replying.  I'm not using FOP, so I can't use your stylesheet.  Thanks 
anyway.  

The support guy just emailed me and said that my data bean that I used to write the 
report content needs to use unicode character-set to encode the text.  How can I check 
the character set of my data bean?  

Thanks.

Charlene

-Original Message-
From: Enrico Donelli [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 10:19 AM
To: Struts Users Mailing List
Subject: Re: French Font in PDF (OT)


I had a similar problem with italian, using the FOP transformation.
I don't know if this can help, but I solved definining in the xsl used 
to create the fo document the entities, like:

!DOCTYPE xsl:stylesheet [
!ENTITY aacute #225;
!ENTITY agrave #224;
!ENTITY copy   #169;
  ]

and then using the defined entities .

Hope it helps.

Best regards
Enrico


Yan, Charlene wrote:

All,

I use a third party Java library to create PDF report.  Everything works fine except 
that some French products are not displayed correctly.  Please look at the following:

LSW Product Description in PDF Report:
Ce cours, premier d'une s?rie constitu?e de deux parties, permet d'acqu?rir les 
connaissances essentielles ? la planification et ? la mise en oeuvre des strat?gies 
de sauvegarde et de restauration d'une base de donn?es. Dans ce cours, les 
utilisateurs prendront connaissance des objectifs de sauvegarde et de restauration et 
identifieront les fonctions des structures et des processus de l'architecture Oracle. 
Ils apprendront ?galement ? g?rer le processus d'archivage et ? mettre ? jour un 
catalogue de restauration. Ce cours pr?sente ?galement les concepts li?s ? 
l'ex?cution de sauvegardes physiques avec ou sans l'utilitaire Recovery Manager 
(RMAN).

LSW Product Description:  OK
Ce cours, premier d'une série constituée de deux parties, permet d'acquérir les 
connaissances essentielles à la planification et à la mise en oeuvre des stratégies 
de sauvegarde et de restauration d'une base de données. Dans ce cours, les 
utilisateurs prendront connaissance des objectifs de sauvegarde et de restauration et 
identifieront les fonctions des structures et des processus de l'architecture Oracle. 
Ils apprendront également à gérer le processus d'archivage et à mettre à jour un 
catalogue de restauration. Ce cours présente également les concepts liés à 
l'exécution de sauvegardes physiques avec ou sans l'utilitaire Recovery Manager 
(RMAN). 

I know we have a lot of French users on the list.  The third party lib user guides 
says that it supports Western European language.  I', still investigating it.  I may 
have to specify a TrueType font that can display both English and French.  I don't 
know and have never used/typed any French words.  Any insights on this?  TIA!

Charlene

-
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: Struts 1.1 w/ WSAD 5.0

2003-03-24 Thread Susan Bradeen
Same here ... my app does not seem to be affected either.

Susan Bradeen




David Graham [EMAIL PROTECTED]
03/24/2003 11:15 AM
Please respond to Struts Users Mailing List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Re: Struts 1.1 w/ WSAD 5.0


I got the same error but it had no effect on my app.  It runs fine.

David



From: Atchutuni, Raju (MAN-Corporate) [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Re: Struts 1.1 w/ WSAD 5.0
Date: Mon, 24 Mar 2003 11:10:39 -0500

Tiles plugin doesn't work in WSAD 5.0. Here is the 
entry for
plugin in struts-config.xml.

plug-in 
className=org.apache.struts.tiles.TilesPlugin 
  set-property 
property=definitions-config
value=/WEB-INF/tiles-defs.xml/
  /plug-in

  action path=/logon
type=org.apache.struts.webapp.example.LogonAction
   name=logonForm scope=session validate=true
input=/logon.jsp
   exception key=error.database.missing 
path=/logon.jsp
type=java.lang.Exception/
   forward  name=success
path=/definitions/test-defenition.jsp/
  /action


Error Message :
  Invalid data for attribute property in part
definitions-config type set-property

Since i am getting the error i had to look for work 
around and
code my tile def in jsp file.
Can any one tell me what is wrong with 
WSAD 5.0







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



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


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





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



RE: [OT] jsptag question

2003-03-24 Thread Karr, David
No, you cannot directly extend a TLD.  However, you can write a second
TLD that is a copy of the original one, which uses all the same tags and
classes, but adds an additional tag and class.  In your JSP page, you
could use the same prefix, but change the URI on your taglib tag to
point to the other TLD.

 -Original Message-
 From: Dan Allen [mailto:[EMAIL PROTECTED]
 
 Is it possible to add a tag onto an existing tag library without
 adjusting the original *.tld file?  What I mean is, in a second
 *.tld file, would it be possible to specify that it extends a set of
 tags and then add one or two of your own.  Or do you have to use
 seperate prefixes for the new set of tags.  The idea of course would
 be to add a custom tag which extended a tag library such as html,
 so on the same page you could use
 
 html:link
 
 and
 
 html:mytag

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



RE: struts Internationalization and fonts for jsp

2003-03-24 Thread David Graham
I think he just wants to use a different font for each language.  You 
shouldn't need to worry about it.

David



From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: struts Internationalization and fonts for jsp
Date: Mon, 24 Mar 2003 17:16:01 +0100
I am writing a multi-lingual APP and I did not think I had to worry about 
fonts.
Can someone please explain to me what about fonts I actually have to worry 
about?

  _

Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _


-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: struts Internationalization and fonts for jsp
That looks like a good approach.  You can write a css block at the top of
the page with the font from your properties file.
David



From: Ashish Kulkarni [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: struts Internationalization and fonts for jsp
Date: Mon, 24 Mar 2003 07:57:00 -0800 (PST)

Hi,

I have to build a website which can  be viewed in
multiple languages, I am using properties to file to
get the text in different languages , but how do
people select different font for different languages,
What i was thinking was to have a property called font
in properties file and have fonts coded for different
languages,
like my.properties (default english) will have
font=Verdana, Arial, Helvetica, sans-serif

any suggestion on achieveing this

Ashish


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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

_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


RE: Request Attributes + Iframe

2003-03-24 Thread Trieu, Danny
Wait a minute,  You are putting something into the request and do a
sendredirect afterward to a JSP.  This mean whatever you put in the request
is lost when your new request get to your JSP.

-Original Message-
From: Vinh Tran [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 5:43 AM
To: Struts Users Mailing List
Subject: RE: Request Attributes + Iframe


You will need to call a separate Action for the iframe src. Short of loading
up your session that's the only way I came up with.

Vinh

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 8:30 AM
To: [EMAIL PROTECTED]
Subject: Request Attributes + Iframe


Hi Guys,

I've got an action which pops a java bean into the request... the action
redirects to a jsp which in turn contains an Iframe...

How do get a handle on the java bean from within the jsp which is the src
for my iframe i don't want to send all the parameters in the url to the
iFrame source jsp... is there another way i can do this??





_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


-
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: question about html:rewrite

2003-03-24 Thread James Mitchell
On Mon, 2003-03-24 at 11:00, David Graham wrote:
 It has a forward attribute which can point to an action.  The standard JSTL 
 c:url tag provides much of the same functionality as html:rewrite.
 
 David
 

That's true, but I think this could be accomplished with minimal effort.
After reviewing the code, this field already belongs to LinkTag which
RewriteTag extends so adding this would be 1 line change in RewriteTag
(calling the updated RequestUtils.computeURL() and add the attribute to
the struts-html.xmldone.

I haven't reached the rewrite tag yet (cactus tests) so I would have to
make a special effort to verify that it actually is that simple.

Your thoughts?

 
 
 From: Dan Allen [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts-User List [EMAIL PROTECTED]
 Subject: question about html:rewrite
 Date: Mon, 24 Mar 2003 09:46:40 -0600
 
 Is there any reason why action is missing from html:rewrite?
 Since html:rewrite is just the abtracted part of generating the href
 for an html:link, it would seem to me like it too should have an
 action attribute.  Am I wrong?
 
 Dan
 
 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 The Linux philosophy is to laugh in face of danger.  Oops.
 Wrong one. 'Do it yourself' That's it
   -- Linus Torvalds
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.  
 http://join.msn.com/?page=features/featuredemail
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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



FW: Problem while accessing a JSP page

2003-03-24 Thread Lucas Claude
 I implement a struts WEB application and I have an error while accessing
 the following JSP index page :
 
 %@ taglib uri=/WEB-INF/tld/struts-logic.tld prefix=logic %
 logic:forward name=welcome/
 
 Error : 
 org.apache.jasper.compiler.CompileException: /index.jsp(4,0) Unable to
 load class org.apache.struts.taglib.logic.ForwardTag
 
 However, the file struts.jar (containing the forward tag class) is present
 in the WEB-INF/lib directory of my web app.
 
 What I am missing?
 
 Thanks by advance,
 Claude
 
 
 --
 -- 
 As of February 12th, 2003 Thomson unifies its email addresses on a
 worldwide basis. 
 Please note my new email address: [EMAIL PROTECTED] 
 
 http://www.thomson.net/ 
 


Re: question about html:rewrite

2003-03-24 Thread David Graham
I don't mind if the attribute gets added but *not* for 1.1.  There are some 
simple features I've been tempted to add but we need to keep the code 
freeze in place.  We've got 0 open bug reports!

David



From: James Mitchell [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: question about html:rewrite
Date: 24 Mar 2003 11:31:07 -0500
On Mon, 2003-03-24 at 11:00, David Graham wrote:
 It has a forward attribute which can point to an action.  The standard 
JSTL
 c:url tag provides much of the same functionality as html:rewrite.

 David


That's true, but I think this could be accomplished with minimal effort.
After reviewing the code, this field already belongs to LinkTag which
RewriteTag extends so adding this would be 1 line change in RewriteTag
(calling the updated RequestUtils.computeURL() and add the attribute to
the struts-html.xmldone.
I haven't reached the rewrite tag yet (cactus tests) so I would have to
make a special effort to verify that it actually is that simple.
Your thoughts?



 From: Dan Allen [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts-User List [EMAIL PROTECTED]
 Subject: question about html:rewrite
 Date: Mon, 24 Mar 2003 09:46:40 -0600
 
 Is there any reason why action is missing from html:rewrite?
 Since html:rewrite is just the abtracted part of generating the href
 for an html:link, it would seem to me like it too should have an
 action attribute.  Am I wrong?
 
 Dan
 
 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 The Linux philosophy is to laugh in face of danger.  Oops.
 Wrong one. 'Do it yourself' That's it
   -- Linus Torvalds
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


 _
 Add photos to your messages with MSN 8. Get 2 months FREE*.
 http://join.msn.com/?page=features/featuredemail


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org


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


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


  1   2   3   >