Re: Some questions

2006-04-05 Thread Jonathan Revusky

Kimani Darisha wrote:

The advice coming from this user-list is usually very confusing.


No!  actualy, nothing is confusing.  Morons are morons, morons are
generally ignored, and u morons know who u are.


No, you have a fundamental misconception here. As a general proposition, 
the morons in a discussion do not know who they are. They always think 
they're the intelligent people and the other people are the morons.


Similarly, the villains in a movie do not know that they are the 
villains. In their own minds, they are the heroes of the story.


Such is the world, my friend... :-)

Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/





K.

On 4/6/06, slam dunk <[EMAIL PROTECTED]> wrote:


Mario,
Have you checked out projects like:
http://sequoiaerp.org/
http://www.compiere.org/

The advice coming from this user-list is usually very confusing. I guess the
moderator never reads  or filters the content.

On 4/5/06, Hey Nony Moose <[EMAIL PROTECTED]> wrote:





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



Re: NullPointerException in while initializing message resource

2006-04-05 Thread Ramkumar Krishnan
Hi Ganesh,
 thanks for your reply. But my properties file is directly under  the
WEB-INF/classes folder, not under any package.

regs,
Ramkumar



On 4/4/06, RathinaGanesh MeenakshiSundaram <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> You should specify the full package location of the message-resource
> file..
> The parameter should be like this..
>  />
> Hope this helps..!
>
> Thanks,
> Ganesh.
>
>
> On 4/4/06, Ramkumar Krishnan <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >   I am getting Null PointerException when i tried to view my login page.
> > Struts is not able to find the message resources.
> >
> > This is configuration in my struts-config.xml
> >  null="false">
> >
> > i am getting
> > java.lang.NullPointerException at
> > org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java
> > :1174)
> > atorg.apache.struts.taglib.TagUtils.message(
> > TagUtils.java:1037) at
> org.apache.struts.taglib.bean.MessageTag.doStartTag
> > (
> > MessageTag.java:224) at
> > jsp_servlet._content._jsp.__login._jspService(__login.java:161) at
> > weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
> >
> >
> > I have attached the struts source i and i found it is happening in the
> > following line of TagUtils class
> > 
> > if (resources == null) {
> > ModuleConfig moduleConfig =
> getModuleConfig(pageContext);  //
> > Returns Null !!
> > resources =
> > (MessageResources) pageContext.getAttribute(
> > bundle + moduleConfig.getPrefix(),
> > PageContext.APPLICATION_SCOPE);
> > }
> >
> >
> > While debugging, it  is returning the ModuleConfig as null. I dont' know
> > why
> > it is trying to get the module config even though i haven't configured
> any
> > struts module.
> >
> >
> > This is my web.xml
> >  > Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > AdminWar
> > 
> > contextConfigLocation
> > /WEB-INF/classes/spring/*.xml
> > 
> >
> > 
> > 
> > locatorFactorySelector
> > beanRefContext.xml
> > 
> > 
> > parentContextKey
> > application-context
> > 
> > 
> > 
> > org.springframework.web.context.ContextLoaderListener
> > 
> > 
> > action
> > org.apache.struts.action.ActionServlet
> > 
> > 
> > config
> > /WEB-INF/struts-config.xml
> > 
> > 
> > debug
> > 0
> > 
> > 
> > 
> > action
> > *.do
> > 
> > 
> > /WEB-INF/struts-html.tld
> > /WEB-INF/tlds/struts-html.tld
> > 
> > 
> > /WEB-INF/struts-logic.tld
> > /WEB-INF/tlds/struts-logic.tld
> 
> > 
> > 
> > /WEB-INF/struts-bean.tld
> > /WEB-INF/tlds/struts-bean.tld
> > 
> > 
> > /WEB-INF/c.tld
> > /WEB-INF/tlds/c.tld
> > 
> > 
> > /WEB-INF/struts-html-extn.tld
> > /WEB-INF/tlds/struts-html-extn.tld
> > 
> > 
> >
> > 
> > /WEB-INF/fmt.tld
> > /WEB-INF/tlds/fmt.tld
> > 
> > 
> > /WEB-INF/struts-html-el.tld
> > /WEB-INF/tlds/struts-html-el.tld
> > 
> > 
> > 
> > /WEB-INF/struts-bean-el.tld
> > /WEB-INF/tlds/struts-bean-el.tld
> > 
> > 
> >
> > 
> > /WEB-INF/struts-nested.tld
> > /WEB-INF/tlds/struts-nested.tld
> 
> > 
> > 
> > /WEB-INF/tavant_taglib.tld
> >
> /WEB-INF/tlds/tavant_taglib.tld
> > 
> > 
> > /WEB-INF/homer.tld
> > /WEB-INF/tlds/homer.tld
> > 
> > 
> > /WEB-INF/struts-tiles.tld
> > /WEB-INF/tlds/struts-tiles.tld
> 
> > 
> > 
> > /WEB-INF/PermissionTags.tld
> >
> >
> /WEB-INF/tlds/PermissionTags.tld
> > 
> > 
> > /WEB-INF/oscache.tld
> > /WEB-INF/tlds/oscache.tld
> > 
> > 
> > 
> > SecurePages
> > Security constraint /secure
> > /content/jsp/*
> > POST
> > GET
> > 
> > 
> > These are the roles who have
> access
> > users
> > 
> > 
> > 
> > FORM
> > myrealm
> > 
> > /content/jsp/login.jsp
> >
> /content/jsp/loginError.jsp
> > 
> > 
> > 
> > An Employee
> > users
> > 
> > 
> >
> > thanks in advance,
> > --
> > Ramkumar K,
> >
> > http://www.spreadfirefox.com/?q=affiliates&id=0&t=65
> > "> > border="0" alt="Get Firefox!" title="Get Firefox!" src="
> > http://sfx-images.mozilla.org/affiliates/Buttons/110x32/safer.gif"/>
> >
> >
>
>


--
Ramkumar Yadav K,

http://www.spreadfirefox.com/?q=affiliates&id=0&t=65";>http://sfx-images.mozilla.org/affiliates/Buttons/110x32/safer.gif"/>


Re: Struts newbee

2006-04-05 Thread James Mitchell
If you mean 'associated' by a single action configuration, then no.   
However, you can reuse the same Action class for a different path and  
use a different ActionForm.


Does that answer your question?

--
James Mitchell




On Apr 6, 2006, at 12:45 AM, [EMAIL PROTECTED] wrote:


Hi ,

I am new to struts.. although i have a couple of years experience in
java/j2ee.
i have a question. Can two ActionForms be associated with the same  
Action

class ..
 if yes how.


Regards,
Praveen


Notice: The information contained in this e-mail message and/or  
attachments to it may contain confidential or privileged  
information. If you are not the intended recipient, any  
dissemination, use, review, distribution, printing or copying of  
the information contained in this e-mail message and/or attachments  
to it are strictly prohibited. If you have received this  
communication in error, please notify us by reply e-mail or  
telephone and immediately and permanently delete the message and  
any attachments. Thank you





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



Re: how to use message resource key for href

2006-04-05 Thread Vinit Sharma
My c:set is as below:








and it works fine.

Thanks,


On 4/5/06, Adam Hardy <[EMAIL PROTECTED]> wrote:
>
> What does your c:set look like?
>
>
> Vinit Sharma on 04/04/06 08:58, wrote:
> > But I faced a problem with the fmt tag, the variable link contains
> > the key instead of the text value.
> >
> > Any clue??
> >
> > On 4/4/06, Vinit Sharma <[EMAIL PROTECTED]> wrote:
> >
> >> Thanks,
> >>
> >> I used a  in combination with . But fmt tag
> >> looks neat.
> >>
> >> :)
> >>
> >>
> >> On 4/4/06, Nicolas De Loof < [EMAIL PROTECTED]> wrote:
> >>
> >>>
> >>> Perhaps somethig like this may work :
> >>>
> >>> 
> >>>
> >>> Some text
> >>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Vinit Sharma
IBM


Struts newbee

2006-04-05 Thread praveen . sondur
Hi ,

I am new to struts.. although i have a couple of years experience in 
java/j2ee.
i have a question. Can two ActionForms be associated with the same Action 
class ..
 if yes how.


Regards,
Praveen 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you



Re: Login with roles

2006-04-05 Thread MC Moisei
Try ACEGI+Spring+Struts.

A good and quick start is AppFuse - check it out, will do what you need!


Jamal wrote:
> Hi, I want to write a login application with roles, any help please.
> thank you your help is appreciated
>
>
>
>
>
> -
> 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]



Login with roles

2006-04-05 Thread Jamal
Hi, I want to write a login application with roles, any help please.
thank you your help is appreciated





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



Re: Some questions

2006-04-05 Thread Kimani Darisha
> The advice coming from this user-list is usually very confusing.
No!  actualy, nothing is confusing.  Morons are morons, morons are
generally ignored, and u morons know who u are.

K.

On 4/6/06, slam dunk <[EMAIL PROTECTED]> wrote:
> Mario,
> Have you checked out projects like:
> http://sequoiaerp.org/
> http://www.compiere.org/
>
> The advice coming from this user-list is usually very confusing. I guess the
> moderator never reads  or filters the content.
>
> On 4/5/06, Hey Nony Moose <[EMAIL PROTECTED]> wrote:
>
>

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



struts validator issues

2006-04-05 Thread victor ying
Hi All,
 I am using struts 1.2.7 and related Apache commons validator. I am using 
validation.xml(whose rules are defined by validator-rules.xml
  I need your insight of following issues
  1.How do I validate open set data range,e,g (1,10) where 1 and 10 are 
exclusive, current intRange/floatRange valiation only support close set data 
range validation where bounds are included?
  2.I find a limitation of common validator. i.e if I enter +1000 in a field 
that has "integer" validation turned on, the common validator will complain 
about this field is NOT integer something like that. Is this a bug?
  3.A more complicated scenario, suppose that I need to validator two 
fields,say x and y, the data range of y is dependent on x, e.g y must be the 
range of [x,100], how do I make use of the common validator to do that? I know 
I can write my customized plugged in validator to do it, but does validator 
provides a default way to do it?
  Many thanks in advance!
--Victor


-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Re: Some questions

2006-04-05 Thread vijay venkataraman
You can also look at ADF Faces which in incubation now at 
http://myfaces.apache.org/. What is the incubation period and what it 
means i am not clear with that though. Probably Craig knows more about 
it. Give a try at ADF Faces and look at the demo pages.  It has around 
100 components which work fine with most browers. It internally uses 
AJAX for its components to do partial page rendering. JSF component 
developers will wire up javascript  in the component renderers such that 
end users don't bother about all the Javascript stuff. By the time you 
work, if there are more compoents that are being developed, i am sure 
you will be able to add them to the component pallette in JDEV or Java 
Studio Creator.  JDEV 10.3 like Java Studio Creator also has drag and 
drop features for ADF Faces and i believe it can pick My Faces tags too. 
I am not sure whether JDEV can pick up Sun RI components or if Java 
Studio Creator can pick up ADF Faces and My Faces components in its 
component pallete. Craig might have some information on these.


Thanks,
Vijay Venkataraman

Craig McClanahan wrote:


On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
 


And how easy is it to use AJAX along with JSF? I don't have any
experience with JSF but I've seen a friend of mine drag & dropping
like in .NET. I'm not an apologist of WebForms. But if JSF eases AJAX
I'll certainly consider it as a valid choice.
   





It's pretty easy.  If you install Java Studio Creator 2[1], you can also
download a library of AJAX-enabled sample components that encapsulate all
the JS/DHTML complexity, but leverage the drag-n-drop user experience
Creator provides for any other JSF component.

We're adding to this library with components that wrap widgets from the DOJO
toolkit (I don't want to write all that javascript code either :-), which is
a good strategy ... the JSF renderer can basically emit the code to create
the corresponding DOJO object and asking it to render itself, rather than
doing all the markup itself.



Kind Regards,
 


Mário Lopes
   




Craig

[1] http://developers.sun.com/jscreator/

 




--DISCLAIMER--
This message is for the named person's use only. It may contain 
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. 

If you receive this message in error, please immediately delete it and 
all copies of it from your system, destroy any hard copies of it and 
notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the 
intended recipient. 

Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each 
reserve the right to monitor all e-mail communications through its 
networks. 

Any views expressed in this message are those of the 
individual sender, except where the message states otherwise and the 
sender is authorized to state them to be the views of any such entity.


Re: Some questions

2006-04-05 Thread slam dunk
Mario,
Have you checked out projects like:
http://sequoiaerp.org/
http://www.compiere.org/

The advice coming from this user-list is usually very confusing. I guess the
moderator never reads  or filters the content.

On 4/5/06, Hey Nony Moose <[EMAIL PROTECTED]> wrote:


Action servlet unavailable

2006-04-05 Thread draegoon Z

Hey guys,

I have just started bringing an older opensource CMS wepapp called
owxv3 (http://www.eadmin.ch/pages/en/owxv3/) up to speed.

Switched it from 1.1 to 1.2.8.
Making OS and database independent.
Changing templating to tiles.



I'm getting this error:

2006-04-05 23:10:04 StandardContext[/dzcms]Marking servlet action as 
unavailable
2006-04-05 23:10:04 StandardContext[/dzcms]Servlet /dzcms threw load() 
exception
javax.servlet.UnavailableException: Parsing error processing resource path 
/WEB-INF/owx-struts.xml
	at 
org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:769)
	at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:745)
	at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)

at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
	at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)

at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
	at 
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
	at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)

at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208)
at org.apache.commons.digester.Rule.end(Rule.java:228)
at org.apache.commons.digester.Digester.endElement(Digester.java:1067)
	at 
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
	at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
	at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
	at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
	at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
	at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
	at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
	at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
	at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)

at org.apache.commons.digester.Digester.parse(Digester.java:1591)
	at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)

at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
	at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)

at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
	at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

2006-04-05 23:10:56 ApplicationDispatcher[/dzcms]: Servlet action is 
currently unavailable

Re: Some questions

2006-04-05 Thread Hey Nony Moose
Kimani Darisha wrote:

On 4/5/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote:

>>I am currently in the market for a digital video camera. I have never
>>owned such a gadget before.
>>
>>
>Ha!  this proves what such moron you are!  you do NOT pay for struts!
>it is free!!!
>
ok, there's some obvious logical discontinuity in metaphors and a
smattering of frustration and abuse here, but perhaps the saying "never
look a gift horse in the mouth" is worth a few moments reflection?  have
any who are mounting vigorous complaints actually paid any $s to Struts
devs?  so, it is a "gift horse" as KD is alluding rather bluntly ... as
are many other OS apps ...
 Moose, and the thread that will not die ... so is this the "thread of
the living dead"?  ... the "evil thr(d)ead"?
well, it's giving me nightmares anyway ...
"i awoke in a cold sweat fearing another outpouring of bile from dakota
followed by the cold chill of *that* question again from the 'freemarker
kid' ... (shudder) ... the one we *knew* would now never be answered ... "
 someone get me a bucket ...



Re: Some questions

2006-04-05 Thread Jonathan Revusky

Kimani Darisha wrote:

I am currently in the market for a digital video camera. I have never
owned such a gadget before.



Ha!  this proves what such moron you are!  you do NOT pay for struts!
it is free!!!



So are all the other options that were mentioned, such as Spring and 
Webwork.


Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/


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



Re: Some questions

2006-04-05 Thread Kimani Darisha
> I am currently in the market for a digital video camera. I have never
> owned such a gadget before.

Ha!  this proves what such moron you are!  you do NOT pay for struts!
it is free!!!

come back when you have some point worth discussing!

K.


On 4/5/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote:
> Bart Busschots wrote:
> > Jonathan Revusky wrote:
> >
> >> What do you mean "so what", Frank? If one is new to the java web
> >> application space, why on earth should one start using a framework
> >> like Struts Classic that (a) is not state of the art and (b) is not
> >> going to be developed any further?
> >>
> >> WHY?
> >
> > Because it does what you need? Because it does MORE than you need?
>
> Bart,
>
> I am currently in the market for a digital video camera. I have never
> owned such a gadget before. I have not yet done much research into this
> product category, but I take as a given that a lot of progress has been
> happening in the last few years. Newer models are both far less
> weighty/bulky than those of a few years ago, and more featureful. And
> probably easier to use as well.
>
> Now, I have little doubt that any model that was state of the art 4
> years ago does what I need -- does MORE than what I need. However, I
> just take as a given that I will try to get something that is currently
> state of the art, not a 4-year-old model.
>
> This *is* common sense.
>
> > Because there is a much larger community out there with the skills you
> > need? Because there are more online resources to help you when you get
> > stuck?
>
> There are plenty of online resources for things like Spring and Webwork
> and plenty of people to help you when you get stuck.
>
> > Because the platform is stable, reliable and tested in the real
> > world? I could go on but I think you get the point. The bleeding edge is
> > NOT a good place to be on a production system! If it ain't broke, don't
> > fix it!
>
> The main competitors to Struts, such as Spring MVC and Webwork are not
> bleeding edge. For example, in the case of Webwork, well known java web
> applications, such as Jive forums, Confluence, and JIRA, are built on
> top of Webwork. We are not talking about bleeding edge technologies.
>
> >
> > I get very annoyed when people insist that you have to be at the
> > bleeding edge of everything or you're being stupid. That's just not a
> > real world view of things, it's an idealized view from an ivory tower IMO.
>
> Bart, if I already owned a digital video camera that was 4 years behind
> the state of the art, and it did everything I needed, I would probably
> not bother to buy a new one.
>
> However, if I am in the market for a new one, and I have never owned
> such a gadget before (and that is my exact case) I will naturally try
> to buy something that is roughly the current state of the art (within
> the parameters of my budget, of course.)
>
> Now, that some huckster salesman some place tries to sell me a model
> they have lying around that is 4 years out of date is understandable.
> The guy is on commission and has to eat. What the excuse of people like
> you and Frank and others is, I really don't know
>
>
> >
> >>> Does Struts as it exists today serve a great many people very well?
> >>> Yes.  Does everyone need every single new feature available out
> >>> there?  No.  You know, I've had my complaints as well, but
> >>> ultimately, if the offering is doing the job for so many, how does
> >>> how far behind the state of the art it is really matter?
> >>
> >>
> >> What you're saying is senseless IMO. In this discussion, the onus is
> >> not on me to explain why somebody new to the java web app space should
> >> not use Struts 1.x. The onus is on the other side of the debate to
> >> explain why somebody should use it, given that it is (a) quite far
> >> behind the state of the art and (b) is not going to be developed any
> >> further.
> >
> > See above points and it IS being developed further, 1.3 is on the way!
>
> Bah, humbug. You're talking about something that is, at best, an
> incremental refinement to a product that is something around 4 years out
> of date. Whatever improvements it offers are really only of interest to
> people who already have some sunk investment in Struts 1.x. Clearly,
> someone new to this space should be looking for a more state-of-the-art
>   alternative.
>
> Besides, Struts Action 2.0 is on the way (!) and that *is* Webwork.
> Isn't that a more sensible starting point for someone new to this space?
>
> Jonathan Revusky
> --
> lead developer, FreeMarker project, http://freemarker.org/
>
> >
> >>
> >> The onus is on you to explain why somebody should not do the
> >> common-sensical thing of looking for something that is state of the
> >> art and that will have an ongoing development effort behind it. Such a
> >> thing could be Webwork a.k.a. Struts Action 2, or *maybe* this Shale
> >> thing or it could be something else.
> >>
> > Looking for state of the art is not common-

Re: Some questions

2006-04-05 Thread Joe Moore
They loce attention. Just ignore them and they will go away.
 
Joe Moore

- Original Message 
From: Kimani Darisha <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Wednesday, April 5, 2006 9:59:38 PM
Subject: Re: Some questions

why do u talk this crap?  u know nothing of this product!

On 4/5/06, Dakota Jack <[EMAIL PROTECTED]> wrote:
> Good god Frank.  You are recommending an abandoned framework to someone
> seeking advice and we are not supposed to question that.  The inmates have
> taken over the asylum.  This is nuts.
>
> On 4/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> >
> > On Wed, April 5, 2006 11:46 am, Dakota Jack said:
> > > Frank, this is uncalled for.
> >
> > Talk about uncalled for... you call me deplorable and ignorant in another
> > post, and what *I* said is uncalled for?
> >
> > > Jonathan is clearly right on this and you
> > > are
> > > clearly wrong.
> >
> > I bow to your omnipotence.  You clearly have all the answers, and the rest
> > of us are just lucky to be living on the same planet as you.  I would not
> > dare to debate you, since I am so clearly, totally and utterly wrong about
> > everything.
> >
> > And as with Jonathan, feel free to have the last word.  I've already been
> > drawn in more than I should have allowed.  Then again, when dealing with
> > someone so clearly superior to myself, how could I have hoped to do
> > better?
> >
> > Frank
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> "You can lead a horse to water but you cannot make it float on its back."
> ~Dakota Jack~
>
>

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






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



Re: Some questions

2006-04-05 Thread Kimani Darisha
why do u talk this crap?  u know nothing of this product!

On 4/5/06, Dakota Jack <[EMAIL PROTECTED]> wrote:
> Good god Frank.  You are recommending an abandoned framework to someone
> seeking advice and we are not supposed to question that.  The inmates have
> taken over the asylum.  This is nuts.
>
> On 4/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> >
> > On Wed, April 5, 2006 11:46 am, Dakota Jack said:
> > > Frank, this is uncalled for.
> >
> > Talk about uncalled for... you call me deplorable and ignorant in another
> > post, and what *I* said is uncalled for?
> >
> > > Jonathan is clearly right on this and you
> > > are
> > > clearly wrong.
> >
> > I bow to your omnipotence.  You clearly have all the answers, and the rest
> > of us are just lucky to be living on the same planet as you.  I would not
> > dare to debate you, since I am so clearly, totally and utterly wrong about
> > everything.
> >
> > And as with Jonathan, feel free to have the last word.  I've already been
> > drawn in more than I should have allowed.  Then again, when dealing with
> > someone so clearly superior to myself, how could I have hoped to do
> > better?
> >
> > Frank
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> "You can lead a horse to water but you cannot make it float on its back."
> ~Dakota Jack~
>
>

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



Re: Some questions

2006-04-05 Thread Dakota Jack
Exactly.  I am amazed that this is not crystal clear to anyone, except the
usuals.

On 4/5/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote:
>
> Dakota Jack wrote:
> > I would like to disabuse the "usuals" of an assumption that seems to
> pervade
> > these discussions, viz., that everything is open for discussion and
> > any statement
> > is warranted.  That simply is not consistent with intelligent
> discussion.
> > The very idea that Struts 1.x is a viable choice for a new project is
> itself
> > really questionable.
>
> The only conditions where I see it making sense is for people who
> already have a significant investment in using Struts 1.x and,
> therefore, know all the various API's and the various gotchas like the
> backs of their hands.
>
> Then, pragmatically speaking, it could  well be the easiest, fastest way
> for those people to crank out some typical kind of web app.
>
> But what started off this discussion was a query from someone who had
> never used Struts (or any competing java framework) before. Given those
> parameters, it seems crazy to recommend Struts 1.x at this stage of
> history. If the developers of the thing basically say it's obsolete and
> won't be developed further, why on earth should this not be taken at
> face value?
>
> Jonathan Revusky
> --
> lead developer, FreeMarker project, http://freemarker.org/
>
> > I have to wonder how anyone looking at the issues
> > could think that and be taken seriously.  Is there nothing on this list
> that
> > is settled truth?  Nothing?  I thought at least the fact that this
> community
> > has abandoned Struts 1.x as second rate ought to be unassailable grounds
> for
> > NOT recommending it to people asking for advice.  But, I guess not.  I
> don't
> > know if a normal conversation is possible with this community.
> >
> > On 4/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> >
> >>On Wed, April 5, 2006 11:46 am, Dakota Jack said:
> >>
> >>>Frank, this is uncalled for.
> >>
> >>Talk about uncalled for... you call me deplorable and ignorant in
> another
> >>post, and what *I* said is uncalled for?
> >>
> >>
> >>>Jonathan is clearly right on this and you
> >>>are
> >>>clearly wrong.
> >>
> >>I bow to your omnipotence.  You clearly have all the answers, and the
> rest
> >>of us are just lucky to be living on the same planet as you.  I would
> not
> >>dare to debate you, since I am so clearly, totally and utterly wrong
> about
> >>everything.
> >>
> >>And as with Jonathan, feel free to have the last word.  I've already
> been
> >>drawn in more than I should have allowed.  Then again, when dealing with
> >>someone so clearly superior to myself, how could I have hoped to do
> >>better?
> >>
> >>Frank
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> > --
> > "You can lead a horse to water but you cannot make it float on its
> back."
> > ~Dakota Jack~
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Some questions

2006-04-05 Thread Jonathan Revusky

Bart Busschots wrote:

Jonathan Revusky wrote:

What do you mean "so what", Frank? If one is new to the java web 
application space, why on earth should one start using a framework 
like Struts Classic that (a) is not state of the art and (b) is not 
going to be developed any further?


WHY?


Because it does what you need? Because it does MORE than you need? 


Bart,

I am currently in the market for a digital video camera. I have never
owned such a gadget before. I have not yet done much research into this
product category, but I take as a given that a lot of progress has been
happening in the last few years. Newer models are both far less
weighty/bulky than those of a few years ago, and more featureful. And
probably easier to use as well.

Now, I have little doubt that any model that was state of the art 4
years ago does what I need -- does MORE than what I need. However, I
just take as a given that I will try to get something that is currently
state of the art, not a 4-year-old model.

This *is* common sense.

Because there is a much larger community out there with the skills you 
need? Because there are more online resources to help you when you get 
stuck? 


There are plenty of online resources for things like Spring and Webwork
and plenty of people to help you when you get stuck.

Because the platform is stable, reliable and tested in the real 
world? I could go on but I think you get the point. The bleeding edge is 
NOT a good place to be on a production system! If it ain't broke, don't 
fix it!


The main competitors to Struts, such as Spring MVC and Webwork are not
bleeding edge. For example, in the case of Webwork, well known java web
applications, such as Jive forums, Confluence, and JIRA, are built on
top of Webwork. We are not talking about bleeding edge technologies.



I get very annoyed when people insist that you have to be at the 
bleeding edge of everything or you're being stupid. That's just not a 
real world view of things, it's an idealized view from an ivory tower IMO.


Bart, if I already owned a digital video camera that was 4 years behind
the state of the art, and it did everything I needed, I would probably
not bother to buy a new one.

However, if I am in the market for a new one, and I have never owned
such a gadget before (and that is my exact case) I will naturally try
to buy something that is roughly the current state of the art (within 
the parameters of my budget, of course.)


Now, that some huckster salesman some place tries to sell me a model
they have lying around that is 4 years out of date is understandable.
The guy is on commission and has to eat. What the excuse of people like
you and Frank and others is, I really don't know




Does Struts as it exists today serve a great many people very well?  
Yes.  Does everyone need every single new feature available out 
there?  No.  You know, I've had my complaints as well, but 
ultimately, if the offering is doing the job for so many, how does 
how far behind the state of the art it is really matter?



What you're saying is senseless IMO. In this discussion, the onus is 
not on me to explain why somebody new to the java web app space should 
not use Struts 1.x. The onus is on the other side of the debate to 
explain why somebody should use it, given that it is (a) quite far 
behind the state of the art and (b) is not going to be developed any 
further.


See above points and it IS being developed further, 1.3 is on the way!


Bah, humbug. You're talking about something that is, at best, an 
incremental refinement to a product that is something around 4 years out 
of date. Whatever improvements it offers are really only of interest to 
people who already have some sunk investment in Struts 1.x. Clearly, 
someone new to this space should be looking for a more state-of-the-art 
 alternative.


Besides, Struts Action 2.0 is on the way (!) and that *is* Webwork. 
Isn't that a more sensible starting point for someone new to this space?


Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/





The onus is on you to explain why somebody should not do the 
common-sensical thing of looking for something that is state of the 
art and that will have an ongoing development effort behind it. Such a 
thing could be Webwork a.k.a. Struts Action 2, or *maybe* this Shale 
thing or it could be something else.


Looking for state of the art is not common-sensical! In the real world 
there are many more factors to consider than just wither or not you use 
the latest bleeding edge technology. Stability and a proven track record 
count for a lot as do the availability of skills and help and 
documentation and books etc. You are looking at just a single factor and 
assuming it is the only factor when it simply isn't in the real world.


Bart.






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



Re: Some questions

2006-04-05 Thread Jonathan Revusky

Dakota Jack wrote:

I would like to disabuse the "usuals" of an assumption that seems to pervade
these discussions, viz., that everything is open for discussion and
any statement
is warranted.  That simply is not consistent with intelligent discussion.
The very idea that Struts 1.x is a viable choice for a new project is itself
really questionable.  


The only conditions where I see it making sense is for people who 
already have a significant investment in using Struts 1.x and, 
therefore, know all the various API's and the various gotchas like the 
backs of their hands.


Then, pragmatically speaking, it could  well be the easiest, fastest way 
for those people to crank out some typical kind of web app.


But what started off this discussion was a query from someone who had 
never used Struts (or any competing java framework) before. Given those 
parameters, it seems crazy to recommend Struts 1.x at this stage of 
history. If the developers of the thing basically say it's obsolete and 
won't be developed further, why on earth should this not be taken at 
face value?


Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/


I have to wonder how anyone looking at the issues
could think that and be taken seriously.  Is there nothing on this list that
is settled truth?  Nothing?  I thought at least the fact that this community
has abandoned Struts 1.x as second rate ought to be unassailable grounds for
NOT recommending it to people asking for advice.  But, I guess not.  I don't
know if a normal conversation is possible with this community.

On 4/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:


On Wed, April 5, 2006 11:46 am, Dakota Jack said:


Frank, this is uncalled for.


Talk about uncalled for... you call me deplorable and ignorant in another
post, and what *I* said is uncalled for?



Jonathan is clearly right on this and you
are
clearly wrong.


I bow to your omnipotence.  You clearly have all the answers, and the rest
of us are just lucky to be living on the same planet as you.  I would not
dare to debate you, since I am so clearly, totally and utterly wrong about
everything.

And as with Jonathan, feel free to have the last word.  I've already been
drawn in more than I should have allowed.  Then again, when dealing with
someone so clearly superior to myself, how could I have hoped to do
better?

Frank

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






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





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



Re: Some questions

2006-04-05 Thread Dakota Jack
Yes, it matters.  It matters because good frameworks have values related to
commercial success.  They are easier to use, they are easier to test, they
allow you to provide services in faster and more reliable ways, etc.  The
framework matters a great deal.  I am sure that there are many architectures
out, there, for example, built on the middleware concept.  That does not
mean they are equal to SOA.  Presumably there will be new languages as well
that will eclipse the old ones.  That is progress.  The eclipse happens
because there is real value in the products and not just the idea that they
are "cutting edge".


On 4/4/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
>
> That may be true, but let me ask this question: so what?  Does Struts as
> it exists today serve a great many people very well?  Yes.  Does
> everyone need every single new feature available out there?  No.  You
> know, I've had my complaints as well, but ultimately, if the offering is
> doing the job for so many, how does how far behind the state of the art
> it is really matter?




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


Re: Some questions

2006-04-05 Thread Joe Moore
Patient - "Doctor, doctor! It hurts when I hit my head against the wall."
Doctor - "Don't hit your head agains the wall."
 
Joe Moore


- Original Message 
From: Dakota Jack <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Wednesday, April 5, 2006 6:35:32 PM
Subject: Re: Some questions

I would like to disabuse the "usuals" of an assumption that seems to pervade
these discussions, viz., that everything is open for discussion and
any statement
is warranted.  That simply is not consistent with intelligent discussion.
The very idea that Struts 1.x is a viable choice for a new project is itself
really questionable.  I have to wonder how anyone looking at the issues
could think that and be taken seriously.  Is there nothing on this list that
is settled truth?  Nothing?  I thought at least the fact that this community
has abandoned Struts 1.x as second rate ought to be unassailable grounds for
NOT recommending it to people asking for advice.  But, I guess not.  I don't
know if a normal conversation is possible with this community.

On 4/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
> On Wed, April 5, 2006 11:46 am, Dakota Jack said:
> > Frank, this is uncalled for.
>
> Talk about uncalled for... you call me deplorable and ignorant in another
> post, and what *I* said is uncalled for?
>
> > Jonathan is clearly right on this and you
> > are
> > clearly wrong.
>
> I bow to your omnipotence.  You clearly have all the answers, and the rest
> of us are just lucky to be living on the same planet as you.  I would not
> dare to debate you, since I am so clearly, totally and utterly wrong about
> everything.
>
> And as with Jonathan, feel free to have the last word.  I've already been
> drawn in more than I should have allowed.  Then again, when dealing with
> someone so clearly superior to myself, how could I have hoped to do
> better?
>
> Frank
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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





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



Re: Some questions

2006-04-05 Thread Dakota Jack
I would like to disabuse the "usuals" of an assumption that seems to pervade
these discussions, viz., that everything is open for discussion and
any statement
is warranted.  That simply is not consistent with intelligent discussion.
The very idea that Struts 1.x is a viable choice for a new project is itself
really questionable.  I have to wonder how anyone looking at the issues
could think that and be taken seriously.  Is there nothing on this list that
is settled truth?  Nothing?  I thought at least the fact that this community
has abandoned Struts 1.x as second rate ought to be unassailable grounds for
NOT recommending it to people asking for advice.  But, I guess not.  I don't
know if a normal conversation is possible with this community.

On 4/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
> On Wed, April 5, 2006 11:46 am, Dakota Jack said:
> > Frank, this is uncalled for.
>
> Talk about uncalled for... you call me deplorable and ignorant in another
> post, and what *I* said is uncalled for?
>
> > Jonathan is clearly right on this and you
> > are
> > clearly wrong.
>
> I bow to your omnipotence.  You clearly have all the answers, and the rest
> of us are just lucky to be living on the same planet as you.  I would not
> dare to debate you, since I am so clearly, totally and utterly wrong about
> everything.
>
> And as with Jonathan, feel free to have the last word.  I've already been
> drawn in more than I should have allowed.  Then again, when dealing with
> someone so clearly superior to myself, how could I have hoped to do
> better?
>
> Frank
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Some questions

2006-04-05 Thread Dakota Jack
Good god Frank.  You are recommending an abandoned framework to someone
seeking advice and we are not supposed to question that.  The inmates have
taken over the asylum.  This is nuts.

On 4/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
> On Wed, April 5, 2006 11:46 am, Dakota Jack said:
> > Frank, this is uncalled for.
>
> Talk about uncalled for... you call me deplorable and ignorant in another
> post, and what *I* said is uncalled for?
>
> > Jonathan is clearly right on this and you
> > are
> > clearly wrong.
>
> I bow to your omnipotence.  You clearly have all the answers, and the rest
> of us are just lucky to be living on the same planet as you.  I would not
> dare to debate you, since I am so clearly, totally and utterly wrong about
> everything.
>
> And as with Jonathan, feel free to have the last word.  I've already been
> drawn in more than I should have allowed.  Then again, when dealing with
> someone so clearly superior to myself, how could I have hoped to do
> better?
>
> Frank
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


SV: [Shale] Clay views and managed beans.

2006-04-05 Thread Hermod Opstvedt
Hi

Thanks, I will give it a try. If it does not work, I'll just have to create
two separate viewcontrollers.

Hermod


-Opprinnelig melding-
Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] 
Sendt: 5. april 2006 23:13
Til: Struts Users Mailing List; [EMAIL PROTECTED]
Emne: Re: [Shale] Clay views and managed beans.

>From: Hermod Opstvedt <[EMAIL PROTECTED]> 
>
> Hi 
> 
> I have the following situation: I have a page with some buttons on it,
which 
> leads to actions that are handled by navigation rules. This is working ok 
> for all but one of the pages. 
> 
> This page uses the same viewcontroller as the originating page. On the 
> originating page I have a hidden input that holds a value that is supposed

> to be used by the viewcontroller for getting data for the destination
page. 
> Now, what I see is the following when I press the Button 
> 
> The hidden value is set on the viewcontroller (instance 1) by 
> ViewViewHandler.restoreView. The value is null. 
> Then the value is set on the viewcontroller (instance 1) by 
> Clay.processUpdates. The value is now the correct one. 
> The method that is backed by the button is called on the viewcontroller 
> (instance 1). This method returns an outcome which is mapped to the 
> destination page by the navigation rules. 
> 
> So far so good. 
> 
> Now, what happens next is not what I expected: 
> The setter method for the hidden value is called again on the
viewcontroller 
> (instance 2!!) by ViewViewHandler.renderView, and with a value of null. 
> And finally the method that backs the data for the destination page is 
> called on the viewcontroller (instance 2!!) by ViewViewHandler.renderView.

> 
> I would have thought that since this is one request, that the to pages
would 
> share the same instance of the viewcontroller, and not that a new instance

> of it would be created for the second page. Have I misunderstood
something, 
> or I am just way out on the field with this one. 
> 

I don't think that both pages can share the same view controller instance
because 
they are registered as managed beans based on the name of the page/ view id.

This could happen if page1 and page2 are both identified by the same URI
(same page).  
Even then, the view controller would have to be in session scope to keep
state 
between the first and second page requests.

Now the shale subview component would allow you to tie multiple pages to the
same 
view controller instance if placed in session scope.   The "id" attribute is
the name of 
the view controller. 

page 1:


  page content


page 2:


  page content


  
commonbean
org.acme.MyBean
session
  


I've not actually tried this but can't see why it wouldn't work.

Gary


> Hermod 
> 
> 
> - 
> 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: [Shale] Clay views and managed beans.

2006-04-05 Thread Gary VanMatre
>From: Hermod Opstvedt <[EMAIL PROTECTED]> 
>
> Hi 
> 
> I have the following situation: I have a page with some buttons on it, which 
> leads to actions that are handled by navigation rules. This is working ok 
> for all but one of the pages. 
> 
> This page uses the same viewcontroller as the originating page. On the 
> originating page I have a hidden input that holds a value that is supposed 
> to be used by the viewcontroller for getting data for the destination page. 
> Now, what I see is the following when I press the Button 
> 
> The hidden value is set on the viewcontroller (instance 1) by 
> ViewViewHandler.restoreView. The value is null. 
> Then the value is set on the viewcontroller (instance 1) by 
> Clay.processUpdates. The value is now the correct one. 
> The method that is backed by the button is called on the viewcontroller 
> (instance 1). This method returns an outcome which is mapped to the 
> destination page by the navigation rules. 
> 
> So far so good. 
> 
> Now, what happens next is not what I expected: 
> The setter method for the hidden value is called again on the viewcontroller 
> (instance 2!!) by ViewViewHandler.renderView, and with a value of null. 
> And finally the method that backs the data for the destination page is 
> called on the viewcontroller (instance 2!!) by ViewViewHandler.renderView. 
> 
> I would have thought that since this is one request, that the to pages would 
> share the same instance of the viewcontroller, and not that a new instance 
> of it would be created for the second page. Have I misunderstood something, 
> or I am just way out on the field with this one. 
> 

I don't think that both pages can share the same view controller instance 
because 
they are registered as managed beans based on the name of the page/ view id.  
This could happen if page1 and page2 are both identified by the same URI (same 
page).  
Even then, the view controller would have to be in session scope to keep state 
between the first and second page requests.

Now the shale subview component would allow you to tie multiple pages to the 
same 
view controller instance if placed in session scope.   The "id" attribute is 
the name of 
the view controller. 

page 1:


  page content


page 2:


  page content


  
commonbean
org.acme.MyBean
session
  


I've not actually tried this but can't see why it wouldn't work.

Gary


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

Re: Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread Ted Husted
If

* the class extends one of the ActionForm base classes, and
* the class overrides the base validate method, and
* the class is registered as the form bean for the action, and
* the validate methods returns a non-null and non-empty ActionErrors
collection,

then the input location should be selected before the Action ever executes.

If it's not working, then one of the conditions must be false.

The next thing I would try would be to hardware an non-null, non-empty
ActionError return, so as to eliminate a variable.

HTH, Ted.


On 5 Apr 2006 16:54:19 -, gokul  balasubramanian
<[EMAIL PROTECTED]> wrote:
>
> all i am trying to do is perform basic form validation. but that itself 
> doesnt seem to work. i have other actions which work fine except this one. 
> what happens is that it finds errors and indicates the errors in the forward 
> "success" page instead of the "input" page. sorry for repeating myself folks. 
> i'm just trying to get the message across thats all. This has proved a real 
> toughie ..
>
> hoping for a speedy reply/solution
>
> Cheers
> G
>
> On Wed, 05 Apr 2006 gokul  balasubramanian wrote :
> >
> >Thanks for the replies guys, I am validating the form in the form-bean's 
> >validate method. The form-bean code is given below:-
> >
> >public class ImageForm extends ActionFormBase
> >{
> >// getter and setter methods
> >
> >   public ActionErrors validate( ActionMapping mapping,
> >   HttpServletRequest request )
> >   {
> > // TODO Auto-generated method stub
> >  ActionErrors errors = new ActionErrors();
> >
> >  //checking if null values exist, if yes then throw an error to the 
> > user
> >
> >
> > if(sizeTiles==null || sizeTiles.length()<1)
> > {
> > errors.add("porttilessize", new 
> > ActionError("error.tilePort.required"));
> > }
> >
> > return errors;
> >
> >   }
> >
> >
> >On Wed, 05 Apr 2006 Dave Newton wrote :
> > >Gary Feidt wrote:
> > > > Where is your Validation?  I don't see any protected ActionMessages
> > > > validate(iForm theform) {}
> > > >
> > >
> > >Also, what class does your form sub-class?
> > >
> > > > error = validate(theform);
> > > >
> > >
> > >He has validate="true" which, if the form has a proper superclass,
> > >should do validation automagically, no?
> > >
> > > > if ( "view".equalsIgnoreCase( action ) ) [...]
> > > >
> > >
> > >*shudder*
> > >
> > >Dave
> > >
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
>
>
>
>


--
HTH, Ted.
** http://www.husted.com/ted/blog/

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



[Shale] Clay views and managed beans.

2006-04-05 Thread Hermod Opstvedt
Hi

I have the following situation: I have a page with some buttons on it, which
leads to actions that are handled by navigation rules. This is working ok
for all but one of the pages.

This page uses the same viewcontroller as the originating page. On the
originating page I have a hidden input that holds a value that is supposed
to be used by the viewcontroller for getting data for the destination page.
Now, what I see is the following when I press the Button

The hidden value is set on the viewcontroller (instance 1) by
ViewViewHandler.restoreView. The value is null.
Then the value is set on the viewcontroller (instance 1) by
Clay.processUpdates. The value is now the correct one.
The method that is backed by the button is called on the viewcontroller
(instance 1). This method returns an outcome which is mapped to the
destination page by the navigation rules.

So far so good.

Now, what happens next is not what I expected:
The setter method for the hidden value is called again on the viewcontroller
(instance 2!!) by ViewViewHandler.renderView, and with a value of null.
And finally the method that backs the data for the destination page is
called on the viewcontroller (instance 2!!) by ViewViewHandler.renderView.

I would have thought that since this is one request, that the to pages would
share the same instance of the viewcontroller, and not that a new instance
of it would be created for the second page. Have I misunderstood something,
or I am just way out on the field with this one.

Hermod


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



Re: I get exception : Path http://www.mywebsite.com/ does not start with a "/" character

2006-04-05 Thread Legolas Woodland

Antonio Petrelli wrote:

Legolas Woodland ha scritto:

The server return an exception like :


java.lang.IllegalArgumentException: Path http://www.mysite.com/ does not
start with a "/" character
...
 forward="forwarder";
 return mapping.findForward( forward );
   }
}


Please post your action mapping, in particular the mapping for 
"forwarder" forward.

Ciao
Antonio


Hi
Thank you for your reply.
i defined the forwarder in global forward section  , as you can see in 
the code snippet


   
   

   
   

   
   

   





name="Locale" scope="session">

   
   
   path="/forwarder.jsp" >

   



and source code for forwarder is like :



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


<%@ page language="java" contentType="text/html; charset=UTF-8"
   pageEncoding="UTF-8"%>











document.location=' '








   %>" />




page='<%=session.getAttribute("LastPageInclude").toString() %>' 
flush="true"/>













thank you for looking at my codes :-) . it is my first application so , 
the codes may looks ugly for you



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



Re: [OT] Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-04-05 Thread Frank W. Zammetti
My best guess is that IE is trying to GET the contents pointed to by the
link, and at the same time process your onClick event, and the two are
conflicting.  That is just a guess, but I have indeed seem similar
behavior when using a link.  One thing you can do is to not make it a link
at all, instead just have a , and maybe update the cursor style, so
something like this:

Next

Otherwise, the other thing to try is to add "return false;" to the end of
your href, so:

Next 

I'm not 100% sure, but I think that will cause the transition to void(0)
to not happen.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Wed, April 5, 2006 3:56 pm, zahid mohammed said:
> Though this problem was resolved long time back, I was just wondering what
> the actual problem was.
>
> The problem was resolved just by replacing
>
>
> Next 
>
> with
>
> 
>
> Using the anchor tag, the HTTPWatch showed that the HTTP operation was
> aborted by IE, where as by using the button it went on the next page and
> showed the right set of elements.
>
> Can anyone please tell me what the problem was with the anchor tag and why
> did IE abort the operation.
>
> Thanks for all the help!
>
>
>
>
>
> On 2/18/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>>
>> Aborted can happen when a proxy is involved, which has been suggested
>> before as the source of your troubles.  I think it would be in your best
>> interest to purchase HTTPWatch to see the full details, or else find a
>> free alternative... some options:
>>
>> http://www.siliconwold.com/interceptor/interceptor_home.htm
>> http://www.blunck.info/iehttpheaders.html
>>
>> http://www.fileedge.com/Cat/Network-Internet/Browsers-Tools/MMD-HttpHead.html
>>
>> None of them seem as good as HTTPWatch, but the price is right :)
>>
>> Frank
>>
>> zahid mohammed wrote:
>> > Hi Dave,
>> > I have used the basic edition of HttpWatch and found these results
>> after
>> > clicking "next"
>> >
>> > Started   Time   size method  Result   Type
>> >  00:01:58.5120.004*POSTAborted*
>> > URL
>> >
>> >
>> http://localhost:8080/WITRApplication/GetOtherSet.do?nextposition=10&rand=93395784
>> >  00:02:14.2390.003*POSTAborted*
>> >
>> http://localhost:8080/WITRApplication/GetOtherSet.do?nextposition=10&rand=53881851
>> >
>> > Since this is a basic edition of HttpWatch I am unable to see the
>> headers,
>> > cookies, cache etc. Does anyone know what "Aborted" means in the
>> result
>> and
>> > when does it show that?
>> >
>> > PLEASE HELP!!!
>> > Thanks.
>> >
>> > On 2/17/06, Dave Newton <[EMAIL PROTECTED]> wrote:
>> >> zahid mohammed wrote:
>> >>> If something was fundamentally wrong then why would it work in
>> >> "FIREFOX".
>> >> Perhaps because Firefox is less fundamentally broken than IE?
>> >>> And moreover these two printlns are giving the same result in
>> Firefox
>> >> but
>> >>> not in IE i.e after clicking next these are printing the next page's
>> >> first
>> >>> element. I am in the process of using HTTPWatch. I'll let u guys
>> know
>> >> the
>> >>> result later.
>> >>>
>> >> What do you mean by "first element?" Those printlns are half-way
>> through
>> >> the source you posted; there is quite a bit of HTML before them.
>> >>
>> >> I should rephrase my belief: obviously there is different behavior
>> under
>> >> IE, but I'm quite skeptical that it's an issue with caching insofar
>> as
>> >> the headers you are sending are correct and you are sending a
>> >> cache-busting unique URL parameter. We use both techniques (and have
>> for
>> >> a long time) with zero issues across "all" browsers.
>> >>
>> >> I still believe that there is either more going on under IE than you
>> >> suspect with regards to a proxy, a cache, something, somewhere in the
>> >> request chain.
>> >>
>> >> I would recommend you test w/ a different version of IE6 and see if
>> the
>> >> problem goes away; if it does then obviously that drop of IE is
>> >> significantly broken. I would also examine your entire request
>> >> processing chain, and create a standalone test case without all the
>> >> extra stuff to make it easier to track down the problem to see if it
>> >> really _is_ an IE-specific caching bug or if it's somewhere else in
>> the
>> >> chain.
>> >>
>> >> Dave
>> >>
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


-
To unsubscribe, e-mail: [EMAIL PROTECT

Re: [OT] Re: Frustrating IE6 Caching problem......PLEASE HELP!!!!

2006-04-05 Thread zahid mohammed
Though this problem was resolved long time back, I was just wondering what
the actual problem was.

The problem was resolved just by replacing


Next 

with



Using the anchor tag, the HTTPWatch showed that the HTTP operation was
aborted by IE, where as by using the button it went on the next page and
showed the right set of elements.

Can anyone please tell me what the problem was with the anchor tag and why
did IE abort the operation.

Thanks for all the help!





On 2/18/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
> Aborted can happen when a proxy is involved, which has been suggested
> before as the source of your troubles.  I think it would be in your best
> interest to purchase HTTPWatch to see the full details, or else find a
> free alternative... some options:
>
> http://www.siliconwold.com/interceptor/interceptor_home.htm
> http://www.blunck.info/iehttpheaders.html
>
> http://www.fileedge.com/Cat/Network-Internet/Browsers-Tools/MMD-HttpHead.html
>
> None of them seem as good as HTTPWatch, but the price is right :)
>
> Frank
>
> zahid mohammed wrote:
> > Hi Dave,
> > I have used the basic edition of HttpWatch and found these results after
> > clicking "next"
> >
> > Started   Time   size method  Result   Type
> >  00:01:58.5120.004*POSTAborted*
> > URL
> >
> >
> http://localhost:8080/WITRApplication/GetOtherSet.do?nextposition=10&rand=93395784
> >  00:02:14.2390.003*POSTAborted*
> >
> http://localhost:8080/WITRApplication/GetOtherSet.do?nextposition=10&rand=53881851
> >
> > Since this is a basic edition of HttpWatch I am unable to see the
> headers,
> > cookies, cache etc. Does anyone know what "Aborted" means in the result
> and
> > when does it show that?
> >
> > PLEASE HELP!!!
> > Thanks.
> >
> > On 2/17/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> >> zahid mohammed wrote:
> >>> If something was fundamentally wrong then why would it work in
> >> "FIREFOX".
> >> Perhaps because Firefox is less fundamentally broken than IE?
> >>> And moreover these two printlns are giving the same result in Firefox
> >> but
> >>> not in IE i.e after clicking next these are printing the next page's
> >> first
> >>> element. I am in the process of using HTTPWatch. I'll let u guys know
> >> the
> >>> result later.
> >>>
> >> What do you mean by "first element?" Those printlns are half-way
> through
> >> the source you posted; there is quite a bit of HTML before them.
> >>
> >> I should rephrase my belief: obviously there is different behavior
> under
> >> IE, but I'm quite skeptical that it's an issue with caching insofar as
> >> the headers you are sending are correct and you are sending a
> >> cache-busting unique URL parameter. We use both techniques (and have
> for
> >> a long time) with zero issues across "all" browsers.
> >>
> >> I still believe that there is either more going on under IE than you
> >> suspect with regards to a proxy, a cache, something, somewhere in the
> >> request chain.
> >>
> >> I would recommend you test w/ a different version of IE6 and see if the
> >> problem goes away; if it does then obviously that drop of IE is
> >> significantly broken. I would also examine your entire request
> >> processing chain, and create a standalone test case without all the
> >> extra stuff to make it easier to track down the problem to see if it
> >> really _is_ an IE-specific caching bug or if it's somewhere else in the
> >> chain.
> >>
> >> Dave
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Some questions

2006-04-05 Thread Kimani Darisha
oh sorry, I meant that for jakota

On 4/5/06, Jakota Dack <[EMAIL PROTECTED]> wrote:
> --- Kimani Darisha wrote:
> > On 4/5/06, Newton <[EMAIL PROTECTED]> wrote:
> > > I don't even LIKE Struts that much
> > And yet here you are, making a "Jack"ass out of
> > yourself once again.
>
> oh dont pick on newton besides me he is the only
> person her that knows what he's talking about!!!1!
>
> >
> > > Dakota Jack wrote:
> > > > The fact that some Struts groupies like
> > Busschots and Newton
> > > > jump in with there stupidities is irrelevant.
> > >
> > > You're such a tool.
> > >
> > > I don't even LIKE Struts that much, and if you
> > bothered reading anything
> > > other than your own posts you'd be able to figure
> > that out.
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Some questions

2006-04-05 Thread Jakota Dack
--- Kimani Darisha wrote:
> On 4/5/06, Newton <[EMAIL PROTECTED]> wrote:
> > I don't even LIKE Struts that much
> And yet here you are, making a "Jack"ass out of
> yourself once again.

oh dont pick on newton besides me he is the only
person her that knows what he's talking about!!!1!

> 
> > Dakota Jack wrote:
> > > The fact that some Struts groupies like
> Busschots and Newton
> > > jump in with there stupidities is irrelevant.
> >
> > You're such a tool.
> >
> > I don't even LIKE Struts that much, and if you
> bothered reading anything
> > other than your own posts you'd be able to figure
> that out.


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

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



looking for struts authorization authentication

2006-04-05 Thread A. Lotfi
Hi, I looked for a struts that different categorie of users login and got 
forwarded to different pages, please help me if you have a tutorial or web 
application .
  thank you, your help is appreciated.


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

Re: Some questions

2006-04-05 Thread Kimani Darisha
> I don't even LIKE Struts that much
And yet here you are, making a "Jack"ass out of yourself once again.

On 4/5/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> Dakota Jack wrote:
> > The fact that some Struts groupies like Busschots and Newton
> > jump in with there stupidities is irrelevant.
>
> You're such a tool.
>
> I don't even LIKE Struts that much, and if you bothered reading anything
> other than your own posts you'd be able to figure that out.
>
> Dave
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



test

2006-04-05 Thread A. Lotfi
test

-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

Re: Some questions

2006-04-05 Thread Craig McClanahan
On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
>
>
> And how easy is it to use AJAX along with JSF? I don't have any
> experience with JSF but I've seen a friend of mine drag & dropping
> like in .NET. I'm not an apologist of WebForms. But if JSF eases AJAX
> I'll certainly consider it as a valid choice.



It's pretty easy.  If you install Java Studio Creator 2[1], you can also
download a library of AJAX-enabled sample components that encapsulate all
the JS/DHTML complexity, but leverage the drag-n-drop user experience
Creator provides for any other JSF component.

We're adding to this library with components that wrap widgets from the DOJO
toolkit (I don't want to write all that javascript code either :-), which is
a good strategy ... the JSF renderer can basically emit the code to create
the corresponding DOJO object and asking it to render itself, rather than
doing all the markup itself.



Kind Regards,
>
> Mário Lopes


Craig

[1] http://developers.sun.com/jscreator/


Re: Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
  
all i am trying to do is perform basic form validation. but that itself doesnt 
seem to work. i have other actions which work fine except this one. what 
happens is that it finds errors and indicates the errors in the forward 
"success" page instead of the "input" page. sorry for repeating myself folks. 
i'm just trying to get the message across thats all. This has proved a real 
toughie ..

hoping for a speedy reply/solution

Cheers
G

On Wed, 05 Apr 2006 gokul  balasubramanian wrote :
>
>Thanks for the replies guys, I am validating the form in the form-bean's 
>validate method. The form-bean code is given below:-
>
>public class ImageForm extends ActionFormBase
>{
>// getter and setter methods
>
>   public ActionErrors validate( ActionMapping mapping,
>   HttpServletRequest request )
>   {
> // TODO Auto-generated method stub
>  ActionErrors errors = new ActionErrors();
>
>  //checking if null values exist, if yes then throw an error to the 
> user
>
>
> if(sizeTiles==null || sizeTiles.length()<1)
> {
> errors.add("porttilessize", new 
> ActionError("error.tilePort.required"));
> }
>
> return errors;
>
>   }
>
>
>On Wed, 05 Apr 2006 Dave Newton wrote :
> >Gary Feidt wrote:
> > > Where is your Validation?  I don't see any protected ActionMessages
> > > validate(iForm theform) {}
> > >
> >
> >Also, what class does your form sub-class?
> >
> > > error = validate(theform);
> > >
> >
> >He has validate="true" which, if the form has a proper superclass,
> >should do validation automagically, no?
> >
> > > if ( "view".equalsIgnoreCase( action ) ) [...]
> > >
> >
> >*shudder*
> >
> >Dave
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>




Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
  
Thanks for the replies guys, I am validating the form in the form-bean's 
validate method. The form-bean code is given below:-

public class ImageForm extends ActionFormBase
{
// getter and setter methods

  public ActionErrors validate( ActionMapping mapping,
  HttpServletRequest request )
  {
// TODO Auto-generated method stub
   ActionErrors errors = new ActionErrors();
   
   //checking if null values exist, if yes then throw an error to the 
user
   

  if(sizeTiles==null || sizeTiles.length()<1)
  {
  errors.add("porttilessize", new 
ActionError("error.tilePort.required"));
  }
   
return errors;
  
  }


On Wed, 05 Apr 2006 Dave Newton wrote :
>Gary Feidt wrote:
> > Where is your Validation?  I don't see any protected ActionMessages
> > validate(iForm theform) {}
> >
>
>Also, what class does your form sub-class?
>
> > error = validate(theform);
> >
>
>He has validate="true" which, if the form has a proper superclass,
>should do validation automagically, no?
>
> > if ( "view".equalsIgnoreCase( action ) ) [...]
> >
>
>*shudder*
>
>Dave
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




Re: Some questions

2006-04-05 Thread Michael Jouravlev
On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
> On 4/5/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > By the way, why would not you use RoR, looks like you have experience with 
> > it?
>
> Our client demands Java usage. No space left here.

Check this: http://www.manageability.org/blog/stuff/open-source-crm/view

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



Re: Some questions

2006-04-05 Thread Mário Lopes
On 4/5/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
> > On 4/5/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > > On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
> > > > > > The project is a simple CRM with forms and AJAX. No big stuff, 6
> > > > > > database tables maximum. Also, we have a very short deadline (June),
> > > > > > so we can't waste too much time learning the framework.
> > >
> > > Why would not you use one of existing CRM frameworks?
> >
> > It's supposed to develop a custom CRM solution from scratch. But is
> > there any Free/Open Source CRM framework available?
>
> Well, have you searched? Would be simpler than asking in Struts mailing list.
>
> > > > And how easy is it to use AJAX along with JSF? I don't have any
> > > > experience with JSF but I've seen a friend of mine drag & dropping
> > > > like in .NET. I'm not an apologist of WebForms. But if JSF eases AJAX
> > > > I'll certainly consider it as a valid choice.
> > >
> > > I don't think that conceptually it is easier, people just work on JSF
> > > stuff more than on Struts stuff. Also, depends on your understanding
> > > of Ajax. Dragging and dropping during design time has nothing to do
> > > with dragging and dropping during runtime. And finally, .Net is not a
> > > web framework.
> >
> > My understanding of AJAX is the following: XmlHttpRequest to update
> > certain content. Obviously that if it's easy to integrate with
> > Javascript libraries like prototype, the better. Kind of like Ruby on
> > Rails that makes AJAX a matter of 2 lines (including adding effects!).
>
> That is too broad. Do you mean stuff like "in-place update" or "AHAH"?
> This is pretty simple in Struts. Or even in plain JSP. A lot of
> libraries including my own.
>
> By the way, why would not you use RoR, looks like you have experience with it?

Our client demands Java usage. No space left here.

Mário

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

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



Re: Validate() method not working as it should !!!!!

2006-04-05 Thread Dave Newton
Gary Feidt wrote:
> Where is your Validation?  I don't see any protected ActionMessages
> validate(iForm theform) {}
>   

Also, what class does your form sub-class?

> error = validate(theform);
>   

He has validate="true" which, if the form has a proper superclass,
should do validation automagically, no?

> if ( "view".equalsIgnoreCase( action ) ) [...]
>   

*shudder*

Dave



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



Re: Some questions

2006-04-05 Thread Bart Busschots

Dakota Jack wrote:

Frank, this is uncalled for.  Jonathan is clearly right on this and you are
clearly wrong.  The fact that some Struts groupies like Busschots and Newton
jump in with there stupidities is irrelevant.  I simply cannot believe you
would recommend Struts 1.x.  I no longer know what could possibly be the
basis on which you choose a framework.
  

YAY  I've been promoted to a groupie!

Jack, you mix up opinion and subjective truth. We have different 
opinions on struts, that's fine. I just don't go round insisting that 
what I say is objective truth and that anyone who disagrees is either 
and idiot or malicious.


I have laid out my reasons today and they have not changed since Lunch 
time so, unlike you I will not bore everyone on this list by saying the 
same thing again. I have realised that truth and repetition are not 
related entities and that saying something more often does not make it 
more true!


As I see it the Mario has made and informed decision to use Struts and 
came here, to the struts mailing list to get some help with using 
struts. How exactly have you helped him his question?


Anyhow, I know you will not stop posting just because you have nothing 
new to say but I will so I too will put on my best Tim O'Reilly voice 
and give you the last word ... go on ... take it!


Bart.

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



Re: Re: RE: Validate() method not working as it should !!!!!

2006-04-05 Thread Gary Feidt
Where is your Validation?  I don't see any protected ActionMessages
validate(iForm theform) {}

Nor do I see anything being added to the ActionErrors.

You need to add errors to you ActionErrors collection.  You can do
something like:

error = validate(theform);

if (!errors.isEmpty()) {
  saveErrors(request, errors);
  return mapping.getInputForward();
}

Gary

>>> [EMAIL PROTECTED] 4/5/2006 10:47:18 AM >>>
  
Here is the action class

public class RequestViewDetailAction extends ActionBase
{
  public ActionForward execute( ActionMapping mapping, ActionForm frm,
  HttpServletRequest request, HttpServletResponse response )
  {
ActionMessages messages = new ActionMessages();
RequestManager manager = this.getManager( request );
Vector downlinkData = new Vector();
ActionErrors errors = new ActionErrors();

int i = 0;

if ( request.getParameter( "requestID" ) != null )
{
  i = Integer.parseInt( request.getParameter( "requestID" ) );
}

String action = mapping.getParameter();

Image image = null;

if ( "view".equalsIgnoreCase( action ) )
{
  image = (Image) manager.getOpportunities().elementAt( i );
  downlinkData = image.getParameters().getDownlinkEvents();
}

else if ( "viewDb".equalsIgnoreCase( action ) )
{
  EventBO eventBO = new EventBO();
  ImageBO imageBO = new ImageBO();
  try
  {
image = imageBO.findByKey( i );
  }
  catch ( BusinessObjectException e1 )
  {
// TODO Auto-generated catch block
e1.printStackTrace();
  }
  Collection downlinks;
  try
  {
downlinks = eventBO.getDownlinks( image );
if ( downlinks != null )
{
  downlinkData = new Vector( downlinks );
}
  }
  catch ( BusinessObjectException e )
  {

e.printStackTrace();
  }

}
else if ( "edit".equalsIgnoreCase( action ) )
{
  image = (Image) manager.getOpportunities().elementAt( i );
  downlinkData = image.getParameters().getDownlinkEvents();
  ImageForm form = new ImageForm( image );
   
  form.setId( String.valueOf( i ) );
  request.setAttribute( "parameters", form );
  
}

else if ( "save".equalsIgnoreCase( action ) )
{

  ImageForm form = (ImageForm) frm; 

  int index = Integer.parseInt( form.getId() );
  image = (Image) manager.getOpportunities().get( index );
  updateImage( image, form );
  
  downlinkData = image.getParameters().getDownlinkEvents();
  
  Collection opportunities = manager.getOpportunities();
  Collection conflicts = manager.getConflicts();
  Collection selected = manager.getCart().getLineItems();

  if ( (opportunities != null) && !opportunities.isEmpty() )
  {
request.setAttribute( "opportunities", opportunities );
  }

  if ( (conflicts != null) && !conflicts.isEmpty() )
  {
request.setAttribute( "conflicts", conflicts );
  }

  if ( (selected != null) && !selected.isEmpty() )
  {
request.setAttribute( "selected", selected );
  }

  ActionMessage msg = new ActionMessage(
"msg.image.request.updated", image
  .getkeyTimeDisplay() );
  messages.add( ActionMessages.GLOBAL_MESSAGE, msg );
}

Double offsetPercent = new Double( 100 * image.getParameters()
.getAlongTrackOffset() );

if ( !messages.isEmpty() )
{
  saveMessages( request, messages );
 
}
   
request.setAttribute( "downlink", downlinkData );
request.setAttribute( "opportunity", image );
request.setAttribute( "offsetPercent", offsetPercent.toString() );

return mapping.findForward( Constants.SUCCESS );
  }


Regards

Gokul

On Wed, 05 Apr 2006 Gary Feidt wrote :
>Still not enough to analyze - I think your Struts-Config file looks
ok.
>We will probably need some snippets of your
>co.ui.action.RequestViewDetailAction before we can determine what is
>wrong.
>
>Gary
>
> >>> [EMAIL PROTECTED] 4/5/2006 10:17:12 AM >>>
>Thanks Krishna,
>
>Thats the chunk from the struts-config file.
>   path="/secure/image/save"
>   roles="User,Operator"
>   type="co.ui.action.RequestViewDetailAction"
>   name="iForm"
>   scope="request"
> validate="true"
>   parameter="save"
>   input="/WEB-INF/pages/request/RequestDetail.jsp">
> path="/WEB-INF/pages/request/RequestList.jsp"/>
> 
>
>i'm afraid it still doesnt work. when errors are present it displays
>the errors on the RequestList.jsp page instead of the
RequestDetail.jsp.
>
>
>As i said I tried to think, but in vain. any ideas folks?
>
>Cheers
>Gokul
>
>
>+
>On Wed, 05 Apr 2006 Krishna,Mattam(M.) wrote :
> >Hi,
> >Errors are displayed on the page , based on ur input attribute in
the
> > tag.
> >Check the below sample ,bold
> >Any doubts send a mail..
> >
> >

Re: Some questions

2006-04-05 Thread Frank W. Zammetti
On Wed, April 5, 2006 11:46 am, Dakota Jack said:
> Frank, this is uncalled for.

Talk about uncalled for... you call me deplorable and ignorant in another
post, and what *I* said is uncalled for?

> Jonathan is clearly right on this and you
> are
> clearly wrong.

I bow to your omnipotence.  You clearly have all the answers, and the rest
of us are just lucky to be living on the same planet as you.  I would not
dare to debate you, since I am so clearly, totally and utterly wrong about
everything.

And as with Jonathan, feel free to have the last word.  I've already been
drawn in more than I should have allowed.  Then again, when dealing with
someone so clearly superior to myself, how could I have hoped to do
better?

Frank

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



Re: Some questions

2006-04-05 Thread Michael Jouravlev
On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
> On 4/5/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
> > > > > The project is a simple CRM with forms and AJAX. No big stuff, 6
> > > > > database tables maximum. Also, we have a very short deadline (June),
> > > > > so we can't waste too much time learning the framework.
> >
> > Why would not you use one of existing CRM frameworks?
>
> It's supposed to develop a custom CRM solution from scratch. But is
> there any Free/Open Source CRM framework available?

Well, have you searched? Would be simpler than asking in Struts mailing list.

> > > And how easy is it to use AJAX along with JSF? I don't have any
> > > experience with JSF but I've seen a friend of mine drag & dropping
> > > like in .NET. I'm not an apologist of WebForms. But if JSF eases AJAX
> > > I'll certainly consider it as a valid choice.
> >
> > I don't think that conceptually it is easier, people just work on JSF
> > stuff more than on Struts stuff. Also, depends on your understanding
> > of Ajax. Dragging and dropping during design time has nothing to do
> > with dragging and dropping during runtime. And finally, .Net is not a
> > web framework.
>
> My understanding of AJAX is the following: XmlHttpRequest to update
> certain content. Obviously that if it's easy to integrate with
> Javascript libraries like prototype, the better. Kind of like Ruby on
> Rails that makes AJAX a matter of 2 lines (including adding effects!).

That is too broad. Do you mean stuff like "in-place update" or "AHAH"?
This is pretty simple in Struts. Or even in plain JSP. A lot of
libraries including my own.

By the way, why would not you use RoR, looks like you have experience with it?

Michael.

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



Re: Some questions

2006-04-05 Thread Dave Newton
Dakota Jack wrote:
> The fact that some Struts groupies like Busschots and Newton
> jump in with there stupidities is irrelevant.  

You're such a tool.

I don't even LIKE Struts that much, and if you bothered reading anything
other than your own posts you'd be able to figure that out.

Dave



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



Re: Some questions

2006-04-05 Thread Frank W. Zammetti
On Wed, April 5, 2006 11:18 am, Mário Lopes said:
>> Because of your short deadline, JSF might also be a good choice *if* you
>> use something like Sun's Studio.  That will hide most, if not all, of
>> the
>> complexity from you, and let you just worry about your application
>> rather
>> than the framework.
>
> And how easy is it to use AJAX along with JSF? I don't have any
> experience with JSF but I've seen a friend of mine drag & dropping
> like in .NET. I'm not an apologist of WebForms. But if JSF eases AJAX
> I'll certainly consider it as a valid choice.

I think there are others around here much more qualified than me to answer
that.  Having said that...

I know that there are JSF component libraries out there that use AJAX to
update themselves rather than having the entire page re-rendered.  My
assumption, and that's all it is never having done it myself, is that you
can drop those component on a page in a designer and not even have to
think about AJAX... all you know is that if a given component fires an
event that requires an update, it will call the server and update itself
and leave the rest of the page alone.

In any case, I don't think you are precluded from using any AJAX library
you want with JSF, although it may be a bit harder because JSF tries to
hide some of the low-level stuff from you.  There is also Shale, which has
a whole remoting feature based on AJAX, and that might be a viable
alternative.  In fact, if you were going to go the JSF route, that might
in fact be exactly the right way to go.

Again though, Craig or someone else can certainly shed more light on this
than I can.  They will certainly know more about what is possible and easy
with JSF than I do.

> Kind Regards,
>
> Mário Lopes

Frank

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



Re: Some questions

2006-04-05 Thread Asad Habib
Well, it depends on what you need to do. Struts 1.x is NOT inferior to any 
other framework out there. In fact, it does what it was designed to do 
perfectly. I would caution against listening to people on this list who 
tell you otherwise because they dislike Struts because it does not fit all 
their needs. Well, offcourse it doesn't because it was NOT designed to. 
Heck, I can choose 10 other frameworks out there and say there are useless 
because they don't meet my needs. That's why a typical multi-tiered web 
application uses several frameworks instead of simply one.


- Asad

On Wed, 5 Apr 2006, Dakota Jack wrote:


Frank, the other options do what you need, are simpler to code, are easier
to maintain, etc.  Recommending Struts 1.x is not a nice thing to do to
someone.  That is just true.  It is inferior and everyone knows it that
knows about frameworks.  Being able to test easy, having a quick turn
around, being able to maintain things cheaply, that is what being on what
you call the "bleeding edge" is.  What to you think it is?  Jet
programming.  The "bleeding edge", if you mean things like Spring, are just
technically superior and have tremendous business benefits.  There is NO
reason to use Struts 1.x over WebWorks or Spring.  You are not making sense.

On 4/5/06, Bart Busschots <[EMAIL PROTECTED]> wrote:


Jonathan Revusky wrote:

What do you mean "so what", Frank? If one is new to the java web
application space, why on earth should one start using a framework
like Struts Classic that (a) is not state of the art and (b) is not
going to be developed any further?

WHY?

Because it does what you need? Because it does MORE than you need?
Because there is a much larger community out there with the skills you
need? Because there are more online resources to help you when you get
stuck? Because the platform is stable, reliable and tested in the real
world? I could go on but I think you get the point. The bleeding edge is
NOT a good place to be on a production system! If it ain't broke, don't
fix it!

I get very annoyed when people insist that you have to be at the
bleeding edge of everything or you're being stupid. That's just not a
real world view of things, it's an idealized view from an ivory tower IMO.


Does Struts as it exists today serve a great many people very well?
Yes.  Does everyone need every single new feature available out
there?  No.  You know, I've had my complaints as well, but
ultimately, if the offering is doing the job for so many, how does
how far behind the state of the art it is really matter?


What you're saying is senseless IMO. In this discussion, the onus is
not on me to explain why somebody new to the java web app space should
not use Struts 1.x. The onus is on the other side of the debate to
explain why somebody should use it, given that it is (a) quite far
behind the state of the art and (b) is not going to be developed any
further.

See above points and it IS being developed further, 1.3 is on the way!


The onus is on you to explain why somebody should not do the
common-sensical thing of looking for something that is state of the
art and that will have an ongoing development effort behind it. Such a
thing could be Webwork a.k.a. Struts Action 2, or *maybe* this Shale
thing or it could be something else.


Looking for state of the art is not common-sensical! In the real world
there are many more factors to consider than just wither or not you use
the latest bleeding edge technology. Stability and a proven track record
count for a lot as do the availability of skills and help and
documentation and books etc. You are looking at just a single factor and
assuming it is the only factor when it simply isn't in the real world.

Bart.

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





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



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



Re: Some questions

2006-04-05 Thread Dakota Jack
Mario, if you want an MVC structure, for god's sake, don't go JSF.  Further,
it is not ready for use.  You are going to get yourself into a hairball
here.  The advice you have been getting, except to Jonathan, is deplorable
and ignorant.

On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
>
> On 4/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> > On Wed, April 5, 2006 5:24 am, Mário Lopes said:
> > > Look guys, it was not of my intention to raise a flamebait. So please
> > > keep focused on the subject (please :-) and try to be factual, as it
> > > will help a lot.
> >
> > Yeah, I took the bait.  My bad.  Should have known better.  See my
> > subsequent reply for the factual and hopefully helpful comments.
> >
> > > The project is a simple CRM with forms and AJAX. No big stuff, 6
> > > database tables maximum. Also, we have a very short deadline (June),
> > > so we can't waste too much time learning the framework.
> >
> > Struts 1.x would likely be a good choice then.  Most likely you will
> just
> > be using it in a basic way, which should be a relatively easy learning
> > curve.  Webwork is in some ways simpler than Struts, so that's worth a
> > look too.  It also has some built-in AJAX functionality already, and
> that
> > could be helpful.
> >
> > Because of your short deadline, JSF might also be a good choice *if* you
> > use something like Sun's Studio.  That will hide most, if not all, of
> the
> > complexity from you, and let you just worry about your application
> rather
> > than the framework.
>
> And how easy is it to use AJAX along with JSF? I don't have any
> experience with JSF but I've seen a friend of mine drag & dropping
> like in .NET. I'm not an apologist of WebForms. But if JSF eases AJAX
> I'll certainly consider it as a valid choice.
>
> Kind Regards,
>
> Mário Lopes
>
> >
> > > Kind Regards,
> > >
> > > Mário Lopes
> >
> > Frank
> >
> > -
> > 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]
>
>


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


Re: Re: RE: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
  
Here is the action class

public class RequestViewDetailAction extends ActionBase
{
  public ActionForward execute( ActionMapping mapping, ActionForm frm,
  HttpServletRequest request, HttpServletResponse response )
  {
ActionMessages messages = new ActionMessages();
RequestManager manager = this.getManager( request );
Vector downlinkData = new Vector();
ActionErrors errors = new ActionErrors();

int i = 0;

if ( request.getParameter( "requestID" ) != null )
{
  i = Integer.parseInt( request.getParameter( "requestID" ) );
}

String action = mapping.getParameter();

Image image = null;

if ( "view".equalsIgnoreCase( action ) )
{
  image = (Image) manager.getOpportunities().elementAt( i );
  downlinkData = image.getParameters().getDownlinkEvents();
}

else if ( "viewDb".equalsIgnoreCase( action ) )
{
  EventBO eventBO = new EventBO();
  ImageBO imageBO = new ImageBO();
  try
  {
image = imageBO.findByKey( i );
  }
  catch ( BusinessObjectException e1 )
  {
// TODO Auto-generated catch block
e1.printStackTrace();
  }
  Collection downlinks;
  try
  {
downlinks = eventBO.getDownlinks( image );
if ( downlinks != null )
{
  downlinkData = new Vector( downlinks );
}
  }
  catch ( BusinessObjectException e )
  {

e.printStackTrace();
  }

}
else if ( "edit".equalsIgnoreCase( action ) )
{
  image = (Image) manager.getOpportunities().elementAt( i );
  downlinkData = image.getParameters().getDownlinkEvents();
  ImageForm form = new ImageForm( image );
   
  form.setId( String.valueOf( i ) );
  request.setAttribute( "parameters", form );
  
}

else if ( "save".equalsIgnoreCase( action ) )
{

  ImageForm form = (ImageForm) frm; 

  int index = Integer.parseInt( form.getId() );
  image = (Image) manager.getOpportunities().get( index );
  updateImage( image, form );
  
  downlinkData = image.getParameters().getDownlinkEvents();
  
  Collection opportunities = manager.getOpportunities();
  Collection conflicts = manager.getConflicts();
  Collection selected = manager.getCart().getLineItems();

  if ( (opportunities != null) && !opportunities.isEmpty() )
  {
request.setAttribute( "opportunities", opportunities );
  }

  if ( (conflicts != null) && !conflicts.isEmpty() )
  {
request.setAttribute( "conflicts", conflicts );
  }

  if ( (selected != null) && !selected.isEmpty() )
  {
request.setAttribute( "selected", selected );
  }

  ActionMessage msg = new ActionMessage( "msg.image.request.updated", image
  .getkeyTimeDisplay() );
  messages.add( ActionMessages.GLOBAL_MESSAGE, msg );
}

Double offsetPercent = new Double( 100 * image.getParameters()
.getAlongTrackOffset() );

if ( !messages.isEmpty() )
{
  saveMessages( request, messages );
 
}
   
request.setAttribute( "downlink", downlinkData );
request.setAttribute( "opportunity", image );
request.setAttribute( "offsetPercent", offsetPercent.toString() );

return mapping.findForward( Constants.SUCCESS );
  }


Regards

Gokul

On Wed, 05 Apr 2006 Gary Feidt wrote :
>Still not enough to analyze - I think your Struts-Config file looks ok.
>We will probably need some snippets of your
>co.ui.action.RequestViewDetailAction before we can determine what is
>wrong.
>
>Gary
>
> >>> [EMAIL PROTECTED] 4/5/2006 10:17:12 AM >>>
>Thanks Krishna,
>
>Thats the chunk from the struts-config file.
>   path="/secure/image/save"
>   roles="User,Operator"
>   type="co.ui.action.RequestViewDetailAction"
>   name="iForm"
>   scope="request"
> validate="true"
>   parameter="save"
>   input="/WEB-INF/pages/request/RequestDetail.jsp">
> path="/WEB-INF/pages/request/RequestList.jsp"/>
> 
>
>i'm afraid it still doesnt work. when errors are present it displays
>the errors on the RequestList.jsp page instead of the RequestDetail.jsp.
>
>
>As i said I tried to think, but in vain. any ideas folks?
>
>Cheers
>Gokul
>
>
>+
>On Wed, 05 Apr 2006 Krishna,Mattam(M.) wrote :
> >Hi,
> >Errors are displayed on the page , based on ur input attribute in the
> > tag.
> >Check the below sample ,bold
> >Any doubts send a mail..
> >
> >Sample:
> >--
> > >type="com.ford.hr.cdf.careerdevelopment.presentation.actions.EmployeePor
> >tfolioPostAction"
> > name="EmployeePortfolioForm" scope="session"
> > parameter="method" validate="true"
> > input="page.employeePortfolio"
> > roles="Employee Portfolio">
> >
> >   path="page.employeePortfolio">
> >
> >
> > ///\\
> > (@ @)
> >+-oOO(_)Ooo-

Re: Some questions

2006-04-05 Thread Dakota Jack
Frank, this is uncalled for.  Jonathan is clearly right on this and you are
clearly wrong.  The fact that some Struts groupies like Busschots and Newton
jump in with there stupidities is irrelevant.  I simply cannot believe you
would recommend Struts 1.x.  I no longer know what could possibly be the
basis on which you choose a framework.

Newton, Busschots, etc., i.e., the rest of you claimjumpers who just jump in
to bitch, please follow your own advice and don't listen to this.  It is not
for the likes of you.


>
> Yeah, I took the bait.  My bad.  Should have known better.  See my
> subsequent reply for the factual and hopefully helpful comments.
>
> 

On Tomcat, you can use the manager, by the way, to restart particular
applications.  There are serious memory leaks with this but it is good for
development, saving the time to restart Tomcat itself.

I think Eclipse is great.  No problems with it here.


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


Re: Some questions

2006-04-05 Thread Dave Newton
Dakota Jack wrote:
> You might want to check the date on Java 5 Newton.
>   

I don't get it.

There's no "significant innovation" in Java 1.5; Java was never a
significant innovation to begin with.

Dave



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



Re: Some questions

2006-04-05 Thread Mário Lopes
On 4/5/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
> > > > The project is a simple CRM with forms and AJAX. No big stuff, 6
> > > > database tables maximum. Also, we have a very short deadline (June),
> > > > so we can't waste too much time learning the framework.
>
> Why would not you use one of existing CRM frameworks?

It's supposed to develop a custom CRM solution from scratch. But is
there any Free/Open Source CRM framework available?
>
> > And how easy is it to use AJAX along with JSF? I don't have any
> > experience with JSF but I've seen a friend of mine drag & dropping
> > like in .NET. I'm not an apologist of WebForms. But if JSF eases AJAX
> > I'll certainly consider it as a valid choice.
>
> I don't think that conceptually it is easier, people just work on JSF
> stuff more than on Struts stuff. Also, depends on your understanding
> of Ajax. Dragging and dropping during design time has nothing to do
> with dragging and dropping during runtime. And finally, .Net is not a
> web framework.

My understanding of AJAX is the following: XmlHttpRequest to update
certain content. Obviously that if it's easy to integrate with
Javascript libraries like prototype, the better. Kind of like Ruby on
Rails that makes AJAX a matter of 2 lines (including adding effects!).

Regards,

Mário

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

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



Re: LookupDispatchAction and Internationalization

2006-04-05 Thread Michael Jouravlev
On 4/5/06, Karin Schellner <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using Struts 1.2.7 with the LookupDispatchAction and everything
> works fine, as long as the labels of the buttons (=values of the keys of
> the resourcebundles) are not using special characters. If there are
> special characters I get the following error:
>
> missing resource 'Hinzuf�' in key method map
>
>
> so it seems, that there is a problem with the special character "ü"
> (\u00FC), because the real value should be 'Hinzufügen' - but cannot be
> interpreted and is therefore replaced by a question mark.
>
> In my messageresource property-file I have replaced all special
> characters with the according \u-coding, but it seems that at some
> other place (struts-config.xml ?!) I have to tell the Struts-framework
> to use Unicode ...
>
> Thanks in advance for any hints in this matter!

I suggest you upgrade to 1.2.9, throw out LookupDispatchAction and use
EventActionDispatcher:
http://wiki.apache.org/struts/EventActionDispatcher

Michael.


Re: Some questions

2006-04-05 Thread Dakota Jack
You might want to check the date on Java 5 Newton.

On 4/5/06, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Jonathan Revusky wrote:
> > What happens when you don't do any significant innovation for 4 years?
> > Particularly in a field like java software?
>
> You mean like the language itself? I mean, seriously... as a SmallTalk
> and Lisp developer I always wonder why people choose to use Java; in
> general I assume they just like to type and have nothing else to do.
>
> > IMO, it is irresponsible to encourage new people to start off building
> > new projects on top of Struts 1.x. It is obsolete technology and will
> > simply become more obsolete over time.
>
> So we should skip Java altogether, then, as near as I can tell.
>
> I'm pretty sure most anything becomes more obsolete over time, although
> it's nice to see other languages finally realizing that Lisp has quite a
> few great features, so Lisp appears to be becoming unobsolete.
>
> > Again, I think it is just completely irresponsible to encourage people
> > who have no existing investment in Struts 1.x to make such an
> > investment at this point in time, when the thing is not competitive in
> > its space AND all further development is being abandoned.
>
> I guess that depends on what you mean by "further development," since
> obviously people are, and have been, working on Struts 1.x... that said,
> I wouldn't use it for new development either.
>
> > Frank, it gets painful to debate this with you or other people.
>
> So stop. My monk would be amused by you. Only slightly more than he is
> amused by me, but amused nonetheless.
>
> Personally I'd give a look at the Spring MVC framework, although I've
> gotten quite a bit done with a Spring/Struts combination.
>
> Dave
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Some questions

2006-04-05 Thread Dakota Jack
Frank, the other options do what you need, are simpler to code, are easier
to maintain, etc.  Recommending Struts 1.x is not a nice thing to do to
someone.  That is just true.  It is inferior and everyone knows it that
knows about frameworks.  Being able to test easy, having a quick turn
around, being able to maintain things cheaply, that is what being on what
you call the "bleeding edge" is.  What to you think it is?  Jet
programming.  The "bleeding edge", if you mean things like Spring, are just
technically superior and have tremendous business benefits.  There is NO
reason to use Struts 1.x over WebWorks or Spring.  You are not making sense.

On 4/5/06, Bart Busschots <[EMAIL PROTECTED]> wrote:
>
> Jonathan Revusky wrote:
> > What do you mean "so what", Frank? If one is new to the java web
> > application space, why on earth should one start using a framework
> > like Struts Classic that (a) is not state of the art and (b) is not
> > going to be developed any further?
> >
> > WHY?
> Because it does what you need? Because it does MORE than you need?
> Because there is a much larger community out there with the skills you
> need? Because there are more online resources to help you when you get
> stuck? Because the platform is stable, reliable and tested in the real
> world? I could go on but I think you get the point. The bleeding edge is
> NOT a good place to be on a production system! If it ain't broke, don't
> fix it!
>
> I get very annoyed when people insist that you have to be at the
> bleeding edge of everything or you're being stupid. That's just not a
> real world view of things, it's an idealized view from an ivory tower IMO.
>
> >> Does Struts as it exists today serve a great many people very well?
> >> Yes.  Does everyone need every single new feature available out
> >> there?  No.  You know, I've had my complaints as well, but
> >> ultimately, if the offering is doing the job for so many, how does
> >> how far behind the state of the art it is really matter?
> >
> > What you're saying is senseless IMO. In this discussion, the onus is
> > not on me to explain why somebody new to the java web app space should
> > not use Struts 1.x. The onus is on the other side of the debate to
> > explain why somebody should use it, given that it is (a) quite far
> > behind the state of the art and (b) is not going to be developed any
> > further.
> See above points and it IS being developed further, 1.3 is on the way!
> >
> > The onus is on you to explain why somebody should not do the
> > common-sensical thing of looking for something that is state of the
> > art and that will have an ongoing development effort behind it. Such a
> > thing could be Webwork a.k.a. Struts Action 2, or *maybe* this Shale
> > thing or it could be something else.
> >
> Looking for state of the art is not common-sensical! In the real world
> there are many more factors to consider than just wither or not you use
> the latest bleeding edge technology. Stability and a proven track record
> count for a lot as do the availability of skills and help and
> documentation and books etc. You are looking at just a single factor and
> assuming it is the only factor when it simply isn't in the real world.
>
> Bart.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Some questions

2006-04-05 Thread Michael Jouravlev
On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
> > > The project is a simple CRM with forms and AJAX. No big stuff, 6
> > > database tables maximum. Also, we have a very short deadline (June),
> > > so we can't waste too much time learning the framework.

Why would not you use one of existing CRM frameworks?

> And how easy is it to use AJAX along with JSF? I don't have any
> experience with JSF but I've seen a friend of mine drag & dropping
> like in .NET. I'm not an apologist of WebForms. But if JSF eases AJAX
> I'll certainly consider it as a valid choice.

I don't think that conceptually it is easier, people just work on JSF
stuff more than on Struts stuff. Also, depends on your understanding
of Ajax. Dragging and dropping during design time has nothing to do
with dragging and dropping during runtime. And finally, .Net is not a
web framework.

Michael.

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



Re: Some questions

2006-04-05 Thread Dakota Jack
I would strongly suggest you use Spring.  I would not use Struts 1.x unless
I had to.  That product is antiquated.  Testing is a problem.  AOP is
impossible virtually, Etc., etc., etc.

To recommend Struts 1.x to anyone at this point indicates a serious lack of
judgment or a willingness to snare the unwary.

On 4/5/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
>
> Look guys, it was not of my intention to raise a flamebait. So please
> keep focused on the subject (please :-) and try to be factual, as it
> will help a lot.
>
> I've never seen a discussion about Struts versioning nor I'd like to
> see one. I just want to pick the best framework to rely on.
>
> The project is a simple CRM with forms and AJAX. No big stuff, 6
> database tables maximum. Also, we have a very short deadline (June),
> so we can't waste too much time learning the framework.
>
> Kind Regards,
>
> Mário Lopes
>
> On 4/5/06, Hey Nony Moose <[EMAIL PROTECTED]> wrote:
> > Jonathan Revusky wrote:
> >
> > > Frank W. Zammetti wrote:  stuff
> > >
> > >> Jonathan Revusky wrote:  stuff
> > >
> > > Frank, it gets painful to debate this with you or other people.
> > > Basically, you guys seem delusional to me. The fact that the Struts
> > > developers themselves do not care to carry on with the 1.x codebase
> > > basically says it all. This is a fact that has clear, inescapable
> > > implications.
> >
> > painful??? inescapable implications??? the most obvious implication that
> > we can't seem to find an escape from is that WE'RE NEVER GOING TO HEAR
> > THE END OF THIS BLOODY DEBATE ARE WE ! ?!  ?!!! ? ! ! !  ! ! ! ! !
> > we're going to be tortured with this for eternity ... this is HELL isn't
> > it?  we've all died and our eternal torment is that Mr Revusky is going
> > to acidly reply to *every* email that ever appears on this list that has
> > any reference to Struts versioning  n
> !!!
> > "Our Father, who art in Silicon Valley ... deliver us from Evil ...
> > chant chant etc etc"
> >
> >  Moose, deceased, and now realising he's in user-group Hell.
> >
> >
> > -
> > 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]
>
>


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


Re: RE: Validate() method not working as it should !!!!!

2006-04-05 Thread Gary Feidt
Still not enough to analyze - I think your Struts-Config file looks ok. 
We will probably need some snippets of your
co.ui.action.RequestViewDetailAction before we can determine what is
wrong.

Gary

>>> [EMAIL PROTECTED] 4/5/2006 10:17:12 AM >>>
Thanks Krishna,

Thats the chunk from the struts-config file.   

  
  

i'm afraid it still doesnt work. when errors are present it displays
the errors on the RequestList.jsp page instead of the RequestDetail.jsp.


As i said I tried to think, but in vain. any ideas folks?

Cheers
Gokul


+
On Wed, 05 Apr 2006 Krishna,Mattam(M.) wrote :
>Hi,
>Errors are displayed on the page , based on ur input attribute in the
> tag.
>Check the below sample ,bold
>Any doubts send a mail..
>
>Sample:
>--
>type="com.ford.hr.cdf.careerdevelopment.presentation.actions.EmployeePor
>tfolioPostAction"
>   name="EmployeePortfolioForm" scope="session"
>   parameter="method" validate="true"
>   input="page.employeePortfolio"
>   roles="Employee Portfolio">
>
>   
>
>
> ///\\
> (@ @)
>+-oOO(_)Ooo-+
>|  |
>|  Thanks and Regards,   |
>|  Krishna Mattam|
>|  Team Member - CDF Toolset  |
>|   Contact:044-22548575 |
>|  Email: [EMAIL PROTECTED]|
>+---+
> |__|__|
>  || ||
> ooO Ooo
>
>

__

Confidentiality Statement:
This email/fax, including attachments, may include confidential and/or 
proprietary information and may be used only by the person or entity to which 
it is addressed. If the reader of this email/fax is not the intended recipient 
or his or her agent, the reader is hereby notified that any dissemination, 
distribution or copying of this email/fax is prohibited. If you have received 
this email/fax in error, please notify the sender by replying to this message 
and deleting this email or destroying this facsimile immediately.

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



Re: LookupDispatchAction and Internationalization

2006-04-05 Thread Karin Schellner
Thanks for the info - I was already using a UTF-8 filter that does the 
following (as all my input-fields should accept special characters):


-
request.setCharacterEncoding("UTF8");
chain.doFilter(request, response);
-

but in the meantime, I found out, that my special problem is only 
occuring when run from within my IDE, but everything worked fine when 
deployed on Tomcat. so I think I can live with that ...


cheers,
karin.


starki78 wrote:


Ciao,

I few days ago I stepped over an encoding servlet-filter.
It checks before each action the encoding of the request
and can change it to the value you would like to have.

Perhaps this would be a good solution for your problem!

Nice greetings


-- Initial Header ---

From  : "Karin Schellner" [EMAIL PROTECTED]
To  : "Struts Users Mailing List" user@struts.apache.org
Cc  : 
Date  : Wed, 05 Apr 2006 10:46:12 +0200

Subject : LookupDispatchAction and Internationalization







 


Hi,

I am using Struts 1.2.7 with the LookupDispatchAction and everything 
works fine, as long as the labels of the buttons (=values of the keys of 
the resourcebundles) are not using special characters. If there are 
special characters I get the following error:


missing resource 'Hinzuf?' in key method map


so it seems, that there is a problem with the special character "ü" 
(\u00FC), because the real value should be 'Hinzufügen' - but cannot be 
interpreted and is therefore replaced by a question mark.


In my messageresource property-file I have replaced all special 
characters with the according \u-coding, but it seems that at some 
other place (struts-config.xml ?!) I have to tell the Struts-framework 
to use Unicode ...


Thanks in advance for any hints in this matter!

cheers,
karin.

--

"Any idiot can face a crisis.  It is the day-to-day living that wears you out." 
- Anton Chekov



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

 




--
DI Karin Schellner
Research Studios Austria - Digital Memory Engineering
ARC Seibersdorf research GmbH

Thurngasse 8/20, A-1090 Wien
M. +43.664.825-1105
T. +43.1.585-0537
F. +43.1.585-3741

http://dme.researchstudio.at
--

"Any idiot can face a crisis.  It is the day-to-day living that wears you out." 
- Anton Chekov



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



Re: Some questions

2006-04-05 Thread Mário Lopes
On 4/5/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> On Wed, April 5, 2006 5:24 am, Mário Lopes said:
> > Look guys, it was not of my intention to raise a flamebait. So please
> > keep focused on the subject (please :-) and try to be factual, as it
> > will help a lot.
>
> Yeah, I took the bait.  My bad.  Should have known better.  See my
> subsequent reply for the factual and hopefully helpful comments.
>
> > The project is a simple CRM with forms and AJAX. No big stuff, 6
> > database tables maximum. Also, we have a very short deadline (June),
> > so we can't waste too much time learning the framework.
>
> Struts 1.x would likely be a good choice then.  Most likely you will just
> be using it in a basic way, which should be a relatively easy learning
> curve.  Webwork is in some ways simpler than Struts, so that's worth a
> look too.  It also has some built-in AJAX functionality already, and that
> could be helpful.
>
> Because of your short deadline, JSF might also be a good choice *if* you
> use something like Sun's Studio.  That will hide most, if not all, of the
> complexity from you, and let you just worry about your application rather
> than the framework.

And how easy is it to use AJAX along with JSF? I don't have any
experience with JSF but I've seen a friend of mine drag & dropping
like in .NET. I'm not an apologist of WebForms. But if JSF eases AJAX
I'll certainly consider it as a valid choice.

Kind Regards,

Mário Lopes

>
> > Kind Regards,
> >
> > Mário Lopes
>
> Frank
>
> -
> 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: RE: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
Thanks Krishna,

Thats the chunk from the struts-config file.   

  
  

i'm afraid it still doesnt work. when errors are present it displays the errors 
on the RequestList.jsp page instead of the RequestDetail.jsp. 

As i said I tried to think, but in vain. any ideas folks?

Cheers
Gokul


+
On Wed, 05 Apr 2006 Krishna,Mattam(M.) wrote :
>Hi,
>Errors are displayed on the page , based on ur input attribute in the
> tag.
>Check the below sample ,bold
>Any doubts send a mail..
>
>Sample:
>--
>type="com.ford.hr.cdf.careerdevelopment.presentation.actions.EmployeePor
>tfolioPostAction"
>   name="EmployeePortfolioForm" scope="session"
>   parameter="method" validate="true"
>   input="page.employeePortfolio"
>   roles="Employee Portfolio">
>
>   
>
>
> ///\\
> (@ @)
>+-oOO(_)Ooo-+
>|  |
>|  Thanks and Regards,   |
>|  Krishna Mattam|
>|  Team Member - CDF Toolset  |
>|   Contact:044-22548575 |
>|  Email: [EMAIL PROTECTED]|
>+---+
> |__|__|
>  || ||
> ooO Ooo
>
>




Re: [OT] Best way to serve PDF with iText

2006-04-05 Thread Dave Newton
Garner Shawn wrote:
> Is the session shared between servlets or is it specific to a servlet.
> I would think it would be specific to a servlet but maybe it is one
> session per user per web-application?
>   

There's a session per user per web-app; I'm not even sure what a session
per servlet would mean.

Dave



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



Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread Gary Feidt
And I think Dave's point is without seeing your action in your
struts-config.xml and you Action code we don't know if your code is
correct or not.  Can show us some of the code?

Gary

 [EMAIL PROTECTED] 4/5/2006 9:47:27 AM >>>
>Hi Dave,
>
>thanks for the reply. The problem is that errors were detected and
they were being displayed in the "success" page 
>instead of on the same ("input" page"). The Log messages also indicate
that an error has occured. Very strange.
>
>Gokul
>
>
>
>On Wed, 05 Apr 2006 Dave Newton wrote :
>>gokul balasubramanian wrote:
>> > Instead of remaining on the input page control passes to the
success page. thats what baffles me. Any help/ suggestions will really
help.
>> >
>>
>>Sounds like there weren't any errors then, or your configuration is
>>broken, or your validation code is broken, or...
>>
>>Without any code or config chunks it'll be pretty hard to help.
>>
>>Dave
>>
__

Confidentiality Statement:
This email/fax, including attachments, may include confidential and/or 
proprietary information and may be used only by the person or entity to which 
it is addressed. If the reader of this email/fax is not the intended recipient 
or his or her agent, the reader is hereby notified that any dissemination, 
distribution or copying of this email/fax is prohibited. If you have received 
this email/fax in error, please notify the sender by replying to this message 
and deleting this email or destroying this facsimile immediately.

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



Re: Some questions

2006-04-05 Thread Frank W. Zammetti
> Frank, it gets painful to debate this with you or other people.
> Basically, you guys seem delusional to me.

I agree, it is painful.  And I agree, speaking for myself, I *am*
delusional... to have thought for a second that replying in a reasoned way
would have lead to anything constructive.

Well, *I* am certainly not going to be the cause of another 5,000-post
thread, so, in my best Bill O'Reilly voice...

"I'll let you have the last word... GO!"

Frank


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



Re: Some questions

2006-04-05 Thread Frank W. Zammetti
On Wed, April 5, 2006 5:24 am, Mário Lopes said:
> Look guys, it was not of my intention to raise a flamebait. So please
> keep focused on the subject (please :-) and try to be factual, as it
> will help a lot.

Yeah, I took the bait.  My bad.  Should have known better.  See my
subsequent reply for the factual and hopefully helpful comments.

> The project is a simple CRM with forms and AJAX. No big stuff, 6
> database tables maximum. Also, we have a very short deadline (June),
> so we can't waste too much time learning the framework.

Struts 1.x would likely be a good choice then.  Most likely you will just
be using it in a basic way, which should be a relatively easy learning
curve.  Webwork is in some ways simpler than Struts, so that's worth a
look too.  It also has some built-in AJAX functionality already, and that
could be helpful.

Because of your short deadline, JSF might also be a good choice *if* you
use something like Sun's Studio.  That will hide most, if not all, of the
complexity from you, and let you just worry about your application rather
than the framework.

> Kind Regards,
>
> Mário Lopes

Frank

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



Re: Download question

2006-04-05 Thread Frank W. Zammetti
On Wed, April 5, 2006 9:07 am, Dave Newton said:
> red phoenix wrote:
>> I want to realize download function in struts,and I will put some file
>> url
>> in JSP file,when click one of the file url,this file will be
>> download.Dostruts or some taglib support download function?
>>
>
> You mean... like a link?

Hehe :)

My guess is red wants to ensure the browser reacts with a download prompt
rather than trying to open known content.  In that case, setting the
Content-Disposition header is what will do the trick.

Note that if you are using a relatively recent version of Struts (from
1.2.6 on if memory serves), there is a DownloadAction specifically for
this sort of thing.  Here is a Wiki page detailing it:

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

> Dave

Frank

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



Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
Hi Dave,

thanks for the reply. The problem is that errors were detected and they were 
being displayed in the "success" page instead of on the same ("input" page"). 
The Log messages also indicate that an error has occured. Very strange.

Gokul



On Wed, 05 Apr 2006 Dave Newton wrote :
>gokul balasubramanian wrote:
> > Instead of remaining on the input page control passes to the success page. 
> > thats what baffles me. Any help/ suggestions will really help.
> >
>
>Sounds like there weren't any errors then, or your configuration is
>broken, or your validation code is broken, or...
>
>Without any code or config chunks it'll be pretty hard to help.
>
>Dave
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




Re: Re: [OT] Best way to serve PDF with iText

2006-04-05 Thread Garner Shawn
Is the session shared between servlets or is it specific to a servlet.
I would think it would be specific to a servlet but maybe it is one
session per user per web-application?

Shawn

-- Forwarded message --
From: Dave Newton <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Date: Tue, 04 Apr 2006 17:48:57 -0400
Subject: Re: [OT] Best way to serve PDF with iText
Garner Shawn wrote:
> Only think I can think of is that as a servlet the it wouldn't have
> access to the struts user session data

Why not? Is there more than one session?

Dave

-- Forwarded message --
From: "Garner Shawn" <[EMAIL PROTECTED]>
To: user@struts.apache.org
Date: Tue, 4 Apr 2006 16:03:27 -0500
Subject: [OT] Best way to serve PDF with iText
I was wondering if anyone could give me any pros or cons of serving a
dynamically generated PDF file via a servlet or a struts action.

Only think I can think of is that as a servlet the it wouldn't have
access to the struts user session data and would have to post
necessary information for it to serve the pdf.

Does anyone have any pros or cons for an approach?

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



Re: Validate() method not working as it should !!!!!

2006-04-05 Thread Dave Newton
gokul balasubramanian wrote:
> Instead of remaining on the input page control passes to the success page. 
> thats what baffles me. Any help/ suggestions will really help.
>   

Sounds like there weren't any errors then, or your configuration is
broken, or your validation code is broken, or...

Without any code or config chunks it'll be pretty hard to help.

Dave



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



Re: Re: Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
  
Exactly Ted,

Instead of remaining on the input page control passes to the success page. 
thats what baffles me. Any help/ suggestions will really help.

Thanks
Gokul

On Wed, 05 Apr 2006 Ted Husted wrote :
>If validation fails, control returns to "input", not to "success".
>
>HTH, Ted.
>
>On 5 Apr 2006 14:18:10 -, gokul  balasubramanian
><[EMAIL PROTECTED]> wrote:
> >
> > I have a very weird problem here. I have a form-bean where i validate the 
> > user input and add them to the errors. When i click the submit button, the 
> > errors are displayed not on the same page but on the page as indicated in 
> > the  page. very strange. i have done the 
> > following:-
> >
> > added 
> > included the input attribute for that action in struts-config
> > set the validate attribute to true in struts-config.
> >
> > i cant think of anything else. I've been picking my brains for a while now. 
> > Am i missing something really obvious folks? Please let me know !
> >
> >
> > Regards
> > Gokul
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




Re: Validate() method not working as it should !!!!!

2006-04-05 Thread Ted Husted
If validation fails, control returns to "input", not to "success".

HTH, Ted.

On 5 Apr 2006 14:18:10 -, gokul  balasubramanian
<[EMAIL PROTECTED]> wrote:
>
> I have a very weird problem here. I have a form-bean where i validate the 
> user input and add them to the errors. When i click the submit button, the 
> errors are displayed not on the same page but on the page as indicated in the 
>  page. very strange. i have done the following:-
>
> added 
> included the input attribute for that action in struts-config
> set the validate attribute to true in struts-config.
>
> i cant think of anything else. I've been picking my brains for a while now. 
> Am i missing something really obvious folks? Please let me know !
>
>
> Regards
> Gokul

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



Validate() method not working as it should !!!!!

2006-04-05 Thread gokul balasubramanian
  
I have a very weird problem here. I have a form-bean where i validate the user 
input and add them to the errors. When i click the submit button, the errors 
are displayed not on the same page but on the page as indicated in the  page. very strange. i have done the following:-

added 
included the input attribute for that action in struts-config
set the validate attribute to true in struts-config.

i cant think of anything else. I've been picking my brains for a while now. Am 
i missing something really obvious folks? Please let me know !


Regards
Gokul



Re:LookupDispatchAction and Internationalization

2006-04-05 Thread starki78
Ciao,

I few days ago I stepped over an encoding servlet-filter.
It checks before each action the encoding of the request
and can change it to the value you would like to have.

Perhaps this would be a good solution for your problem!

Nice greetings


-- Initial Header ---

>From  : "Karin Schellner" [EMAIL PROTECTED]
To  : "Struts Users Mailing List" user@struts.apache.org
Cc  :
Date  : Wed, 05 Apr 2006 10:46:12 +0200
Subject : LookupDispatchAction and Internationalization







> Hi,
>
> I am using Struts 1.2.7 with the LookupDispatchAction and everything
> works fine, as long as the labels of the buttons (=values of the keys of
> the resourcebundles) are not using special characters. If there are
> special characters I get the following error:
>
> missing resource 'Hinzuf?' in key method map
>
>
> so it seems, that there is a problem with the special character "ü"
> (\u00FC), because the real value should be 'Hinzufügen' - but cannot be
> interpreted and is therefore replaced by a question mark.
>
> In my messageresource property-file I have replaced all special
> characters with the according \u-coding, but it seems that at some 
> other place (struts-config.xml ?!) I have to tell the Struts-framework 
> to use Unicode ...
>
> Thanks in advance for any hints in this matter!
>
> cheers,
> karin.
>
> --
>
> "Any idiot can face a crisis.  It is the day-to-day living that wears you 
> out." - Anton Chekov
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: Some questions

2006-04-05 Thread George.Dinwiddie
Mário Lopes asked:
> 3) Is MyEclipse worth it?

If you're using Eclipse for J2EE development, MyEclipse is worth it even if you 
only use the JSP validation.  It's not perfect, but it's well worth the price.

As for the rest, I see you've already gotten some good answers and some 
irrelevant noise.  I can't understand why anyone would hang around a user list 
just to harrass the users of a framework they don't like.

 - George

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



Re: Some questions

2006-04-05 Thread Dave Newton
Jonathan Revusky wrote:
> What happens when you don't do any significant innovation for 4 years?
> Particularly in a field like java software?

You mean like the language itself? I mean, seriously... as a SmallTalk
and Lisp developer I always wonder why people choose to use Java; in
general I assume they just like to type and have nothing else to do.

> IMO, it is irresponsible to encourage new people to start off building
> new projects on top of Struts 1.x. It is obsolete technology and will
> simply become more obsolete over time.

So we should skip Java altogether, then, as near as I can tell.

I'm pretty sure most anything becomes more obsolete over time, although
it's nice to see other languages finally realizing that Lisp has quite a
few great features, so Lisp appears to be becoming unobsolete.

> Again, I think it is just completely irresponsible to encourage people
> who have no existing investment in Struts 1.x to make such an
> investment at this point in time, when the thing is not competitive in
> its space AND all further development is being abandoned.

I guess that depends on what you mean by "further development," since
obviously people are, and have been, working on Struts 1.x... that said,
I wouldn't use it for new development either.

> Frank, it gets painful to debate this with you or other people. 

So stop. My monk would be amused by you. Only slightly more than he is
amused by me, but amused nonetheless.

Personally I'd give a look at the Spring MVC framework, although I've
gotten quite a bit done with a Spring/Struts combination.

Dave



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



RE: Is there a struts Taglib document?

2006-04-05 Thread Sutar, Suhas
http://struts.apache.org/struts-doc-1.2.8/userGuide/dev_html.html

-Original Message-
From: red phoenix [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 04, 2006 10:55 PM
To: user@struts.apache.org
Subject: Is there a struts Taglib document?


Is there a struts taglib document about ,,,the
chm file form is better. If you have it,please give it to me.

Thanks!

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



Re: Download question

2006-04-05 Thread Dave Newton
red phoenix wrote:
> I want to realize download function in struts,and I will put some file url
> in JSP file,when click one of the file url,this file will be
> download.Dostruts or some taglib support download function?
>   

You mean... like a link?

Dave



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



Re: Some questions

2006-04-05 Thread Bart Busschots

Jonathan Revusky wrote:
What do you mean "so what", Frank? If one is new to the java web 
application space, why on earth should one start using a framework 
like Struts Classic that (a) is not state of the art and (b) is not 
going to be developed any further?


WHY?
Because it does what you need? Because it does MORE than you need? 
Because there is a much larger community out there with the skills you 
need? Because there are more online resources to help you when you get 
stuck? Because the platform is stable, reliable and tested in the real 
world? I could go on but I think you get the point. The bleeding edge is 
NOT a good place to be on a production system! If it ain't broke, don't 
fix it!


I get very annoyed when people insist that you have to be at the 
bleeding edge of everything or you're being stupid. That's just not a 
real world view of things, it's an idealized view from an ivory tower IMO.


Does Struts as it exists today serve a great many people very well?  
Yes.  Does everyone need every single new feature available out 
there?  No.  You know, I've had my complaints as well, but 
ultimately, if the offering is doing the job for so many, how does 
how far behind the state of the art it is really matter?


What you're saying is senseless IMO. In this discussion, the onus is 
not on me to explain why somebody new to the java web app space should 
not use Struts 1.x. The onus is on the other side of the debate to 
explain why somebody should use it, given that it is (a) quite far 
behind the state of the art and (b) is not going to be developed any 
further.

See above points and it IS being developed further, 1.3 is on the way!


The onus is on you to explain why somebody should not do the 
common-sensical thing of looking for something that is state of the 
art and that will have an ongoing development effort behind it. Such a 
thing could be Webwork a.k.a. Struts Action 2, or *maybe* this Shale 
thing or it could be something else.


Looking for state of the art is not common-sensical! In the real world 
there are many more factors to consider than just wither or not you use 
the latest bleeding edge technology. Stability and a proven track record 
count for a lot as do the availability of skills and help and 
documentation and books etc. You are looking at just a single factor and 
assuming it is the only factor when it simply isn't in the real world.


Bart.

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



Re: get info error

2006-04-05 Thread Adam Hardy

Angel Navarro on 04/04/06 18:46, wrote:

Hi,
in my struts web application have (web.xml):


java.lang.Throwable
/templates/error/error.jsp


and i want to get the description error in error.jsp.

in logging file have:

java.lang.Throwable: Could not complete parsing, unmatched tags: html
at weblogic.servlet.jsp.JspLexer.parse()V(JspLexer.java:980)
.

In error.jsp have:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" isErrorPage="true" %>







Error Grave.
<%exception.printStackTrace(); %>



but not found

can anybody help me?


Angel,
that exception is happening in the compilation of your jsp. The 
error-page mapping is only for servlets, not for jsps.



Adam

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



Re: how to use message resource key for href

2006-04-05 Thread Adam Hardy

What does your c:set look like?


Vinit Sharma on 04/04/06 08:58, wrote:

But I faced a problem with the fmt tag, the variable link contains
the key instead of the text value.

Any clue??

On 4/4/06, Vinit Sharma <[EMAIL PROTECTED]> wrote:


Thanks,

I used a  in combination with . But fmt tag
looks neat.

:)


On 4/4/06, Nicolas De Loof < [EMAIL PROTECTED]> wrote:



Perhaps somethig like this may work :



Some text



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



Re: Struts Forward and URL prefix problem

2006-04-05 Thread Adam Hardy

Jeff Thorne on 03/04/06 21:25, wrote:

I am trying out struts action mappings and wildcards so that I can provide
my dynamic content static URLs that are not based on query strings.

When my action class forwards to success or failure all the URLs in the
receiving .jsp page are prefix with the initial URL.

For example if I submit the following URL to my action class

http://www.example.com/getCompanyDetails/companyName/postalCode/CEO all the
urls in the receiving .jsp file look like

/getCompanyDetails/companyName/postalCode/CEO/contactUs.jsp - a contact us
link in my footer 


Here is my action definition:


  
  


Any advice you have on how to solve this would be appreciated.


Jeff,
it's appending the context onto the URLs. This is a function of the 
taglib that you are using to output the URL. Presumably html:link? If 
so, which attribute are you using for it?


I suspect you are using 'page'. If you use href then it should just 
output the URL 'as is'. Or you could use 'action', and make the link an 
action mapping forward, e.g. action="contactus.do".



Adam

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



Re: Some questions

2006-04-05 Thread Mário Lopes
Look guys, it was not of my intention to raise a flamebait. So please
keep focused on the subject (please :-) and try to be factual, as it
will help a lot.

I've never seen a discussion about Struts versioning nor I'd like to
see one. I just want to pick the best framework to rely on.

The project is a simple CRM with forms and AJAX. No big stuff, 6
database tables maximum. Also, we have a very short deadline (June),
so we can't waste too much time learning the framework.

Kind Regards,

Mário Lopes

On 4/5/06, Hey Nony Moose <[EMAIL PROTECTED]> wrote:
> Jonathan Revusky wrote:
>
> > Frank W. Zammetti wrote:  stuff
> >
> >> Jonathan Revusky wrote:  stuff
> >
> > Frank, it gets painful to debate this with you or other people.
> > Basically, you guys seem delusional to me. The fact that the Struts
> > developers themselves do not care to carry on with the 1.x codebase
> > basically says it all. This is a fact that has clear, inescapable
> > implications.
>
> painful??? inescapable implications??? the most obvious implication that
> we can't seem to find an escape from is that WE'RE NEVER GOING TO HEAR
> THE END OF THIS BLOODY DEBATE ARE WE ! ?!  ?!!! ? ! ! !  ! ! ! ! !
> we're going to be tortured with this for eternity ... this is HELL isn't
> it?  we've all died and our eternal torment is that Mr Revusky is going
> to acidly reply to *every* email that ever appears on this list that has
> any reference to Struts versioning  n !!!
> "Our Father, who art in Silicon Valley ... deliver us from Evil ...
> chant chant etc etc"
>
>  Moose, deceased, and now realising he's in user-group Hell.
>
>
> -
> 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]



Download question

2006-04-05 Thread red phoenix
I want to realize download function in struts,and I will put some file url
in JSP file,when click one of the file url,this file will be
download.Dostruts or some taglib support download function?

Thanks in advance


LookupDispatchAction and Internationalization

2006-04-05 Thread Karin Schellner

Hi,

I am using Struts 1.2.7 with the LookupDispatchAction and everything 
works fine, as long as the labels of the buttons (=values of the keys of 
the resourcebundles) are not using special characters. If there are 
special characters I get the following error:


missing resource 'Hinzuf�' in key method map


so it seems, that there is a problem with the special character "ü" 
(\u00FC), because the real value should be 'Hinzufügen' - but cannot be 
interpreted and is therefore replaced by a question mark.


In my messageresource property-file I have replaced all special 
characters with the according \u-coding, but it seems that at some 
other place (struts-config.xml ?!) I have to tell the Struts-framework 
to use Unicode ...


Thanks in advance for any hints in this matter!

cheers,
karin.

--

"Any idiot can face a crisis.  It is the day-to-day living that wears you out." 
- Anton Chekov



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



Re: Some questions

2006-04-05 Thread Hey Nony Moose
Jonathan Revusky wrote:

> Frank W. Zammetti wrote:  stuff
>
>> Jonathan Revusky wrote:  stuff
>
> Frank, it gets painful to debate this with you or other people.
> Basically, you guys seem delusional to me. The fact that the Struts
> developers themselves do not care to carry on with the 1.x codebase
> basically says it all. This is a fact that has clear, inescapable
> implications.

painful??? inescapable implications??? the most obvious implication that
we can't seem to find an escape from is that WE'RE NEVER GOING TO HEAR
THE END OF THIS BLOODY DEBATE ARE WE ! ?!  ?!!! ? ! ! !  ! ! ! ! !  
we're going to be tortured with this for eternity ... this is HELL isn't
it?  we've all died and our eternal torment is that Mr Revusky is going
to acidly reply to *every* email that ever appears on this list that has
any reference to Struts versioning  n !!!
"Our Father, who art in Silicon Valley ... deliver us from Evil ...
chant chant etc etc"

 Moose, deceased, and now realising he's in user-group Hell.


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



Re: Some questions

2006-04-05 Thread Jonathan Revusky

Frank W. Zammetti wrote:

Jonathan Revusky wrote:


For starters, development on Struts 1.x, a.k.a. Struts Classic, has been
more or less stagnant since about 2002. 



Umm, since we all like dealing with "facts that are not in dispute"...

Struts 1.0, released June 2001
Struts 1.0.1, released January 2002
Struts 1.02, released February 2002
Struts 1.1, released June 2003
Struts 1.21 (Beta), released July 2004
Struts 1.2.2, released August 2004
Struts 1.2.4, released September 2004
Struts 1.2.6 (Beta), released December, 2004
Struts 1.2.7, released (as near as I can tell) May 2005
Struts 1.2.8, released (again, as near as I can tell) November 2005
Struts 1.2.9, released March 2006

So, since 2002, when you claim Struts has been "more or less stagnant" 
since, there have been 10 releases, so on average, a new release every 
4.5 months, give or take.


I'm not sure what dictionary your looking in, but for a project as 
important to so many people as Struts, that seems like a more than 
reasonable release record.  I'll grant you that not all those releases 
came with a bunch of new features, but that seems a bit unfair to me.


[sigh]

Frank,

I am actually not representing that I am an expert on Struts. When I 
have said that Struts is inferior to Webwork, I am simply going by what 
the Struts developers themselves say. Nonetheless, I get flamed, people 
telling me to stop bashing Struts.


When I say that Struts development has not done much since about 2002, I 
am going by what one of the principal developers has said in his own blog.


http://www.jroller.com/page/mrdon?entry=struts_is_alive_and_well

The above blog entry contains the following sentence:

"While it is true, the 1.x branch of Struts, termed "Struts Classic" 
hasn't changed much since, oh, 2002, it is still being actively 
developed with new (albeit minor) features all the time."


This is a "Struts is alive and well" blog entry and, nonetheless,  it is 
tacitly admitted that basically nothing of any importance has happened 
since 2002.


What happens when you don't do any significant innovation for 4 years? 
Particularly in a field like java software? AFAICT, what this means is 
that you end up with something that is basically obsolete technology. 
And this is tacitly accepted by bringing in Webwork and labelling that 
as "Struts Action 2".




And let's not forget, 1.3 is coming, and it looks like pretty soon.  1.3 
brings one of the biggest changes so far in terms of what opportunities 
it should open up.  Whether that winds up being true or not is 
irrelevant, the fact is a lot of work went into it, and it *does* 
certainly represent a pretty big change.


IMO, it is irresponsible to encourage new people to start off building 
new projects on top of Struts 1.x. It is obsolete technology and will 
simply become more obsolete over time.




 > In the meantime, other web


application frameworks have been actively developed and are much more
advanced in what they offer. At this point, Struts 1.x is significantly
behind the state of the art in its application space. 



That may be true, but let me ask this question: so what?  


What do you mean "so what", Frank? If one is new to the java web 
application space, why on earth should one start using a framework like 
Struts Classic that (a) is not state of the art and (b) is not going to 
be developed any further?


WHY?


Does Struts as 
it exists today serve a great many people very well?  Yes.  Does 
everyone need every single new feature available out there?  No.  You 
know, I've had my complaints as well, but ultimately, if the offering is 
doing the job for so many, how does how far behind the state of the art 
it is really matter?


What you're saying is senseless IMO. In this discussion, the onus is not 
on me to explain why somebody new to the java web app space should not 
use Struts 1.x. The onus is on the other side of the debate to explain 
why somebody should use it, given that it is (a) quite far behind the 
state of the art and (b) is not going to be developed any further.


The onus is on you to explain why somebody should not do the 
common-sensical thing of looking for something that is state of the art 
and that will have an ongoing development effort behind it. Such a thing 
could be Webwork a.k.a. Struts Action 2, or *maybe* this Shale thing or 
it could be something else.




 > There is no


prospect of this changing. In fact, it will only become increasingly
technically obsolete over time.



Well, yes, as virtually every technology does over time.  


Well, when something is obsolete and nobody is going to work on it any 
more, then...


Even if Struts 
had done everything right, added every technical advantage, kept pace 
with everyone else to the best of everyones' efforts, would there still 
have been other ideas out there that people wanted to try?  Would there 
still have been alternatives developed that, at least in some ways, may 
have been better?  Of course