Hello!
I've got a Action to download documents stored in a BLOB ind an oracle-db:
inputStream
public String downloadDocument()
{
inputStream_ = downloadFromDB(...);
return success;
}
public InputStream getInputStream()
{
return inputSt
Volker Krebs schrieb:
Hello,
we recently update from struts 2.0.14 to struts 2.1.6
In struts 2.0.14 org.apache.struts2.dispatcher.StrutsRequestWrapper
was delegating to the Value Stack.
This meant that in my JSP Page:
was the same as
${foo}
With struts 2.1.6 this doesn't seem to work.
How can I
So I went searching in the archives for how to use a select tag with
multiselect='true' set.
I found one entry from 2007 where a user asks this question. The
answer was "Use a list".
Great.
How? If I set the tag to a list of objects specified in my action,
how do I set the second list of objects
So I tried setting key='selectedList'
This did not work. I got a null selectedList and:
ognl.ExpressionSyntaxException: Malformed OGNL expression:
[ognl.ParseException: Encountered "" at line 1, column 0.
Was expecting one of:
.
.
.
etc.
> How? If I set the tag to a list of objects specified in
Volker Krebs schrieb:
Volker Krebs schrieb:
Hello,
we recently update from struts 2.0.14 to struts 2.1.6
In struts 2.0.14 org.apache.struts2.dispatcher.StrutsRequestWrapper
was delegating to the Value Stack.
This meant that in my JSP Page:
was the same as
${foo}
With struts 2.1.6 this doesn't
If you are trying to make a cascading drop down, you can do so with the
doubleselect tag.
One way to implement:
Create a class, CascDropDown, with getters and setters for value, label and
subList.
subList is a List of objects, DropDown, with getters and setters for value
and label.
If you have va
> One way to implement:
> Create a class, CascDropDown, with getters and setters for value, label and
> subList.
> subList is a List of objects, DropDown, with getters and setters for value
This is not what I was having trouble with.
Anyway, I've got the solution but I need to complete what I am
Hi, We are using WebLogic 9.2.2 with Java 1.5. The application is written
using Struts 1.3 and log4j 1.2.15. We found a number of errors that looked
like below in our managed server's .out file. Any ideas what might be a
cause or how to troubleshoot further? Our sys admin sadly did not preserv
Hi,
I'm using a StrutsTypeConverter to convert Date objects into localized
formatted strings to switch between locals. It works really well with
but not with tags. The parameters don't pass
through the StrutsTypeConverter like the fields. I'm using a
xwork-conversion.properties to convert a
OK, so it is really a lot simpler than I thought. Just have to set the
name of the select to the name of the property and the system will
figure out that it is a list of what ever the listkey is set to. Same
as usual.
On Wed, Jul 1, 2009 at 12:11 PM, Jim Collings wrote:
>> One way to implement:
>>
Volker Krebs wrote:
we recently update from struts 2.0.14 to struts 2.1.6
In struts 2.0.14 org.apache.struts2.dispatcher.StrutsRequestWrapper
was delegating to the Value Stack.
This meant that in my JSP Page:
was the same as
${foo}
With struts 2.1.6 this doesn't seem to work.
How can I enable i
Hi!
I would like to have in my applicationresources.properties utf-8 charcters.
When I write:
login.notRecognized = "נא לנסות שנית"
and try to save, I get the message
Some characters cannot be mapped using ISO-8859-1
What tag can I add to it?
It's a properties file..
Thanks!
What do you use to edit that file? Eclipse? There is plugin which will
convert in fly characters to UTF-8 entities, Resource Bundle Editor or
something. IntelliJ IDEA has built-in such option, just select it in
Settings.
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
hi,
use native2ascii to convert the foreign characters into \u escape
sequence.
look at here
http://globalizer.wordpress.com/2007/02/08/property-resource-bundle-encoding/
martin
Odelya YomTov wrote:
Hi!
I would like to have in my applicationresources.properties utf-8 charcters.
Whe
Does anyone know how to calculate the total value by making use of the
tag?
On Mon, Jun 29, 2009 at 1:16 PM, Bhaarat Sharma wrote:
> for our purpose i'd prefer doing it in the iterator tag.
> I tried something like this
>
>
>
> but this does not seem to work.
>
> what can fix this?
>
>
> On Mon
Does it work if you replace the "+=" with a "+"?
jk
On Wed, Jul 1, 2009 at 4:39 PM, Bhaarat Sharma wrote:
> Does anyone know how to calculate the total value by making use of the
> tag?
> On Mon, Jun 29, 2009 at 1:16 PM, Bhaarat Sharma
> wrote:
>
> > for our purpose i'd prefer doing it in the
no :(
I tried the following
and tried to print it
but it shows nothing :(
On Wed, Jul 1, 2009 at 4:41 PM, Jim Kiley wrote:
> Does it work if you replace the "+=" with a "+"?
> jk
>
> On Wed, Jul 1, 2009 at 4:39 PM, Bhaarat Sharma
> wrote:
>
> > Does anyone know how to calcu
oh nevermind.
was experimenting and
works!
bless OGNL
On Wed, Jul 1, 2009 at 4:55 PM, Bhaarat Sharma wrote:
> no :(
> I tried the following
>
> "totalCount"/>
> value="%{calcTotalDebtAmt+totalCount}"/>
>
>
> and tried to print it
>
>
> but it shows nothing :(
>
> On Wed, Ju
I don't know how Struts 2 tags work under the hood, but it's possible that
it's going out of scope because you declared it in the iterator, or it's
silently throwing an error because it isn't initialized. Before your
starts, do .
This could be handled inside your action class with like two lines
but if I do it in my action class then I am adding extra 'time'.
to begin with I anyways have to iterate over the list in my JSP. Just to
calculate total if I iterate over the list again in java code then I am
doing two iterations through the list. Just didnt seem very efficient for
my need.
Tha
Hi All
I am a newbee to struts. I have made a test website in struts. I have added
some forms to the pages which inserts data to the database using action. The
parameters are sent as post.
All is working fine when I put http://localhost:8080/myproj.
I have done url rewriting to map my web app to
I will bet one dollar that the amount of time it takes to calculate this
value inside your Action class is less than or equal to the time it takes it
to calculate the value inside the iterator in your JSP. And it's a
vanishingly small amount compared to network latency. Unless you're writing
code
Hi
Also I have used mod_rewrite for url rewriting.
On Thu, Jul 2, 2009 at 2:37 AM, sac sha wrote:
> Hi All
>
> I am a newbee to struts. I have made a test website in struts. I have added
> some forms to the pages which inserts data to the database using action. The
> parameters are sent as pos
thanks for your advice.
"...optimizing out a for loop is not the best use of your time as a
developer."
I second that. But in this case why would I write another for loop to do
something that can be done in the for loop that I already have? Unless
there is an issue with doing this inside s:itera
I have used the following with success in Mac Os Leopard Tomcat 6.0.18 Struts
2.0.14 Java 1.5.0.19
When I moved to CentOs Tomcat 6.0.18 Struts 2.0.14 Java 1.6.0_10 it start
throwing
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang
Hi,
I dont not understand very much about Struts2 inject process but I fixed my
problem extending the compositeActionMapper with the following one:
public class DebugCompositeActionMapper extends CompositeActionMapper {
@Override
@Inject(StrutsConstants.STRUTS_MAPPER_COMPOSITE)
publ
I have a 2.1.6 App that I want to move the resource bundle away from
properties files to a database backed solution and I was hoping I could get
some feedback on others experience.
I was planning to extend java.util.ResourceBundle and add the requisite
methods for accessing keys and properties via
Change the file properties, file type to utf8
On Thursday, July 2, 2009, Odelya YomTov wrote:
> Hi!
>
> I would like to have in my applicationresources.properties utf-8 charcters.
> When I write:
> login.notRecognized = "נא לנסות שנית"
>
> and try to save, I get the message
> Some characters canno
Hello,
while doing development I am conforming to the versions provided by
our hosting service. I am trying to select the most suitable version
of the framework, java and tomcat so, just wanted to ask if there are
known compatibility issues with the following combination:
Fixed:
jdk1.5.0_17
Tomca
On Wednesday 01 July 2009 21:03:32 Yanto wrote:
> Change the file properties, file type to utf8
>
I am pretty sure that properties files can't be utf-8. I think you are stuck
with iso-8859-1. I've run into this before and the proper solution is what was
suggested earlier, using the native2ascii
On Wednesday 01 July 2009 21:03:32 Yanto wrote:
> Change the file properties, file type to utf8
>
I am pretty sure that you can only use ISO-8859-1 for properties files. I ran
into this once before and the accepted solution is to use the native2ascii
tool as was previously suggested.
-Wes
> O
On Wednesday 01 July 2009 21:56:17 Dimitrios Christodoulakis wrote:
> Hello,
>
> while doing development I am conforming to the versions provided by
> our hosting service. I am trying to select the most suitable version
> of the framework, java and tomcat so, just wanted to ask if there are
> known
Hi Folks,
Referring to: http://struts.apache.org/2.1.6/docs/dojo-anchor.html
"There's a bug in IE6/IE7 which makes impossible to use the target's attribute
with a parent Div, because such Div's content's are overwritten with the tag's
loadingText. Resulting in an "undefined" message in the con
I have 2 forms.
1. List Page
2. Edit page
I have an actionForm and a Action Class for both the forms.
When a Submit button is cicked in List Page for one DATA(a row),
that DATA must be displayed in the Edit Page for correction.
so in the Submit() function in Action1 (Listpage), How CAN I SET
We change applicationresources_zh.properties to utf 8 in our application,
and the application can show the chinese character properly in the
application.
However we are not changing applicationresources.properties to utf8
On Thu, Jul 2, 2009 at 10:49 AM, Wes Wannemacher wrote:
> On Wednesday 01
Hi All,
I am working on some reports generation.
For this i need to display some List of objects and then i need to get these
object back as a part of Form.
i can not use session. Can any body help me how can i wraps objects into a
list.
thanks
Vaibhav Gupta
http://www.linkedin.com/in/vaibhavgu
36 matches
Mail list logo