Author Login
Post Reply
user Digest 10 Jun 2008 15:41:56 -0000 Issue 8079
Topics (messages 187391 through 187410):
Re: Modifying session attributes in Struts 2
187391 by: Gamble, Wesley (WG10)
187392 by: Felipe Lorenz
187393 by: Gamble, Wesley (WG10)
187394 by: Martin
187395 by: Lukasz Lenart
Autocompleter onchange attribute
187396 by: Craftyman
187404 by: Laurie Harper
187405 by: Craftyman
Re: Help required on Struts-Datagrid
187397 by: Himanshu Rathore
Re: [OT] Re: Action mapping not found - eclipse configuration problem???
187398 by: piltrafeta
187399 by: Michael Gagnon
187400 by: Musachy Barroso
187401 by: Martin
187406 by: piltrafeta
187407 by: Randy Burgess
187408 by: piltrafeta
187410 by: piltrafeta
Re: Reading Application Resource saved as UTF8 file and showing polish characters in browser
187402 by: Raghuveer
187403 by: Laurie Harper
ajax file upload in iframe
187409 by: nuria
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_187391.ezm (zipped)Huh?
-----Original Message-----
From: Felipe Lorenz [mailto:felipe.lorenz@(protected)]
Sent: Monday, June 09, 2008 5:37 PM
To: Struts Users Mailing List
Subject: Re: Modifying session attributes in Struts 2
nothing diferent.. just it.
On Mon, Jun 9, 2008 at 7:34 PM, Gamble, Wesley (WG10) <WG10@(protected)>
wrote:
> All,
>
> If I have a Struts action, and I acquire the session map via:
>
> Map session = ActionContext.getContext().getSession();
>
> can I simply use
>
> session.put("new_key", new_value);
>
> to modify session attributes or do I need to do something different?
>
> Thanks,
> Wes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187392.ezm (zipped)you right... just do what you did say!
On Mon, Jun 9, 2008 at 7:52 PM, Gamble, Wesley (WG10) <WG10@(protected):
> Huh?
>
> -----Original Message-----
> From: Felipe Lorenz [mailto:felipe.lorenz@(protected)]
> Sent: Monday, June 09, 2008 5:37 PM
> To: Struts Users Mailing List
> Subject: Re: Modifying session attributes in Struts 2
>
> nothing diferent.. just it.
>
> On Mon, Jun 9, 2008 at 7:34 PM, Gamble, Wesley (WG10) <WG10@(protected)>
> wrote:
>
> > All,
> >
> > If I have a Struts action, and I acquire the session map via:
> >
> > Map session = ActionContext.getContext().getSession();
> >
> > can I simply use
> >
> > session.put("new_key", new_value);
> >
> > to modify session attributes or do I need to do something different?
> >
> > Thanks,
> > Wes
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187393.ezm (zipped)Hmm... it doesn't seem to be working. That's why I was asking. I'll
keep at it.
Thanks,
Wes
-----Original Message-----
From: Felipe Lorenz [mailto:felipe.lorenz@(protected)]
Sent: Monday, June 09, 2008 6:15 PM
To: Struts Users Mailing List
Subject: Re: Modifying session attributes in Struts 2
you right... just do what you did say!
On Mon, Jun 9, 2008 at 7:52 PM, Gamble, Wesley (WG10) <WG10@(protected)>
wrote:
> Huh?
>
> -----Original Message-----
> From: Felipe Lorenz [mailto:felipe.lorenz@(protected)]
> Sent: Monday, June 09, 2008 5:37 PM
> To: Struts Users Mailing List
> Subject: Re: Modifying session attributes in Struts 2
>
> nothing diferent.. just it.
>
> On Mon, Jun 9, 2008 at 7:34 PM, Gamble, Wesley (WG10) <WG10@(protected)>
> wrote:
>
> > All,
> >
> > If I have a Struts action, and I acquire the session map via:
> >
> > Map session = ActionContext.getContext().getSession();
> >
> > can I simply use
> >
> > session.put("new_key", new_value);
> >
> > to modify session attributes or do I need to do something different?
> >
> > Thanks,
> > Wes
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187394.ezm (zipped)/* you were really close*/
Map session = (Map) ActionContext.getContext().get("session");
session.put("new_key",new_value);
http://struts.apache.org/2.x/docs/accessing-application-session-request-objects.html
HTH
Martin
----- Original Message -----
From: "Gamble, Wesley (WG10)" <WG10@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Monday, June 09, 2008 7:16 PM
Subject: RE: Modifying session attributes in Struts 2
Hmm... it doesn't seem to be working. That's why I was asking. I'll
keep at it.
Thanks,
Wes
-----Original Message-----
From: Felipe Lorenz [mailto:felipe.lorenz@(protected)]
Sent: Monday, June 09, 2008 6:15 PM
To: Struts Users Mailing List
Subject: Re: Modifying session attributes in Struts 2
you right... just do what you did say!
On Mon, Jun 9, 2008 at 7:52 PM, Gamble, Wesley (WG10) <WG10@(protected)>
wrote:
> Huh?
>
> -----Original Message-----
> From: Felipe Lorenz [mailto:felipe.lorenz@(protected)]
> Sent: Monday, June 09, 2008 5:37 PM
> To: Struts Users Mailing List
> Subject: Re: Modifying session attributes in Struts 2
>
> nothing diferent.. just it.
>
> On Mon, Jun 9, 2008 at 7:34 PM, Gamble, Wesley (WG10) <WG10@(protected)>
> wrote:
>
> > All,
> >
> > If I have a Struts action, and I acquire the session map via:
> >
> > Map session = ActionContext.getContext().getSession();
> > session.put("new_key", new_value);
> >
> > to modify session attributes or do I need to do something different?
> >
> > Thanks,
> > Wes
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_187395.ezm (zipped)Hi,
I think the best solution is to implement SessionAware interface and
setSession() method, then you will either add or remove values from
map. Like below:
public class IndexAction implements Action, SessionAware {
private Map<String,Object> session;
public void setSession(Map<String,Object> session) {
this.session = session;
}
public String execute() {
session.put("key", "Some Value");
return SUCCESS;
}
public String doCheck() {
return SUCCESS;
}
}
snippet from struts.xml
<package name="myPackage" extends="struts-default">
<action name="index" class="pl.org.lenart.s2demo.IndexAction">
<result>/jsp/index.jsp</result>
</action>
<action name="check" class="pl.org.lenart.s2demo.IndexAction"
method="doCheck">
<result>/jsp/index.jsp</result>
</action>
</package>
index.jsp to test session value
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Index</title>
<s:head />
</head>
<body>
<s:property value="#session.key"/>
</body>
</html>
Go to http://localhost:8080/<context>/index.action and you will see
the value from session, then go to
http://localhost:8080/<context>/check.action and once again you will
see the same value. Go to some other page in Internet and then come
back to http://localhost:8080/<context>/check.action, once again you
will see the same ;-)
Your action is free from hard coded dependency to ActionContext. I
check this and it's working, I'm using Struts 2.1.3-SNAPSHOT
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187396.ezm (zipped)Hi,
I'm using a s:autocompleter with a local list (No ajax use - Struts 2.0.9).
The auto seach work fine but the onChange event doesn't run.
Indeed, I want to submit myForm when the user select a right value (Ie a
value present in my select).
Here my configuration :
<s:form name="myForm" theme="simple">
<s:autocompleter autoComplete="true" resultsLimit="false"
dropdownHeight="200" cssStyle="width: 60px;"
list="allItem" listKey="id" listValue="desc"
name="selectedItem" />
</s:form>
I'm try the notifyTopic attribut without succes (
http://struts.apache.org/2.0.11.1/docs/autocompleter.html)
I'm also read this thread but it is not resolv my problem (
http://www.mail-archive.com/user@(protected))
Sincerely
Cédric

Attachment:
user_187404.ezm (zipped)What do you mean by 'No ajax use'? s:autocomplete is an Ajax tag... Do
you have <s:head theme="ajax"/> in the head section of your page? Do you
get any Javascript errors when you load the page, or when you interact
with the autocompleter control?
L.
Craftyman wrote:
> Hi,
>
> I'm using a s:autocompleter with a local list (No ajax use - Struts 2.0.9).
> The auto seach work fine but the onChange event doesn't run.
> Indeed, I want to submit myForm when the user select a right value (Ie a
> value present in my select).
>
> Here my configuration :
>
> <s:form name="myForm" theme="simple">
>
> <s:autocompleter autoComplete="true" resultsLimit="false"
> dropdownHeight="200" cssStyle="width: 60px;"
> list="allItem" listKey="id" listValue="desc"
> name="selectedItem" />
>
> </s:form>
>
> I'm try the notifyTopic attribut without succes (
> http://struts.apache.org/2.0.11.1/docs/autocompleter.html)
> I'm also read this thread but it is not resolv my problem (
> http://www.mail-archive.com/user@(protected))
>
> Sincerely
> Cédric

Attachment:
user_187405.ezm (zipped)I have any errors and i use the s:head theme="ajax"/> in my head section a
the auto search work fine
I juste want to add a onchange event whitch submit my form. Before usind the
autocompleter tag i have :
<s:form name="myForm" theme="simple">
<s:select list="allItem" listKey="id" listValue="desc"
name="selectedItem"
onchange="javascript:document.getElementById('myForm').submit;"
/>
</s:form>
onchange="javascript:document.getElementById('myForm').submit;" doen't work
with autocompleter (nothing append)
2008/6/10 Laurie Harper <laurie@(protected)>:
> What do you mean by 'No ajax use'? s:autocomplete is an Ajax tag... Do you
> have <s:head theme="ajax"/> in the head section of your page? Do you get any
> Javascript errors when you load the page, or when you interact with the
> autocompleter control?
>
> L.
>
>
> Craftyman wrote:
>
>> Hi,
>>
>> I'm using a s:autocompleter with a local list (No ajax use - Struts
>> 2.0.9).
>> The auto seach work fine but the onChange event doesn't run.
>> Indeed, I want to submit myForm when the user select a right value (Ie a
>> value present in my select).
>>
>> Here my configuration :
>>
>> <s:form name="myForm" theme="simple">
>>
>> <s:autocompleter autoComplete="true" resultsLimit="false"
>> dropdownHeight="200" cssStyle="width: 60px;"
>> list="allItem" listKey="id" listValue="desc"
>> name="selectedItem" />
>>
>> </s:form>
>>
>> I'm try the notifyTopic attribut without succes (
>> http://struts.apache.org/2.0.11.1/docs/autocompleter.html)
>> I'm also read this thread but it is not resolv my problem (
>> http://www.mail-archive.com/user@(protected))
>>
>> Sincerely
>> Cédric
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187397.ezm (zipped)Hi Mukul,
Here is sample code. I had mentioned incorrect steps in my previous email.
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>
<table id="tableHeader" border="0" class="PRODGRID" cellspacing="1"
cellpadding="0" >
<tr>
<th class ="GRID" width="14%"><bean:message key="label1" /></th>
<th class ="GRID" width="27%"><bean:message key="label2" /></th>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td valign="top" id="lyr_container" style ="height: 225px">
<div class="layerScroll" id="lyrContent" style ="vertical-align:
top;height: 250px">
<layout:datagrid property="gridData" styleClass="GRID" model="datagrid"
selectionAllowed="false">
<layout:datagridColumn width="15%" *title=""* property="name1"/>
<layout:datagridColumn width="28%" *title=""* property="name2"/>
</layout:datagrid>
</div>
</td>
</tr>
</table>
In second table wherein you will display data, I have set *title = ""*.
Hope this will solve your problem.
On 6/9/08, mukul.object <mukul.object@(protected):
>
>
> Hello All,
> I am seeking for suggestions on how can we fix the header/column-names in
> Struts-Datagrid.
>
> In my jsp , I have implemented struts-datagrid and showing many rows at a
> time.
> While scrolling the page , the column-names/header of the datagrid also
> scroll up and down and do not remain visible to the user.
>
> Is there any way to fix the column-name/header to the top of datagrid?
>
> Kindly suggest any solution.
>
> Thanks
> -Mukul
> --
> View this message in context:
> http://www.nabble.com/Help-required-on-Struts-Datagrid-tp17730148p17730148.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Regards,
Himanshu Rathore

Attachment:
user_187398.ezm (zipped)
Hello !
I'm having a similar problem...
I had a eclipse project with struts2 and hibernate. It was working fine but
one day stop parsing the struts.xml file, and when i execute it says tha my
actions are not mapped, even if I modify something in struts.xml file
eclipse is not compiling it...
So do you have any idea of what is it ? (i have the struts.xml file in the
source root directory)
Thanks in advandce
Musachy Barroso wrote:
>
> I think the "preview" thing is the option under "Basic" when you click
> "Run on Server" and choose to "Manually define a new server". Try
> running on tomcat instead. In any case what is happening is that
> struts.xml is not on the classpath and the filter is not finding it
>
> musachy
>
>
> On Feb 18, 2008 1:59 PM, Dave Newton <newton.dave@(protected):
>> --- Chriss Nold <chriss.nold@(protected):
>> > I am importing the project into eclipse from the .war file with the
>> j2ee
>> > preview enabled for the target runtime environment.
>>
>> Not sure what all that is.
>>
>> What's in your .classpath file?
>>
>> > Marked as a tomcat project.
>> > Context name: /Blank
>> > Subdirectory for web app root: /WebContent
>>
>> What URL are you using?
>>
>>
>> Dave
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> 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_187399.ezm (zipped)I've had a similar problem in the past where a co-worker pulling the project
from source control would see action mapping not found errors -- which
baffled me because I didn't get them. On deleting my target folder and
re-warring, tomcat then picked up the errors. This was because eclipse
project=>clean and using maven=>war did not remove the contents of the
target folder, leaving DELETED action classes in there. (Maven=>War would
package the correctly cleaned contents, but when deployed, the previously
deployed files wouldn't be removed first) Our struts.xml's had actions still
referring to these classes when they should have been changed to refer to
others. In my not-quite-clean environment, these missing classes were
erroneously present as described above, while in a clean environment they'd
be missing and we'd correctly see action mapping errors.
-----Original Message-----
From: piltrafeta [mailto:piltrafeta@(protected)]
Sent: Tuesday, June 10, 2008 9:14 AM
To: user@(protected)
Subject: Re: [OT] Re: Action mapping not found - eclipse configuration
problem???
Hello !
I'm having a similar problem...
I had a eclipse project with struts2 and hibernate. It was working fine but
one day stop parsing the struts.xml file, and when i execute it says tha my
actions are not mapped, even if I modify something in struts.xml file
eclipse is not compiling it...
So do you have any idea of what is it ? (i have the struts.xml file in the
source root directory)
Thanks in advandce
Musachy Barroso wrote:
>
> I think the "preview" thing is the option under "Basic" when you click
> "Run on Server" and choose to "Manually define a new server". Try
> running on tomcat instead. In any case what is happening is that
> struts.xml is not on the classpath and the filter is not finding it
>
> musachy
>
>
> On Feb 18, 2008 1:59 PM, Dave Newton <newton.dave@(protected):
>> --- Chriss Nold <chriss.nold@(protected):
>> > I am importing the project into eclipse from the .war file with the
>> j2ee
>> > preview enabled for the target runtime environment.
>>
>> Not sure what all that is.
>>
>> What's in your .classpath file?
>>
>> > Marked as a tomcat project.
>> > Context name: /Blank
>> > Subdirectory for web app root: /WebContent
>>
>> What URL are you using?
>>
>>
>> Dave
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-probl
em----tp15551053p17755119.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_187400.ezm (zipped)I have noticed that when I generate an eclipse a project with
maven(with wtp support), sometimes the application context is not set,
in which case tomcat will not deploy the app. To set it right-click on
your project Properties->Web Project Settings. Check the Problems view
and see if you have any error which will prevent deployment (like a
classpath error)
musachy
On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <piltrafeta@(protected):
>
> Hello !
> I'm having a similar problem...
> I had a eclipse project with struts2 and hibernate. It was working fine but
> one day stop parsing the struts.xml file, and when i execute it says tha my
> actions are not mapped, even if I modify something in struts.xml file
> eclipse is not compiling it...
> So do you have any idea of what is it ? (i have the struts.xml file in the
> source root directory)
>
> Thanks in advandce
>
>
> Musachy Barroso wrote:
>>
>> I think the "preview" thing is the option under "Basic" when you click
>> "Run on Server" and choose to "Manually define a new server". Try
>> running on tomcat instead. In any case what is happening is that
>> struts.xml is not on the classpath and the filter is not finding it
>>
>> musachy
>>
>>
>> On Feb 18, 2008 1:59 PM, Dave Newton <newton.dave@(protected):
>>> --- Chriss Nold <chriss.nold@(protected):
>>> > I am importing the project into eclipse from the .war file with the
>>> j2ee
>>> > preview enabled for the target runtime environment.
>>>
>>> Not sure what all that is.
>>>
>>> What's in your .classpath file?
>>>
>>> > Marked as a tomcat project.
>>> > Context name: /Blank
>>> > Subdirectory for web app root: /WebContent
>>>
>>> What URL are you using?
>>>
>>>
>>> Dave
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problem----tp15551053p17755119.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_187401.ezm (zipped)
Good Morning Michael-
Have you notoiced this error manifested in either eclipse maven plugin or eclipse ant plugin ?
In which version of eclipse and plugin do you see these errors?
Is there a jira entry for these errors?
Thanks,
Martin Gainty
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> From: mgagnon@(protected)
> To: user@(protected)
> Subject: RE: [OT] Re: Action mapping not found - eclipse configuration problem???
> Date: Tue, 10 Jun 2008 09:27:01 -0400
>
> I've had a similar problem in the past where a co-worker pulling the project
> from source control would see action mapping not found errors -- which
> baffled me because I didn't get them. On deleting my target folder and
> re-warring, tomcat then picked up the errors. This was because eclipse
> project=>clean and using maven=>war did not remove the contents of the
> target folder, leaving DELETED action classes in there. (Maven=>War would
> package the correctly cleaned contents, but when deployed, the previously
> deployed files wouldn't be removed first) Our struts.xml's had actions still
> referring to these classes when they should have been changed to refer to
> others. In my not-quite-clean environment, these missing classes were
> erroneously present as described above, while in a clean environment they'd
> be missing and we'd correctly see action mapping errors.
>
> -----Original Message-----
> From: piltrafeta [mailto:piltrafeta@(protected)]
> Sent: Tuesday, June 10, 2008 9:14 AM
> To: user@(protected)
> Subject: Re: [OT] Re: Action mapping not found - eclipse configuration
> problem???
>
>
> Hello !
> I'm having a similar problem...
> I had a eclipse project with struts2 and hibernate. It was working fine but
> one day stop parsing the struts.xml file, and when i execute it says tha my
> actions are not mapped, even if I modify something in struts.xml file
> eclipse is not compiling it...
> So do you have any idea of what is it ? (i have the struts.xml file in the
> source root directory)
>
> Thanks in advandce
>
>
> Musachy Barroso wrote:
> >
> > I think the "preview" thing is the option under "Basic" when you click
> > "Run on Server" and choose to "Manually define a new server". Try
> > running on tomcat instead. In any case what is happening is that
> > struts.xml is not on the classpath and the filter is not finding it
> >
> > musachy
> >
> >
> > On Feb 18, 2008 1:59 PM, Dave Newton <newton.dave@(protected):
> >> --- Chriss Nold <chriss.nold@(protected):
> >> > I am importing the project into eclipse from the .war file with the
> >> j2ee
> >> > preview enabled for the target runtime environment.
> >>
> >> Not sure what all that is.
> >>
> >> What's in your .classpath file?
> >>
> >> > Marked as a tomcat project.
> >> > Context name: /Blank
> >> > Subdirectory for web app root: /WebContent
> >>
> >> What URL are you using?
> >>
> >>
> >> Dave
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >>
> >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-probl
> em----tp15551053p17755119.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
_________________________________________________________________
Enjoy 5 GB of free, password-protected online storage.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008

Attachment:
user_187406.ezm (zipped)
It must be something like this.. but i've tried deleting the sources and
coping again and stil doesn't works..
Actually, when I open Properties->Web Project Settings, i only have a filed
named "Context Root". How i can see the problems view ?
Musachy Barroso wrote:
>
> I have noticed that when I generate an eclipse a project with
> maven(with wtp support), sometimes the application context is not set,
> in which case tomcat will not deploy the app. To set it right-click on
> your project Properties->Web Project Settings. Check the Problems view
> and see if you have any error which will prevent deployment (like a
> classpath error)
>
> musachy
>
> On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <piltrafeta@(protected):
>>
>> Hello !
>> I'm having a similar problem...
>> I had a eclipse project with struts2 and hibernate. It was working fine
>> but
>> one day stop parsing the struts.xml file, and when i execute it says tha
>> my
>> actions are not mapped, even if I modify something in struts.xml file
>> eclipse is not compiling it...
>> So do you have any idea of what is it ? (i have the struts.xml file in
>> the
>> source root directory)
>>
>> Thanks in advandce
>>
>>
>> Musachy Barroso wrote:
>>>
>>> I think the "preview" thing is the option under "Basic" when you click
>>> "Run on Server" and choose to "Manually define a new server". Try
>>> running on tomcat instead. In any case what is happening is that
>>> struts.xml is not on the classpath and the filter is not finding it
>>>
>>> musachy
>>>
>>>
>>> On Feb 18, 2008 1:59 PM, Dave Newton <newton.dave@(protected):
>>>> --- Chriss Nold <chriss.nold@(protected):
>>>> > I am importing the project into eclipse from the .war file with the
>>>> j2ee
>>>> > preview enabled for the target runtime environment.
>>>>
>>>> Not sure what all that is.
>>>>
>>>> What's in your .classpath file?
>>>>
>>>> > Marked as a tomcat project.
>>>> > Context name: /Blank
>>>> > Subdirectory for web app root: /WebContent
>>>>
>>>> What URL are you using?
>>>>
>>>>
>>>> Dave
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problem----tp15551053p17755119.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> 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_187407.ezm (zipped)I believe it defaults to the bottom middle pane, on the left most tab of
that pane.
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
> From: piltrafeta <piltrafeta@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Tue, 10 Jun 2008 08:05:13 -0700 (PDT)
> To: <user@(protected)>
> Subject: Re: [OT] Re: Action mapping not found - eclipse configuration
> problem???
>
>
> It must be something like this.. but i've tried deleting the sources and
> coping again and stil doesn't works..
> Actually, when I open Properties->Web Project Settings, i only have a filed
> named "Context Root". How i can see the problems view ?
>
>
>
> Musachy Barroso wrote:
>>
>> I have noticed that when I generate an eclipse a project with
>> maven(with wtp support), sometimes the application context is not set,
>> in which case tomcat will not deploy the app. To set it right-click on
>> your project Properties->Web Project Settings. Check the Problems view
>> and see if you have any error which will prevent deployment (like a
>> classpath error)
>>
>> musachy
>>
>> On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <piltrafeta@(protected):
>>>
>>> Hello !
>>> I'm having a similar problem...
>>> I had a eclipse project with struts2 and hibernate. It was working fine
>>> but
>>> one day stop parsing the struts.xml file, and when i execute it says tha
>>> my
>>> actions are not mapped, even if I modify something in struts.xml file
>>> eclipse is not compiling it...
>>> So do you have any idea of what is it ? (i have the struts.xml file in
>>> the
>>> source root directory)
>>>
>>> Thanks in advandce
>>>
>>>
>>> Musachy Barroso wrote:
>>>>
>>>> I think the "preview" thing is the option under "Basic" when you click
>>>> "Run on Server" and choose to "Manually define a new server". Try
>>>> running on tomcat instead. In any case what is happening is that
>>>> struts.xml is not on the classpath and the filter is not finding it
>>>>
>>>> musachy
>>>>
>>>>
>>>> On Feb 18, 2008 1:59 PM, Dave Newton <newton.dave@(protected):
>>>>> --- Chriss Nold <chriss.nold@(protected):
>>>>>> I am importing the project into eclipse from the .war file with the
>>>>> j2ee
>>>>>> preview enabled for the target runtime environment.
>>>>>
>>>>> Not sure what all that is.
>>>>>
>>>>> What's in your .classpath file?
>>>>>
>>>>>> Marked as a tomcat project.
>>>>>> Context name: /Blank
>>>>>> Subdirectory for web app root: /WebContent
>>>>>
>>>>> What URL are you using?
>>>>>
>>>>>
>>>>> Dave
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-probl
>>> em----tp15551053p17755119.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problem
> ----tp15551053p17757686.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187408.ezm (zipped)
I've chequed the problems view and i have nothing referring to the
classpath...
It's quite strange all of this, now the only way to make it work i've found
i to create a new project and copy everything from the old one.
piltrafeta wrote:
>
> It must be something like this.. but i've tried deleting the sources and
> coping again and stil doesn't works..
> Actually, when I open Properties->Web Project Settings, i only have a
> filed named "Context Root". How i can see the problems view ?
>
>
>
> Musachy Barroso wrote:
>>
>> I have noticed that when I generate an eclipse a project with
>> maven(with wtp support), sometimes the application context is not set,
>> in which case tomcat will not deploy the app. To set it right-click on
>> your project Properties->Web Project Settings. Check the Problems view
>> and see if you have any error which will prevent deployment (like a
>> classpath error)
>>
>> musachy
>>
>> On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <piltrafeta@(protected):
>>>
>>> Hello !
>>> I'm having a similar problem...
>>> I had a eclipse project with struts2 and hibernate. It was working fine
>>> but
>>> one day stop parsing the struts.xml file, and when i execute it says tha
>>> my
>>> actions are not mapped, even if I modify something in struts.xml file
>>> eclipse is not compiling it...
>>> So do you have any idea of what is it ? (i have the struts.xml file in
>>> the
>>> source root directory)
>>>
>>> Thanks in advandce
>>>
>>>
>>> Musachy Barroso wrote:
>>>>
>>>> I think the "preview" thing is the option under "Basic" when you click
>>>> "Run on Server" and choose to "Manually define a new server". Try
>>>> running on tomcat instead. In any case what is happening is that
>>>> struts.xml is not on the classpath and the filter is not finding it
>>>>
>>>> musachy
>>>>
>>>>
>>>> On Feb 18, 2008 1:59 PM, Dave Newton <newton.dave@(protected):
>>>>> --- Chriss Nold <chriss.nold@(protected):
>>>>> > I am importing the project into eclipse from the .war file with the
>>>>> j2ee
>>>>> > preview enabled for the target runtime environment.
>>>>>
>>>>> Not sure what all that is.
>>>>>
>>>>> What's in your .classpath file?
>>>>>
>>>>> > Marked as a tomcat project.
>>>>> > Context name: /Blank
>>>>> > Subdirectory for web app root: /WebContent
>>>>>
>>>>> What URL are you using?
>>>>>
>>>>>
>>>>> Dave
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problem----tp15551053p17755119.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> 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_187410.ezm (zipped)
I've found it !
In <myproject> / .settings / org.eclipse.wst.common.component file i had two
different paths for the source code directory, I've deleted the one which
was wrong and now it works !
so happy :)
thank you very much !
piltrafeta wrote:
>
> I've chequed the problems view and i have nothing referring to the
> classpath...
> It's quite strange all of this, now the only way to make it work i've
> found i to create a new project and copy everything from the old one.
>
>
> piltrafeta wrote:
>>
>> It must be something like this.. but i've tried deleting the sources and
>> coping again and stil doesn't works..
>> Actually, when I open Properties->Web Project Settings, i only have a
>> filed named "Context Root". How i can see the problems view ?
>>
>>
>>
>> Musachy Barroso wrote:
>>>
>>> I have noticed that when I generate an eclipse a project with
>>> maven(with wtp support), sometimes the application context is not set,
>>> in which case tomcat will not deploy the app. To set it right-click on
>>> your project Properties->Web Project Settings. Check the Problems view
>>> and see if you have any error which will prevent deployment (like a
>>> classpath error)
>>>
>>> musachy
>>>
>>> On Tue, Jun 10, 2008 at 9:13 AM, piltrafeta <piltrafeta@(protected)>
>>> wrote:
>>>>
>>>> Hello !
>>>> I'm having a similar problem...
>>>> I had a eclipse project with struts2 and hibernate. It was working fine
>>>> but
>>>> one day stop parsing the struts.xml file, and when i execute it says
>>>> tha my
>>>> actions are not mapped, even if I modify something in struts.xml file
>>>> eclipse is not compiling it...
>>>> So do you have any idea of what is it ? (i have the struts.xml file in
>>>> the
>>>> source root directory)
>>>>
>>>> Thanks in advandce
>>>>
>>>>
>>>> Musachy Barroso wrote:
>>>>>
>>>>> I think the "preview" thing is the option under "Basic" when you click
>>>>> "Run on Server" and choose to "Manually define a new server". Try
>>>>> running on tomcat instead. In any case what is happening is that
>>>>> struts.xml is not on the classpath and the filter is not finding it
>>>>>
>>>>> musachy
>>>>>
>>>>>
>>>>> On Feb 18, 2008 1:59 PM, Dave Newton <newton.dave@(protected):
>>>>>> --- Chriss Nold <chriss.nold@(protected):
>>>>>> > I am importing the project into eclipse from the .war file with the
>>>>>> j2ee
>>>>>> > preview enabled for the target runtime environment.
>>>>>>
>>>>>> Not sure what all that is.
>>>>>>
>>>>>> What's in your .classpath file?
>>>>>>
>>>>>> > Marked as a tomcat project.
>>>>>> > Context name: /Blank
>>>>>> > Subdirectory for web app root: /WebContent
>>>>>>
>>>>>> What URL are you using?
>>>>>>
>>>>>>
>>>>>> Dave
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Action-mapping-not-found---eclipse-configuration-problem----tp15551053p17755119.html
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>
>>> ---------------------------------------------------------------------
>>> 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_187402.ezm (zipped)Hi,
Native2ascii has generated Unicode characters on polish windows system.
But could not generate Unicode characters on Windows English Operating
System.
Thanks a lot to Lukasz and Laurie
-----Original Message-----
From: Laurie Harper [mailto:laurie@(protected)]
Sent: Tuesday, June 10, 2008 2:24 AM
To: user@(protected)
Subject: Re: Reading Application Resource saved as UTF8 file and showing
polish characters in browser
Lukasz Lenart wrote:
> Hi,
>
> 2008/6/9 Raghuveer <raghuveerv@(protected)>:
>
>> Is it possible in struts to configure the controller to read the
>> application
>> resource file which is saved as UTF8 format?
>>
>
> You can use filter from Spring
That wouldn't help, since it has nothing to do with resource file loading.
> It is possible to save the notepad file in UTF8 instead of ANSII.
>
> If such notepad support UTF-8, you can use Notepad++ or JDK tool
> native2ascii which will convert ANSII file to UTF-8, there is also ant
task
> available or many IDEs support such convertion in fly
Unfortunately, it is not possible to *read* a resource file saved in
this way. Application resource files are implemented under the covers
using Java's PropertyResourceBundle which specifies [2] the file format
as Latin-1 (ISO-8859-1) encoding with Unicode escapes.
What you *can* do, however, is author the files in UTF-8 and then
post-process them into the correct encoding during the build process,
using any of the tools/techniques Lukasz suggests.
L.
[1]
http://java.sun.com/j2se/1.5.0/docs/api/java/util/PropertyResourceBundle.htm
l
[2]
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#encoding

Attachment:
user_187403.ezm (zipped)The native2ascii tool should run the same anywhere. Make sure you
specify both the input and the output encoding, and that the input
encoding you specify really matches the encoding you've saved the
properties file in.
L.
Raghuveer wrote:
> Hi,
> Native2ascii has generated Unicode characters on polish windows system.
> But could not generate Unicode characters on Windows English Operating
> System.
>
> Thanks a lot to Lukasz and Laurie
>
> -----Original Message-----
> From: Laurie Harper [mailto:laurie@(protected)]
> Sent: Tuesday, June 10, 2008 2:24 AM
> To: user@(protected)
> Subject: Re: Reading Application Resource saved as UTF8 file and showing
> polish characters in browser
>
> Lukasz Lenart wrote:
>> Hi,
>>
>> 2008/6/9 Raghuveer <raghuveerv@(protected)>:
>>
>>> Is it possible in struts to configure the controller to read the
>>> application
>>> resource file which is saved as UTF8 format?
>>>
>> You can use filter from Spring
>
> That wouldn't help, since it has nothing to do with resource file loading.
>
>> It is possible to save the notepad file in UTF8 instead of ANSII.
>>
>> If such notepad support UTF-8, you can use Notepad++ or JDK tool
>> native2ascii which will convert ANSII file to UTF-8, there is also ant
> task
>> available or many IDEs support such convertion in fly
>
> Unfortunately, it is not possible to *read* a resource file saved in
> this way. Application resource files are implemented under the covers
> using Java's PropertyResourceBundle which specifies [2] the file format
> as Latin-1 (ISO-8859-1) encoding with Unicode escapes.
>
> What you *can* do, however, is author the files in UTF-8 and then
> post-process them into the correct encoding during the build process,
> using any of the tools/techniques Lukasz suggests.
>
> L.
>
> [1]
> http://java.sun.com/j2se/1.5.0/docs/api/java/util/PropertyResourceBundle.htm
> l
>
> [2]
> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#encoding

Attachment:
user_187409.ezm (zipped)
Hi all,
I have this problem: the result of form submission (with s:file) is Object
HTMLDocument] in firefox and [object] in IE7 in my s:div. I have been
looking to have the action response in my div and not in the iframe DOJO is
creating. I am working with struts 2.0.11.1. i thing solution has been
resolved in version 2.1.
Is there any other way to submit the form and redirect the action response
to my div??
I have tried with: (Is not working to me, is there any error???)
dojo.require("dojo.io.IframeIO");
function sendIt(){
var bindArgs = {
transport: "IframeTransport",
formNode: document.getElementById("nouInforme"),
mimetype: "text/plain",
load: function(type, data, evt){
document.getElementById("aplicacion").innerHTML =
data.firstChild.innerHTML;
}
};
var request = dojo.io.bind(bindArgs);
}
--
Sent from the Struts - User mailing list archive at Nabble.com.