Re: Using tag with nested beans

2004-01-20 Thread Arron Bates
Jerry,

Try using  tags to make bean references that the display tags
could then get a hold of and use. Otherwise, there would be no other way
unless the display tag source code was updated to recognise and use the nested
context.

Hope this does the trick.


Arron.



> I'm trying to get the  tag library to work with my nested bean
> structure without much luck, and after screwing around with this for 
> the past three days, I'm ready to throw in the towel.  If anyone can 
> see what it is I'm doing wrong, I'd appreciate it.
> 
> Basically I've got the following (currently):
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> This works fine, as I get the values for item1, item2, etc.  I now 
> need to replace the last  with a  
> tag with appropriate 's.  I've tried several 
> things, including:
> 
>   
>   
>   
> 
> I've also tried to set a page-scope object on the 'list2' iterate:
> 
>   
>   
>   
> 
> Whatever I try I am consistently getting a JSP exception thrown of 
> 
> ERROR 01/19/2004:12:07:51 - Error looking up property "specimenId" 
> in object type "java.lang.String" Exception: [.LookupUtil] Error 
> looking up property "specimenId" in object type "java.lang.String" 
> Cause: Unknown property 'specimenId'
> 
> from 
> 
> org.displaytag.util.LookupUtil.getBeanProperty(LookupUtil.java:210)
>   at org.displaytag.model.Column.getValue(Column.java:93)
>   at
> org.displaytag.model.Column.createChoppedAndLinkedValue(Column.java:144)  at
org.displaytag.model.Column.getOpenTag(Column.java:120) at
org.displaytag.tags.TableTag.getHTMLData(TableTag.java:1136)at
org.displaytag.tags.TableTag.doEndTag(TableTag.java:847)
> 
> Help!  I'm at my wits end on this.  Any ideas?  Or will the 
>  taglib just not work with nested beans?
> 
> Thanks!
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the individual or 
> entity to which it is addressed. If you are not the intended 
> recipient or the person responsible for delivering the transmission 
> to the intended recipient, be advised that you have received this 
> transmission in error and that any use, dissemination, forwarding, 
> printing, or copying of this information is strictly prohibited. If 
> you have received this transmission in error, please immediately notify
> LabOne at the following email address: [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: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread Adam Hardy
Does anybody have any ideas on this? Even wild, stupid, ridiculous 
ideas. Anything?

On 01/19/2004 07:02 PM Adam Hardy wrote:
Actually I just did get access to a third server and did a complete 
fresh install of java & tomcat and my app.war, and the ghost German 
strings came up.

So the German strings must be in the war file. But there is only the one 
ApplicationResources.properties file there in the war file! I just checked.

Again, deleting or adding the German locale to the browser settings 
makes the strings change, so it is definitely the resource bundles.

On 01/19/2004 06:17 PM Adam Hardy wrote:

Yes, unfortunately it does. On my dev machine and my future production 
server. But I had them both running earlier with the German 
.properties, so it would be the same problem. I don't have a third 
server to test it on.

On 01/19/2004 05:54 PM Tim Kettering wrote:

Does the same thing happen when you build/run the webapp on a different
computer? Not sure what to tell you here, but that should at least
narrow the scope to something in the source or some ghost file on your
dev machine.
-tim

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 
Monday, January 19, 2004 11:35 AM
To: Struts Users Mailing List
Subject: deleted ApplicationResources_de.properties ghost

I'm having a nightmare with the ApplicationResources_de.properties 
resource bundle in my webapp. I asked a colleague to look at it and he's

baffled too.

I had my resource bundle in an English and also a German .properties 
file, for testing purposes, but then decided to ditch the German version

until it's completely finished.

Even though I deleted the German xxx_de.properties file, shutdown 
tomcat, deleted the whole webapp and redeployed and deleted the cache in

$CATALINA_HOME/work/ , the German strings are still being cached 
somewhere.

I have run a grep on a German string to find it in any file in the whole

of the tomcat, and the whole of my dev-env, but haven't found it.

In the HTTP headers, I have set pragma=no-cache, 
cache-control=no-cache & expires=Thu, 01 Jan 1970 00:00:00 GMT

I have cleared the cache from my browser and done refreshes a 
thousand times. This is now about a month afterwards and the ghost 
German text is

still coming up.

If I set the browser locale to en, then I get the correct English 
version, but if I then set it back to de, somehow, somewhere it is 
finding the deleted German resource bundle.

Any advice much appreciated. :(

Adam








--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Adam Hardy
Hi Greg,
I'm using the same setup as you, except I use the straight 
org.apache.struts.action.SecurePlugIn and it works.

Haven't seen that exception before.

Adam

On 01/19/2004 09:06 PM Greg Hess wrote:
Hi All,

 

I am having difficulty integrating the sslext11 plug-in with Struts 1.1 
using Tiles.

 

I get the following error when accessing any action:

 

javax.servlet.UnavailableException

at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1169)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)

at javax.servlet.GenericServlet.init(GenericServlet.java:82)

at com.caucho.server.http.Application.createServlet(Application.java:2982)

at com.caucho.server.http.Application.loadServlet(Application.java:2941)

at com.caucho.server.http.Application.initServlets(Application.java:1841)

at com.caucho.server.http.Application.init(Application.java:1772)

at com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)

at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)

at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648)

at com.caucho.server.http.ServletServer.init(ServletServer.java:483)

at com.caucho.server.http.ResinServer.init(ResinServer.java:360)

at com.caucho.server.http.ResinServer.main(ResinServer.java:1107)

at com.caucho.server.http.HttpServer.main(HttpServer.java:103)

 

My struts-config.xml:

 



   

…



 





   processorClass="org.apache.struts.action.SecureTilesRequestProcessor"

   nocache="true"/>

 





 



  

  

value="/WEB-INF/tiles-defs.xml" />

  

  

  

 

  

  

property="pathnames"


value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,

/WEB-INF/validation.xml"/>

  

 

  

  

   

   

 

  

 



 

 

Any help is much appreciated,

 

Thanks,

 

Greg Hess

*Software Engineer*

*Wrapped Apps Corporation*

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com 



 



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread hgosper
This is one of those wild crazy ideas that you asked for...
I know you grepped but maybe didn't grep properly?

There are usually two copies of your resources files, one under your 
source directory and that is copied to your classes directory by Tomcat. 
The one in classes is actually read by the server, but the one in source 
is the one you edit because it should replace the classes one. Just check 
manually rather than grepping and see if you find the "ghost" file.

Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






Adam Hardy <[EMAIL PROTECTED]>
20/01/2004 06:12 PM
Please respond to "Struts Users Mailing List"

 
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc: 
Subject:Re: deleted ApplicationResources_de.properties ghost


Does anybody have any ideas on this? Even wild, stupid, ridiculous 
ideas. Anything?

On 01/19/2004 07:02 PM Adam Hardy wrote:
> Actually I just did get access to a third server and did a complete 
> fresh install of java & tomcat and my app.war, and the ghost German 
> strings came up.
> 
> So the German strings must be in the war file. But there is only the one 

> ApplicationResources.properties file there in the war file! I just 
checked.
> 
> Again, deleting or adding the German locale to the browser settings 
> makes the strings change, so it is definitely the resource bundles.
> 
> 
> On 01/19/2004 06:17 PM Adam Hardy wrote:
> 
>> Yes, unfortunately it does. On my dev machine and my future production 
>> server. But I had them both running earlier with the German 
>> .properties, so it would be the same problem. I don't have a third 
>> server to test it on.
>>
>> On 01/19/2004 05:54 PM Tim Kettering wrote:
>>
>>> Does the same thing happen when you build/run the webapp on a 
different
>>> computer? Not sure what to tell you here, but that should at least
>>> narrow the scope to something in the source or some ghost file on your
>>> dev machine.
>>>
>>> -tim
>>>
>>> -Original Message-
>>> From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 
>>> Monday, January 19, 2004 11:35 AM
>>> To: Struts Users Mailing List
>>> Subject: deleted ApplicationResources_de.properties ghost
>>>
>>>
>>> I'm having a nightmare with the ApplicationResources_de.properties 
>>> resource bundle in my webapp. I asked a colleague to look at it and 
he's
>>>
>>> baffled too.
>>>
>>> I had my resource bundle in an English and also a German .properties 
>>> file, for testing purposes, but then decided to ditch the German 
version
>>>
>>> until it's completely finished.
>>>
>>> Even though I deleted the German xxx_de.properties file, shutdown 
>>> tomcat, deleted the whole webapp and redeployed and deleted the cache 
in
>>>
>>> $CATALINA_HOME/work/ , the German strings are still being cached 
>>> somewhere.
>>>
>>> I have run a grep on a German string to find it in any file in the 
whole
>>>
>>> of the tomcat, and the whole of my dev-env, but haven't found it.
>>>
>>> In the HTTP headers, I have set pragma=no-cache, 
>>> cache-control=no-cache & expires=Thu, 01 Jan 1970 00:00:00 GMT
>>>
>>> I have cleared the cache from my browser and done refreshes a 
>>> thousand times. This is now about a month afterwards and the ghost 
>>> German text is
>>>
>>> still coming up.
>>>
>>> If I set the browser locale to en, then I get the correct English 
>>> version, but if I then set it back to de, somehow, somewhere it is 
>>> finding the deleted German resource bundle.
>>>
>>> Any advice much appreciated. :(
>>>
>>> Adam
>>
>>
>>
>>
> 
> 


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com





RE: getting data from form with nested beans

2004-01-20 Thread shirishchandra.sakhare
I am resending my earlier mail on this user list..Go through the sample code
and
ask me if u don't understand something.

The important portions are commented.Especially look at the jsps property
how
it is set and also the form bean.The property syntax I have used was for struts 1.0 
..But with struts 1.1 , you can have a better cleaner syntax using nested tags.But I 
have not used it...This works for 1.1 as well..



//Form Class

import java.util.ArrayList;

import java.util.List;

import org.apache.struts.action.ActionForm;

public class ExampleListForm extends ActionForm {

//A list of Emp beans

private List beanList = new ArrayList();

public List getBeanList(){

return beanList;

}

public void setBeanList(List list){

beanList = list;

}

//very imp.

//give indexed access to the beans

public Employee getEmployee(int index){

//very imp

//when a jsp is submited , then while auto populating the form,this will
ensure
that

// the  form is populated properly.

while(index >= beanList.size()){

beanList.add(new Employee());

}

return (Employee)beanList.get(index);

}

public void setEmployee(int index,Employee emp){

beanList.set(index,emp);

}

}

***

Bean class

public class Employee {

private String name;

private String salary;

/**

* Returns the name.

* @return String

*/

public String getName() {

return name;

}

/**

* Returns the salary.

* @return String

*/

public String getSalary() {

return salary;

}

/**

* Sets the name.

* @param name The name to set

*/

public void setName(String name) {

this.name = name;

}

/**

* Sets the salary.

* @param salary The salary to set

*/

public void setSalary(String salary) {

this.salary = salary;

}

}



JSP

<%@ page language="java"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>







">

">







Explanation:

See how the property is constructed.

">

So this will result in a parameter name employee[i].name in the http
request.So
when the jsp is rendered, this will be interpreted as

getEmployee[i].getName().And when the jsp is submitted , the same will be
interpreted as getEmployee[i].setName().And this will result in auto
population
of data in the form as u can see.

So check the indexed properties on the form as well.(Especially the
getEmployee(index i) proeprty with while loop.)

Hope this helps.



regards,

Shirish.


-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 6:18 PM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans


Dunno what that thread on lazy lists was but nesting beans should work  
fine, but you will need to scope any property that you want a dynamic  
size to session.

Shouldn't be anymore complicated than that.


On 19 Jan 2004, at 16:01, Martin Sturzenegger wrote:

> hi,
> concerning nested properties, i found so many questions, hints etc. in  
> the archive but nothing that really helped all the way...i'm still  
> confused (or even more now...)
> i still don't understand how struts handles input from a form that  
> holds an iteration of nested beans.
> is the following correct?
> as soon as the user submits the form, the actionform-bean, holding the  
> nested beans with the user's changes, gets transmitted.
> is it so, that before the action-class is called, the form-bean's  
> reset() method is called, and all nested beans are set to null by  
> default?
> so do i have to override the reset() method?
> what do i iterate over in the reset() method to get the user's inputs?
> how do i limit the iteration?
> does the validate() method gets called before the reset method?.
>
> i've seen examples, where a dto-class is instanciated within the  
> reset() method.
> is this the way to do it?
> do i have to access these dto-beans in the action class?
>
> could somebody give me a little example of a reset()-method, just to  
> show how the user's input can be gathered and then stored away?
>
> and.. what are lazy lists? i wasn't able to find a definition
>
> sorry about it but
>
> regards from an utterly confused martin
>
>
>
>
> -- Urspruengliche Nachricht --
> Von: <[EMAIL PROTECTED]>
> Datum:  Mon, 19 Jan 2004 10:52:10 +0100
>
>> You ahve a fixed length or Empty list in the form.So when the auto  
>> population tries to populate the nested bean for the list which is  
>> empty/fixed size,you get this exception.
>> Try to use lazy list or search the archive for nested property  
>> usage...There are many examples which will demonatrate how to use it.
>>
>> HTH.
>> regards,
>> Shirish
>>
>> -Original Message-
>> From: Martin Sturzenegger [mailto:[EMAIL PROTECTED]
>> Sent: Monday, January 19, 2004 10:46 AM
>> To: Struts Users Mailing List; [EMAIL PROTECTED]; Struts  
>> Users
>> Mailing List
>> Subject: Re: Including one JSP in ano

XML and JSP

2004-01-20 Thread Prashanth.S
Hi all,
can anyone tell me a convinient way to display,add delete elements in a xml file from 
jsp???
 
Thanks
prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

RE: Write values from html-form to ArrayList in form bean

2004-01-20 Thread shirishchandra.sakhare
See my earlier reply to the question "getting data from form with nested beans" or 
search the user archive on the above key...

regards,
Shirish

-Original Message-
From: Matthias Winkler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 4:16 AM
To: [EMAIL PROTECTED]
Subject: Write values from html-form to ArrayList in form bean


HI,

I have a form bean that passes an ArrayList which
contains objects of type LineItem. 
With the iterate-tag I iterate through retrieve every
LineItem and I use  to access the 'id'
attribute and other values of each LineItem object to
setup a html form with several checkboxes. (For the
checkboxes I use some selfmade tags.)


 

...


Now I want the values of the attribute 'checked' of
each LineItem inside the ArrayList of the form bean to
be changed according to the users selection in the
html form.
As name for the checkboxes I use the value of the 'id'
attribute of each LineItem. Right now no value changes
inside the bean.

Is it possible to do that?

Thanks a lot for your help.
Matthias

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

-
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: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Jesse Alexander (KAID 11)
Hi,

correct the web.xml
The error-message is quite clear...

regards
Alexander

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 20. Januar 2004 02:43
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [ANNOUNCE] Providers: Select solutions


Hi, 

I am getting XML parser error when running it on Tomcat 4.1.27 and
jdk1.4.0. 
Can you tell what needs to be done ??
---


SEVERE: Parse Error at line 44 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,er
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,t
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:559)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
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:2190)
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.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jan 19, 2004 8:38:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 80
Jan 19, 2004 8:38:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jan 19, 2004 8:38:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/30
config=C:\tomcat\jakarta-tomcat-4.1.27\conf\jk2.properties

-Original Message--

Struts-UML mapping rules

2004-01-20 Thread Andrius Strazdauskas
Hi,

Hopefully it is a right place for this question.
Our company is a producer of UML tool. We are in the process of adding
Struts UML profile, Struts UML modeling diagrams,etc.
Does anyone know about de facto standard mapping rules (or Struts-XMI
rules)? I couldn't find them on the web.
We can create our own ones, but there is no point in inventing the bike :)

Another question for Struts developers:
Does it make sense to model Struts PSMs? PIMs? Does the model with no
MDA-like code generation ability makes sense?

Thanks,
Andrius Strazdauskas


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



Exception at javax.servlet.ServletException: org/apache/taglibs/standard/lang/support/ExpressionEvaluatorManager

2004-01-20 Thread Parag Pattewar
Hi

Please help me to solve it.

I am getting below exception , When I try to display the menu in a jsp

In jsp I am having entry of menu as below



In menu-config I am having the entry of it as below




Exception I am getting is as below

javax.servlet.ServletException:
org/apache/taglibs/standard/lang/support/ExpressionEvaluatorManager
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:536)
at
org.apache.jsp.CustomerCareMenu_jsp._jspService(CustomerCareMenu_jsp.java:15
0)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:118)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:702)
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.ja
va:817)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:466)
at
org.apache.jsp.CustomerCareLayout_jsp._jspx_meth_tiles_insert_1(CustomerCare
Layout_jsp.java:149)
at
org.apache.jsp.CustomerCareLayout_jsp._jspService(CustomerCareLayout_jsp.jav
a:78)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
58)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:269)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:249)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
estProcessor.java:303)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:401)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
58)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:269)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:451)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
estProcessor.java:312)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:401)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter

Re: getting data from form with nested beans

2004-01-20 Thread Mark Lowe
What's with all the <% %> business? Things to watch out for, method  
names and the object cast to the jsp need to match names (e.g.  
foo.getEmployee() and ${foo.employee}). The form must be scoped to  
session if you are dynamically changing the size of the  indexed  
property.



A better example would be a form bean with a getEmployees() method and  
a setEmployee rather than getBeanList or whatever it was.

public Object[] getEmployees() {
return emplyeeList.toArray();
}
public void setEmployees(ArrayList employeeList) {
this.employeeList = employeeList;
}
public Employee getEmployee(int i) {
return (Employee) employeeList.get(i);
}
public void setEmployee(int i,Employee employee) {
this.employeeList.add(i,employee);
}
..

public class Employee {
private String name;
public String getName() {
return name;
}
etc
}
..



	



or


..


On 20 Jan 2004, at 08:56, <[EMAIL PROTECTED]> wrote:

I am resending my earlier mail on this user list..Go through the  
sample code
and
ask me if u don't understand something.

The important portions are commented.Especially look at the jsps  
property
how
it is set and also the form bean.The property syntax I have used was  
for struts 1.0 ..But with struts 1.1 , you can have a better cleaner  
syntax using nested tags.But I have not used it...This works for 1.1  
as well..



//Form Class

import java.util.ArrayList;

import java.util.List;

import org.apache.struts.action.ActionForm;

public class ExampleListForm extends ActionForm {

//A list of Emp beans

private List beanList = new ArrayList();

public List getBeanList(){

return beanList;

}

public void setBeanList(List list){

beanList = list;

}

//very imp.

//give indexed access to the beans

public Employee getEmployee(int index){

//very imp

//when a jsp is submited , then while auto populating the form,this  
will
ensure
that

// the  form is populated properly.

while(index >= beanList.size()){

beanList.add(new Employee());

}

return (Employee)beanList.get(index);

}

public void setEmployee(int index,Employee emp){

beanList.set(index,emp);

}

}

***

Bean class

public class Employee {

private String name;

private String salary;

/**

* Returns the name.

* @return String

*/

public String getName() {

return name;

}

/**

* Returns the salary.

* @return String

*/

public String getSalary() {

return salary;

}

/**

* Sets the name.

* @param name The name to set

*/

public void setName(String name) {

this.name = name;

}

/**

* Sets the salary.

* @param salary The salary to set

*/

public void setSalary(String salary) {

this.salary = salary;

}

}



JSP

<%@ page language="java"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>






">
">






Explanation:

See how the property is constructed.

">
So this will result in a parameter name employee[i].name in the http
request.So
when the jsp is rendered, this will be interpreted as
getEmployee[i].getName().And when the jsp is submitted , the same will  
be
interpreted as getEmployee[i].setName().And this will result in auto
population
of data in the form as u can see.

So check the indexed properties on the form as well.(Especially the
getEmployee(index i) proeprty with while loop.)
Hope this helps.



regards,

Shirish.

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 6:18 PM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans
Dunno what that thread on lazy lists was but nesting beans should work
fine, but you will need to scope any property that you want a dynamic
size to session.
Shouldn't be anymore complicated than that.

On 19 Jan 2004, at 16:01, Martin Sturzenegger wrote:

hi,
concerning nested properties, i found so many questions, hints etc. in
the archive but nothing that really helped all the way...i'm still
confused (or even more now...)
i still don't understand how struts handles input from a form that
holds an iteration of nested beans.
is the following correct?
as soon as the user submits the form, the actionform-bean, holding the
nested beans with the user's changes, gets transmitted.
is it so, that before the action-class is called, the form-bean's
reset() method is called, and all nested beans are set to null by
default?
so do i have to override the reset() method?
what do i iterate over in the reset() method to get the user's inputs?
how do i limit the iteration?
does the validate() method gets called before the reset method?.
i've seen examples, where a dto-class is instanciated within the
reset() method.
is this the way to do it?
do i have to access these dto-beans in the action class?
could somebody give me a little example of a reset()-method, just to
show how the user's input can be gathered an

RE: XML and JSP

2004-01-20 Thread Navjot Singh
pls look into xml taglibs at apache's website

>-Original Message-
>From: Prashanth.S [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 20, 2004 2:36 PM
>To: [EMAIL PROTECTED]
>Subject: XML and JSP
>
>
>Hi all,
>can anyone tell me a convinient way to display,add delete elements 
>in a xml file from jsp???
> 
>Thanks
>prashanth
>
>
>-
>Do you Yahoo!?
>Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

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



RE: XML and JSP

2004-01-20 Thread Marco Mistroni
Hi,
My 2 cents..
For doing something like this, looks like what u need would be 
An XML string on the web while having a Java objet in the backend..
Look at Castor (http://castor.exolab.org), it may suits your needs...


Regards
marco

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED] 
Sent: 20 January 2004 10:08
To: Struts Users Mailing List
Subject: RE: XML and JSP

pls look into xml taglibs at apache's website

>-Original Message-
>From: Prashanth.S [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 20, 2004 2:36 PM
>To: [EMAIL PROTECTED]
>Subject: XML and JSP
>
>
>Hi all,
>can anyone tell me a convinient way to display,add delete elements 
>in a xml file from jsp???
> 
>Thanks
>prashanth
>
>
>-
>Do you Yahoo!?
>Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

-
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: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread Adam Hardy
Thanks Heya, but not wild & crazy enough :) - I already did that. In
fact I made a war file and tested it on a completely different server.
On 01/20/2004 08:28 AM [EMAIL PROTECTED] wrote:
This is one of those wild crazy ideas that you asked for... I know 
you grepped but maybe didn't grep properly?

There are usually two copies of your resources files, one under your 
source directory and that is copied to your classes directory by 
Tomcat. The one in classes is actually read by the server, but the 
one in source is the one you edit because it should replace the 
classes one. Just check manually rather than grepping and see if you 
find the "ghost" file.

Adam Hardy <[EMAIL PROTECTED]> 20/01/2004 06:12 PM 
Please respond to "Struts Users Mailing List"

Does anybody have any ideas on this? Even wild, stupid, ridiculous 
ideas. Anything?

On 01/19/2004 07:02 PM Adam Hardy wrote:
Actually I just did get access to a third server and did a complete
 fresh install of java & tomcat and my app.war, and the ghost 
German strings came up.

So the German strings must be in the war file. But there is only 
the one ApplicationResources.properties file there in the war file!
 I just
checked.

Again, deleting or adding the German locale to the browser settings
 makes the strings change, so it is definitely the resource 
bundles.

On 01/19/2004 06:17 PM Adam Hardy wrote:
Yes, unfortunately it does. On my dev machine and my future 
production server. But I had them both running earlier with the 
German .properties, so it would be the same problem. I don't have
 a third server to test it on.

On 01/19/2004 05:54 PM Tim Kettering wrote:
Does the same thing happen when you build/run the webapp on a
different
computer? Not sure what to tell you here, but that should at 
least narrow the scope to something in the source or some ghost
 file on your dev machine.

-tim

-Original Message- From: Adam Hardy 
[mailto:[EMAIL PROTECTED] Sent: Monday, January
 19, 2004 11:35 AM To: Struts Users Mailing List Subject: 
deleted ApplicationResources_de.properties ghost

I'm having a nightmare with the 
ApplicationResources_de.properties resource bundle in my 
webapp. I asked a colleague to look at it and he's baffled too.

I had my resource bundle in an English and also a German 
.properties file, for testing purposes, but then decided to 
ditch the German version until it's completely finished.

Even though I deleted the German xxx_de.properties file, 
shutdown tomcat, deleted the whole webapp and redeployed and 
deleted the cache in $CATALINA_HOME/work/ , the German
strings are still being cached somewhere.

I have run a grep on a German string to find it in any file in 
the whole of the tomcat, and the whole of my dev-env, but
haven't found it.

In the HTTP headers, I have set pragma=no-cache, 
cache-control=no-cache & expires=Thu, 01 Jan 1970 00:00:00 GMT

I have cleared the cache from my browser and done refreshes a 
thousand times. This is now about a month afterwards and the 
ghost German text is still coming up.

If I set the browser locale to en, then I get the correct 
English version, but if I then set it back to de, somehow, 
somewhere it is finding the deleted German resource bundle.

Any advice much appreciated. :(


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


RE: getting data from form with nested beans

2004-01-20 Thread shirishchandra.sakhare
The scope of form has nothing to do with usage of nested beans.And using session scope 
shoudl be avaided as far as possible as teh form will stay in session  till it is 
explicitely removed from there..

The <% %> business is for the scripts so that the nested property reference can be 
created.But with struts1.1 , with the usage of nested tags, oyu can get rid of that 
scriptlet code.See nested tags for how to do that.I have myself never used nested tags.


-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 11:05 AM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans


What's with all the <% %> business? Things to watch out for, method  
names and the object cast to the jsp need to match names (e.g.  
foo.getEmployee() and ${foo.employee}). The form must be scoped to  
session if you are dynamically changing the size of the  indexed  
property.



A better example would be a form bean with a getEmployees() method and  
a setEmployee rather than getBeanList or whatever it was.


public Object[] getEmployees() {
return emplyeeList.toArray();
}

public void setEmployees(ArrayList employeeList) {
this.employeeList = employeeList;
}

public Employee getEmployee(int i) {
return (Employee) employeeList.get(i);
}

public void setEmployee(int i,Employee employee) {
this.employeeList.add(i,employee);
}


..

public class Employee {
private String name;

public String getName() {
return name;
}
etc
}

..







or


..



On 20 Jan 2004, at 08:56, <[EMAIL PROTECTED]> wrote:

> I am resending my earlier mail on this user list..Go through the  
> sample code
> and
> ask me if u don't understand something.
>
> The important portions are commented.Especially look at the jsps  
> property
> how
> it is set and also the form bean.The property syntax I have used was  
> for struts 1.0 ..But with struts 1.1 , you can have a better cleaner  
> syntax using nested tags.But I have not used it...This works for 1.1  
> as well..
>
> 
>
> //Form Class
>
> import java.util.ArrayList;
>
> import java.util.List;
>
> import org.apache.struts.action.ActionForm;
>
> public class ExampleListForm extends ActionForm {
>
> //A list of Emp beans
>
> private List beanList = new ArrayList();
>
> public List getBeanList(){
>
> return beanList;
>
> }
>
> public void setBeanList(List list){
>
> beanList = list;
>
> }
>
> //very imp.
>
> //give indexed access to the beans
>
> public Employee getEmployee(int index){
>
> //very imp
>
> //when a jsp is submited , then while auto populating the form,this  
> will
> ensure
> that
>
> // the  form is populated properly.
>
> while(index >= beanList.size()){
>
> beanList.add(new Employee());
>
> }
>
> return (Employee)beanList.get(index);
>
> }
>
> public void setEmployee(int index,Employee emp){
>
> beanList.set(index,emp);
>
> }
>
> }
>
> ***
>
> Bean class
>
> public class Employee {
>
> private String name;
>
> private String salary;
>
> /**
>
> * Returns the name.
>
> * @return String
>
> */
>
> public String getName() {
>
> return name;
>
> }
>
> /**
>
> * Returns the salary.
>
> * @return String
>
> */
>
> public String getSalary() {
>
> return salary;
>
> }
>
> /**
>
> * Sets the name.
>
> * @param name The name to set
>
> */
>
> public void setName(String name) {
>
> this.name = name;
>
> }
>
> /**
>
> * Sets the salary.
>
> * @param salary The salary to set
>
> */
>
> public void setSalary(String salary) {
>
> this.salary = salary;
>
> }
>
> }
>
> 
>
> JSP
>
> <%@ page language="java"%>
>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
> 
>
> 
>
>  indexId="i"/>
>
>  \"].name\"%>">
>
>  \"].salary\"%>">
>
> 
>
> 
>
> 
>
> Explanation:
>
> See how the property is constructed.
>
>  \"].name\"%>">
>
> So this will result in a parameter name employee[i].name in the http
> request.So
> when the jsp is rendered, this will be interpreted as
>
> getEmployee[i].getName().And when the jsp is submitted , the same will  
> be
> interpreted as getEmployee[i].setName().And this will result in auto
> population
> of data in the form as u can see.
>
> So check the indexed properties on the form as well.(Especially the
> getEmployee(index i) proeprty with while loop.)
>
> Hope this helps.
>
>
>
> regards,
>
> Shirish.
>
>
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 19, 2004 6:18 PM
> To: Struts Users Mailing List
> Subject: Re: getting data from form with nested beans
>
>
> Dunno what that thread on lazy lists was but nesting beans should work
> fine, but you will need to scope any property that you want a dynamic
> size to session.
>
> Shouldn't be anymore complicated than that.
>
>
> On 19 Jan 2004, at 16:01, Martin Sturzenegger 

checkbox - simple question

2004-01-20 Thread dirk
Hello,
The value of a checkbox is added to the sessionScope. How can i print "checked box 1" 
and "not checked box1" using the logic taglib ?
Thanks

RE: XML and JSP

2004-01-20 Thread Hunt, Steve
Have a look at XTags, a very powerful way to manipulate xml for display in
jsps.

Regards
Steve

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 09:06
To: [EMAIL PROTECTED]
Subject: XML and JSP


Hi all,
can anyone tell me a convinient way to display,add delete elements in a xml
file from jsp???
 
Thanks
prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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



RE: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread Andriy Ruzhevych
Did you seach German string  or xxx_de.properties file in all ear/war of the
web server?

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 12:33 PM
To: Struts Users Mailing List
Subject: Re: deleted ApplicationResources_de.properties ghost


Thanks Heya, but not wild & crazy enough :) - I already did that. In
fact I made a war file and tested it on a completely different server.


On 01/20/2004 08:28 AM [EMAIL PROTECTED] wrote:
> This is one of those wild crazy ideas that you asked for... I know
> you grepped but maybe didn't grep properly?
>
> There are usually two copies of your resources files, one under your
> source directory and that is copied to your classes directory by
> Tomcat. The one in classes is actually read by the server, but the
> one in source is the one you edit because it should replace the
> classes one. Just check manually rather than grepping and see if you
> find the "ghost" file.
>
> Adam Hardy <[EMAIL PROTECTED]> 20/01/2004 06:12 PM
> Please respond to "Struts Users Mailing List"
>
> Does anybody have any ideas on this? Even wild, stupid, ridiculous
> ideas. Anything?
>
> On 01/19/2004 07:02 PM Adam Hardy wrote:
>> Actually I just did get access to a third server and did a complete
>>  fresh install of java & tomcat and my app.war, and the ghost
>> German strings came up.
>>
>> So the German strings must be in the war file. But there is only
>> the one ApplicationResources.properties file there in the war file!
>>  I just
> checked.
>
>> Again, deleting or adding the German locale to the browser settings
>>  makes the strings change, so it is definitely the resource
>> bundles.
>>
>>
>> On 01/19/2004 06:17 PM Adam Hardy wrote:
>>> Yes, unfortunately it does. On my dev machine and my future
>>> production server. But I had them both running earlier with the
>>> German .properties, so it would be the same problem. I don't have
>>>  a third server to test it on.
>>>
>>> On 01/19/2004 05:54 PM Tim Kettering wrote:
 Does the same thing happen when you build/run the webapp on a
> different
 computer? Not sure what to tell you here, but that should at
 least narrow the scope to something in the source or some ghost
  file on your dev machine.

 -tim

 -Original Message- From: Adam Hardy
 [mailto:[EMAIL PROTECTED] Sent: Monday, January
  19, 2004 11:35 AM To: Struts Users Mailing List Subject:
 deleted ApplicationResources_de.properties ghost


 I'm having a nightmare with the
 ApplicationResources_de.properties resource bundle in my
 webapp. I asked a colleague to look at it and he's baffled too.


 I had my resource bundle in an English and also a German
 .properties file, for testing purposes, but then decided to
 ditch the German version until it's completely finished.

 Even though I deleted the German xxx_de.properties file,
 shutdown tomcat, deleted the whole webapp and redeployed and
 deleted the cache in $CATALINA_HOME/work/ , the German
 strings are still being cached somewhere.

 I have run a grep on a German string to find it in any file in
 the whole of the tomcat, and the whole of my dev-env, but
 haven't found it.

 In the HTTP headers, I have set pragma=no-cache,
 cache-control=no-cache & expires=Thu, 01 Jan 1970 00:00:00 GMT

 I have cleared the cache from my browser and done refreshes a
 thousand times. This is now about a month afterwards and the
 ghost German text is still coming up.

 If I set the browser locale to en, then I get the correct
 English version, but if I then set it back to de, somehow,
 somewhere it is finding the deleted German resource bundle.

 Any advice much appreciated. :(


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


__ NOD32 1.596 (20040109) Information __

This message was checked by NOD32 antivirus system.
http://www.nod32.com



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



JSP editor - plugin for eclipse ?

2004-01-20 Thread Divya B Sridhar
Hi All,
Do we have a plugin for eclipse which would check JSP syntax at save
time/compilation time or so? 
Since Eclipse would recognise Java keywords if JDK is installed;
similarly, do we have a plugin for eclipse which enables eclipse to
recognise JSP tags?
 
Thanks for any inputs,
Regards,
Divya.


Re: getting data from form with nested beans

2004-01-20 Thread Mark Lowe
.. Show us all an example of a form with a dynamic size for a form  
property thats scoped to the request then big shot..

Come on lets see it!!!

On 20 Jan 2004, at 10:45, <[EMAIL PROTECTED]> wrote:

The scope of form has nothing to do with usage of nested beans.And  
using session scope shoudl be avaided as far as possible as teh form  
will stay in session  till it is explicitely removed from there..

The <% %> business is for the scripts so that the nested property  
reference can be created.But with struts1.1 , with the usage of nested  
tags, oyu can get rid of that scriptlet code.See nested tags for how  
to do that.I have myself never used nested tags.

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 11:05 AM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans
What's with all the <% %> business? Things to watch out for, method
names and the object cast to the jsp need to match names (e.g.
foo.getEmployee() and ${foo.employee}). The form must be scoped to
session if you are dynamically changing the size of the  indexed
property.


A better example would be a form bean with a getEmployees() method and
a setEmployee rather than getBeanList or whatever it was.
public Object[] getEmployees() {
return emplyeeList.toArray();
}
public void setEmployees(ArrayList employeeList) {
this.employeeList = employeeList;
}
public Employee getEmployee(int i) {
return (Employee) employeeList.get(i);
}
public void setEmployee(int i,Employee employee) {
this.employeeList.add(i,employee);
}
..

public class Employee {
private String name;
public String getName() {
return name;
}
etc
}
..



	



or


..


On 20 Jan 2004, at 08:56, <[EMAIL PROTECTED]> wrote:

I am resending my earlier mail on this user list..Go through the
sample code
and
ask me if u don't understand something.
The important portions are commented.Especially look at the jsps
property
how
it is set and also the form bean.The property syntax I have used was
for struts 1.0 ..But with struts 1.1 , you can have a better cleaner
syntax using nested tags.But I have not used it...This works for 1.1
as well..


//Form Class

import java.util.ArrayList;

import java.util.List;

import org.apache.struts.action.ActionForm;

public class ExampleListForm extends ActionForm {

//A list of Emp beans

private List beanList = new ArrayList();

public List getBeanList(){

return beanList;

}

public void setBeanList(List list){

beanList = list;

}

//very imp.

//give indexed access to the beans

public Employee getEmployee(int index){

//very imp

//when a jsp is submited , then while auto populating the form,this
will
ensure
that
// the  form is populated properly.

while(index >= beanList.size()){

beanList.add(new Employee());

}

return (Employee)beanList.get(index);

}

public void setEmployee(int index,Employee emp){

beanList.set(index,emp);

}

}

***

Bean class

public class Employee {

private String name;

private String salary;

/**

* Returns the name.

* @return String

*/

public String getName() {

return name;

}

/**

* Returns the salary.

* @return String

*/

public String getSalary() {

return salary;

}

/**

* Sets the name.

* @param name The name to set

*/

public void setName(String name) {

this.name = name;

}

/**

* Sets the salary.

* @param salary The salary to set

*/

public void setSalary(String salary) {

this.salary = salary;

}

}



JSP

<%@ page language="java"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>






">
">






Explanation:

See how the property is constructed.

">
So this will result in a parameter name employee[i].name in the http
request.So
when the jsp is rendered, this will be interpreted as
getEmployee[i].getName().And when the jsp is submitted , the same will
be
interpreted as getEmployee[i].setName().And this will result in auto
population
of data in the form as u can see.
So check the indexed properties on the form as well.(Especially the
getEmployee(index i) proeprty with while loop.)
Hope this helps.



regards,

Shirish.

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 6:18 PM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans
Dunno what that thread on lazy lists was but nesting beans should work
fine, but you will need to scope any property that you want a dynamic
size to session.
Shouldn't be anymore complicated than that.

On 19 Jan 2004, at 16:01, Martin Sturzenegger wrote:

hi,
concerning nested properties, i found so many questions, hints etc.  
in
the archive but nothing that really helped all the way...i'm still
confused (or even more now...)
i still don't understand how struts handles input

Re: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Marino A. Jonsson
That makes sense ... SecureTilesPlugin actually extends TilesPlugin so
you're trying to initialize the same plugin twice ;)

cheers,
Marinó
"Greg Hess" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,

I am having difficulty integrating the sslext11 plug-in with Struts 1.1
using Tiles.

I get the following error when accessing any action:

javax.servlet.UnavailableException
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
1169)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at
com.caucho.server.http.Application.createServlet(Application.java:2982)
at
com.caucho.server.http.Application.loadServlet(Application.java:2941)
at
com.caucho.server.http.Application.initServlets(Application.java:1841)
at com.caucho.server.http.Application.init(Application.java:1772)
at com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
at
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648)
at com.caucho.server.http.ServletServer.init(ServletServer.java:483)
at com.caucho.server.http.ResinServer.init(ResinServer.java:360)
at com.caucho.server.http.ResinServer.main(ResinServer.java:1107)
at com.caucho.server.http.HttpServer.main(HttpServer.java:103)

My struts-config.xml:



.









  
  
  
  
  

  
  
  

  
  
  

  
  




Any help is much appreciated,

Thanks,

Greg Hess
Software Engineer
Wrapped Apps Corporation
275 Michael Cowpland Dr.
Suite 201
Ottawa, Ontario
K2M 2G2
Tel: (613) 591 -7552
Fax: (613) 591-0523
1 (877) 388-6742
www.wrappedapps.com







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



Re: getting data from form with nested beans

2004-01-20 Thread Mark Lowe
Oh yeah .. by working i mean when you submit..

On 20 Jan 2004, at 11:25, Mark Lowe wrote:

.. Show us all an example of a form with a dynamic size for a form  
property thats scoped to the request then big shot..

Come on lets see it!!!

On 20 Jan 2004, at 10:45, <[EMAIL PROTECTED]> wrote:

The scope of form has nothing to do with usage of nested beans.And  
using session scope shoudl be avaided as far as possible as teh form  
will stay in session  till it is explicitely removed from there..

The <% %> business is for the scripts so that the nested property  
reference can be created.But with struts1.1 , with the usage of  
nested tags, oyu can get rid of that scriptlet code.See nested tags  
for how to do that.I have myself never used nested tags.

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 11:05 AM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans
What's with all the <% %> business? Things to watch out for, method
names and the object cast to the jsp need to match names (e.g.
foo.getEmployee() and ${foo.employee}). The form must be scoped to
session if you are dynamically changing the size of the  indexed
property.


A better example would be a form bean with a getEmployees() method and
a setEmployee rather than getBeanList or whatever it was.
public Object[] getEmployees() {
return emplyeeList.toArray();
}
public void setEmployees(ArrayList employeeList) {
this.employeeList = employeeList;
}
public Employee getEmployee(int i) {
return (Employee) employeeList.get(i);
}
public void setEmployee(int i,Employee employee) {
this.employeeList.add(i,employee);
}
..

public class Employee {
private String name;
public String getName() {
return name;
}
etc
}
..



	



or


..


On 20 Jan 2004, at 08:56, <[EMAIL PROTECTED]> wrote:

I am resending my earlier mail on this user list..Go through the
sample code
and
ask me if u don't understand something.
The important portions are commented.Especially look at the jsps
property
how
it is set and also the form bean.The property syntax I have used was
for struts 1.0 ..But with struts 1.1 , you can have a better cleaner
syntax using nested tags.But I have not used it...This works for 1.1
as well..


//Form Class

import java.util.ArrayList;

import java.util.List;

import org.apache.struts.action.ActionForm;

public class ExampleListForm extends ActionForm {

//A list of Emp beans

private List beanList = new ArrayList();

public List getBeanList(){

return beanList;

}

public void setBeanList(List list){

beanList = list;

}

//very imp.

//give indexed access to the beans

public Employee getEmployee(int index){

//very imp

//when a jsp is submited , then while auto populating the form,this
will
ensure
that
// the  form is populated properly.

while(index >= beanList.size()){

beanList.add(new Employee());

}

return (Employee)beanList.get(index);

}

public void setEmployee(int index,Employee emp){

beanList.set(index,emp);

}

}

***

Bean class

public class Employee {

private String name;

private String salary;

/**

* Returns the name.

* @return String

*/

public String getName() {

return name;

}

/**

* Returns the salary.

* @return String

*/

public String getSalary() {

return salary;

}

/**

* Sets the name.

* @param name The name to set

*/

public void setName(String name) {

this.name = name;

}

/**

* Sets the salary.

* @param salary The salary to set

*/

public void setSalary(String salary) {

this.salary = salary;

}

}



JSP

<%@ page language="java"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>






">
">






Explanation:

See how the property is constructed.

">
So this will result in a parameter name employee[i].name in the http
request.So
when the jsp is rendered, this will be interpreted as
getEmployee[i].getName().And when the jsp is submitted , the same  
will
be
interpreted as getEmployee[i].setName().And this will result in auto
population
of data in the form as u can see.

So check the indexed properties on the form as well.(Especially the
getEmployee(index i) proeprty with while loop.)
Hope this helps.



regards,

Shirish.

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 6:18 PM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans
Dunno what that thread on lazy lists was but nesting beans should  
work
fine, but you will need to scope any property that you want a dynamic
size to session.

Shouldn't be anymore complicated than that.

On 19 Jan 2004, at 16:01, Martin Sturzenegger wrote:

hi,
concerning nested properties, i found so many questions, hints etc.  
in
the archive but nothing that really helped all th

RE: getting data from form with nested beans

2004-01-20 Thread shirishchandra.sakhare
Hi,
Is it flaming or what?I thought we were trying to solve each others problems.Still a 
last try.
We have a complete application(3 modules/4000 classes/15 companies live as of date) 
which uses all form beans just in request scope.And all over the place we have used 
form beans in request scope.And the application is well and running.

If you go t through my mail, you will understand why it will mail.SO please read the 
mail carefully.
I will try to explain it again.

When the form is submitted(the user presses submit button on screen),the corresponding 
action will be called by struts.At the same time, it will look for a actionForm from 
the mapping.As the scope is specified as request, a new form will be created.And if 
you have looked at my example carefully, you will see that the nested bean list is 
created when the form is created.But this nested list is empty.Now when struts 
autopopulation tries to populate a nested bean, it should  find that the nested bean 
list is empty.But the lazy initialization mechanism in the indexed getter will take 
care that the list has enough of beans.See the code below.
33
 //give indexed access to the beans
>>>
>>> public Employee getEmployee(int index){
>>>
>>> //very imp
>>>
>>> //when a jsp is submited , then while auto populating the form,this
>>> will
>>> ensure
>>> that
>>>
>>> // the  form is populated properly.
>>>
>>> while(index >= beanList.size()){
>>>
>>> beanList.add(new Employee());
>>>
>>> }
***

And as explained in jsp part, as long as the property references are created properly, 
this will work.And with struts1.1 nested tags, you don't have to even use the 
script<%%> to create property is jsp.

Hope this clarifies it.If not, try to run my example code.

regards,
Shirish

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 12:28 PM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans


Oh yeah .. by working i mean when you submit..


On 20 Jan 2004, at 11:25, Mark Lowe wrote:

> .. Show us all an example of a form with a dynamic size for a form  
> property thats scoped to the request then big shot..
>
> Come on lets see it!!!
>
>
> On 20 Jan 2004, at 10:45, <[EMAIL PROTECTED]> wrote:
>
>> The scope of form has nothing to do with usage of nested beans.And  
>> using session scope shoudl be avaided as far as possible as teh form  
>> will stay in session  till it is explicitely removed from there..
>>
>> The <% %> business is for the scripts so that the nested property  
>> reference can be created.But with struts1.1 , with the usage of  
>> nested tags, oyu can get rid of that scriptlet code.See nested tags  
>> for how to do that.I have myself never used nested tags.
>>
>>
>> -Original Message-
>> From: Mark Lowe [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, January 20, 2004 11:05 AM
>> To: Struts Users Mailing List
>> Subject: Re: getting data from form with nested beans
>>
>>
>> What's with all the <% %> business? Things to watch out for, method
>> names and the object cast to the jsp need to match names (e.g.
>> foo.getEmployee() and ${foo.employee}). The form must be scoped to
>> session if you are dynamically changing the size of the  indexed
>> property.
>>
>> 
>>
>> A better example would be a form bean with a getEmployees() method and
>> a setEmployee rather than getBeanList or whatever it was.
>>
>>
>> public Object[] getEmployees() {
>>  return emplyeeList.toArray();
>> }
>>
>> public void setEmployees(ArrayList employeeList) {
>>  this.employeeList = employeeList;
>> }
>>
>> public Employee getEmployee(int i) {
>>  return (Employee) employeeList.get(i);
>> }
>>
>> public void setEmployee(int i,Employee employee) {
>>  this.employeeList.add(i,employee);
>> }
>>
>>
>> ..
>>
>> public class Employee {
>>  private String name;
>>
>>  public String getName() {
>>  return name;
>>  }
>>  etc
>> }
>>
>> ..
>>
>> 
>>
>>  
>>
>> 
>>
>> or
>>
>> 
>>  ..
>>
>>
>>
>> On 20 Jan 2004, at 08:56, <[EMAIL PROTECTED]> wrote:
>>
>>> I am resending my earlier mail on this user list..Go through the
>>> sample code
>>> and
>>> ask me if u don't understand something.
>>>
>>> The important portions are commented.Especially look at the jsps
>>> property
>>> how
>>> it is set and also the form bean.The property syntax I have used was
>>> for struts 1.0 ..But with struts 1.1 , you can have a better cleaner
>>> syntax using nested tags.But I have not used it...This works for 1.1
>>> as well..
>>>
>>> 
>>>
>>> //Form Class
>>>
>>> import java.util.ArrayList;
>>>
>>> import java.util.List;
>>>
>>> import org.apache.struts.action.ActionForm;
>>>
>>> public class ExampleListForm extends ActionForm {
>>>
>>> //A list of Emp beans
>>>
>>> private List beanList = new ArrayList();
>>>
>>> public List getBeanList(){
>>>
>>> return

RE: XML and JSP

2004-01-20 Thread Prashanth.S
Hi all,
Thanks for the reply...will xtag really help me???i want to do many complex 
querying,adding and deleting elements,attributes in xml file...?
Thanks
Prashanth

"Hunt, Steve" <[EMAIL PROTECTED]> wrote:
Have a look at XTags, a very powerful way to manipulate xml for display in
jsps.

Regards
Steve

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 09:06
To: [EMAIL PROTECTED]
Subject: XML and JSP


Hi all,
can anyone tell me a convinient way to display,add delete elements in a xml
file from jsp???

Thanks
prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Re: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Marino A. Jonsson
Moreover, the StrutsTilesPlugin overloads the
initRequestProcessorClass(ModuleConfig config) of the TilesPlugin and sets
the processorClass attribute of the controller to
SecureTilesRequestProcessor ... so there's no need to specify the controller
explicitly.

cheers,
Marinó

"Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> That makes sense ... SecureTilesPlugin actually extends TilesPlugin so
> you're trying to initialize the same plugin twice ;)
>
> cheers,
> Marinó
> "Greg Hess" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Hi All,
>
> I am having difficulty integrating the sslext11 plug-in with Struts 1.1
> using Tiles.
>
> I get the following error when accessing any action:
>
> javax.servlet.UnavailableException
> at
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
> 1169)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> at javax.servlet.GenericServlet.init(GenericServlet.java:82)
> at
> com.caucho.server.http.Application.createServlet(Application.java:2982)
> at
> com.caucho.server.http.Application.loadServlet(Application.java:2941)
> at
> com.caucho.server.http.Application.initServlets(Application.java:1841)
> at com.caucho.server.http.Application.init(Application.java:1772)
> at com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
> at
> com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
> at
> com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648)
> at
com.caucho.server.http.ServletServer.init(ServletServer.java:483)
> at com.caucho.server.http.ResinServer.init(ResinServer.java:360)
> at com.caucho.server.http.ResinServer.main(ResinServer.java:1107)
> at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
>
> My struts-config.xml:
>
> 
> 
> .
> 
>
> 
> 
processorClass="org.apache.struts.action.SecureTilesRequestProcessor"
>nocache="true"/>
>
> 
> 
>
> 
>   
>value="/WEB-INF/tiles-defs.xml" />
>   
>   
>   
>
>   
>property="pathnames"
>
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
> /WEB-INF/validation.xml"/>
>   
>
>   
>   
>   
> 
>   
>   
>
> 
>
>
> Any help is much appreciated,
>
> Thanks,
>
> Greg Hess
> Software Engineer
> Wrapped Apps Corporation
> 275 Michael Cowpland Dr.
> Suite 201
> Ottawa, Ontario
> K2M 2G2
> Tel: (613) 591 -7552
> Fax: (613) 591-0523
> 1 (877) 388-6742
> www.wrappedapps.com




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



Add/Modify functionality in same jsp

2004-01-20 Thread Sudhakar G
Hi All,
I want to implement add/modify functionality in same jsp using struts
tag.I am having a hidden variable which says the current action is add or
modify.
Can any one tell how the jsp will implement the modify functionality?.My idea
is put if..else conditions for each form field and populate data in case of
modify using the struts tag and don't populate data for add functionality..If
some one can provide me a sample jsp thru that I will have the understanding
before implementing the functionality.

Thanks & Regards
Sudhakar



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

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



newbie: html:form EL in action tag

2004-01-20 Thread Simon Pett
Hi 

I am trying to use tile attributes for the action and focus parameters in
the html:form tag. So I imported the attributes to the page scope and then
used EL to set them. 





The focus worked fine however the action gave the error

ServletException in:/pages/common/layouts/formlayout.jsp] Cannot retrieve
mapping for action /${action}'


It works ok if I use a scriplet like 

"
focus="${focus}">

Can someone tell me why?

Thanks
Simon


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



Config "validator plug-in" to Save ActionMessages in session scope ?

2004-01-20 Thread dutrieux
Hello,

I see in the Nightly Build release note that's we can now save the 
ActionMessages in the session scope 
(http://jakarta.apache.org/struts/userGuide/release-notes.html).
And my question is to know if it's possible to config the "validator 
plug-in" to save the ActionMessages in the session scope (not in request 
scope).

Best regards

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


Re: [OT] JSP editor - plugin for eclipse ?

2004-01-20 Thread Guido García Bernardo
You asked the right mailing list.

Divya B Sridhar wrote:

Hi All,
Do we have a plugin for eclipse which would check JSP syntax at save
time/compilation time or so? 
Since Eclipse would recognise Java keywords if JDK is installed;
similarly, do we have a plugin for eclipse which enables eclipse to
recognise JSP tags?

Thanks for any inputs,
Regards,
Divya.
 

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


DOS attack by making DispatchAction recurse on execute()

2004-01-20 Thread Raphaël di Cicco
See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25649



Chart generation Framework

2004-01-20 Thread Vinicius Carvalho
Hi there! Does anyone here uses a chart Framework? I've heard about Cewolf, 
seems to be nice, any suggestions on this?

Thanks

Vinicius

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


Re: newbie: html:form EL in action tag

2004-01-20 Thread Frédéric Dreier
i'm not sure but, do you have declared the right library (with el 
suffix) at the begining of your page?

<%@ taglib  uri="/WEB-INF/struts-html-el.tld" prefix="html" %>

regards,

frederic



Simon Pett wrote:

Hi 

I am trying to use tile attributes for the action and focus parameters in
the html:form tag. So I imported the attributes to the page scope and then
used EL to set them. 




The focus worked fine however the action gave the error

ServletException in:/pages/common/layouts/formlayout.jsp] Cannot retrieve
mapping for action /${action}'
It works ok if I use a scriplet like 

"
focus="${focus}">
Can someone tell me why?

Thanks
Simon
-
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: getting data from form with nested beans

2004-01-20 Thread Mark Lowe
So you've had forms, with indexed properties with dynamic sizes working  
when scoping to request?

On 20 Jan 2004, at 11:45, <[EMAIL PROTECTED]> wrote:

Hi,
Is it flaming or what?I thought we were trying to solve each others  
problems.Still a last try.
We have a complete application(3 modules/4000 classes/15 companies  
live as of date) which uses all form beans just in request scope.And  
all over the place we have used form beans in request scope.And the  
application is well and running.

If you go t through my mail, you will understand why it will mail.SO  
please read the mail carefully.
I will try to explain it again.

When the form is submitted(the user presses submit button on  
screen),the corresponding action will be called by struts.At the same  
time, it will look for a actionForm from the mapping.As the scope is  
specified as request, a new form will be created.And if you have  
looked at my example carefully, you will see that the nested bean list  
is created when the form is created.But this nested list is empty.Now  
when struts autopopulation tries to populate a nested bean, it should   
find that the nested bean list is empty.But the lazy initialization  
mechanism in the indexed getter will take care that the list has  
enough of beans.See the code below.
33
 //give indexed access to the beans
public Employee getEmployee(int index){

//very imp

//when a jsp is submited , then while auto populating the form,this
will
ensure
that
// the  form is populated properly.

while(index >= beanList.size()){

beanList.add(new Employee());

}
***

And as explained in jsp part, as long as the property references are  
created properly, this will work.And with struts1.1 nested tags, you  
don't have to even use the script<%%> to create property is jsp.

Hope this clarifies it.If not, try to run my example code.

regards,
Shirish
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 12:28 PM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans
Oh yeah .. by working i mean when you submit..

On 20 Jan 2004, at 11:25, Mark Lowe wrote:

.. Show us all an example of a form with a dynamic size for a form
property thats scoped to the request then big shot..
Come on lets see it!!!

On 20 Jan 2004, at 10:45, <[EMAIL PROTECTED]> wrote:

The scope of form has nothing to do with usage of nested beans.And
using session scope shoudl be avaided as far as possible as teh form
will stay in session  till it is explicitely removed from there..
The <% %> business is for the scripts so that the nested property
reference can be created.But with struts1.1 , with the usage of
nested tags, oyu can get rid of that scriptlet code.See nested tags
for how to do that.I have myself never used nested tags.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 11:05 AM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans
What's with all the <% %> business? Things to watch out for, method
names and the object cast to the jsp need to match names (e.g.
foo.getEmployee() and ${foo.employee}). The form must be scoped to
session if you are dynamically changing the size of the  indexed
property.


A better example would be a form bean with a getEmployees() method  
and
a setEmployee rather than getBeanList or whatever it was.

public Object[] getEmployees() {
return emplyeeList.toArray();
}
public void setEmployees(ArrayList employeeList) {
this.employeeList = employeeList;
}
public Employee getEmployee(int i) {
return (Employee) employeeList.get(i);
}
public void setEmployee(int i,Employee employee) {
this.employeeList.add(i,employee);
}
..

public class Employee {
private String name;
public String getName() {
return name;
}
etc
}
..



	



or


..


On 20 Jan 2004, at 08:56, <[EMAIL PROTECTED]> wrote:

I am resending my earlier mail on this user list..Go through the
sample code
and
ask me if u don't understand something.
The important portions are commented.Especially look at the jsps
property
how
it is set and also the form bean.The property syntax I have used was
for struts 1.0 ..But with struts 1.1 , you can have a better cleaner
syntax using nested tags.But I have not used it...This works for 1.1
as well..


//Form Class

import java.util.ArrayList;

import java.util.List;

import org.apache.struts.action.ActionForm;

public class ExampleListForm extends ActionForm {

//A list of Emp beans

private List beanList = new ArrayList();

public List getBeanList(){

return beanList;

}

public void setBeanList(List list){

beanList = list;

}

//very imp.

//give indexed access to the beans

public Employee getEmployee(int index){

//very imp

//when a jsp is submited , then while auto popu

RE: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Guillermo Meyer
Yes, it's a web.xml problem.
Anyway, we tested it in tomcat 5.0.16, but should work in tomcat 4.0.x.


-Original Message-
From: Jesse Alexander (KAID 11)
[mailto:[EMAIL PROTECTED] 
Sent: Martes, 20 de Enero de 2004 06:25 a.m.
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Providers: Select solutions


Hi,

correct the web.xml
The error-message is quite clear...

regards
Alexander

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 20. Januar 2004 02:43
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [ANNOUNCE] Providers: Select solutions


Hi, 

I am getting XML parser error when running it on Tomcat 4.1.27 and
jdk1.4.0. 
Can you tell what needs to be done ??
---


SEVERE: Parse Error at line 44 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,er
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,t
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:559)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
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:2190)
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.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jan 19, 2004 8:38:21 PM org.apache.coyote.http11.Http11Protocol start
INF

Re: Add/Modify functionality in same jsp

2004-01-20 Thread Nicholas L Mohler





Hi Sudhakar,

Your JSP should populate the form fields in the same way for both add and
modify actions.  Specifically, your action class should initialize the form
for the jsp.  When the page is rendered, it will be populated the way that
you want.

Nick



|-+>
| |   "Sudhakar G" |
| |   <[EMAIL PROTECTED]|
| |   ree.com> |
| ||
| |   01/20/2004 06:55 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>--|
  |
  |
  |   To:   <[EMAIL PROTECTED]>
 |
  |   cc:  
  |
  |   Subject:  Add/Modify functionality in same jsp   
  |
  
>--|




Hi All,
I want to implement add/modify functionality in same jsp using
struts
tag.I am having a hidden variable which says the current action is add or
modify.
Can any one tell how the jsp will implement the modify functionality?.My
idea
is put if..else conditions for each form field and populate data in case of
modify using the struts tag and don't populate data for add
functionality..If
some one can provide me a sample jsp thru that I will have the
understanding
before implementing the functionality.

Thanks & Regards
Sudhakar



DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. Before opening attachments please check them for viruses and
defects. MindTree Consulting Private Limited (MindTree) will not be
responsible for any viruses or defects or any forwarded attachments
emanating either from within MindTree or outside. If you have received this
message by mistake please notify the sender by return  e-mail and delete
this message from your system. Any unauthorized use or dissemination of
this message in whole or in part is strictly prohibited.  Please note that
e-mails are susceptible to change and MindTree shall not be liable for any
improper, untimely or incomplete transmission.

-
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: getting data from form with nested beans

2004-01-20 Thread shirishchandra.sakhare
yes:-))
And I am sure most of the people do have the same.I mean tieing the nested properties 
to the session scope does take away a lot of flexibility.

Anyhow just try my sample code...It should demonstrate the concept.

regards,
Shirish

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 1:44 PM
To: Struts Users Mailing List
Subject: Re: getting data from form with nested beans


So you've had forms, with indexed properties with dynamic sizes working  
when scoping to request?


On 20 Jan 2004, at 11:45, <[EMAIL PROTECTED]> wrote:

> Hi,
> Is it flaming or what?I thought we were trying to solve each others  
> problems.Still a last try.
> We have a complete application(3 modules/4000 classes/15 companies  
> live as of date) which uses all form beans just in request scope.And  
> all over the place we have used form beans in request scope.And the  
> application is well and running.
>
> If you go t through my mail, you will understand why it will mail.SO  
> please read the mail carefully.
> I will try to explain it again.
>
> When the form is submitted(the user presses submit button on  
> screen),the corresponding action will be called by struts.At the same  
> time, it will look for a actionForm from the mapping.As the scope is  
> specified as request, a new form will be created.And if you have  
> looked at my example carefully, you will see that the nested bean list  
> is created when the form is created.But this nested list is empty.Now  
> when struts autopopulation tries to populate a nested bean, it should   
> find that the nested bean list is empty.But the lazy initialization  
> mechanism in the indexed getter will take care that the list has  
> enough of beans.See the code below.
> 33
>  //give indexed access to the beans

 public Employee getEmployee(int index){

 //very imp

 //when a jsp is submited , then while auto populating the form,this
 will
 ensure
 that

 // the  form is populated properly.

 while(index >= beanList.size()){

 beanList.add(new Employee());

 }
> ***
>
> And as explained in jsp part, as long as the property references are  
> created properly, this will work.And with struts1.1 nested tags, you  
> don't have to even use the script<%%> to create property is jsp.
>
> Hope this clarifies it.If not, try to run my example code.
>
> regards,
> Shirish
>
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 12:28 PM
> To: Struts Users Mailing List
> Subject: Re: getting data from form with nested beans
>
>
> Oh yeah .. by working i mean when you submit..
>
>
> On 20 Jan 2004, at 11:25, Mark Lowe wrote:
>
>> .. Show us all an example of a form with a dynamic size for a form
>> property thats scoped to the request then big shot..
>>
>> Come on lets see it!!!
>>
>>
>> On 20 Jan 2004, at 10:45, <[EMAIL PROTECTED]> wrote:
>>
>>> The scope of form has nothing to do with usage of nested beans.And
>>> using session scope shoudl be avaided as far as possible as teh form
>>> will stay in session  till it is explicitely removed from there..
>>>
>>> The <% %> business is for the scripts so that the nested property
>>> reference can be created.But with struts1.1 , with the usage of
>>> nested tags, oyu can get rid of that scriptlet code.See nested tags
>>> for how to do that.I have myself never used nested tags.
>>>
>>>
>>> -Original Message-
>>> From: Mark Lowe [mailto:[EMAIL PROTECTED]
>>> Sent: Tuesday, January 20, 2004 11:05 AM
>>> To: Struts Users Mailing List
>>> Subject: Re: getting data from form with nested beans
>>>
>>>
>>> What's with all the <% %> business? Things to watch out for, method
>>> names and the object cast to the jsp need to match names (e.g.
>>> foo.getEmployee() and ${foo.employee}). The form must be scoped to
>>> session if you are dynamically changing the size of the  indexed
>>> property.
>>>
>>> 
>>>
>>> A better example would be a form bean with a getEmployees() method  
>>> and
>>> a setEmployee rather than getBeanList or whatever it was.
>>>
>>>
>>> public Object[] getEmployees() {
>>> return emplyeeList.toArray();
>>> }
>>>
>>> public void setEmployees(ArrayList employeeList) {
>>> this.employeeList = employeeList;
>>> }
>>>
>>> public Employee getEmployee(int i) {
>>> return (Employee) employeeList.get(i);
>>> }
>>>
>>> public void setEmployee(int i,Employee employee) {
>>> this.employeeList.add(i,employee);
>>> }
>>>
>>>
>>> ..
>>>
>>> public class Employee {
>>> private String name;
>>>
>>> public String getName() {
>>> return name;
>>> }
>>> etc
>>> }
>>>
>>> ..
>>>
>>> >> property="employees">
>>>
>>> 
>>>
>>> 
>>>
>>> or
>>>
>>> 
>>> ..
>>>
>>>
>>>
>>> On 20 Jan 2004, at 08:56, <[EMAIL PROTECTED]> wrote:
>>>
 I am resending my earlier mail on this user list..G

RE: Struts-Menu (Support URL Re-writing)

2004-01-20 Thread Parag Pattewar
Hi

Where I can get a Struts-Layout.jar?
The jar should be compatible with a Struts-Menu 2.1.jar 

Thanks in advance

Thanks and Regards
Parag

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 7:55 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts-Menu (Support URL Re-writing)


Struts Menu 2.0 and above.  What version of "Struts Menu" are you using?
Feel free to subscribe to the struts-menu mailing list and move this
discussion over there.

http://lists.sourceforge.net/lists/listinfo/struts-menu-user

Or use the forums:

http://sourceforge.net/forum/?group_id=48726

Matt


> -Original Message-
> From: Parag Pattewar [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, January 18, 2004 9:37 PM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Struts-Menu (Support URL Re-writing)
> 
> 
> Hi
> 
> I tried to change the location attribute to forward or 
> Action, its not supporting because the struts version we are 
> using is 1.1 and as you have mentioned to use struts 2.0 and above.
> 
> How do I make change, so struts 1.1 should support URL Rewriting.
> 
> Regards
> Parag
> 
> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 17, 2004 9:20 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts-Menu (Support URL Re-writing)
> 
> 
> Change the "location" attribute to a "action" attribute, 
> where the value of "action" matches the "path" of your action 
> mapping.  For example:
> 
>  action="/accountinfoview">
> 
> If you are using 2.0, this should work.  If it doesn't, let 
> me know what displayer you're using and I'll fix it.
> 
> Matt
> 
> > -Original Message-
> > From: Parag Pattewar [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, January 17, 2004 12:05 AM
> > To: Matt Raible; 'Struts Users Mailing List'
> > Subject: RE: Struts-Menu (Support URL Re-writing)
> >
> >
> >
> > Hi
> > I am having previous implementation of struts-menu as below
> >
> >  > location="accountinfoview.do" >
> >  > location="personaldtd.do?expMenu=AcctInfo"/>
> >  > location="clsRouter.do?expMenu=AcctInfo"/>
> > 
> >
> > I have changed it as below, is it the correct way of using 
> action and 
> > forward attributes in struts-menu.
> >
> >  > location="accountinfoview.do" >
> >  > action="personaldtd.do?expMenu=AcctInfo"/>
> >  > forward="clsRouter.do?expMenu=AcctInfo"/>
> > 
> >
> >
> >
> > -Original Message-
> > From: Matt Raible [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 16, 2004 8:44 PM
> > To: 'Struts Users Mailing List'; 'Parag Pattewar'
> > Subject: RE: Struts-Menu (Support URL Re-writing)
> >
> >
> > Struts Menu makes use of Struts classes to support "forward" and 
> > "action" attributes.  If you use those, you'll likely get the 
> > re-writing you're looking for.  I did this on a previous 
> project and 
> > did find that the "forward" attribute worked, but not the "action" 
> > attribute.  I believe this is a bug in Struts since it should do 
> > rewriting when looking up an Action's path.
> >
> > The one issue with re-writing is that if you're using a menu that 
> > matches URLs (i.e. tabbed-menu) - they probably won't get 
> matched up. 
> > At a previous project, we were using URLs to highlight the current 
> > page we were on and we found that we had to use the 
> "action" attribute 
> > or the "page" attribute so that the jsessionid wasn't appended.  Of 
> > course, we could've stripped this off in our Velocity 
> template, but we 
> > wen't with the quick, less-logic, way.
> >
> > To see this project, go to http://telluride.resortquest.com 
> and drill 
> > down a bit.  The menu with highlight is on the right.  BTW, 
> this site 
> > uses the Velocity displayer for both the top menu and the side menu.
> >
> > If you're not familiar with struts-menu, checkout the demo at 
> > http://raibledesigns.com/struts-menu.
> >
> > Matt
> >
> > > -Original Message-
> > > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 16, 2004 7:54 AM
> > > To: 'Parag Pattewar'; [EMAIL PROTECTED]
> > > Subject: RE: Struts-Menu (Support URL Re-writing)
> > >
> > >
> > > You have the source to struts and the source to
> > struts-menu, grab the
> > > code from struts and plug it into struts-menu and submit a
> > patch.  You
> > > might need a menu-config.xml option to indicate that you
> > will be url
> > > rewriting.
> > >
> > > Edgar
> > >
> > > -Original Message-
> > > From: Parag Pattewar [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 16, 2004 7:21 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Struts-Menu (Support URL Re-writing)
> > >
> > >
> > > Hi all
> > >
> > > How do I change Struts-Menu implemention, so it can support URL 
> > > ReWriting for session tracking?
> > >
> > > Thanks and Regards
> > > Parag Pattewar
> > > Persistent Systems Private Limited
> > > 

Re: Chart generation Framework

2004-01-20 Thread Adrien GEYMOND
hi,

you can try JfreeCHart which allow to generate many kind of chart (bar
chart, pie chart ...)

This product has a  GNU Lesser General Public Licence

http://www.jfree.org/jfreechart/index.html

download on sourceforge:
http://sourceforge.net/projects/jfreechart

i hope it helps you ...


Adrien


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



RE: newbie: html:form EL in action tag

2004-01-20 Thread Simon Pett

Thanks Frédéric, 
I used the taglig import from the Jakarta JSTL 1.1 getting started doc

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

The focus="${focus}" appears to work and I was able to 
 

So I think the EL works just not in the action parameter of the html:form ??

Simon

-Original Message-
From: Frédéric Dreier 

i'm not sure but, do you have declared the right library (with el 
suffix) at the begining of your page?

<%@ taglib  uri="/WEB-INF/struts-html-el.tld" prefix="html" %>

regards,

frederic



Simon Pett wrote:

>Hi 
>
>I am trying to use tile attributes for the action and focus parameters in
>the html:form tag. So I imported the attributes to the page scope and then
>used EL to set them. 
>
>
>
>
>
>The focus worked fine however the action gave the error
>
>ServletException in:/pages/common/layouts/formlayout.jsp] Cannot retrieve
>mapping for action /${action}'
>
>
>It works ok if I use a scriplet like 
>
>"
>focus="${focus}">
>
>Can someone tell me why?
>
>Thanks
>Simon
>
>
>-
>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: XML and JSP

2004-01-20 Thread Hunt, Steve
It may not do everything you require, but it will certainly start you off.

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 11:50
To: Struts Users Mailing List
Subject: RE: XML and JSP


Hi all,
Thanks for the reply...will xtag really help me???i want to do many complex
querying,adding and deleting elements,attributes in xml file...?
Thanks
Prashanth

"Hunt, Steve" <[EMAIL PROTECTED]> wrote:
Have a look at XTags, a very powerful way to manipulate xml for display in
jsps.

Regards
Steve

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 09:06
To: [EMAIL PROTECTED]
Subject: XML and JSP


Hi all,
can anyone tell me a convinient way to display,add delete elements in a xml
file from jsp???

Thanks
prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


===
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
===


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


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


begin 600 exclusion.jsp
M/"5`('1A9VQI8B!U3IC
M:&5C:TQO9V]N+SX-"@T*/&AT;6PZ:'1M;#X-"CQH96%D/@T*("`@/&UE=&$@
M:'1T<"UE<75I=CTB0V]N=&5N="U4>7!E(B!C;VYT96YT/2)T97AT+VAT;6P[
M(&-H87)S970]:[EMAIL PROTECTED],2(@+SX-"B`@(#QM971A(&YA;64](D%U=&AO
M3TB97AC;'5S:6]N+G1I=&QE(B`O/CPO=&ET;&4^#0H@("`\
M;&EN:R!R96P](G-T>6QE'0O8W-S(B!H&-L=7-I;VXN=&ET;&4B("\^/"]H
M,CX-"CQH=&UL.F9O&-L
M=7-I;VXB(&YA;64](F5X8VQU&-L=7-I;VXN=&5X="(@
M+SX\+V(^(#PO8V%P=&EO;CX-"CQT3TB97AC;'5S:6]N+G1A8FQE2&5A9#$B("\^/"]T
M:#X-"CQT:"!A;&EG;CTB3$5&5"(^/&)E86XZ;65S'1A
M9W,Z=F%L=65/9B!S96QE8W0](D!L86)E;"(O/CPO=&@^#0H\+WAT86=S.F9O
M<[EMAIL PROTECTED]"CQX=&%G2]R97-U;'1S+W9E:&EC;&5?:60B/@T*("`\='(^#0H@("`@
M/'1D/@T*("`@("`@/&AT;6PZ;75L=&EB;W@@<')O<&5R='D](G9A;'5E(CX-
M"B`@("`@("`@/'AT86=S.G9A;'5E3V8@#X-"B`@("`\+W1D/@T*#0H@("`@/'1D/@T*
M("`@("`@/'AT86=S.G9A;'5E3V8@'1A9W,Z8VAO;W-E/@T*("`@("`@
M("`\>'1A9W,Z=VAE;B!T97-T/2)N;W)M86QI>F4M'0H*2D@(3T@)R`G(CX-"B`@("`@
M("`@("`\=&0^#0H@("`@("`@("`@("`\>'1A9W,Z=F%L=65/9B!S96QE8W0]
M(G1E>'0H*2(O/@T*("`@("`@("`@(#PO=&0^#0H@("`@("`@(#PO>'1A9W,Z
M=VAE;CX-"@T*("`@("`@("`\>'1A9W,Z;W1H97)W:7-E/@T*("`@("`@("`@
M(#QT9#XF;F)S<#L\+W1D/@T*("`@("`@("`\+WAT86=S.F]T:&5R=VES93X-
M"B`@("`@(#PO>'1A9W,Z8VAO;W-E/@T*("`@(#PO>'1A9W,Z9F]R16%C:#X-
M"B`@/"]T'1A9W,Z9F]R16%C:#X-"@T*/"]T86)L93X-"@T*/'`@
M+SX-"@T*/"$M+2!$3U]&3U)-("TM/@T*/&AT;6PZ6QE0VQA
M3TB97AC;'5S:6]N7V-H86YG92(^#0H@
M/&)E86XZ;65S4)U='1O;B(@<')O<&5R='D](F5X8VQU&-L=7-I;VY?8V%N
M8V5L(CX-"B`\8F5A;CIM97-S86=E(&ME>3TB8G5T=&]N+F-A;F-E;"YR971U
M3X-"CPO:'1M;#IH=&UL/@T*#0H=
`
end

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



Re: Chart generation Framework

2004-01-20 Thread Otávio Augusto
I've had to use one of these things once.There ara many options, free or not. There is 
JFreeChart, Cewolf, and others.

Otávio Augusto

On Tue, 20 Jan 2004 10:28:21 -0200
Vinicius Carvalho <[EMAIL PROTECTED]> wrote:

> Hi there! Does anyone here uses a chart Framework? I've heard about Cewolf, 
> seems to be nice, any suggestions on this?
> 
> Thanks
> 
> Vinicius
> 
> 
> -
> 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 to replace "

2004-01-20 Thread Zsolt
Hi,

how can I replace the following struts code with JSTL?



Zsolt

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


Re: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread Adam Hardy
Deployed my war file on a server I'd never touched before. Same problem.

I re-created the German xxx_de.properties file with a copy of the 
English, and changed a couple of strings into German to hilight the 
difference. This change took effect - the 'ghost' German disappeared and 
was replaced by the real German.

However as I feared when I deleted this new German properties file, the 
previous 'ghost' German reappeared.

What logical conclusion can I draw from that?



On 01/20/2004 12:07 PM Andriy Ruzhevych wrote:
Did you seach German string  or xxx_de.properties file in all ear/war of the
web server?
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Thanks Heya, but not wild & crazy enough :) - I already did that. In
fact I made a war file and tested it on a completely different server.
On 01/20/2004 08:28 AM [EMAIL PROTECTED] wrote:

This is one of those wild crazy ideas that you asked for... I know
you grepped but maybe didn't grep properly?
There are usually two copies of your resources files, one under your
source directory and that is copied to your classes directory by
Tomcat. The one in classes is actually read by the server, but the
one in source is the one you edit because it should replace the
classes one. Just check manually rather than grepping and see if you
find the "ghost" file.
Adam Hardy <[EMAIL PROTECTED]> 20/01/2004 06:12 PM
Please respond to "Struts Users Mailing List"
Does anybody have any ideas on this? Even wild, stupid, ridiculous
ideas. Anything?
On 01/19/2004 07:02 PM Adam Hardy wrote:

Actually I just did get access to a third server and did a complete
fresh install of java & tomcat and my app.war, and the ghost
German strings came up.
So the German strings must be in the war file. But there is only
the one ApplicationResources.properties file there in the war file!
I just
checked.


Again, deleting or adding the German locale to the browser settings
makes the strings change, so it is definitely the resource
bundles.
On 01/19/2004 06:17 PM Adam Hardy wrote:

Yes, unfortunately it does. On my dev machine and my future
production server. But I had them both running earlier with the
German .properties, so it would be the same problem. I don't have
a third server to test it on.
On 01/19/2004 05:54 PM Tim Kettering wrote:

Does the same thing happen when you build/run the webapp on a
different

computer? Not sure what to tell you here, but that should at
least narrow the scope to something in the source or some ghost
file on your dev machine.
-tim

-Original Message- From: Adam Hardy
[mailto:[EMAIL PROTECTED] Sent: Monday, January
19, 2004 11:35 AM To: Struts Users Mailing List Subject:
deleted ApplicationResources_de.properties ghost
I'm having a nightmare with the
ApplicationResources_de.properties resource bundle in my
webapp. I asked a colleague to look at it and he's baffled too.
I had my resource bundle in an English and also a German
.properties file, for testing purposes, but then decided to
ditch the German version until it's completely finished.
Even though I deleted the German xxx_de.properties file,
shutdown tomcat, deleted the whole webapp and redeployed and
deleted the cache in $CATALINA_HOME/work/ , the German
strings are still being cached somewhere.
I have run a grep on a German string to find it in any file in
the whole of the tomcat, and the whole of my dev-env, but
haven't found it.
In the HTTP headers, I have set pragma=no-cache,
cache-control=no-cache & expires=Thu, 01 Jan 1970 00:00:00 GMT
I have cleared the cache from my browser and done refreshes a
thousand times. This is now about a month afterwards and the
ghost German text is still coming up.
If I set the browser locale to en, then I get the correct
English version, but if I then set it back to de, somehow,
somewhere it is finding the deleted German resource bundle.
Any advice much appreciated. :(


--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread Eric Bariaux
Do you have a "default" xxx.properties file, one without _en?
This would explain why setting the browser the en gives you the correct
result and setting "nothing" or de gives you the incorrect strings.
 
Eric.

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 2:25 PM
> To: Struts Users Mailing List
> Subject: Re: deleted ApplicationResources_de.properties ghost
> 
> Deployed my war file on a server I'd never touched before. Same
problem.
> 
> I re-created the German xxx_de.properties file with a copy of the
> English, and changed a couple of strings into German to hilight the
> difference. This change took effect - the 'ghost' German disappeared
and
> was replaced by the real German.
> 
> However as I feared when I deleted this new German properties file,
the
> previous 'ghost' German reappeared.
> 
> What logical conclusion can I draw from that?
> 
> 
> 
> On 01/20/2004 12:07 PM Andriy Ruzhevych wrote:
> > Did you seach German string  or xxx_de.properties file in all
ear/war of
> the
> > web server?
> >
> > -Original Message-
> > From: Adam Hardy [mailto:[EMAIL PROTECTED]
> >
> > Thanks Heya, but not wild & crazy enough :) - I already did that. In
> > fact I made a war file and tested it on a completely different
server.
> >
> > On 01/20/2004 08:28 AM [EMAIL PROTECTED] wrote:
> >
> >>This is one of those wild crazy ideas that you asked for... I know
> >>you grepped but maybe didn't grep properly?
> >>
> >>There are usually two copies of your resources files, one under your
> >>source directory and that is copied to your classes directory by
> >>Tomcat. The one in classes is actually read by the server, but the
> >>one in source is the one you edit because it should replace the
> >>classes one. Just check manually rather than grepping and see if you
> >>find the "ghost" file.
> >>
> >>Adam Hardy <[EMAIL PROTECTED]> 20/01/2004 06:12 PM
> >>Please respond to "Struts Users Mailing List"
> >>
> >>Does anybody have any ideas on this? Even wild, stupid, ridiculous
> >>ideas. Anything?
> >>
> >>On 01/19/2004 07:02 PM Adam Hardy wrote:
> >>
> >>>Actually I just did get access to a third server and did a complete
> >>> fresh install of java & tomcat and my app.war, and the ghost
> >>>German strings came up.
> >>>
> >>>So the German strings must be in the war file. But there is only
> >>>the one ApplicationResources.properties file there in the war file!
> >>> I just
> >>
> >>checked.
> >>
> >>
> >>>Again, deleting or adding the German locale to the browser settings
> >>> makes the strings change, so it is definitely the resource
> >>>bundles.
> >>>
> >>>
> >>>On 01/19/2004 06:17 PM Adam Hardy wrote:
> >>>
> Yes, unfortunately it does. On my dev machine and my future
> production server. But I had them both running earlier with the
> German .properties, so it would be the same problem. I don't have
>  a third server to test it on.
> 
> On 01/19/2004 05:54 PM Tim Kettering wrote:
> 
> >Does the same thing happen when you build/run the webapp on a
> >>
> >>different
> >>
> >computer? Not sure what to tell you here, but that should at
> >least narrow the scope to something in the source or some ghost
> > file on your dev machine.
> >
> >-tim
> >
> >-Original Message- From: Adam Hardy
> >[mailto:[EMAIL PROTECTED] Sent: Monday, January
> > 19, 2004 11:35 AM To: Struts Users Mailing List Subject:
> >deleted ApplicationResources_de.properties ghost
> >
> >
> >I'm having a nightmare with the
> >ApplicationResources_de.properties resource bundle in my
> >webapp. I asked a colleague to look at it and he's baffled too.
> >
> >
> >I had my resource bundle in an English and also a German
> >.properties file, for testing purposes, but then decided to
> >ditch the German version until it's completely finished.
> >
> >Even though I deleted the German xxx_de.properties file,
> >shutdown tomcat, deleted the whole webapp and redeployed and
> >deleted the cache in $CATALINA_HOME/work/ , the German
> >strings are still being cached somewhere.
> >
> >I have run a grep on a German string to find it in any file in
> >the whole of the tomcat, and the whole of my dev-env, but
> >haven't found it.
> >
> >In the HTTP headers, I have set pragma=no-cache,
> >cache-control=no-cache & expires=Thu, 01 Jan 1970 00:00:00 GMT
> >
> >I have cleared the cache from my browser and done refreshes a
> >thousand times. This is now about a month afterwards and the
> >ghost German text is still coming up.
> >
> >If I set the browser locale to en, then I get the correct
> >English version, but if I then set it back to de, somehow,
> >somewhere it is finding the deleted German resource bundle.
> >
> >Any advice much appreciated. :(
> 
> 
> --
> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> Li

Re: newbie: html:form EL in action tag

2004-01-20 Thread Frédéric Dreier

So I think the EL works just not in the action parameter of the html:form ??

 

It works for me.

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


RE: Add/Modify functionality in same jsp

2004-01-20 Thread Sudhakar G
Hi Nicholas,

Can you provide the sample code which will make me to understand how to
initialize the form thru action class.I know when the form getting submitted
it uses a Actionform to set the form fields data, so that we can access form
fields data from Actionform in Action class.


Sudhakar

-Original Message-
From: Nicholas L Mohler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 6:25 PM
To: Struts Users Mailing List
Subject: Re: Add/Modify functionality in same jsp







Hi Sudhakar,

Your JSP should populate the form fields in the same way for both add and
modify actions.  Specifically, your action class should initialize the form
for the jsp.  When the page is rendered, it will be populated the way that
you want.

Nick



|-+>
| |   "Sudhakar G" |
| |   <[EMAIL PROTECTED]|
| |   ree.com> |
| ||
| |   01/20/2004 06:55 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
 
>
--|
  |
|
  |   To:   <[EMAIL PROTECTED]>
|
  |   cc:
|
  |   Subject:  Add/Modify functionality in same jsp
|
 
>
--|




Hi All,
I want to implement add/modify functionality in same jsp using
struts
tag.I am having a hidden variable which says the current action is add or
modify.
Can any one tell how the jsp will implement the modify functionality?.My
idea
is put if..else conditions for each form field and populate data in case of
modify using the struts tag and don't populate data for add
functionality..If
some one can provide me a sample jsp thru that I will have the
understanding
before implementing the functionality.

Thanks & Regards
Sudhakar



DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. Before opening attachments please check them for viruses and
defects. MindTree Consulting Private Limited (MindTree) will not be
responsible for any viruses or defects or any forwarded attachments
emanating either from within MindTree or outside. If you have received this
message by mistake please notify the sender by return  e-mail and delete
this message from your system. Any unauthorized use or dissemination of
this message in whole or in part is strictly prohibited.  Please note that
e-mails are susceptible to change and MindTree shall not be liable for any
improper, untimely or incomplete transmission.

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



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

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



RE: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread chekuri raju
Hi Eric 
i think if ur application does not know which file to read then by default it reads 
AppXX_de.props file.as _de.props comes before _en.props (in alphabatical order 
after de we get en)
 
thanks
srinivas

Eric Bariaux <[EMAIL PROTECTED]> wrote:
Do you have a "default" xxx.properties file, one without _en?
This would explain why setting the browser the en gives you the correct
result and setting "nothing" or de gives you the incorrect strings.

Eric.

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 2:25 PM
> To: Struts Users Mailing List
> Subject: Re: deleted ApplicationResources_de.properties ghost
> 
> Deployed my war file on a server I'd never touched before. Same
problem.
> 
> I re-created the German xxx_de.properties file with a copy of the
> English, and changed a couple of strings into German to hilight the
> difference. This change took effect - the 'ghost' German disappeared
and
> was replaced by the real German.
> 
> However as I feared when I deleted this new German properties file,
the
> previous 'ghost' German reappeared.
> 
> What logical conclusion can I draw from that?
> 
> 
> 
> On 01/20/2004 12:07 PM Andriy Ruzhevych wrote:
> > Did you seach German string or xxx_de.properties file in all
ear/war of
> the
> > web server?
> >
> > -Original Message-
> > From: Adam Hardy [mailto:[EMAIL PROTECTED]
> >
> > Thanks Heya, but not wild & crazy enough :) - I already did that. In
> > fact I made a war file and tested it on a completely different
server.
> >
> > On 01/20/2004 08:28 AM [EMAIL PROTECTED] wrote:
> >
> >>This is one of those wild crazy ideas that you asked for... I know
> >>you grepped but maybe didn't grep properly?
> >>
> >>There are usually two copies of your resources files, one under your
> >>source directory and that is copied to your classes directory by
> >>Tomcat. The one in classes is actually read by the server, but the
> >>one in source is the one you edit because it should replace the
> >>classes one. Just check manually rather than grepping and see if you
> >>find the "ghost" file.
> >>
> >>Adam Hardy 20/01/2004 06:12 PM
> >>Please respond to "Struts Users Mailing List"
> >>
> >>Does anybody have any ideas on this? Even wild, stupid, ridiculous
> >>ideas. Anything?
> >>
> >>On 01/19/2004 07:02 PM Adam Hardy wrote:
> >>
> >>>Actually I just did get access to a third server and did a complete
> >>> fresh install of java & tomcat and my app.war, and the ghost
> >>>German strings came up.
> >>>
> >>>So the German strings must be in the war file. But there is only
> >>>the one ApplicationResources.properties file there in the war file!
> >>> I just
> >>
> >>checked.
> >>
> >>
> >>>Again, deleting or adding the German locale to the browser settings
> >>> makes the strings change, so it is definitely the resource
> >>>bundles.
> >>>
> >>>
> >>>On 01/19/2004 06:17 PM Adam Hardy wrote:
> >>>
> Yes, unfortunately it does. On my dev machine and my future
> production server. But I had them both running earlier with the
> German .properties, so it would be the same problem. I don't have
>  a third server to test it on.
> 
> On 01/19/2004 05:54 PM Tim Kettering wrote:
> 
> >Does the same thing happen when you build/run the webapp on a
> >>
> >>different
> >>
> >computer? Not sure what to tell you here, but that should at
> >least narrow the scope to something in the source or some ghost
> > file on your dev machine.
> >
> >-tim
> >
> >-Original Message- From: Adam Hardy
> >[mailto:[EMAIL PROTECTED] Sent: Monday, January
> > 19, 2004 11:35 AM To: Struts Users Mailing List Subject:
> >deleted ApplicationResources_de.properties ghost
> >
> >
> >I'm having a nightmare with the
> >ApplicationResources_de.properties resource bundle in my
> >webapp. I asked a colleague to look at it and he's baffled too.
> >
> >
> >I had my resource bundle in an English and also a German
> >.properties file, for testing purposes, but then decided to
> >ditch the German version until it's completely finished.
> >
> >Even though I deleted the German xxx_de.properties file,
> >shutdown tomcat, deleted the whole webapp and redeployed and
> >deleted the cache in $CATALINA_HOME/work/ , the German
> >strings are still being cached somewhere.
> >
> >I have run a grep on a German string to find it in any file in
> >the whole of the tomcat, and the whole of my dev-env, but
> >haven't found it.
> >
> >In the HTTP headers, I have set pragma=no-cache,
> >cache-control=no-cache & expires=Thu, 01 Jan 1970 00:00:00 GMT
> >
> >I have cleared the cache from my browser and done refreshes a
> >thousand times. This is now about a month afterwards and the
> >ghost German text is still coming up.
> >
> >If I set the browser locale to en, then I get the correct
> 

[OT] Struts and its economic efficiency

2004-01-20 Thread Matthias Wessendorf
Hi,

i am just searching some information about
the economic efficiency of struts (or more general a
Model2-Implementation).

Does anyone know a link to a statistic, 
where is shown, that model2 is more profitable than
the old model1 ?

--
Matthias Weßendorf
Email: mailto:[EMAIL PROTECTED]
URL: http://www.wessendorf.net


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



RE: Struts-Menu (Support URL Re-writing)

2004-01-20 Thread Matt Raible
I need to know a couple things to help you with this problem.

1.  What version of Struts Menu are you using?
2.  Which displayer are you using?


Also, knowing what platform (OS) and JDK version you're using can't
hurt.

Matt

> -Original Message-
> From: Parag Pattewar [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 19, 2004 10:34 PM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Struts-Menu (Support URL Re-writing)
> 
> 
> Hi
> 
> If I change below location attribute to action attribute for 
>  as well as from  then
> 
> For menu link I am getting
> 
> http://localhost:8080/cust/null/expandedMenu=CsrAccountInformation
> 
> and For Item link I am getting
> 
> http://localhost:8080/cust/null instead of 
> http://localhost:8080/cust/personalDataLoad?expandedMenu=CsrAc
> countInformati
> on
> 
>  
>  action="/personalDataLoad?expandedMenu=CsrAccountInformation"/>
>  action="/closeAccountPageRouter?expandedMenu=CsrAccountInformation"/>
>  
> 
> Why this null is coming, is it coming bacause of some path 
> problem. I checked the entry of /accountinfoview and all 
> actions mentioned above in my struts-config.xml, the entries 
> are there.
> 
> Thanks in advance for the Help.
> 
> Regards
> Parag
> 
> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 17, 2004 9:20 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts-Menu (Support URL Re-writing)
> 
> 
> Change the "location" attribute to a "action" attribute, 
> where the value of "action" matches the "path" of your action 
> mapping.  For example:
> 
>  action="/accountinfoview">
> 
> If you are using 2.0, this should work.  If it doesn't, let 
> me know what displayer you're using and I'll fix it.
> 
> Matt
> 
> > -Original Message-
> > From: Parag Pattewar [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, January 17, 2004 12:05 AM
> > To: Matt Raible; 'Struts Users Mailing List'
> > Subject: RE: Struts-Menu (Support URL Re-writing)
> >
> >
> >
> > Hi
> > I am having previous implementation of struts-menu as below
> >
> >  > location="accountinfoview.do" >
> >  > location="personaldtd.do?expMenu=AcctInfo"/>
> >  > location="clsRouter.do?expMenu=AcctInfo"/>
> > 
> >
> > I have changed it as below, is it the correct way of using 
> action and 
> > forward attributes in struts-menu.
> >
> >  > location="accountinfoview.do" >
> >  > action="personaldtd.do?expMenu=AcctInfo"/>
> >  > forward="clsRouter.do?expMenu=AcctInfo"/>
> > 
> >
> >
> >
> > -Original Message-
> > From: Matt Raible [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 16, 2004 8:44 PM
> > To: 'Struts Users Mailing List'; 'Parag Pattewar'
> > Subject: RE: Struts-Menu (Support URL Re-writing)
> >
> >
> > Struts Menu makes use of Struts classes to support "forward" and 
> > "action" attributes.  If you use those, you'll likely get the 
> > re-writing you're looking for.  I did this on a previous 
> project and 
> > did find that the "forward" attribute worked, but not the "action" 
> > attribute.  I believe this is a bug in Struts since it should do 
> > rewriting when looking up an Action's path.
> >
> > The one issue with re-writing is that if you're using a menu that 
> > matches URLs (i.e. tabbed-menu) - they probably won't get 
> matched up. 
> > At a previous project, we were using URLs to highlight the current 
> > page we were on and we found that we had to use the 
> "action" attribute 
> > or the "page" attribute so that the jsessionid wasn't appended.  Of 
> > course, we could've stripped this off in our Velocity 
> template, but we 
> > wen't with the quick, less-logic, way.
> >
> > To see this project, go to http://telluride.resortquest.com 
> and drill 
> > down a bit.  The menu with highlight is on the right.  BTW, 
> this site 
> > uses the Velocity displayer for both the top menu and the side menu.
> >
> > If you're not familiar with struts-menu, checkout the demo at 
> > http://raibledesigns.com/struts-menu.
> >
> > Matt
> >
> > > -Original Message-
> > > From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 16, 2004 7:54 AM
> > > To: 'Parag Pattewar'; [EMAIL PROTECTED]
> > > Subject: RE: Struts-Menu (Support URL Re-writing)
> > >
> > >
> > > You have the source to struts and the source to
> > struts-menu, grab the
> > > code from struts and plug it into struts-menu and submit a
> > patch.  You
> > > might need a menu-config.xml option to indicate that you
> > will be url
> > > rewriting.
> > >
> > > Edgar
> > >
> > > -Original Message-
> > > From: Parag Pattewar [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 16, 2004 7:21 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Struts-Menu (Support URL Re-writing)
> > >
> > >
> > > Hi all
> > >
> > > How do I change Struts-Menu implemention, so it can support URL 
> > > ReWriting for session tra

RE: Add/Modify functionality in same jsp

2004-01-20 Thread Sudhakar G
Hi 
Can anyone help me in my modify jsp page how to populate the default values
from the Data Transfer Object.Is it something to do with index properties in
the jsp


Regards
Sudhakar

-Original Message-
From: Sudhakar G 
Sent: Tuesday, January 20, 2004 7:09 PM
To: Struts Users Mailing List
Subject: RE: Add/Modify functionality in same jsp


Hi Nicholas,

Can you provide the sample code which will make me to understand how to
initialize the form thru action class.I know when the form getting submitted
it uses a Actionform to set the form fields data, so that we can access form
fields data from Actionform in Action class.


Sudhakar

-Original Message-
From: Nicholas L Mohler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 6:25 PM
To: Struts Users Mailing List
Subject: Re: Add/Modify functionality in same jsp







Hi Sudhakar,

Your JSP should populate the form fields in the same way for both add and
modify actions.  Specifically, your action class should initialize the form
for the jsp.  When the page is rendered, it will be populated the way that
you want.

Nick



|-+>
| |   "Sudhakar G" |
| |   <[EMAIL PROTECTED]|
| |   ree.com> |
| ||
| |   01/20/2004 06:55 |
| |   AM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
 
>
--|
  |
|
  |   To:   <[EMAIL PROTECTED]>
|
  |   cc:
|
  |   Subject:  Add/Modify functionality in same jsp
|
 
>
--|




Hi All,
I want to implement add/modify functionality in same jsp using
struts
tag.I am having a hidden variable which says the current action is add or
modify.
Can any one tell how the jsp will implement the modify functionality?.My
idea
is put if..else conditions for each form field and populate data in case of
modify using the struts tag and don't populate data for add
functionality..If
some one can provide me a sample jsp thru that I will have the
understanding
before implementing the functionality.

Thanks & Regards
Sudhakar



DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. Before opening attachments please check them for viruses and
defects. MindTree Consulting Private Limited (MindTree) will not be
responsible for any viruses or defects or any forwarded attachments
emanating either from within MindTree or outside. If you have received this
message by mistake please notify the sender by return  e-mail and delete
this message from your system. Any unauthorized use or dissemination of
this message in whole or in part is strictly prohibited.  Please note that
e-mails are susceptible to change and MindTree shall not be liable for any
improper, untimely or incomplete transmission.

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



DISCLAIMER:
This message (including attachment if any) is confidential and may be
privileged. Before opening attachments please check them for viruses and
defects. MindTree Consulting Private Limited (MindTree) will not be
responsible for any viruses or defects or any forwarded attachments emanating
either from within MindTree or outside. If you have received this message by
mistake please notify the sender by return  e-mail and delete this message
from your system. Any unauthorized use or dissemination of this message in
whole or in part is strictly prohibited.  Please note that e-mails are
susceptible to change and MindTree shall not be liable for any improper,
untimely or incomplete transmission.

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



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in

RE: Using tag with nested beans

2004-01-20 Thread Jerry Jalenak
Arron - 

Thanks for the reply.  I finally opened up the  tag code and
discovered that the default scope used is 'request'.  What I ended up doing
was the following:


 // expose
the current list item in page scope







This seems to work correctly.  I'm now trying to move up one level of
iteration and nest list3 inside or a table for list2



Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Arron Bates [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 12:59 AM
> To: Struts Users Mailing List
> Subject: Re: Using  tag with nested beans
> 
> 
> Jerry,
> 
> Try using  tags to make bean references that 
> the display tags
> could then get a hold of and use. Otherwise, there would be 
> no other way
> unless the display tag source code was updated to recognise 
> and use the nested
> context.
> 
> Hope this does the trick.
> 
> 
> Arron.
> 
> 
> 
> > I'm trying to get the  tag library to work with 
> my nested bean
> > structure without much luck, and after screwing around with 
> this for 
> > the past three days, I'm ready to throw in the towel.  If 
> anyone can 
> > see what it is I'm doing wrong, I'd appreciate it.
> > 
> > Basically I've got the following (currently):
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > This works fine, as I get the values for item1, item2, etc.  I now 
> > need to replace the last  with a  
> > tag with appropriate 's.  I've tried several 
> > things, including:
> > 
> > 
> > 
> > 
> > 
> > I've also tried to set a page-scope object on the 'list2' iterate:
> > 
> > 
> > 
> > 
> > 
> > Whatever I try I am consistently getting a JSP exception thrown of 
> > 
> > ERROR 01/19/2004:12:07:51 - Error looking up property "specimenId" 
> > in object type "java.lang.String" Exception: [.LookupUtil] Error 
> > looking up property "specimenId" in object type "java.lang.String" 
> > Cause: Unknown property 'specimenId'
> > 
> > from 
> > 
> > org.displaytag.util.LookupUtil.getBeanProperty(LookupUtil.java:210)
> > at org.displaytag.model.Column.getValue(Column.java:93)
> > at
> > 
> org.displaytag.model.Column.createChoppedAndLinkedValue(Column
> .java:144)at
> org.displaytag.model.Column.getOpenTag(Column.java:120)   at
> org.displaytag.tags.TableTag.getHTMLData(TableTag.java:1136)  at
> org.displaytag.tags.TableTag.doEndTag(TableTag.java:847)
> > 
> > Help!  I'm at my wits end on this.  Any ideas?  Or will the 
> >  taglib just not work with nested beans?
> > 
> > Thanks!
> > 
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > This transmission (and any information attached to it) may be 
> > confidential and is intended solely for the use of the 
> individual or 
> > entity to which it is addressed. If you are not the intended 
> > recipient or the person responsible for delivering the transmission 
> > to the intended recipient, be advised that you have received this 
> > transmission in error and that any use, dissemination, forwarding, 
> > printing, or copying of this information is strictly prohibited. If 
> > you have received this transmission in error, please 
> immediately notify
> > LabOne at the following email address: 
> [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]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


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



Iplanet Struts Compatibility

2004-01-20 Thread sanjeev_dutt
Hi,

We have a web based application which is in perl-cgi.
We are planning to move it migrate it to JSP and struts MVC-II is the proposed model.
I wish to understand few things about this:

1.Is struts compatible with Iplanet? Or should we use weblogic?

2.The web application does not have many forms. It basically has most of links 
clicking on which the reports appear.
In this scenerio is it advisable to go for struts ?

3.Any links where I could read more about perl-cgi to JSP migrations and proposed 
design patterns so that I could leverage more on that.

TIA
Sanjeev

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



RE: getting data from form with nested beans

2004-01-20 Thread Martin Sturzenegger
hi shirish,
great conceipt and many thanks for example and explanation, my fog seems to thin out 
slowly.
one question remains: as soon as a new form is created, then, i assume, the user's 
inputs are lost. so how do you get hold of the user's input? usually one feeds the 
input data back into a database. with simple beans i copy the formdata to a new 
instantiated dto-bean within my action class and pass the dto-bean to my 
business-layer. but dealing with nested beans, where and how?
sorry for pestering
and thanks a lot in advance
martin 


-- Urspruengliche Nachricht --
Von: <[EMAIL PROTECTED]>
Antworten an: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Datum:  Tue, 20 Jan 2004 13:54:30 +0100

>yes:-))
>And I am sure most of the people do have the same.I mean tieing the nested properties 
>to the session scope does take away a lot of flexibility.
>
>Anyhow just try my sample code...It should demonstrate the concept.
>
>regards,
>Shirish
>
>-Original Message-
>From: Mark Lowe [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 20, 2004 1:44 PM
>To: Struts Users Mailing List
>Subject: Re: getting data from form with nested beans
>
>
>So you've had forms, with indexed properties with dynamic sizes working  
>when scoping to request?
>
>
>On 20 Jan 2004, at 11:45, <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>> Is it flaming or what?I thought we were trying to solve each others  
>> problems.Still a last try.
>> We have a complete application(3 modules/4000 classes/15 companies  
>> live as of date) which uses all form beans just in request scope.And  
>> all over the place we have used form beans in request scope.And the  
>> application is well and running.
>>
>> If you go t through my mail, you will understand why it will mail.SO  
>> please read the mail carefully.
>> I will try to explain it again.
>>
>> When the form is submitted(the user presses submit button on  
>> screen),the corresponding action will be called by struts.At the same  
>> time, it will look for a actionForm from the mapping.As the scope is  
>> specified as request, a new form will be created.And if you have  
>> looked at my example carefully, you will see that the nested bean list  
>> is created when the form is created.But this nested list is empty.Now  
>> when struts autopopulation tries to populate a nested bean, it should   
>> find that the nested bean list is empty.But the lazy initialization  
>> mechanism in the indexed getter will take care that the list has  
>> enough of beans.See the code below.
>> 33
>>  //give indexed access to the beans
>
> public Employee getEmployee(int index){
>
> //very imp
>
> //when a jsp is submited , then while auto populating the form,this
> will
> ensure
> that
>
> // the  form is populated properly.
>
> while(index >= beanList.size()){
>
> beanList.add(new Employee());
>
> }
>> ***
>>
>> And as explained in jsp part, as long as the property references are  
>> created properly, this will work.And with struts1.1 nested tags, you  
>> don't have to even use the script<%%> to create property is jsp.
>>
>> Hope this clarifies it.If not, try to run my example code.
>>
>> regards,
>> Shirish
>>
>> -Original Message-
>> From: Mark Lowe [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, January 20, 2004 12:28 PM
>> To: Struts Users Mailing List
>> Subject: Re: getting data from form with nested beans
>>
>>
>> Oh yeah .. by working i mean when you submit..
>>
>>
>> On 20 Jan 2004, at 11:25, Mark Lowe wrote:
>>
>>> .. Show us all an example of a form with a dynamic size for a form
>>> property thats scoped to the request then big shot..
>>>
>>> Come on lets see it!!!
>>>
>>>
>>> On 20 Jan 2004, at 10:45, <[EMAIL PROTECTED]> wrote:
>>>
 The scope of form has nothing to do with usage of nested beans.And
 using session scope shoudl be avaided as far as possible as teh form
 will stay in session  till it is explicitely removed from there..

 The <% %> business is for the scripts so that the nested property
 reference can be created.But with struts1.1 , with the usage of
 nested tags, oyu can get rid of that scriptlet code.See nested tags
 for how to do that.I have myself never used nested tags.


 -Original Message-
 From: Mark Lowe [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 20, 2004 11:05 AM
 To: Struts Users Mailing List
 Subject: Re: getting data from form with nested beans


 What's with all the <% %> business? Things to watch out for, method
 names and the object cast to the jsp need to match names (e.g.
 foo.getEmployee() and ${foo.employee}). The form must be scoped to
 session if you are dynamically changing the size of the  indexed
 property.

 

 A better example would be a form bean with a getEmployees() method  
 

Re: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread Adam Hardy
That would be correct - the algorithm for deciding which resource bundle 
to pull a string from is not intuitive. However, I am having this 
problem when I use only 1 ApplicationResources.properties file.

It has no language code ending. It is the default. And there are no 
other .properties files in my app.

BTW it's not a proxy (I have no proxy on my dev box).

On 01/20/2004 02:51 PM chekuri raju wrote:
Hi Eric i think if ur application does not know which file to read
then by default it reads AppXX_de.props file.as _de.props comes
before _en.props (in alphabatical order after de we get en)
thanks srinivas

Eric Bariaux <[EMAIL PROTECTED]> wrote: Do you have a "default"
xxx.properties file, one without _en? This would explain why setting
the browser the en gives you the correct result and setting "nothing"
or de gives you the incorrect strings.
-Original Message- From: Adam Hardy
[mailto:[EMAIL PROTECTED]
Deployed my war file on a server I'd never touched before. Same
problem.

I re-created the German xxx_de.properties file with a copy of the 
English, and changed a couple of strings into German to hilight the
 difference. This change took effect - the 'ghost' German
disappeared
and was replaced by the real German.
However as I feared when I deleted this new German properties file,
 the previous 'ghost' German reappeared.
What logical conclusion can I draw from that?

On 01/20/2004 12:07 PM Andriy Ruzhevych wrote:

Did you seach German string or xxx_de.properties file in all
ear/war of

the

web server?

-Original Message- From: Adam Hardy
[mailto:[EMAIL PROTECTED]
Thanks Heya, but not wild & crazy enough :) - I already did that.
In fact I made a war file and tested it on a completely different
server.

On 01/20/2004 08:28 AM [EMAIL PROTECTED] wrote:


This is one of those wild crazy ideas that you asked for... I
know you grepped but maybe didn't grep properly?
There are usually two copies of your resources files, one under
your source directory and that is copied to your classes
directory by Tomcat. The one in classes is actually read by the
server, but the one in source is the one you edit because it
should replace the classes one. Just check manually rather than
grepping and see if you find the "ghost" file.
Adam Hardy 20/01/2004 06:12 PM Please respond to "Struts Users
Mailing List"
Does anybody have any ideas on this? Even wild, stupid,
ridiculous ideas. Anything?
On 01/19/2004 07:02 PM Adam Hardy wrote:


Actually I just did get access to a third server and did a
complete fresh install of java & tomcat and my app.war, and
the ghost German strings came up.
So the German strings must be in the war file. But there is
only the one ApplicationResources.properties file there in
the war file! I just
checked.



Again, deleting or adding the German locale to the browser
settings makes the strings change, so it is definitely the
resource bundles.
On 01/19/2004 06:17 PM Adam Hardy wrote:


Yes, unfortunately it does. On my dev machine and my future
 production server. But I had them both running earlier
with the German .properties, so it would be the same
problem. I don't have a third server to test it on.
On 01/19/2004 05:54 PM Tim Kettering wrote:


Does the same thing happen when you build/run the webapp
on a
different


computer? Not sure what to tell you here, but that should
at least narrow the scope to something in the source or
some ghost file on your dev machine.
-tim

-Original Message- From: Adam Hardy 
[mailto:[EMAIL PROTECTED] Sent: Monday,
January 19, 2004 11:35 AM To: Struts Users Mailing List
Subject: deleted ApplicationResources_de.properties ghost



I'm having a nightmare with the 
ApplicationResources_de.properties resource bundle in my 
webapp. I asked a colleague to look at it and he's
baffled too.

I had my resource bundle in an English and also a German 
.properties file, for testing purposes, but then decided
to ditch the German version until it's completely
finished.

Even though I deleted the German xxx_de.properties file, 
shutdown tomcat, deleted the whole webapp and redeployed
and deleted the cache in $CATALINA_HOME/work/ , the
German strings are still being cached somewhere.

I have run a grep on a German string to find it in any
file in the whole of the tomcat, and the whole of my
dev-env, but haven't found it.
In the HTTP headers, I have set pragma=no-cache, 
cache-control=no-cache & expires=Thu, 01 Jan 1970
00:00:00 GMT

I have cleared the cache from my browser and done
refreshes a thousand times. This is now about a month
afterwards and the ghost German text is still coming up.
If I set the browser locale to en, then I get the correct
 English version, but if I then set it back to de,
somehow, somewhere it is finding the deleted German
resource bundle.
Any advice much appreciated. :(


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

RE: How to replace "

2004-01-20 Thread Mohan Radhakrishnan
Zsolt,

 I have some idea about this though I haven't tried it. I think this is
the basic idea.

Use JSTL fmt tag


 javax.servlet.jsp.jstl.fmt.localizationContext

com.jea.emis.rulemaking.presentation.RuleMakingResources



Mohan

-Original Message-
From: Zsolt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 5:56 PM
To: Struts Users Mailing List
Subject: How to replace "


Zsolt


-
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: JSP editor - plugin for eclipse ?

2004-01-20 Thread Norm Deane
I've been using Eclipse 3.0M6 with Lomboz
(http://www.objectlearn.com/products/lomboz.jsp) and really like it.  It
supports code completion in JSP pages, syntax checking, syntax highlighting,
and even shows you the generated servlet.

FWIW, I've also been very happy with XMLBuddy for XML editing.
(http://www.xmlbuddy.com/)

--Norm

-- 
Norm Deane
MIS Consultant
Vanderbilt University
(615) 322-7855
[EMAIL PROTECTED] 

> -Original Message-
> From: Divya B Sridhar [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, January 20, 2004 5:15 AM
> To: [EMAIL PROTECTED]
> Subject: JSP editor - plugin for eclipse ?
> 
> 
> Hi All,
> Do we have a plugin for eclipse which would check JSP syntax 
> at save time/compilation time or so? 
> Since Eclipse would recognise Java keywords if JDK is 
> installed; similarly, do we have a plugin for eclipse which 
> enables eclipse to recognise JSP tags?
>  
> Thanks for any inputs,
> Regards,
> Divya.
> 


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



RE: How to replace "

2004-01-20 Thread Mohan Radhakrishnan
I meant that in your web.xml you should include something like this.
RuleMakingResources.properties is the .properties file


 javax.servlet.jsp.jstl.fmt.localizationContext

com.jea.emis.rulemaking.presentation.RuleMakingResources


Mohan

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 7:48 PM
To: 'Struts Users Mailing List'
Subject: RE: How to replace "
 javax.servlet.jsp.jstl.fmt.localizationContext

com.jea.emis.rulemaking.presentation.RuleMakingResources



Mohan

-Original Message-
From: Zsolt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 5:56 PM
To: Struts Users Mailing List
Subject: How to replace "


Zsolt


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



Tool for jsp debug

2004-01-20 Thread Florin Pop
Hi,

does anyone know a tool for debugging jsp files? So that you are able to
trace the code in the jsp source not in the generated servlets.

Thanks,

Florin

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



Re: Tool for jsp debug

2004-01-20 Thread daniel
Ive seen netbeans3.5.1  do both.

- Original Message - 
From: "Florin Pop" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, January 20, 2004 9:27 AM
Subject: Tool for jsp debug


> Hi,
> 
> does anyone know a tool for debugging jsp files? So that you are able to
> trace the code in the jsp source not in the generated servlets.
> 
> Thanks,
> 
> Florin
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004

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



RE: Tool for jsp debug

2004-01-20 Thread Florin Pop
is there a faster one? IntelliJ for example does support jsp debugging?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 4:28 PM
To: Struts Users Mailing List
Subject: Re: Tool for jsp debug


Ive seen netbeans3.5.1  do both.

- Original Message - 
From: "Florin Pop" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, January 20, 2004 9:27 AM
Subject: Tool for jsp debug


> Hi,
> 
> does anyone know a tool for debugging jsp files? So that you are able to
> trace the code in the jsp source not in the generated servlets.
> 
> Thanks,
> 
> Florin
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 1/19/2004

-
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: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread Eric Bariaux
Not sure how an application could not know the bundle to select.

Imagine you have files xxx_de.props and xxx.props, you have a parent-son
relationship between those 2 bundles (xxx is parent of xxx_de).
If you look-up something for a de Locale, it looks first in xxx_de, then
if not found it looks in xxx.
If you look-up something for another Locale (e.g. en), it looks in xxx.
In both cases, if no match is ever found for the key, it throws a
MissingResourceException.
Then depending on the "higher level framework", it can let the exception
propagate, return null or return the key or whatever.

So in Adam's case, I just saw a possibility that if he has a xxx.props
file and a xxx_en.props file, the resources could come from the
xxx.props if the Locale was not explicitly set to en in the browser
(e.g. the Locale defaulted to de because that's the Locale of the OS the
server is running on).

Now Adam, I'm seeing another possibility of confusion here.
If you do not have a xxx.props file, only a xxx_en.props file and your
Locale is not en, you would not find any resource for any key.
Now I believe depending on how struts is configured, it could return the
key instead throwing an exception when the key is not found.
So this might sound stupid, but by any chance would it be your key (in
german) that you're seeing as your ghost messages?

BTW, I'm talking about Java ResourceBundle mechanism, not struts
MessageResources, not sure if the mechanism is the same.


> -Original Message-
> From: chekuri raju [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 2:51 PM
> To: Struts Users Mailing List
> Subject: RE: deleted ApplicationResources_de.properties ghost
> 
> Hi Eric
> i think if ur application does not know which file to read then by
default
> it reads AppXX_de.props file.as _de.props comes before _en.props
(in
> alphabatical order after de we get en)
> 
> thanks
> srinivas
> 
> Eric Bariaux <[EMAIL PROTECTED]> wrote:
> Do you have a "default" xxx.properties file, one without _en?
> This would explain why setting the browser the en gives you the
correct
> result and setting "nothing" or de gives you the incorrect strings.
> 
> Eric.
> 
> > -Original Message-
> > From: Adam Hardy [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, January 20, 2004 2:25 PM
> > To: Struts Users Mailing List
> > Subject: Re: deleted ApplicationResources_de.properties ghost
> >
> > Deployed my war file on a server I'd never touched before. Same
> problem.
> >
> > I re-created the German xxx_de.properties file with a copy of the
> > English, and changed a couple of strings into German to hilight the
> > difference. This change took effect - the 'ghost' German disappeared
> and
> > was replaced by the real German.
> >
> > However as I feared when I deleted this new German properties file,
> the
> > previous 'ghost' German reappeared.
> >
> > What logical conclusion can I draw from that?
> >
> >
> >
> > On 01/20/2004 12:07 PM Andriy Ruzhevych wrote:
> > > Did you seach German string or xxx_de.properties file in all
> ear/war of
> > the
> > > web server?
> > >
> > > -Original Message-
> > > From: Adam Hardy [mailto:[EMAIL PROTECTED]
> > >
> > > Thanks Heya, but not wild & crazy enough :) - I already did that.
In
> > > fact I made a war file and tested it on a completely different
> server.
> > >
> > > On 01/20/2004 08:28 AM [EMAIL PROTECTED] wrote:
> > >
> > >>This is one of those wild crazy ideas that you asked for... I know
> > >>you grepped but maybe didn't grep properly?
> > >>
> > >>There are usually two copies of your resources files, one under
your
> > >>source directory and that is copied to your classes directory by
> > >>Tomcat. The one in classes is actually read by the server, but the
> > >>one in source is the one you edit because it should replace the
> > >>classes one. Just check manually rather than grepping and see if
you
> > >>find the "ghost" file.
> > >>
> > >>Adam Hardy 20/01/2004 06:12 PM
> > >>Please respond to "Struts Users Mailing List"
> > >>
> > >>Does anybody have any ideas on this? Even wild, stupid, ridiculous
> > >>ideas. Anything?
> > >>
> > >>On 01/19/2004 07:02 PM Adam Hardy wrote:
> > >>
> > >>>Actually I just did get access to a third server and did a
complete
> > >>> fresh install of java & tomcat and my app.war, and the ghost
> > >>>German strings came up.
> > >>>
> > >>>So the German strings must be in the war file. But there is only
> > >>>the one ApplicationResources.properties file there in the war
file!
> > >>> I just
> > >>
> > >>checked.
> > >>
> > >>
> > >>>Again, deleting or adding the German locale to the browser
settings
> > >>> makes the strings change, so it is definitely the resource
> > >>>bundles.
> > >>>
> > >>>
> > >>>On 01/19/2004 06:17 PM Adam Hardy wrote:
> > >>>
> > Yes, unfortunately it does. On my dev machine and my future
> > production server. But I had them both running earlier with the
> > German .properties, so it would be the same prob

Re: Iplanet Struts Compatibility

2004-01-20 Thread Joe Germuska
At 7:41 PM +0530 1/20/04, sanjeev_dutt wrote:
Hi,

We have a web based application which is in perl-cgi.
We are planning to move it migrate it to JSP and struts MVC-II is 
the proposed model.
I wish to understand few things about this:

1.Is struts compatible with Iplanet? Or should we use weblogic?
Struts requires Servlet 2.2; iPlanet 4.x predates that, but if you 
are using a newer iPlanet, you'll probably be fine.

2.The web application does not have many forms. It basically has 
most of links clicking on which the reports appear.
In this scenerio is it advisable to go for struts ?
Struts can be useful even if you aren't processing a lot of forms.  I 
guess it depends on what your alternatives are, but I wouldn't treat 
"not many forms" as a reason not to use Struts.

3.Any links where I could read more about perl-cgi to JSP migrations 
and proposed design patterns so that I could leverage more on that.
It can be a challenge to change your mindset; I was a Perl/CGI 
programmer before I got into using Servlets.  Of course, I think if 
Struts had been around, I would have come over to Servlets more 
easily, because of the number of things which it manages for you. 
(I was also dealing with iPlanet 4.x and the bad old days before web 
application deployment was standardized, which didn't help...)

It also depends on how object-oriented your Perl was and how you were 
managing the HTML generation piece and the like.  I don't know of any 
reading specifically focused on the transition.

You may want to dig up a good introductory book on OO design; I 
remember really liking Peter Coad's "Java Design", although now it 
seems kind of obvious -- but that's the nature of paradigm shifts; it 
can be hard to remember how it was before.  And, of course, there are 
lots of Struts books!

Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

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


Re: deleted ApplicationResources_de.properties ghost

2004-01-20 Thread Adam Hardy
No, it's not that either. My one & only resource bundle is the default 
with no lang ending code.

I'm going to debug the resource bundle mechanism. I'm pretty sure I'll 
be back with this again though.

On 01/20/2004 03:30 PM Eric Bariaux wrote:
Not sure how an application could not know the bundle to select.

Imagine you have files xxx_de.props and xxx.props, you have a parent-son
relationship between those 2 bundles (xxx is parent of xxx_de).
If you look-up something for a de Locale, it looks first in xxx_de, then
if not found it looks in xxx.
If you look-up something for another Locale (e.g. en), it looks in xxx.
In both cases, if no match is ever found for the key, it throws a
MissingResourceException.
Then depending on the "higher level framework", it can let the exception
propagate, return null or return the key or whatever.
So in Adam's case, I just saw a possibility that if he has a xxx.props
file and a xxx_en.props file, the resources could come from the
xxx.props if the Locale was not explicitly set to en in the browser
(e.g. the Locale defaulted to de because that's the Locale of the OS the
server is running on).
Now Adam, I'm seeing another possibility of confusion here.
If you do not have a xxx.props file, only a xxx_en.props file and your
Locale is not en, you would not find any resource for any key.
Now I believe depending on how struts is configured, it could return the
key instead throwing an exception when the key is not found.
So this might sound stupid, but by any chance would it be your key (in
german) that you're seeing as your ghost messages?
BTW, I'm talking about Java ResourceBundle mechanism, not struts
MessageResources, not sure if the mechanism is the same.


-Original Message-
From: chekuri raju [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 2:51 PM
To: Struts Users Mailing List
Subject: RE: deleted ApplicationResources_de.properties ghost
Hi Eric
i think if ur application does not know which file to read then by
default

it reads AppXX_de.props file.as _de.props comes before _en.props
(in

alphabatical order after de we get en)

thanks
srinivas
Eric Bariaux <[EMAIL PROTECTED]> wrote:
Do you have a "default" xxx.properties file, one without _en?
This would explain why setting the browser the en gives you the
correct

result and setting "nothing" or de gives you the incorrect strings.

Eric.


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 2:25 PM
To: Struts Users Mailing List
Subject: Re: deleted ApplicationResources_de.properties ghost
Deployed my war file on a server I'd never touched before. Same
problem.

I re-created the German xxx_de.properties file with a copy of the
English, and changed a couple of strings into German to hilight the
difference. This change took effect - the 'ghost' German disappeared
and

was replaced by the real German.

However as I feared when I deleted this new German properties file,
the

previous 'ghost' German reappeared.

What logical conclusion can I draw from that?



On 01/20/2004 12:07 PM Andriy Ruzhevych wrote:

Did you seach German string or xxx_de.properties file in all
ear/war of

the

web server?

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Thanks Heya, but not wild & crazy enough :) - I already did that.
In

fact I made a war file and tested it on a completely different
server.

On 01/20/2004 08:28 AM [EMAIL PROTECTED] wrote:


This is one of those wild crazy ideas that you asked for... I know
you grepped but maybe didn't grep properly?
There are usually two copies of your resources files, one under
your

source directory and that is copied to your classes directory by
Tomcat. The one in classes is actually read by the server, but the
one in source is the one you edit because it should replace the
classes one. Just check manually rather than grepping and see if
you

find the "ghost" file.

Adam Hardy 20/01/2004 06:12 PM
Please respond to "Struts Users Mailing List"
Does anybody have any ideas on this? Even wild, stupid, ridiculous
ideas. Anything?
On 01/19/2004 07:02 PM Adam Hardy wrote:


Actually I just did get access to a third server and did a
complete

fresh install of java & tomcat and my app.war, and the ghost
German strings came up.
So the German strings must be in the war file. But there is only
the one ApplicationResources.properties file there in the war
file!

I just
checked.



Again, deleting or adding the German locale to the browser
settings

makes the strings change, so it is definitely the resource
bundles.
On 01/19/2004 06:17 PM Adam Hardy wrote:


Yes, unfortunately it does. On my dev machine and my future
production server. But I had them both running earlier with the
German .properties, so it would be the same problem. I don't
have

a third server to test it on.

On 01/19/2004 05:54 PM Tim Kettering wrote:


Does the same thing happen when you build/run the webapp on a
different


computer? Not sure what to tel

ActionForm boolean properties - Newbie question

2004-01-20 Thread Renato Romano
I have some trouble using a boolean (the primitive type) property inside
an ActionForm. What I'd like to know is if Struts looks for a
getProperty method or isProperty method... It seems Struts always calls
the getProperty, but as I know it should call the isProperty!!
Is the behavior with a Boolean (Object type) property the same ?
Thanks everyone
Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_




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



Re: Prevent direct access to jsp pages

2004-01-20 Thread Guido García Bernardo
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=utf-8&q=prevent+direct+access+to+jsp+pages

Florin Pop wrote:

Hi,

I have a jsp page which contains some comboboxes. I set the data in the
comboboxes in an Action before forwarding to the jsp. How can I prevent
direct access to the jsp page? So everytime a user wants to access the jsp
he/she should execute first the Action, in order to fill the data in the
combos.
Thanks,

Florin 
 

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


RE: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Greg Hess
Marino,

Hmm, I didn’t know what all those plugin's were for thanks for the
explanation but I configure the tiles and ssl plugin as described but I
still get the same error. I can only seem to make it work as Adam has it
configured using the standard tiles pluging and just setting the
processorClass to the secure one. 

Below is my struts-config that I believe is as you have outlined?













 









  




 
 



Is this right, still throwing?

> > javax.servlet.UnavailableException
> > at
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
av
> a:
> > 1169)

Thanks,

Greg


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A. Jonsson
> Sent: Tuesday, January 20, 2004 6:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts 1.1, Tiles and sslext11
> 
> Moreover, the StrutsTilesPlugin overloads the
> initRequestProcessorClass(ModuleConfig config) of the TilesPlugin and
sets
> the processorClass attribute of the controller to
> SecureTilesRequestProcessor ... so there's no need to specify the
> controller
> explicitly.
> 
> cheers,
> Marinó
> 
> "Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > That makes sense ... SecureTilesPlugin actually extends TilesPlugin
so
> > you're trying to initialize the same plugin twice ;)
> >
> > cheers,
> > Marinó
> > "Greg Hess" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > Hi All,
> >
> > I am having difficulty integrating the sslext11 plug-in with Struts
1.1
> > using Tiles.
> >
> > I get the following error when accessing any action:
> >
> > javax.servlet.UnavailableException
> > at
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
av
> a:
> > 1169)
> > at
> > org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> > at javax.servlet.GenericServlet.init(GenericServlet.java:82)
> > at
> >
com.caucho.server.http.Application.createServlet(Application.java:2982)
> > at
> >
com.caucho.server.http.Application.loadServlet(Application.java:2941)
> > at
> >
com.caucho.server.http.Application.initServlets(Application.java:1841)
> > at
> com.caucho.server.http.Application.init(Application.java:1772)
> > at
com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
> > at
> >
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
> > at
> >
>
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648
)
> > at
> com.caucho.server.http.ServletServer.init(ServletServer.java:483)
> > at
com.caucho.server.http.ResinServer.init(ResinServer.java:360)
> > at
> com.caucho.server.http.ResinServer.main(ResinServer.java:1107)
> > at
com.caucho.server.http.HttpServer.main(HttpServer.java:103)
> >
> > My struts-config.xml:
> >
> > 
> > 
> > .
> > 
> >
> > 
> >  >
> processorClass="org.apache.struts.action.SecureTilesRequestProcessor"
> >nocache="true"/>
> >
> > 
> > 
> >
> > 
> >   
> >> value="/WEB-INF/tiles-defs.xml" />
> >   
> >/>
> >   
> >
> >   
> >> property="pathnames"
> >
> >
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
> > /WEB-INF/validation.xml"/>
> >   
> >
> >   
> >   
> >   
> > 
> >   
> >   
> >
> > 
> >
> >
> > Any help is much appreciated,
> >
> > Thanks,
> >
> > Greg Hess
> > Software Engineer
> > Wrapped Apps Corporation
> > 275 Michael Cowpland Dr.
> > Suite 201
> > Ottawa, Ontario
> > K2M 2G2
> > Tel: (613) 591 -7552
> > Fax: (613) 591-0523
> > 1 (877) 388-6742
> > www.wrappedapps.com
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



[OT] Re: Tool for jsp debug

2004-01-20 Thread Guido García Bernardo
This is very OT.

http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=utf-8&q=tool+for+jsp+debug

Florin Pop wrote:

Hi,

does anyone know a tool for debugging jsp files? So that you are able to
trace the code in the jsp source not in the generated servlets.
 

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


RE: newbie: html:form EL in action tag

2004-01-20 Thread Simon Pett
Thanks Frédéric - your right of course - I was missing the point
using struts-html-el now

-Original Message-
From: Frédéric Dreier 

>So I think the EL works just not in the action parameter of the html:form
??
>
>  
>
It works for me.


-
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: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Shishir K. Singh
Yup..since then I have corrected it and been running it. Just wanted the
team to be aware of it.  

-Original Message-
From: Jesse Alexander (KAID 11)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 4:25 AM
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Providers: Select solutions

Hi,

correct the web.xml
The error-message is quite clear...

regards
Alexander

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 20. Januar 2004 02:43
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [ANNOUNCE] Providers: Select solutions


Hi, 

I am getting XML parser error when running it on Tomcat 4.1.27 and
jdk1.4.0. 
Can you tell what needs to be done ??
---


SEVERE: Parse Error at line 44 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,er
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,t
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:559)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
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:2190)
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.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jan 19, 2004 8:38:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starti

AW: WITH ?!?

2004-01-20 Thread Oliver Thiel
Hi Jimmy,


Could you please send me your extension of the bean:message tag!
If you already send it through the 'struts user mailing list' please
send it direct to me: [EMAIL PROTECTED] Because some times I did
not receive all messages from the list. 


Thanks in advanced 
Oliver


-Ursprüngliche Nachricht-
Von: Mark Nichols [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 19. Januar 2004 13:03
An: Struts Users Mailing List
Betreff: Re:  WITH  ?!?

Jimmy,

I would be interested in seeing your extension of the bean:message tag.

Thanks,

Mark

--
"Science is what we understand well enough to explain to a computer. 
Art is everything else."
-- Donald Knuth
On Jan 19, 2004, at 2:34 AM, VAN BROECK Jimmy wrote:

> Hi,
>
> for the moment there isn't a solution for that in Struts.
>
> You can two things with bean:message. That is provide a static key or 
> define a dynmic key. but you cannot combine the two.
>
> What i have done is to extend the bean:message tag to implement this 
> kind of functionality.
>
> Let me know if you are interested in the code. Its just a quick hack 
> of the struts code.
>
> Greetings
> Jimmy
>
>
> -Original Message-
> From: Oliver Thiel [mailto:[EMAIL PROTECTED]
> Sent: maandag 19 januari 2004 9:14
> To: [EMAIL PROTECTED]
> Subject:  WITH  ?!?
>
>
> Hi all,
>
>
> In my HashMap (which defines the form) I save something like that:
> setField("username", "oliver"); Know I want to the output of the 
> message
> to be dynamic.
>
> For a static version this works fine:
> 
>
> For a dynamic version I think I need some thing like that: 
>  key="form."/>
>
> But the code above does not work! Has anyone an idea?
>
>
> THX
> Oliver
>
>
>
> STRICTLY PERSONAL AND CONFIDENTIAL
> This message may contain confidential and proprietary material for the

> sole use of the intended recipient. Any review or distribution by 
> others is strictly prohibited. If you are not the intended recipient 
> please contact the sender and delete all copies.
>
> Ce Message est uniquement destiné aux destinataires indiqués et peut 
> contenir des informations confidentielles. Si vous n'êtes pas le 
> destinataire, vous ne devez pas révéler le contenu de ce message ou en

> prendre copie. Si vous avez reçu ce message par erreur, veuillez en 
> informer l'expéditeur, ou La Poste immédiatement, avant de le 
> supprimer.
>
> Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan 
> vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan 
> mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u 
> dit bericht per vergissing heeft ontvangen, gelieve er de afzender of 
> De Post onmiddellijk van op de hoogte te brengen en het bericht 
> vervolgens te verwijderen.


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



Re: Chart generation Framework

2004-01-20 Thread Adolfo Miguelez
I have been able to use Cewolf. Quite easy to configure. However, I succeded 
in Windows environments but not in Linux. Any experience in AIX/Solaris?







From: Otávio Augusto <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Chart generation Framework
Date: Tue, 20 Jan 2004 10:11:29 -0300
I've had to use one of these things once.There ara many options, free or 
not. There is JFreeChart, Cewolf, and others.

Otávio Augusto

On Tue, 20 Jan 2004 10:28:21 -0200
Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
> Hi there! Does anyone here uses a chart Framework? I've heard about 
Cewolf,
> seems to be nice, any suggestions on this?
>
> Thanks
>
> Vinicius
>
>
> -
> 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]
_
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]


Radio button CHECKED ???

2004-01-20 Thread Mauricio T. Ferraz
How to use the  tag and define a specific radio with CHECKED by default ?

p.e 

thanks



Using struts I18N fonctionnalities from an action

2004-01-20 Thread TREGAN Fabien (APTUS)
Title: Using struts I18N fonctionnalities from an action





Hi,


  I use  tags in my application and it works well. Now, i need to use Struts' internationnalization functionalities from an action (use case : I forward to a presentation framework and do not have acces to JSP, I can only use presentation components wich have things like setTitle(String theTitle), but I'd like to have the title internationnalized by Struts)

  Hint ?


thanks, f.




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

Re: newbie: html:form EL in action tag

2004-01-20 Thread Mark Lowe
I've used el for the value of the action attribute..



works fine. Just feed it a string.

On 20 Jan 2004, at 13:08, Simon Pett wrote:

Thanks Frédéric,
I used the taglig import from the Jakarta JSTL 1.1 getting started doc
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

The focus="${focus}" appears to work and I was able to

So I think the EL works just not in the action parameter of the 
html:form ??

Simon

-Original Message-
From: Frédéric Dreier
i'm not sure but, do you have declared the right library (with el
suffix) at the begining of your page?
<%@ taglib  uri="/WEB-INF/struts-html-el.tld" prefix="html" %>

regards,

frederic



Simon Pett wrote:

Hi

I am trying to use tile attributes for the action and focus 
parameters in
the html:form tag. So I imported the attributes to the page scope and 
then
used EL to set them.




The focus worked fine however the action gave the error

ServletException in:/pages/common/layouts/formlayout.jsp] Cannot 
retrieve
mapping for action /${action}'

It works ok if I use a scriplet like

"
focus="${focus}">
Can someone tell me why?

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





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


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


RE: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Guillermo Meyer
The problem doesn't happens with tomcat 5.0.16, but with 4.0.27 does.
You fix it by solving the web.xml problem (move session-config below
servlet mappings)
Ther is other problem (a
"org.apache.commons.logging.LogConfigurationException" exception) that
is solved by using the last version of jakarta commons logging
(Providers war example comes with commons-logging-1.1-dev.jar that must
be changed by the last version of logging)

With this the example works. Sorry for the problems. Next release will
have this problems solved.

Cheers.
Guillermo.
PD: thanks to Shishir for the feedback of the problem!

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED] 
Sent: Martes, 20 de Enero de 2004 12:21 p.m.
To: Struts Users Mailing List
Subject: RE: [ANNOUNCE] Providers: Select solutions


Yup..since then I have corrected it and been running it. Just wanted the
team to be aware of it.  

-Original Message-
From: Jesse Alexander (KAID 11)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 4:25 AM
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Providers: Select solutions

Hi,

correct the web.xml
The error-message is quite clear...

regards
Alexander

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 20. Januar 2004 02:43
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [ANNOUNCE] Providers: Select solutions


Hi, 

I am getting XML parser error when running it on Tomcat 4.1.27 and
jdk1.4.0. 
Can you tell what needs to be done ??
---


SEVERE: Parse Error at line 44 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,er
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,t
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:559)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
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.s

validation question

2004-01-20 Thread Nandita Rajagopalan
Hi,

I have a form that is shared my multiple JSPs. My problem comes in validating the 
form. One text field which is required in a page is not in the other. How do I set up 
the validation.xml to be generic enough so that the above condition can be met.

Thanks for any help.



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



RE: Chart generation Framework

2004-01-20 Thread Barnett, Brian W.
I recently did a little research on charting tools. I went through the
cewolf tutorial, http://cewolf.sourceforge.net/, and in the end, got stuck
on a type library problem. This is probably due to my lack of experience
with Struts/JSP. I can't remember the exact error message I kept getting.

Other options I am considering are EasyCharts by ObjectPlanet and Advanced
Graph & Chart Collection by jPowered. You can get into either of these for
$300 - $400 USD I think.

Brian

-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 5:28 AM
To: [EMAIL PROTECTED]
Subject: Chart generation Framework

Hi there! Does anyone here uses a chart Framework? I've heard about Cewolf, 
seems to be nice, any suggestions on this?

Thanks

Vinicius


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



beginner's html:options question

2004-01-20 Thread Anderson, James H [IT]
I have a collection of LabelValueBeans as a property of another bean (an Action), and 
I store this bean in session scope with "preparedData" as the key. But when I try and 
access it using html:option, I get the following error:

"Cannot find bean preparedData in any scope"

Here's html:option related stuff:



> 
Any help greatly appreciated!

jim

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

RE: validation question

2004-01-20 Thread Matthias Wessendorf
hi

use the DynaValidatorActionForm

in validate.xml
enter the path of submit instead of "complete"-formbeanName

name="/submit1"

and so on

greetings



-Original Message-
From: Nandita Rajagopalan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 5:24 PM
To: [EMAIL PROTECTED]
Subject: validation question


Hi,

I have a form that is shared my multiple JSPs. My problem comes in
validating the form. One text field which is required in a page is not
in the other. How do I set up the validation.xml to be generic enough so
that the above condition can be met.

Thanks for any help.



-
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: Servlet class org.apache.struts.action.ActionServlet for servlet action could not be handled by the classloader with classpath

2004-01-20 Thread Bret Kumler
None at all. I just decided to build/test it with JBOSS.

I had the following env:

Weblogic 8.1
jdk i.4.1_03
struts 1.1

-Original Message-
From: Akshay Sachdeva [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 1:35 PM
To: [EMAIL PROTECTED]
Subject: RE: Servlet class org.apache.struts.action.ActionServlet for
servlet action could not be handled by the classloader with classpath


AnyLuck with this issue.  I am having the same problem

ENV:
Weblogic 7.1
jdk 1.4.1
Struts 1.1



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



RE: getting data from form with nested beans

2004-01-20 Thread shirishchandra.sakhare
I did not get your question clearly.

When a new form(instance of ActionForm) is created, users input is not lost.The users 
input is still in the request Object.(Are you confusing the Form on screen with the 
ActionFOrm object on server side?).So after the instance of ActionForm is created, it 
is populated with the parameters from the request using the struts auto-population 
mechanism.And then you can use the same BeanList to pass to the Service layer(But 
after conversion may be as all the properties in String format.SO create DTO bean from 
correspondign stringbeans).

Hope this helps.
regards,
Shirish

-Original Message-
From: Martin Sturzenegger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 3:11 PM
To: [EMAIL PROTECTED]; Struts Users Mailing List
Subject: RE: getting data from form with nested beans


hi shirish,
great conceipt and many thanks for example and explanation, my fog seems to thin out 
slowly.
one question remains: as soon as a new form is created, then, i assume, the user's 
inputs are lost. so how do you get hold of the user's input? usually one feeds the 
input data back into a database. with simple beans i copy the formdata to a new 
instantiated dto-bean within my action class and pass the dto-bean to my 
business-layer. but dealing with nested beans, where and how?
sorry for pestering
and thanks a lot in advance
martin 


-- Urspruengliche Nachricht --
Von: <[EMAIL PROTECTED]>
Antworten an: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Datum:  Tue, 20 Jan 2004 13:54:30 +0100

>yes:-))
>And I am sure most of the people do have the same.I mean tieing the nested properties 
>to the session scope does take away a lot of flexibility.
>
>Anyhow just try my sample code...It should demonstrate the concept.
>
>regards,
>Shirish
>
>-Original Message-
>From: Mark Lowe [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 20, 2004 1:44 PM
>To: Struts Users Mailing List
>Subject: Re: getting data from form with nested beans
>
>
>So you've had forms, with indexed properties with dynamic sizes working  
>when scoping to request?
>
>
>On 20 Jan 2004, at 11:45, <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>> Is it flaming or what?I thought we were trying to solve each others  
>> problems.Still a last try.
>> We have a complete application(3 modules/4000 classes/15 companies  
>> live as of date) which uses all form beans just in request scope.And  
>> all over the place we have used form beans in request scope.And the  
>> application is well and running.
>>
>> If you go t through my mail, you will understand why it will mail.SO  
>> please read the mail carefully.
>> I will try to explain it again.
>>
>> When the form is submitted(the user presses submit button on  
>> screen),the corresponding action will be called by struts.At the same  
>> time, it will look for a actionForm from the mapping.As the scope is  
>> specified as request, a new form will be created.And if you have  
>> looked at my example carefully, you will see that the nested bean list  
>> is created when the form is created.But this nested list is empty.Now  
>> when struts autopopulation tries to populate a nested bean, it should   
>> find that the nested bean list is empty.But the lazy initialization  
>> mechanism in the indexed getter will take care that the list has  
>> enough of beans.See the code below.
>> 33
>>  //give indexed access to the beans
>
> public Employee getEmployee(int index){
>
> //very imp
>
> //when a jsp is submited , then while auto populating the form,this
> will
> ensure
> that
>
> // the  form is populated properly.
>
> while(index >= beanList.size()){
>
> beanList.add(new Employee());
>
> }
>> ***
>>
>> And as explained in jsp part, as long as the property references are  
>> created properly, this will work.And with struts1.1 nested tags, you  
>> don't have to even use the script<%%> to create property is jsp.
>>
>> Hope this clarifies it.If not, try to run my example code.
>>
>> regards,
>> Shirish
>>
>> -Original Message-
>> From: Mark Lowe [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, January 20, 2004 12:28 PM
>> To: Struts Users Mailing List
>> Subject: Re: getting data from form with nested beans
>>
>>
>> Oh yeah .. by working i mean when you submit..
>>
>>
>> On 20 Jan 2004, at 11:25, Mark Lowe wrote:
>>
>>> .. Show us all an example of a form with a dynamic size for a form
>>> property thats scoped to the request then big shot..
>>>
>>> Come on lets see it!!!
>>>
>>>
>>> On 20 Jan 2004, at 10:45, <[EMAIL PROTECTED]> wrote:
>>>
 The scope of form has nothing to do with usage of nested beans.And
 using session scope shoudl be avaided as far as possible as teh form
 will stay in session  till it is explicitely removed from there..

 The <% %> business is for the scripts so that the nested prope

Back Button (topic revisited)

2004-01-20 Thread Martin Gainty
Hello

My apologies for asking a question from previous email but I so really need
an answer.
Currently when the operator presses/clicks back the form contents get set to
default values.
How does one skip the reset() method when activating the back button?

Many Thanks,
Martin Gainty
617-852-7822

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



RE: Tool for jsp debug - Try Sysdeo Eclipse Plugin

2004-01-20 Thread Jean-Michel Garnier
Google does not tell you everything ;-)

Try Sysdeo Eclipse Plugin
http://www.sysdeo.com/eclipse/tomcatPlugin.html

Works very well with Tomcat 4.1.27



> -Original Message-
> From: Guido García Bernardo [mailto:[EMAIL PROTECTED]
> Sent: 20 January 2004 14:53
> To: Struts Users Mailing List
> Subject: [OT] Re: Tool for jsp debug
> 
> 
> This is very OT.
> 
> http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=utf-8&q=too
> l+for+jsp+debug
> 
> Florin Pop wrote:
> 
> >Hi,
> >
> >does anyone know a tool for debugging jsp files? So that you 
> are able to
> >trace the code in the jsp source not in the generated servlets.
> >  
> >
> 


This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



jstl problem

2004-01-20 Thread Kelly Goedert
Hi all,

I have a form that when is called causes the following exception:

javax.servlet.ServletException: javax/servlet/jsp/jstl/core/ConditionalTagSupport
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
The form is this:
<%@ taglib uri="struts/bean-el" prefix="bean" %>
<%@ taglib uri="struts/html-el" prefix="html" %>
<%@ taglib uri="struts/logic-el" prefix="logic" %>
<%@ taglib uri="jstl/c" prefix="c" %>


" 
rel="stylesheet" type="text/css">





   
   
   
   

  



   
   
 
   
   



  

  




   Login:
   


   Senha:
   


   Confirmação da Senha:
   



   Papéis:
   
   
   
   
   
   

   
   





   
   
   
   
  
  
  





The .tld files are in WEB-INF directory and mapped in web.xml.

What may be wrong?

Thanks

Kelly.

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


RE: Radio button CHECKED ???

2004-01-20 Thread Saul Q Yuan
In your form bean, just initialize your radio property with the value of
the radio button you want to be checked by default, then you're done.

Saul

-Original Message-
From: Mauricio T. Ferraz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 11:18 AM
To: Struts Users Mailing List
Subject: Radio button CHECKED ???


How to use the  tag and define a specific radio with CHECKED
by default ?

p.e 

thanks



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



RE: Chart generation Framework

2004-01-20 Thread Ed Yu
BTW, Cewolf is a taglib sitting on top of Jfreechart. I believe that you have to use 
virtual frame buffer in Linux (Xvfb) if you wanted to logoff your console X 
environment while running the app server. For AIX, if you have the CDE environment 
installed, you should be fine. Don't know about Solaris.

If you have to customize your graphs (legends, axis, annotations), you can use 
Jfreechart directly.

-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 11:17 AM
To: [EMAIL PROTECTED]
Subject: Re: Chart generation Framework


I have been able to use Cewolf. Quite easy to configure. However, I succeded 
in Windows environments but not in Linux. Any experience in AIX/Solaris?







>From: Otávio Augusto <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Chart generation Framework
>Date: Tue, 20 Jan 2004 10:11:29 -0300
>
>I've had to use one of these things once.There ara many options, free 
>or
>not. There is JFreeChart, Cewolf, and others.
>
>Otávio Augusto
>
>On Tue, 20 Jan 2004 10:28:21 -0200
>Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
>
> > Hi there! Does anyone here uses a chart Framework? I've heard about
>Cewolf,
> > seems to be nice, any suggestions on this?
> >
> > Thanks
> >
> > Vinicius
> >
> >
> > 
> > -
> > 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]
>

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



Re: problems w/ logging.. again

2004-01-20 Thread Curtis Taylor
Hi Adam,

If you're using JBoss you need to edit the server's log4j.xml config file. For 
3.2.2 it lives in $JBOSS_HOME/server/all|default|minimal/conf/. Edit the one in 
the server subdirectory you deploy your app to.

HTH,

Curtis

Adam L wrote:
I've scoured the archives. I"ve tried a million different
log4j.properties configurations, some with .xml, some with
commons-logging.properties.  I've read the links to the apache
site that seem to focus mainly on how to use logging from the
programmatic aspect (and had no luck with the examples provided on
the configuration aspect).
in theory, these changes should take hold when i bounce the
application (touch web.xml), rather than the entire app server.. correct?
I'm beginning to wonder if it's a configuration issue elsewhere.

jdk is 1.4.2, jboss 3.0.8/jetty, struts 1.1.

in my web.xml i've set the debug parm on ActionServlet to 2, 9, 99, 999
in struts-config.xml, for the controller,  i've set debug to 2,9,99,999
i cut and paste examples in the archives claiming to remove
"00:24:09,816 INFO  [PropertyMessageResources] Initializing,
config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true" from the logs.. and they don't.
I've set my log levels to WARN, DEBUG, INFO.. and see no changes.

What I'm trying to achieve is the debug info from the workflow
extension controller to aid in debugging problems in my workflow,
as well as turn off some of the extraneous struts messages.
If someone would please be willing to hold my hand and guide me,
my quickly receding hairline and I would be in great appreciation.
thank you.


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


URL conventions, struts, and the Default Servlet

2004-01-20 Thread Eric Dahnke

Hello List,

We're developing a struts application, and marketing wants to have the
following friendly urls for retrieving product information:

http://music.yamaha.com/PSR-1000
http://music.yamaha.com/CFS60

They are not happy with http://music.yamaha.com/products/PSR-1000 nor
any .do (or other extension), and not with any query strings (ie.
showProduct?modelName=PSR-1000). Fair enough, technology should support
business wishes.

We have researched struts, the JSP spec, and support for URL conventions
and have found the following information:

http://jakarta.apache.org/struts/userGuide/configuration.html

The above explains that you really need either a .do or /do/ in order to
envoke the action controller. However, the following link explains that
"The default servlet is the servlet which serves static resources as
well as serves the directory listings (if directory listings are
enabled)."

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/default-servlet.html

I have two questions then regarding the "The default servlet":

-1- Will it allow us to use http://music.yamaha.com/PSR-1000 urls? (it
seems it will)

-2- Can the default servlet be configured to be a struts action
controller?


Many Thx,

Eric Dahnke


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



RE: Struts 1.1, Tiles and sslext11

2004-01-20 Thread Greg Hess
Hi All,

This one was tricky. It seems that my problem was that I supplied the
wrong className="org.apache.struts.tiles.SecureTilesPlugIn" when the
correct className is org.apache.struts.tiles.SecureTilesPlugin.

There is some inconsistancy in the docs found at
http://struts.ditlinger.com/ that specify the wrong class name to use.
The good people that authord the sslext are aware and will probably
update the docs.

Easy fix if I had of received a ClassNotFoundException, strange that no
error resulted.

All the best,

Greg

> -Original Message-
> From: Greg Hess [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 9:57 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts 1.1, Tiles and sslext11
> 
> Marino,
> 
> Hmm, I didn’t know what all those plugin's were for thanks for the
> explanation but I configure the tiles and ssl plugin as described but
I
> still get the same error. I can only seem to make it work as Adam has
it
> configured using the standard tiles pluging and just setting the
> processorClass to the secure one.
> 
> Below is my struts-config that I believe is as you have outlined?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
>   
>  value="/WEB-INF/tiles-defs.xml" />
>   
>value="true" />
>   
> 
>className="org.apache.struts.validator.ValidatorPlugIn">
>  property="pathnames"
> 
>
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
>   /WEB-INF/validation.xml"/>
>   
> 
>   
>   
>   
>   
>   
>   
> 
> 
> 
> Is this right, still throwing?
> 
> > > javax.servlet.UnavailableException
> > > at
> > >
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
> av
> > a:
> > > 1169)
> 
> Thanks,
> 
> Greg
> 
> 
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A.
Jonsson
> > Sent: Tuesday, January 20, 2004 6:57 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Struts 1.1, Tiles and sslext11
> >
> > Moreover, the StrutsTilesPlugin overloads the
> > initRequestProcessorClass(ModuleConfig config) of the TilesPlugin
and
> sets
> > the processorClass attribute of the controller to
> > SecureTilesRequestProcessor ... so there's no need to specify the
> > controller
> > explicitly.
> >
> > cheers,
> > Marinó
> >
> > "Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > That makes sense ... SecureTilesPlugin actually extends
TilesPlugin
> so
> > > you're trying to initialize the same plugin twice ;)
> > >
> > > cheers,
> > > Marinó
> > > "Greg Hess" <[EMAIL PROTECTED]> wrote in message
> > > news:[EMAIL PROTECTED]
> > > Hi All,
> > >
> > > I am having difficulty integrating the sslext11 plug-in with
Struts
> 1.1
> > > using Tiles.
> > >
> > > I get the following error when accessing any action:
> > >
> > > javax.servlet.UnavailableException
> > > at
> > >
> >
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
> av
> > a:
> > > 1169)
> > > at
> > >
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> > > at
javax.servlet.GenericServlet.init(GenericServlet.java:82)
> > > at
> > >
>
com.caucho.server.http.Application.createServlet(Application.java:2982)
> > > at
> > >
> com.caucho.server.http.Application.loadServlet(Application.java:2941)
> > > at
> > >
> com.caucho.server.http.Application.initServlets(Application.java:1841)
> > > at
> > com.caucho.server.http.Application.init(Application.java:1772)
> > > at
> com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
> > > at
> > >
> com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
> > > at
> > >
> >
>
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648
> )
> > > at
> > com.caucho.server.http.ServletServer.init(ServletServer.java:483)
> > > at
> com.caucho.server.http.ResinServer.init(ResinServer.java:360)
> > > at
> > com.caucho.server.http.ResinServer.main(ResinServer.java:1107)
> > > at
> com.caucho.server.http.HttpServer.main(HttpServer.java:103)
> > >
> > > My struts-config.xml:
> > >
> > > 
> > >  type="org.apache.struts.config.SecureActionConfig">
> > > .
> > > 
> > >
> > > 
> > >  > >
> >
processorClass="org.apache.struts.action.SecureTilesRequestProcessor"
> > >nocache="true"/>
> > >
> > > 
> > > 
> > >
> > > 
> > >   
> > >> > value="/WEB-INF/tiles-defs.xml" />
> > >   
> > >value="true"
> > />
> > >   
> > >
> > >className="org.apache.struts.validator.ValidatorPlugIn">
> > >> > property="pathnames"
> > >
> > >
>
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
> > > /WEB-INF/validation.xml"/>
> > >   
> > >

RE: Chart generation Framework

2004-01-20 Thread Adolfo Miguelez
Cheers Ed,

;-)








From: "Ed Yu" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Chart generation Framework
Date: Tue, 20 Jan 2004 11:57:37 -0500
BTW, Cewolf is a taglib sitting on top of Jfreechart. I believe that you 
have to use virtual frame buffer in Linux (Xvfb) if you wanted to logoff 
your console X environment while running the app server. For AIX, if you 
have the CDE environment installed, you should be fine. Don't know about 
Solaris.

If you have to customize your graphs (legends, axis, annotations), you can 
use Jfreechart directly.

-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 11:17 AM
To: [EMAIL PROTECTED]
Subject: Re: Chart generation Framework
I have been able to use Cewolf. Quite easy to configure. However, I 
succeded
in Windows environments but not in Linux. Any experience in AIX/Solaris?







>From: Otávio Augusto <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Chart generation Framework
>Date: Tue, 20 Jan 2004 10:11:29 -0300
>
>I've had to use one of these things once.There ara many options, free
>or
>not. There is JFreeChart, Cewolf, and others.
>
>Otávio Augusto
>
>On Tue, 20 Jan 2004 10:28:21 -0200
>Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
>
> > Hi there! Does anyone here uses a chart Framework? I've heard about
>Cewolf,
> > seems to be nice, any suggestions on this?
> >
> > Thanks
> >
> > Vinicius
> >
> >
> > 
> > -
> > 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]
>
_
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]
_
STOP MORE 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]


Re: problems w/ logging.. again

2004-01-20 Thread Adam Levine
Curtis:

 Thank you for the insight. I'll be sure to try this out this evening.

 Am I correct to assume that app-specific log4j config files will not be 
used (as in, to append/make use of the global config), and that anytime I 
want to change the logging for a specific app I have to make a global change 
and bounce the entire app server?

Thanks again!

From: Curtis Taylor <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: problems  w/ logging.. again
Date: Tue, 20 Jan 2004 08:58:25 -0800
Hi Adam,

If you're using JBoss you need to edit the server's log4j.xml config file. 
For 3.2.2 it lives in $JBOSS_HOME/server/all|default|minimal/conf/. Edit the 
one in the server subdirectory you deploy your app to.

HTH,

Curtis

Adam L wrote:
I've scoured the archives. I"ve tried a million different
log4j.properties configurations, some with .xml, some with
commons-logging.properties.  I've read the links to the apache
site that seem to focus mainly on how to use logging from the
programmatic aspect (and had no luck with the examples provided on
the configuration aspect).
in theory, these changes should take hold when i bounce the
application (touch web.xml), rather than the entire app server.. correct?
I'm beginning to wonder if it's a configuration issue elsewhere.

jdk is 1.4.2, jboss 3.0.8/jetty, struts 1.1.

in my web.xml i've set the debug parm on ActionServlet to 2, 9, 99, 999
in struts-config.xml, for the controller,  i've set debug to 2,9,99,999
i cut and paste examples in the archives claiming to remove
"00:24:09,816 INFO  [PropertyMessageResources] Initializing,
config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true" from the logs.. and they don't.
I've set my log levels to WARN, DEBUG, INFO.. and see no changes.

What I'm trying to achieve is the debug info from the workflow
extension controller to aid in debugging problems in my workflow,
as well as turn off some of the extraneous struts messages.
If someone would please be willing to hold my hand and guide me,
my quickly receding hairline and I would be in great appreciation.
thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Check out the new MSN 9 Dial-up — fast & reliable Internet access with prime 
features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1

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


RE: Chart generation Framework

2004-01-20 Thread Kris Schneider
If you're running 1.4+, don't worry about a virtual frame buffer. Just make sure
the VM is started with "-Djava.awt.headless=true".

Quoting Adolfo Miguelez <[EMAIL PROTECTED]>:

> Cheers Ed,
> 
> ;-)
> 
> 
> 
> 
> 
> 
> 
> 
> >From: "Ed Yu" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: Chart generation Framework
> >Date: Tue, 20 Jan 2004 11:57:37 -0500
> >
> >BTW, Cewolf is a taglib sitting on top of Jfreechart. I believe that you 
> >have to use virtual frame buffer in Linux (Xvfb) if you wanted to logoff 
> >your console X environment while running the app server. For AIX, if you 
> >have the CDE environment installed, you should be fine. Don't know about 
> >Solaris.
> >
> >If you have to customize your graphs (legends, axis, annotations), you can
> 
> >use Jfreechart directly.
> >
> >-Original Message-
> >From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, January 20, 2004 11:17 AM
> >To: [EMAIL PROTECTED]
> >Subject: Re: Chart generation Framework
> >
> >
> >I have been able to use Cewolf. Quite easy to configure. However, I 
> >succeded
> >in Windows environments but not in Linux. Any experience in AIX/Solaris?
> >
> >
> >
> >
> >
> >
> >
> > >From: Otávio Augusto <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Subject: Re: Chart generation Framework
> > >Date: Tue, 20 Jan 2004 10:11:29 -0300
> > >
> > >I've had to use one of these things once.There ara many options, free
> > >or
> > >not. There is JFreeChart, Cewolf, and others.
> > >
> > >Otávio Augusto
> > >
> > >On Tue, 20 Jan 2004 10:28:21 -0200
> > >Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hi there! Does anyone here uses a chart Framework? I've heard about
> > >Cewolf,
> > > > seems to be nice, any suggestions on this?
> > > >
> > > > Thanks
> > > >
> > > > Vinicius

-- 
Kris Schneider 
D.O.Tech   

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



Re: problems w/ logging.. again

2004-01-20 Thread Curtis Taylor
Hi Adam,

Insofar as I've seen it with JBoss, yes: the application-scope log4j config 
files have no effect. If you're using ant, it'd be fairly simple to write a task 
which copies your app's log4j.xml to the appropriate server/conf directory.

And no, you shouldn't have to bounce the app server. It should pick up your 
config changes while it's running.

Curtis

Adam Levine wrote:
Curtis:

 Thank you for the insight. I'll be sure to try this out this evening.

 Am I correct to assume that app-specific log4j config files will not be 
used (as in, to append/make use of the global config), and that anytime 
I want to change the logging for a specific app I have to make a global 
change and bounce the entire app server?

Thanks again!

From: Curtis Taylor <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: problems  w/ logging.. again
Date: Tue, 20 Jan 2004 08:58:25 -0800
Hi Adam,

If you're using JBoss you need to edit the server's log4j.xml config 
file. For 3.2.2 it lives in 
$JBOSS_HOME/server/all|default|minimal/conf/. Edit the one in the server 
subdirectory you deploy your app to.

HTH,

Curtis

Adam L wrote:

I've scoured the archives. I"ve tried a million different
log4j.properties configurations, some with .xml, some with
commons-logging.properties.  I've read the links to the apache
site that seem to focus mainly on how to use logging from the
programmatic aspect (and had no luck with the examples provided on
the configuration aspect).
in theory, these changes should take hold when i bounce the
application (touch web.xml), rather than the entire app server.. 
correct?

I'm beginning to wonder if it's a configuration issue elsewhere.

jdk is 1.4.2, jboss 3.0.8/jetty, struts 1.1.

in my web.xml i've set the debug parm on ActionServlet to 2, 9, 99, 999
in struts-config.xml, for the controller,  i've set debug to 2,9,99,999
i cut and paste examples in the archives claiming to remove
"00:24:09,816 INFO  [PropertyMessageResources] Initializing,
config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true" from the logs.. and they don't.
I've set my log levels to WARN, DEBUG, INFO.. and see no changes.

What I'm trying to achieve is the debug info from the workflow
extension controller to aid in debugging problems in my workflow,
as well as turn off some of the extraneous struts messages.
If someone would please be willing to hold my hand and guide me,
my quickly receding hairline and I would be in great appreciation.
thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Check out the new MSN 9 Dial-up — fast & reliable Internet access with 
prime features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1

-
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: [ANNOUNCE] Providers: Select solutions

2004-01-20 Thread Guillermo Meyer
The problem doesn't happens with tomcat 5.0.16, but with 4.0.27 does.
You fix it by solving the web.xml problem (move session-config below
servlet mappings) Ther is other problem (a
"org.apache.commons.logging.LogConfigurationException" exception) that
is solved by using the last version of jakarta commons logging
(Providers war example comes with commons-logging-1.1-dev.jar that must
be changed by the last version of logging)

With this the example works. Sorry for the problems. Next release will
have this problems solved.

Cheers.
Guillermo.
PD: thanks to Shishir for the feedback of the problem!

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED] 
Sent: Martes, 20 de Enero de 2004 12:21 p.m.
To: Struts Users Mailing List
Subject: RE: [ANNOUNCE] Providers: Select solutions


Yup..since then I have corrected it and been running it. Just wanted the
team to be aware of it.  

-Original Message-
From: Jesse Alexander (KAID 11)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 4:25 AM
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCE] Providers: Select solutions

Hi,

correct the web.xml
The error-message is quite clear...

regards
Alexander

-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 20. Januar 2004 02:43
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [ANNOUNCE] Providers: Select solutions


Hi, 

I am getting XML parser error when running it on Tomcat 4.1.27 and
jdk1.4.0. 
Can you tell what needs to be done ??
---


SEVERE: Parse Error at line 44 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,er
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mim
e-mapping*,welcome-file-list?,error-page*,t
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3568
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:559)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
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.s

RE: getting data from form with nested beans

2004-01-20 Thread Arron Bates
Never thought I'd see a flamewar on nested beans. :)

Request scope beans in lists are very much possible with the help of "Lazy"
collections...

http://marc.theaimsgroup.com/?l=struts-user&m=105027737732711&w=2

...it's the entire reason the lazy collections were made. Some people just
can't live with computer memory filling up with session objects.

The lazy solution keeps Struts happy by allowing an empty list to recieve
updates on indexes not there yet (which is what happens when the form object
is created for the first time when the request comes in).

That said, nothing in life comes free. Nested beans in request scope is one
degree harder to code for than form beans in the session. If a site has
limited concurrent users (intranetty, etc etc), I vote to put the form in the
session every time. :)...but the other way is more than possible.


Cheers.

Arron.



> I did not get your question clearly.
> 
> When a new form(instance of ActionForm) is created, users input is 
> not lost.The users input is still in the request Object.(Are you 
> confusing the Form on screen with the ActionFOrm object on server 
> side?).So after the instance of ActionForm is created, it is 
> populated with the parameters from the request using the struts auto-
> population mechanism.And then you can use the same BeanList to pass 
> to the Service layer(But after conversion may be as all the 
> properties in String format.SO create DTO bean from correspondign 
> stringbeans).
> 
> Hope this helps.
> regards,
> Shirish
> 
> -Original Message-
> From: Martin Sturzenegger [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 3:11 PM
> To: [EMAIL PROTECTED]; Struts Users Mailing List
> Subject: RE: getting data from form with nested beans
> 
> hi shirish,
> great conceipt and many thanks for example and explanation, my fog 
> seems to thin out slowly. one question remains: as soon as a new 
> form is created, then, i assume, the user's inputs are lost. so how 
> do you get hold of the user's input? usually one feeds the input 
> data back into a database. with simple beans i copy the formdata to 
> a new instantiated dto-bean within my action class and pass the dto-
> bean to my business-layer. but dealing with nested beans, where and how?
> sorry for pestering
> and thanks a lot in advance
> martin 
> 
> -- Urspruengliche Nachricht --
> Von: <[EMAIL PROTECTED]>
> Antworten an: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Datum:  Tue, 20 Jan 2004 13:54:30 +0100
> 
> >yes:-))
> >And I am sure most of the people do have the same.I mean tieing the nested
properties to the session scope does take away a lot of flexibility.
> >
> >Anyhow just try my sample code...It should demonstrate the concept.
> >
> >regards,
> >Shirish
> >
> >-Original Message-
> >From: Mark Lowe [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, January 20, 2004 1:44 PM
> >To: Struts Users Mailing List
> >Subject: Re: getting data from form with nested beans
> >
> >
> >So you've had forms, with indexed properties with dynamic sizes working  
> >when scoping to request?
> >
> >
> >On 20 Jan 2004, at 11:45, <[EMAIL PROTECTED]> wrote:
> >
> >> Hi,
> >> Is it flaming or what?I thought we were trying to solve each others  
> >> problems.Still a last try.
> >> We have a complete application(3 modules/4000 classes/15 companies  
> >> live as of date) which uses all form beans just in request scope.And  
> >> all over the place we have used form beans in request scope.And the  
> >> application is well and running.
> >>
> >> If you go t through my mail, you will understand why it will mail.SO  
> >> please read the mail carefully.
> >> I will try to explain it again.
> >>
> >> When the form is submitted(the user presses submit button on  
> >> screen),the corresponding action will be called by struts.At the same  
> >> time, it will look for a actionForm from the mapping.As the scope is  
> >> specified as request, a new form will be created.And if you have  
> >> looked at my example carefully, you will see that the nested bean list  
> >> is created when the form is created.But this nested list is empty.Now  
> >> when struts autopopulation tries to populate a nested bean, it should   
> >> find that the nested bean list is empty.But the lazy initialization  
> >> mechanism in the indexed getter will take care that the list has  
> >> enough of beans.See the code below.
> >> 33
> >>  //give indexed access to the beans
> >
> > public Employee getEmployee(int index){
> >
> > //very imp
> >
> > //when a jsp is submited , then while auto populating the form,this
> > will
> > ensure
> > that
> >
> > // the  form is populated properly.
> >
> > while(index >= beanList.size()){
> >
> > beanList.add(new Employee());
> >
> > }
> >> ***
> >>
> >> And as explained in jsp part, as long as the propert

passing a value using tag

2004-01-20 Thread mohan
Hi i am trying to capture a value through the  tag. There is a
"value" attribute also in this tag. But i am not sure what would be the
paramter name of this value.
I am using something like this

 i need to capture the value "step 1" I cannot
see this value being passed on the URL.

Let me know if any one has any inputs.


--Mohan



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



RE: passing a value using tag

2004-01-20 Thread Barett McGavock
I don't believe this is possible exactly as you say. Here are my inputs ;) :

The html:image DOES allow you to capture an x and y coordinate where the
user clicked. These are returned in the form "foo.x" and "foo.y" where the
parameter name for the image control is "foo". More on this in "Struts in
Action", page 300. You can use the name="foo" attribute to specify the
parameter name to the html:image tag. This is all per the HTML spec for the
 tag.

I think a better solution to get what you want (detect which page is
returned based on a control on the JSP) would be to use a hidden field, a la
. It seems you already know that
you can capture this on an ActionForm using a String property.

B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 12:26 PM
To: [EMAIL PROTECTED]
Subject: passing a value using  tag


Hi i am trying to capture a value through the  tag. There is a
"value" attribute also in this tag. But i am not sure what would be the
paramter name of this value. I am using something like this

 i need to capture the value "step 1" I cannot
see this value being passed on the URL.

Let me know if any one has any inputs.

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



Re: passing a value using tag

2004-01-20 Thread Joe Germuska
At 2:26 PM -0500 1/20/04, [EMAIL PROTECTED] wrote:
Hi i am trying to capture a value through the  tag. There is a
"value" attribute also in this tag. But i am not sure what would be the
paramter name of this value.
I am using something like this
 i need to capture the value "step 1" I cannot
see this value being passed on the URL.
Let me know if any one has any inputs.
A browser submits values for an "input type='image'" element by 
setting two request parameters, /name/.x and /name/.y where /name/ is 
the value of the 'name' attribute of the input element, and the 
values are the x and y coordinates of the click in the image.  For 
"input type='image" elements in the form which are not submitted, no 
parameters are set.  In Struts, the value of the "property" attribute 
of the html:image tag is used as the "name" of the input field.

In practice, it seems that few people use the coordinates of the 
click, and instead just look for a request parameter with the 
"telltale" name and build logic from that.

From a Struts perspective, if you want to get the values in a Form, 
you'll have to make the appropriate property of your form a bean with 
properties named "x" and "y" (that is, setX(Integer), setY(Integer) 
and corresponding accessors), because you can't stop the automated 
bean population process from interpreting the "." in the request 
parameter name as a separator between chained property names.  If you 
did this, then you could add another method which returned 'true' if 
either of those values were non-null.

Or you could add a javascript handler to the image input element 
which sets a hidden field explicitly to the value you want before 
submitting the form, and then check the value of that parameter 
instead..

Or you can just access the request parameters directly in your 
action, which might be easiest.

Joe

PS some of this is discussed in the doc for html:image:
http://jakarta.apache.org/struts/userGuide/struts-html.html#image
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

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


Token Processing

2004-01-20 Thread Student T
Hi

In my investigations on Struts I have developed yet another BaseAction class (based on 
the Template design pattern) so I can put all common processing for actions in one 
place.  In this class I use the methods resetToken, saveToken to ensure that ALL 
transactional actions are checked to see if they double posts.  Isend a new togen with 
every GET request and check for token validity with every POST request.  After all 
that is what GETs and POSTs were designed for.

I think I have done something useful.  But this seems such an obvious thing to do that 
I am wondering why has it not been done before and included within the Struts code.  
Have I missed a flaw in my approach?

In summary

BaseAction extends Action

execute (mapping, form,request,response) {

if request is POST then
  if  double post then
forward to warning page
  end if;
  resetToken
else
  savetoken
end if

}

Comments

Stuart Dentt

RE: Token Processing

2004-01-20 Thread Hookom, Jacob
You are making the assumption that transactions are dictated by request
type.  There are many other ways to dictate transaction state within the
context of web browser usage.

-Original Message-
From: Student T [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 1:58 PM
To: [EMAIL PROTECTED]
Subject: Token Processing

Hi

In my investigations on Struts I have developed yet another BaseAction class
(based on the Template design pattern) so I can put all common processing
for actions in one place.  In this class I use the methods resetToken,
saveToken to ensure that ALL transactional actions are checked to see if
they double posts.  Isend a new togen with every GET request and check for
token validity with every POST request.  After all that is what GETs and
POSTs were designed for.

I think I have done something useful.  But this seems such an obvious thing
to do that I am wondering why has it not been done before and included
within the Struts code.  Have I missed a flaw in my approach?

In summary

BaseAction extends Action

execute (mapping, form,request,response) {

if request is POST then
  if  double post then
forward to warning page
  end if;
  resetToken
else
  savetoken
end if

}

Comments

Stuart Dentt

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



  1   2   >