Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 14 Apr 2008 09:19:18 -0000 Issue 7977

user-digest-help

2008-04-14


Author LoginPost Reply

user Digest 14 Apr 2008 09:19:18 -0000 Issue 7977

Topics (messages 185362 through 185391):

Problems with default-action-ref (I was sent this message before with wrong subject...)
 185362 by: Décio Heinzelmann Luckow
 185364 by: Lukasz Lenart
 185365 by: Dave Newton
 185366 by: Lukasz Lenart
 185367 by: Dave Newton
 185368 by: Lukasz Lenart
 185369 by: Dave Newton
 185372 by: Décio Heinzelmann Luckow
 185381 by: Lukasz Lenart

Re: How to use annotationWorkflow Interceptor
 185363 by: 袁嘉铭

Re: How can I tell Struts 2 to throw/log exceptions for invalid OGNL Expressions
 185370 by: mraible
 185375 by: Jeromy Evans

Export Control Classification Number (ECCN) and Struts v1.3.x
 185371 by: Alan Treece
 185378 by: Al Sutton
 185379 by: Jeromy Evans

Struts 2 + AjaxTags + DisplayTag
 185373 by: Márcio Gurgel

Re: i18n Tags in FreeMarker Decorator for SiteMesh
 185374 by: Jeromy Evans
 185376 by: Zoran Avtarovski
 185377 by: Jeromy Evans

Ajax tree tags and forest generation - selection problem
 185380 by: Jukka Välimaa

Re: Advice on dynamic form elements
 185382 by: Rene Gielen

Re: How do I make Tomcat send 403 Forbidden page to the client in jsp and in struts?
 185383 by: ryan webb

action not getting called from struts-config
 185384 by: newBea
 185385 by: Antonio Petrelli
 185386 by: Lukasz Lenart
 185387 by: newBea
 185388 by: newBea
 185390 by: Antonio Petrelli
 185391 by: Lukasz Lenart

Re: Struts 2 <s:a> URL tag problems
 185389 by: ancatdubher

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------

Attachment: user_185362.ezm (zipped)
Sorry, a sent this message with an wrong subject, now is the correct

Hi all,

I was testing the tag <default-action-ref> to configure the default action
mapping for a package, without success, then I search Struts Jira for
something about this and find the WW2525.

The WW2525 is closed with the argument that this tag is used to configure
the default class to be used when an action mapping don't specify the class.

I disagree with this because we have this tags:
<default-class-ref>
and
<default-action-ref>

I think that <default-class-ref> is to set de default class of mapping
without class, and not <default-action-ref>

The file xwork-default.xml use <default-class-ref> to set ActionSupport
<default-class-ref class="com.opensymphony.xwork2.ActionSupport" />

And really, in my tests the default-action-ref don´t runs correctly.

This ocurred with someone too?

Thanks

Décio Heinzelmann Luckow

Attachment: user_185364.ezm (zipped)
> This ocurred with someone too?

No, for me works like charm, maybe because I'm using 2.1.1-SNAPSHOT ;-)

    <default-action-ref name="index"/>

    <!-- base action, which will redirect to user defined default page -->
    <action name="index"
class="pl.org.lenart.ems.struts2.actions.IndexAction">
       <result type="redirectAction">${redirectName}</result>
    </action>


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

Attachment: user_185365.ezm (zipped)
--- Décio Heinzelmann Luckow <decioluckow@(protected):
> I was testing the tag <default-action-ref> to configure the default action
> mapping for a package, without success, then I search Struts Jira for
> something about this and find the WW2525.
>
> The WW2525 is closed with the argument that this tag is used to configure
> the default class to be used when an action mapping don't specify the
> class.
>
> I disagree with this because we have this tags:
> <default-class-ref>
> and
> <default-action-ref>
>
> I think that <default-class-ref> is to set de default class of mapping
> without class, and not <default-action-ref>
>
> The file xwork-default.xml use <default-class-ref> to set ActionSupport
> <default-class-ref class="com.opensymphony.xwork2.ActionSupport" />
>
> And really, in my tests the default-action-ref don´t runs correctly.
>
> This ocurred with someone too?

Looking at http://struts.apache.org/2.0.11.1/docs/action-configuration.html
I'd say you're correct and we closed that bug prematurely; I think both
Pillip and I were thinking of default-class-ref.

I am re-opening the issue; thanks.

Dave

Attachment: user_185366.ezm (zipped)
Hi once again and to clarify

> <default-class-ref>

is used when you did not specified the class for you action like below:

<action name="index">
<result type="index">/index.jsp</result>
</action>

> and
> <default-action-ref>

is used when Struts could not find the action name for given http request, e.g

http://localhost/struts2/


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

Attachment: user_185367.ezm (zipped)
That's why I re-opened the bug for S2.0.

--- Lukasz Lenart <lukasz.lenart@(protected):

> Hi once again and to clarify
>
> > <default-class-ref>
>
> is used when you did not specified the class for you action like below:
>
> <action name="index">
>  <result type="index">/index.jsp</result>
> </action>
>
> > and
> > <default-action-ref>
>
> is used when Struts could not find the action name for given http request,
> e.g
>
> http://localhost/struts2/
>
>
> Regards
> --
> Lukasz
>
> http://www.linkedin.com/in/lukaszlenart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_185368.ezm (zipped)
> That's why I re-opened the bug for S2.0.

As I understood, only for S2.0, because for 2.1 the tag
<default-action-ref> is working fine (I already test it)?


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

Attachment: user_185369.ezm (zipped)
--- Lukasz Lenart <lukasz.lenart@(protected):
> > That's why I re-opened the bug for S2.0.
> As I understood, only for S2.0, because for 2.1 the tag
> <default-action-ref> is working fine (I already test it)?

That's why I re-opened the bug for S2.0.

Dave


Attachment: user_185372.ezm (zipped)
Ok, thanks for all.

the s2.1 version is only avaiable from subversion?

the major version that i see in the site is Struts 2.0.11.1


2008/4/13, Dave Newton <newton.dave@(protected)>:
>
> --- Lukasz Lenart <lukasz.lenart@(protected):
> > > That's why I re-opened the bug for S2.0.
> > As I understood, only for S2.0, because for 2.1 the tag
> > <default-action-ref> is working fine (I already test it)?
>
> That's why I re-opened the bug for S2.0.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_185381.ezm (zipped)
> the s2.1 version is only avaiable from subversion?

If you using Maven, you can Apache Snapshot repo
http://people.apache.org/repo/m2-snapshot-repository/

or download struts2-blank.war from here
http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/struts2-blank/2.1.1-SNAPSHOT/struts2-blank-2.1.1-SNAPSHOT.war


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

Attachment: user_185363.ezm (zipped)
i have try it , no problem happen

this is my config

<struts>

<package name="struts2" extends="struts-default">

<default-action-ref name="test" />
<default-class-ref class="struts.action.TestActionSupport" />
<action name="test" class="struts.action.TestAction">
 <result>test.jsp</result>
</action>

</package>
</struts>

public class TestAction {
private static final long serialVersionUID = -2818133285465497272L;

public String execute() throws Exception {
return Action.SUCCESS;
}

}

public class TestActionSupport extends ActionSupport {
}
gordian

On Sun, Apr 13, 2008 at 9:29 PM, Décio Heinzelmann Luckow <
decioluckow@(protected):

> Hi all,
>
> I was testing the tag <default-action-ref> to configure the default action
> mapping for a package, without success, then I search Struts Jira for
> something about this and find the WW2525.
>
> The WW2525 is closed with the argument that this tag is used to configure
> the default class to be used when an action mapping don't specify the
> class.
>
> I disagree with this because we have this tags:
> <default-class-ref>
> and
> <default-action-ref>
>
> I think that <default-class-ref> is to set de default class of mapping
> without class, and not <default-action-ref>
>
> The file xwork-default.xml use <default-class-ref> to set ActionSupport
> <default-class-ref class="com.opensymphony.xwork2.ActionSupport" />
>
> And really, in my tests the default-action-ref don´t runs correctly.
>
> This ocurred with someone too?
>
> Thanks
>
> Décio Heinzelmann Luckow
>

Attachment: user_185370.ezm (zipped)



Jeromy Evans - Blue Sky Minds wrote:
>
> Jeromy Evans wrote:
>> mraible wrote:
>>
>>>
>>> I tried FreeMarker this morning and discovered that the problem
>>> exists there
>>> too. Grrr. I've experienced Struts 2 being eliminated as a web framework
>>> candidate on a couple projects because of this. Kindof annoying.
>>>  
>>
>> So what do you really want? My guess here is that you invoked a
>> struts tag and the tag swallowed the error and provided a default to
>> the freemarker template.
>>
>>
>
> On further thought I think this comes down to an interesting issue with
> coupling between the view and the model.
> In struts2 the model is a ValueStack that consists of both a stack and
> map (context). OGNL is used to address properties or methods in that
> model and it's a trivial for OGNL to log when it fails to match a
> property or method.
>
> In the view, Struts2 provides tags for jsp, ftl or velocity that
> evaluate OGNL expressions to access the model. More often that not the
> tags fail silently if the expression was invalid or failed to evaluate
> anything. Herein lies the problem.
>
> If I were using FTL directly to access the value stack, as a developer I
> could decide how to handle missing properties, blank properties or
> default values with FTL's excellent error handling. However, when I use
> FTL to invoke a Struts2 tag I lose that benefit as the tag
> implementations *transfer* properties into the FTL context. I think its
> a flaw that Struts2 tags evaluate OGNL expressions themselves prior to
> rendering the template..
>
> A tag overhaul is well overdue (but major effort). I've expressed other
> concerns about the Struts2 tags (XWork Component and UIBean) on several
> occasions already.
>

I realize it might be a major effort, but this seems to be a pretty big deal
to me. Not for users that've already chosen Struts 2 as a web framework, but
for folks evaluating Java Web Frameworks. The fact that Struts 2 is the
*only* one that doesn't blow up on invalid properties makes it look pretty
bad for evaluations. It's kindof like the old blank page you'd sometimes get
with Tiles - you really have no idea what you did wrong and it can take
quite some time to track it down if you don't know what's causing it.

Matt
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_185375.ezm (zipped)
mraible wrote:
> I realize it might be a major effort, but this seems to be a pretty big deal
> to me. Not for users that've already chosen Struts 2 as a web framework, but
> for folks evaluating Java Web Frameworks. The fact that Struts 2 is the
> *only* one that doesn't blow up on invalid properties makes it look pretty
> bad for evaluations. It's kindof like the old blank page you'd sometimes get
> with Tiles - you really have no idea what you did wrong and it can take
> quite some time to track it down if you don't know what's causing it.
>
> Matt
>  

Strongly agreed. This issue does have a productivity cost. I'll try to
do more about it myself.
I've committed an improvement for message resources
(https://issues.apache.org/struts/browse/WW-2592).



Attachment: user_185371.ezm (zipped)
Folks...

Been searching the Apache web site and the archives, but haven't found
anything yet... I'm using Struts v1.3.x in an application and I'm
being asked to verify the export classification of Struts. Is there
documentation somewhere where I can determine this classification?
Or... if this has not been done to whom should I request this process
to begin?


Thanks, ajTreece

Attachment: user_185378.ezm (zipped)
Export classification from which country?

As you're from Sun I assume you might be talking about the US. In which case
Struts doesn't contain any cryptographic algorithms so (as far as I'm aware)
it doesn't need a classification.

Al.

----- Original Message -----
From: "Alan Treece" <Aj.Treece@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Monday, April 14, 2008 1:24 AM
Subject: Export Control Classification Number (ECCN) and Struts v1.3.x


> Folks...
>
> Been searching the Apache web site and the archives, but haven't found
> anything yet... I'm using Struts v1.3.x in an application and I'm being
> asked to verify the export classification of Struts. Is there
> documentation somewhere where I can determine this classification? Or...
> if this has not been done to whom should I request this process to begin?
>
>
> Thanks, ajTreece
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


Attachment: user_185379.ezm (zipped)
Alan Treece wrote:
> Folks...
>
> Been searching the Apache web site and the archives, but haven't found
> anything yet... I'm using Struts v1.3.x in an application and I'm
> being asked to verify the export classification of Struts. Is there
> documentation somewhere where I can determine this classification?
> Or... if this has not been done to whom should I request this process
> to begin?
>
http://www.apache.org/licenses/exports/

Extract from this reference:

Each ASF product is classified
<http://www.bis.doc.gov/licensing/exportingbasics.htm> with an Export
Control Classification Number (ECCN) if it is believed to correspond to
an entry in the Commerce Control List (CCL) and subject to the EAR. All
ASF software is published in a publicly available source code form.
Since publicly available software is only subject to the EAR
<http://www.access.gpo.gov/bis/ear/txt/734.txt> when it is classified as
ECCN 5D002 or 5D992
<http://www.access.gpo.gov/bis/ear/txt/ccl5-pt2.txt>, all ASF software
product versions that do not fit those two classifications are noted as
ECCN "n/a" (not applicable) or not included in the matrix.

Attachment: user_185373.ezm (zipped)
Hi all!

Since this morning I'm having troubles to configure ajaxTags in my project.
I followed the steps from ajaxTags web site, I also saw the ajaxTags show
case wich contains a example of display:table.
But doen't work...

Is there some kind os special configuration for struts 2?
My displayTable is inside a <sx:tabbedPanel><sx:div>

I also tried to use: useSelectedTabCookie="useSelectedTabCookie" to select
the correct tab when my displayTable pagination submits the page.
In this case, the content of the first tab doesn't appear.

Regards.

Márcio Gurgel

Attachment: user_185374.ezm (zipped)
mraible wrote:
>
> Yes, that sound about right. My action is a POJO that only extends
> ModelDriven.
>  
WW-2592 Struts2.1.1 now provides useful developer feedback for missing
text resources:
- when a TextProvider was not found,
- when a message was not found,
- when the default value was used as an expression,
- when the default value was used as a literal string

eg.

WARNING: [04:28.191] Could not find property [some]
WARNING: [04:28.211] The first TextProvider in the ValueStack
(org.apache.struts2.TestAction) could not locate the message resource
with key 'some.invalid.key.so.we.should.get.the.default.message'
WARNING: [04:28.211] The default value expression 'Sample Of Default
Message' was evaluated and did not match a property. The literal value
'Sample Of Default Message' will be used.



Attachment: user_185376.ezm (zipped)
That¹s great news Jeromy. You don¹t know how much this will help us.

As an aside, is there a timeline for the appearance of an official 2.1 beta
build?

Z.
>
> mraible wrote:
>> >
>> > Yes, that sound about right. My action is a POJO that only extends
>> > ModelDriven.
>> >  
> WW-2592 Struts2.1.1 now provides useful developer feedback for missing
> text resources:
>  - when a TextProvider was not found,
>  - when a message was not found,
>  - when the default value was used as an expression,
>  - when the default value was used as a literal string
>
> eg.
>
> WARNING: [04:28.191] Could not find property [some]
> WARNING: [04:28.211] The first TextProvider in the ValueStack
> (org.apache.struts2.TestAction) could not locate the message resource
> with key 'some.invalid.key.so.we.should.get.the.default.message'
> WARNING: [04:28.211] The default value expression 'Sample Of Default
> Message' was evaluated and did not match a property. The literal value
> 'Sample Of Default Message' will be used.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>



Attachment: user_185377.ezm (zipped)
Zoran Avtarovski wrote:
> That¹s great news Jeromy. You don¹t know how much this will help us.
>
> As an aside, is there a timeline for the appearance of an official 2.1 beta
> build?
>
> Z.
>  
Hi Zoran. I'm not really sure. We tried to push forward and hit a
small obstacle.. If nothing progresses I'll push again around the end
of the month.

Attachment: user_185380.ezm (zipped)
Hi,

Right now, I'm trying to construct a "forest", or a tree menu with multiple
root nodes. I'm using struts ajax tags to do it, like so:

<s:iterator value="%{#request.generatedForest}">
  <sx:tree label="%{[0].title}"
    selectedNotifyTopics="/NodeSelected" toggle="fade"
toggleDuration="0" >
    <s:iterator value="%{[0].children}">
    <sx:treenode label="%{[0].title}" id="%{[0].id}" />
    </s:iterator>
  </sx:tree>
</s:iterator>

I have one problem (aside from ajax tags not allowing data other that title
and id to be passed by selectedNotifyTopics). When I select a node from a
tree, the other nodes in the tree are deselected, at least visually. But the
nodes I may have selected earlier in other trees of the forest remain
selected. Can any of you think of a way to get around this problem, and get
all the nodes in the forest to act in unison, so that only one of them is
visually selected at a time?

Thanks,
Jukka

Attachment: user_185382.ezm (zipped)

You could also think of using a component, which would help to avoid writing
a tag with tld generation and all that:
http://struts.apache.org/2.0.11.1/docs/component.html


Sparecreative wrote:
>
> Thanks Laurie,
>
> I actually thought of a tag file but thought it might be the lazy way out.
> We actually use them extensively for dropping in html components.
>
> I feel a lot better now.
>
> Thanks
>
> Z.
>>
>> Zoran Avtarovski wrote:
>>> > Hi,
>>> >
>>> > We porting/upgrading a relatively simple survey tool over to struts2
>>> from
>>> an
>>> > old php version.
>>> >
>>> > The tool manages questions which can one of a fixed type (radio, drop,
>>> > checkbox, text) and then persists responses to DB.
>>> > Where I need some advice is how to implement the struts 2 display
>>> mechanism..
>>> >
>>> > I figure there are two options:
>>> >
>>> > 1. Write a custom tag which takes the question as an attribute.
>>> Something
>>> > like <s:question value=²%{question}² />
>>
>> Well, it wouldn't be s:question unless you're planning on modifying the
>> Struts taglib ;=) but a custom tag would be one way to do this. Using a
>> .tag file might be the easiest, depending how complex your rendering
>> logic is.
>>
>>> > 2. I could have a small jsp fragment that I would include to render
>>> the
>>> > appropriate html.
>>> >
>>> > I figured I¹d do something like :
>>> >
>>> > <s:iterator value=²questions² id=²question²>
>>> > <s:push value=²%{question}²>
>>> >   <s:include value=²pagefragment.jspf²/>
>>> > </s:push>
>>> > </s:iterator>
>>
>> The tag-based solution is obviously more concise to use, although the
>> s:push is unnecessary here (s:iterator pushes the value automatically).
>>
>>> > And pagefragment.jspf would have some logic and use the appropriate
>>> form
>>> > tags to render the HTML.
>>
>> If you can express what you want to do in a JSP, it should be trivial to
>> do it in a .tag file, which would give you the more concise usage.
>> Otherwise, a custom tag may be worth it.
>>
>> L.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_185383.ezm (zipped)
Thanks Randy Burgess,

Your suggestion works perfectly! Sorry I didn't reply early I was out of
town..
Have a nice day!

-Ryan Webb


On Fri, Apr 11, 2008 at 9:53 PM, Randy Burgess <RBurgess@(protected):

> I wonder if specifying HttpServletResponse.SC_FORBIDDEN would make a
> difference because the HttpServletResponse has those constants and that is
> in the method signature for the Action class.
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
> > From: ryan webb <webb.ryan1@(protected)>
> > Reply-To: Struts Users Mailing List <user@(protected)>
> > Date: Fri, 11 Apr 2008 11:20:35 +0800
> > To: Struts Users Mailing List <user@(protected)>
> > Cc: <gay.mendoza@(protected)>
> > Subject: How do I make Tomcat send 403 Forbidden page to the client in
> jsp and
> > in struts?
> >
> > I am having difficulty with authentication of user levels.
> > I have to kinds of users "user" and "administrators".
> >
> > What we did in mySQL db is make a user table and in it, a "level" column
> is
> > placed containing whether a user is "administrator" or not.
> > there's no problem with this actually (I just wrote the situation and
> > setup).
> >
> > *Now, I want the server to send a 403 response to non-administrative
> > personnel accessing some secured places in our site.*
> >
> > How can I do this?(Or is this possible? I have no idea actually..)
> >
> > I have a userBean.java that contains all user informations from
> database.
> > I made this in my execute method in Action class. (Something Like this)
> >
> > execute(response, request, form....){
> >
> >   UserActionForm uaf = (UserActionForm) form;
> >
> >   UserBean userbean = new UserBean();
> >
> > *  if (userbean.getlevel().equals("user")){
> >      response.sendError(SC_FORBIDDEN);
> >   }
> >
> > *   return mapping.findForward....("Sucess");
> > }
> >
> > this code does not compile..sendError() expects int value. I tried
> > sendError(403) but doesn't work.
> >
> > Any Help is Gladly Appreciated! =)
> >
> > God Bless!
>
>
>
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information. If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to read,
> copy, or distribute it, and we ask that you please delete it (including all
> copies) and notify the sender by return email. Delivery of this Message to
> any person other than the intended recipient(s) shall not be deemed a waiver
> of confidentiality and/or a privilege.
>
>
> This email and any attachments ("Message") may contain legally privileged
> and/or confidential information. If you are not the addressee, or if this
> Message has been addressed to you in error, you are not authorized to read,
> copy, or distribute it, and we ask that you please delete it (including all
> copies) and notify the sender by return email. Delivery of this Message to
> any person other than the intended recipient(s) shall not be deemed a waiver
> of confidentiality and/or a privilege.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_185384.ezm (zipped)

Hi All...

I am using struts1.2.9

I have an action mapping in struts-config as:

   <action path="/sendmail" name="reminderForm"
type="com.lbi.equalito.webapp.action.ReminderAction">
     <forward name="pass" path="/WEB-INF/pages/remsuccess.jsp"/>
   </action>

the form bean definition is as:

   <form-bean name="reminderForm"
type="com.lbi.equalito.webapp.form.ReminderForm"></form-bean>

When i invoke /sendmail action, nothing is shown..I mean it displays only
blank page without any exceptions and error...wat cud be the possible
error??

Thanks in advance...
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_185385.ezm (zipped)
2008/4/14, newBea <vaibhav.dalvi@(protected)>:
>
>           <action path="/sendmail" name="reminderForm"
> type="com.lbi.equalito.webapp.action.ReminderAction">
>                 <forward name="pass"
> path="/WEB-INF/pages/remsuccess.jsp"/>
>           </action>
> ...
>           <form-bean name="reminderForm"
> type="com.lbi.equalito.webapp.form.ReminderForm"></form-bean>
>
> When i invoke /sendmail action, nothing is shown..I mean it displays only
> blank page without any exceptions and error...wat cud be the possible
> error??



Please post the action code, especially the part that returns the forward.

Antonio

Attachment: user_185386.ezm (zipped)
> When i invoke /sendmail action, nothing is shown..I mean it displays only

Maybe /sendmail.do will better? How did you map struts servlet in web.xml?


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

Attachment: user_185387.ezm (zipped)

Hey thnks for reply

I am using mapping as

<servlet-mapping>
  <servlet-name>action</servlet-name>
  <url-pattern>*.html</url-pattern>
</servlet-mapping>

in web.xml




Lukasz Lenart wrote:
>
>> When i invoke /sendmail action, nothing is shown..I mean it displays
>> only
>
> Maybe /sendmail.do will better? How did you map struts servlet in web.xml?
>
>
> Regards
> --
> Lukasz
>
> http://www.linkedin.com/in/lukaszlenart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_185388.ezm (zipped)

struts config is not getting ReminderAction...but the configuration is
correct i guess??

Antonio Petrelli-3 wrote:
>
> 2008/4/14, newBea <vaibhav.dalvi@(protected)>:
>>
>>           <action path="/sendmail" name="reminderForm"
>> type="com.lbi.equalito.webapp.action.ReminderAction">
>>                 <forward name="pass"
>> path="/WEB-INF/pages/remsuccess.jsp"/>
>>           </action>
>> ...
>>           <form-bean name="reminderForm"
>> type="com.lbi.equalito.webapp.form.ReminderForm"></form-bean>
>>
>> When i invoke /sendmail action, nothing is shown..I mean it displays only
>> blank page without any exceptions and error...wat cud be the possible
>> error??
>
>
>
> Please post the action code, especially the part that returns the forward.
>
> Antonio
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_185390.ezm (zipped)
2008/4/14, newBea <vaibhav.dalvi@(protected)>:
>
>
> struts config is not getting ReminderAction...but the configuration is
> correct i guess??



I meant the Java code inside your ReminderAction class.

Antonio

Attachment: user_185391.ezm (zipped)
>  <servlet-mapping>
>   <servlet-name>action</servlet-name>
>   <url-pattern>*.html</url-pattern>
>  </servlet-mapping>

So, then try /sendmail.html


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

Attachment: user_185389.ezm (zipped)

Hey,

That worked :-)
Thanks a lot.

Ancat..


hi

try it

<s:url id="viewURL" namespace="/account" action="view" />
<s:a href=%{viewURL}> View Your Account </s:a>

My english is not good
hope this can help you

gordian

--
Sent from the Struts - User mailing list archive at Nabble.com.

©2008 gg3721.com - Jax Systems, LLC, U.S.A.