Re: newbie question: How can I make a Struts Project with multiple modules?

2008-08-04 Thread Antonio Petrelli
Version of Struts? 2008/8/4 ryan webb [EMAIL PROTECTED]: How can I make a Struts Project with multiple modules? -- warmest regards, Ryan Webb - Philippines email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: Action Execute Being called 2 times

2008-08-04 Thread aum strut
Hi, I tried all things and its again not working still action is getting called 2 times for each call to this Register Action i am attaching the Register.jsp,Struts.xml as well as the action class please have a look at it and point me where i am doing the mistake. Thanks in Advance -aum On

Re: newbie question: How can I make a Struts Project with multiple modules?

2008-08-04 Thread ryan webb
Struts Version = 1.2.9 So creating a multiple module depends on struts version? On 8/4/08, Antonio Petrelli [EMAIL PROTECTED] wrote: Version of Struts? 2008/8/4 ryan webb [EMAIL PROTECTED]: How can I make a Struts Project with multiple modules? -- warmest regards, Ryan Webb -

Re: newbie question: How can I make a Struts Project with multiple modules?

2008-08-04 Thread Antonio Petrelli
2008/8/4 ryan webb [EMAIL PROTECTED]: Struts Version = 1.2.9 So creating a multiple module depends on struts version? Surely it depends on being a Struts 1 project or a Struts 2 one. In fact I think that the concept of module is not used inside Struts 2, but I wanted to be sure that you were

Re: Issue with Url mapping with struts-action-extension=

2008-08-04 Thread Jeromy Evans
Haulyn R. Jason wrote: Hi,all I set struts-action-extension= for no extension as action or do by default for struts2, and mapping all url to struts2 dispatcher as /*. But, the problem is I can not access any jsp, html,css and js files. The page display:there are no action mapping for XXX.jsp

Inconsistent HTML escaping in textfield

2008-08-04 Thread nodje
I'm using struts2.0.11.1 with Velocity. In my #stextfield tags I'm trying to use eacute; in the label and the tooltip. It gets transformed in amp;eacute; in the resulting web page. If I use the original é it doesn't work either and display an inconsistent character, and this with UTF-8 encoding

Re: Issue with Url mapping with struts-action-extension=

2008-08-04 Thread Haulyn R. Jason
Jeromy Evans 写道: Haulyn R. Jason wrote: Hi,all I set struts-action-extension= for no extension as action or do by default for struts2, and mapping all url to struts2 dispatcher as /*. But, the problem is I can not access any jsp, html,css and js files. The page display:there are no

separating getter and setter from action class

2008-08-04 Thread Dhiraj Thakur
Hi there, is it possible to separate getter and setter from ActionClass ? so that my action class will only contain logic related to action and BO class with all the getter and setter. Regards, Dhiraj

Re: separating getter and setter from action class

2008-08-04 Thread Paweł Wielgus
Hi, try to add getMyBussinessObject() in ActionClass and on Your jsp s:property value=myBussinessObject.someBussinesProperty/. Still, You need myBussinessObject field in ActionClass. Best greetings, Paweł Wielgus. On 04/08/2008, Dhiraj Thakur [EMAIL PROTECTED] wrote: Hi there, is it possible

Re: Action Execute Being called 2 times

2008-08-04 Thread Gabriel Belingueres
can't see the jsp file. In the action class you are not using modeldriven as you said in the first email. 2008/8/4 aum strut [EMAIL PROTECTED]: Hi, I tried all things and its again not working still action is getting called 2 times for each call to this Register Action i am attaching the

Re: how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-04 Thread Gabriel Belingueres
http://www.eclipse.org/newsgroups/ Honestly, if you know what it takes to develop a web application with java, then you will find all the configuration options you need just with the eclipse help files and some common sense. May the force be with you. 2008/8/4 Narasimha Raju Naidu [EMAIL

2 Validation questions

2008-08-04 Thread Gundersen, Richard
Hi Basic question sorry (looked all over but can't find the answer) 1) When validation fails for my 'username' textfield, the error message is displayed ABOVE the text box. Is it possible to have more fine-grained control over how to position the error message. Ideally I would like it below

Re: [struts] paramsPrepareParams vs. staticParams

2008-08-04 Thread Gabriel Belingueres
I agree that execution semantics should be preserved (in an ideal world at least). But, if the intention is to enforce security of some parameter values AND preserve action semantics, then the action should not change its behavior/semantic if we call it from the context of a different interceptor

Struts2 with JSON.

2008-08-04 Thread sharath karnati
Hi All,      Using JSON, I'm getting below response from action   {list:{com.beans.ComplaintDO:{user__complaint__number:08-C0153,user__complaint__key:08-C0153-1,form__type:2000B,first__name:Sharath,last__name:Karnati}}}      In this response, 'com.beans.ComplaintDO' is a javabean.

[S2] Method dependant validation

2008-08-04 Thread Andreas Mähler
Hello everyone, maybe this question has been asked before, but I couldn't find any postings on the topic: How can I validate my input in dependency of the action method (without XML)? I know that method dependant processing is possible with the PrepareInterceptor (i.e. prepareDoThis,

Re: [S2] Method dependant validation

2008-08-04 Thread Andreas Mähler
Andreas Mähler schrieb: I know that method dependant processing is possible with the PrepareInterceptor (i.e. prepareDoThis, prepareDoThat methods that are automatically invoked). I checked the Struts2.1.2 docs[1], but it seems that the ValidationInterceptor does not offer this feature. I

Struts 1.3.8 problem html:form

2008-08-04 Thread Alexis Abdel
Hi! I am using Struts 1.3.8 and when i want to try some of the examples or when i want to develop something i always have the same error in the line with html:form. This is a very simple example: Inside Web-inf,i have a lib folder with the following libs:

Re: Struts 1.3.8 problem html:form

2008-08-04 Thread Antonio Petrelli
2008/8/4 Alexis Abdel [EMAIL PROTECTED]: !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.3//EN http://struts.apache.org/dtds/struts-config_1_0.dtd; Shouldn't it be 1_3? Antonio

[S2] Ajax DIV Question

2008-08-04 Thread Hoying, Ken
I have a tabbed panel. I would like to refresh the contents of this tab and am able to do so by publishing to the proper topic. However, I really need to take it a step further and be able to dynamically specify the formid and href attributes of the Ajax DIV in my JavaScript, before refreshing

[S2] Refactoring Action classes

2008-08-04 Thread Milan Milanovic
Dear Al and Dave, I tried to fix that error with session variable all weekend and I didn't managed to fix it. When action is defined as redirect action to another namespace, and when that action is called, another action called method doesn't see my session variables. I just changed this

Re: s2: Retrieve current url value

2008-08-04 Thread [EMAIL PROTECTED]
Thanks Wes. Maybe my question is not clear enough. I'd like to find a way to get value in address bar which is different from the path to the jsp rendering current page. Your solutions give us the latter. e.g., if loginForm.jsp is responsible for rendering page for login_input.action,

Re: s2: Retrieve current url value

2008-08-04 Thread Chris Pratt
Try ${request.requestURL} or s:property value=%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURL}/ Instead. (*Chris*) On Mon, Aug 4, 2008 at 8:29 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Wes. Maybe my question is not clear enough. I'd like to

Re: [S2] Refactoring Action classes

2008-08-04 Thread Al Sutton
You don't need to have all your actions for a namespace in a single class, you can use multiple classes. I usually group methods acting on a common object into a single class which usually leaves me with the 5 public methods in a class which map to actions (typically CRUD plus a View method),

Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread doahh
I am trying to get spring to manage my Struts2 actions but am getting the following error: Action class [springManagedProsocActionUpdateEmail] not found I have used the http://struts.apache.org/2.x/docs/spring-plugin.html http://struts.apache.org/2.x/docs/spring-plugin.html as a guide but

RE: [S2] Refactoring Action classes

2008-08-04 Thread Martin Gainty
I've seen it both waysputting all classes into a global kitchen sink package (even when the Actions have completely different functionality and address completely disparate domain objects) on the other hand i've also seenbanishing (@Embeddable and or inner classes or classes which belong

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread Brad A Cupit
I can't say that I see the problem, but I do see a few small issues. bean id=springManagedProsocActionUpdateEmail class=uk.co.prodia.prosoc.struts2.action.ActionUpdateEmail property name=sessionFactory ref=sessionFactoryProsocForum/ /bean be sure to add scope=prototype. S2 actions

Re: s2: Retrieve current url value

2008-08-04 Thread [EMAIL PROTECTED]
Thanks Chris. I got the same value using requestURL as using requestURI. On Mon, Aug 4, 2008 at 11:45 AM, Chris Pratt [EMAIL PROTECTED] wrote: Try ${request.requestURL} or s:property value=%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURL}/ Instead.

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread doahh
Hi Brad and thank you for the reply. I have tried setting the scope=prototype but it didn't change the error I am seeing. I also tried your suggestion of removing the !* part of the method name from the action along with the method={1} but again it didn't change anything. I have noticed a

Ajax JSP Tag Library 1.3

2008-08-04 Thread stanlick
Are any of you using these tags in an S2 project?%-| Scott -- View this message in context: http://www.nabble.com/Ajax-JSP-Tag-Library-1.3-tp18815549p18815549.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: s2: Retrieve current url value

2008-08-04 Thread Paweł Wielgus
Hi, have You been redirecting to jsp? You can also print uri with s:url/ Best greetings, Paweł Wielgus. 2008/8/4 [EMAIL PROTECTED] [EMAIL PROTECTED]: Thanks Chris. I got the same value using requestURL as using requestURI. On Mon, Aug 4, 2008 at 11:45 AM, Chris Pratt [EMAIL PROTECTED] wrote:

disabled attribute not rendered for Anchor tag

2008-08-04 Thread Avinash
can anyone please let me know if there is any issue with disabled attribute of Anchor tag? Cause i am not getting the expected behaviour out of the tag. i used struts:a href=some_url disabled=trueTest/struts:a and expected 'Test' coming as disabled. but its not happening. Thanks, Avinash

Re: disabled attribute not rendered for Anchor tag

2008-08-04 Thread Avinash
Forgot to mention, i am using struts-2.0.11.2. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread Brad A Cupit
I have tried setting the scope=prototype but it didn't change the error I am seeing. right, that makes sense. This setting will stop you from having big problems later on though. I am unsure what could be causing this but maybe someone could clarify that the:

s2: non-English chars with s:a.. tag

2008-08-04 Thread [EMAIL PROTECTED]
Hi, s:a tag doesn't render its title attribute value properly if it contains non-English chars. Example: s:a href=.. title=Français #231;.../s:a Html a tag does it properly. How to get around it in using s:a tag? Thanks. -

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread doahh
Thanks again for replying, I am really stuck on this one at the moment. I am currently using struts-2.0.11.1 and spring-2.5.4. Another thing I have noticed on the struts plugin guide page at: http://struts.apache.org/2.x/docs/spring-plugin.html

Struts2 tags radio button default select

2008-08-04 Thread dynamicd
Hey I am trying to create a radio button and I want one of the values selected by default, s:radio label=Chart Type name=chartType list={'Bar Chart','3D Bar Chart'} value=Bar Chart/ I thought I could use the value to select by default. However Its not working. Any help is appreciated. --

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread Brad A Cupit
Would you expect that to mean that my package should be extending the spring-default rather than struts-default? it's good thinking to look at struts-plugin.xml in struts2-spring-plugin.jar, but you don't need to extend it unless you intend to use the two interceptors they define there (which

FilterDispatcher and filter mapping

2008-08-04 Thread stanlick
I am experimenting with a non-Struts resource mapped in my web.xml but since the Struts filter is catching all requests, I am getting There is no Action mapped for namespace / and action name callout. - [unknown location] How do requests for non-action mappings sneak through the

RE: s2: non-English chars with s:a.. tag

2008-08-04 Thread Martin Gainty
same concept as with legacy Java ApplicationResources.properties so in struts.xml you should see the globalMessages_locale.properties identified viaconstant name=struts.custom.i18n.resources value=globalMessages /where english globalMessages.properties would containtoken.transfer.time=The

FileUpload log

2008-08-04 Thread matthieu martin
Hi all, I have a problem with file uploading (i am using the interceptor) and I just can't find it. I have nothing in Tomcat's logs. I have an interceptor placed after FileUpload in the stack which gets executed. But my action isn't. If you have an idea regarding my problem don't hesitate to

RE: Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found

2008-08-04 Thread doahh
Thanks for your offer of help Brad and sorry these files are so big. I do have a habit of editing my posts occassionally through Nabble so maybe that is causing me to post twice? Currently a lack of skill prevents me from setting a break point on the SpringObjectFactory.buildBean() but that is

Basic Action config issue with s:form in jsp

2008-08-04 Thread Williams, Marlon
Please help a struggling newbie, and first time mailing list user. The following Netbeans 6.0 project is using Glassfish. Directory listing: TS_6 TS_6/src/ TS_6/src/conf/ TS_6/src/conf/MANIFEST.MF TS_6/src/java/ TS_6/src/java/HelloWorld.java TS_6/src/java/struts.xml

[S2] what tag to use to get object's field?

2008-08-04 Thread xianwinwin
hi there, say I have an object client and it has firstName and lastName. I wish to write this on the jsp page: Dear Mr. XX welcome to the XX should be substitute with firstName and lastName. what tag should be used in order to achieve this? thank you! -- View this message in

Re: FilterDispatcher and filter mapping

2008-08-04 Thread Wes Wannemacher
Generally, I just map everything through the dispatcher. I find s2 actions/results more friendly than straight up JSP and/or Servlets... Beyond that, if you're incorporating something that doesn't already have a result type, would it be a good candidate for a plugin? -Wes On Mon, 2008-08-04 at

Re: [S2] what tag to use to get object's field?

2008-08-04 Thread Gabriel Belingueres
s:property 2008/8/4 xianwinwin [EMAIL PROTECTED]: hi there, say I have an object client and it has firstName and lastName. I wish to write this on the jsp page: Dear Mr. XX welcome to the XX should be substitute with firstName and lastName. what tag should be used in order

Re: Issue with Url mapping with struts-action-extension=

2008-08-04 Thread Haulyn R. Jason
Martin Gainty 写道: check to make sure your jsp is in webapps/webapplication check the 'work' folder to see if the jsp compiled e.g. index.jsp would look like _index__jsp.class * which means a)index.jsp was compiled to _index__jsp.java b)_index__jsp.java was compiled to _index__jsp.class