Re: [SPAM] Re: Help please TOMCAT 5 + Struts

2008-07-18 Thread Paweł Wielgus
Hi all,
as the log says tomcat is out of perm gen space, if You want to know
what or where it is going just add parameters like Jorge said:
export JAVA_OPTS='-Xmx756m -server -XX:MaxPermSize=256m'
but also add -XX:+PrintGCDetails
export JAVA_OPTS='-Xmx756m -server -XX:MaxPermSize=256m -XX:+PrintGCDetails'
and simply watch the output.
In the mean time read about the java memory management.

Best greetings,
Paweł Wielgus.



On 17/07/2008, STRUTS SL. Mailing List <[EMAIL PROTECTED]> wrote:
> thousand thanks attempts with what I spend. if you miss one you the idea 
> agradecere.
>
>  
>
>  De: Jim Kiley [mailto:[EMAIL PROTECTED]
>  Enviado el: jue 17/07/2008 22:41
>
> Para: Struts Users Mailing List
>
> Asunto: Re: [SPAM] Re: Help please TOMCAT 5 + Struts
>
>
>
>
>  I haven't used this, but thirty seconds' search on "tomcat memory leak
>  tools" led me to this: http://java-source.net/open-source/profilers/jmemprof
>
>  jk
>
>  On Thu, Jul 17, 2008 at 4:34 PM, STRUTS SL. Mailing List <
>  [EMAIL PROTECTED]> wrote:
>
>  > I know of tools that help test my application, for which I have looked and
>  > looked again the code. Or some techniques to help me refine ...
>  >
>  > thanks
>  >
>  > 
>  >
>  > De: Jianshuo Niu [mailto:[EMAIL PROTECTED]
>  > Enviado el: jue 17/07/2008 22:22
>  > Para: Struts Users Mailing List
>  > Asunto: [SPAM] Re: Help please TOMCAT 5 + Struts
>  >
>  >
>  >
>  > I would take a look at the code first to see if there is any unclosed
>  > connection, loops, etc. Then, check the jdk version and tomcat config
>  > files.
>  >
>  >
>  > On Thu, Jul 17, 2008 at 4:10 PM, STRUTS SL. Mailing List <
>  > [EMAIL PROTECTED]> wrote:
>  >
>  > > The application is started well and after a few hours or minutes that
>  > stays
>  > > frozen. without accepting more users.
>  > >
>  > >thanks to all are very helpful
>  > >
>  > > 
>  > >
>  > > De: Jianshuo Niu [mailto:[EMAIL PROTECTED]
>  > > Enviado el: jue 17/07/2008 19:41
>  > > Para: Struts Users Mailing List
>  > > Asunto: [SPAM] Re: Help please TOMCAT 5 + Struts
>  > >
>  > >
>  > >
>  > > It looks like that something wrong in your code/archtechture. Was it slow
>  > > right after you deployed the app, or gettting slower during the
>  > operation?
>  > >
>  > > On Thu, Jul 17, 2008 at 12:45 PM, Paolo Niccolò Giubelli <
>  > > [EMAIL PROTECTED]> wrote:
>  > >
>  > > > Maybe you got some memory leak in your code. Use a memory-inspecting
>  > tool
>  > > > and check for static objects.
>  > > > If you check your memory usage, maybe you'll find that you eat all the
>  > > > memory available, so you should tune your tomcat server changing the
>  > > memory
>  > > > parameters.
>  > > > Regards,
>  > > > Paolo Niccolò Giubelli
>  > > >
>  > > > STRUTS SL. Mailing List ha scritto:
>  > > >
>  > > > Hello for everybody;
>  > > >>
>  > > >>
>  > > >> We have a big trouble with our Web Application. Our Tomcat 5.5 Server
>  > is
>  > > >> working properly, as we can see. The problem is concerning to the Web
>  > > >> Project. It's frizzing randomly. It doesn't matter how many time was
>  > > >> reloaded. From this moment never user can get in the Web Site. At the
>  > > >> browser address bar we can see the session id that was assigned to the
>  > > new
>  > > >> session, but never the home page is presented, and we must be going to
>  > > >> reload it. This reloading is making on the Tomcat Server.
>  > > >>
>  > > >>
>  > > >> Web application historical summary:
>  > > >>
>  > > >>
>  > > >> The Trapsatur Project was hosting on a Tomcat 4 Web Server, it was
>  > > >> installed in our offices. It was working almost properly, but slowly.
>  > > Cause
>  > > >> that, we decided to get out this Server to be housing at office's ISP,
>  > > front
>  > > >> to Internet. At this moment we passed to Tomcat 5.5.26. It was begin
>  > of
>  > > >> troubles.
>  > > >>
>  > > >>
>  > > >> We are adjusting the Web Application and the Tomcat Server
>  > continuously.
>  > > >> We resolved problems with DB connection, someone errors with SMTP
>  > > server. In
>  > > >> addition we adjusted several Tomcat's and JVM's parameters. Now we are
>  > > doing
>  > > >> some tests. We have assumed that the problem is the difference between
>  > > >> servlet.jar used by our Web Project, and the servlet.jar used by
>  > Tomcat
>  > > >> Server.
>  > > >>
>  > > >>
>  > > >> We want to thank in advance any help from any body.
>  > > >>
>  > > >> Best regard;
>  > > >>
>  > > >>
>  > > >> /* Some mistakes catalina.out */
>  > > >>
>  > > >>
>  > > >> Exception in thread "DefaultQuartzScheduler_Worker-0"
>  > > >> java.lang.OutOfMemoryError: PermGen space
>  > > >>
>  > > >> Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread"
>  > > >> java.lang.OutOfMemoryError: PermGen space
>  > > >>
>  > > >> Exception in thread "http-80-Processor31" java.lang.OutOfMemoryError:
> 

How can I store temporary data during user input procedure?

2008-07-18 Thread holod

Please, help me with suggestion.
My logic is:

1.PrepareLawAction is invoked. 
This action gets Law object from DB (if action received lawId parameter ) or
it prepares template Law object (just automatically fills some Law fields
which user can't modify).

2.Action sends user to processlaw.jsp
Here user inputs other fields of Law object or modifies them. All fields
like ,  and others are inside 

Now, problems which I can't solve:
1.PrepareLawAction already made the Law instance. This object can be
accessed from processlaw.jsp, but the next action (StoreLawAction) after
processlaw.jsp will not "see" my Law object. Is it good practice to store
Law object in session (PrepareLawAction will do it) and then retrieve it in
StoreLawAction?

2. When user is on the processlaw.jsp he can go to other jsp page to specify
special complicated input. I want to allow user to go to this page, but I
don't want to loose user input on processlaw.jsp. How can I do it? 

Please, see my drawing:



http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg 
-- 
View this message in context: 
http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Why we need struts.action.extension property

2008-07-18 Thread Igor Vlasov

Hello. I wrote a simple s2 application.

I described a filter in web.xml

  
struts2
   
org.apache.struts2.dispatcher.FilterDispatcher
  
  
  
struts2
*.jspa
FORWARD 
REQUEST 
  

but i forgot a struts.properties file and "struts.action.extension=jspa"

AND my project does not WORK


My question: why we need to write "struts.action.extension=jspa" when we
already have  filter-mapping binding struts2->*.jspa
-- 
View this message in context: 
http://www.nabble.com/Why-we-need-struts.action.extension-property-tp18527639p18527639.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: How can I store temporary data during user input procedure?

2008-07-18 Thread Gabriel Belingueres
1 and 2: You could choose store your objects in session scope.
Even it may be the only way to do it, because you say that there are
Law fields that the user can't modify, which it discards the option of
rewriting those fields as hidden fields in your form (for security
reasons)

2008/7/18 holod <[EMAIL PROTECTED]>:
>
> Please, help me with suggestion.
> My logic is:
>
> 1.PrepareLawAction is invoked.
> This action gets Law object from DB (if action received lawId parameter ) or
> it prepares template Law object (just automatically fills some Law fields
> which user can't modify).
>
> 2.Action sends user to processlaw.jsp
> Here user inputs other fields of Law object or modifies them. All fields
> like ,  and others are inside 
>
> Now, problems which I can't solve:
> 1.PrepareLawAction already made the Law instance. This object can be
> accessed from processlaw.jsp, but the next action (StoreLawAction) after
> processlaw.jsp will not "see" my Law object. Is it good practice to store
> Law object in session (PrepareLawAction will do it) and then retrieve it in
> StoreLawAction?
>
> 2. When user is on the processlaw.jsp he can go to other jsp page to specify
> special complicated input. I want to allow user to go to this page, but I
> don't want to loose user input on processlaw.jsp. How can I do it?
>
> Please, see my drawing:
>
>
>
> http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
> --
> View this message in context: 
> http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Scope interceptor / Practical Apache Struts 2

2008-07-18 Thread tonalnagual



Selckin wrote:
> 
> Hello,
> 
> In Chapter 6 of "Practical Apache Struts 2 Web 2.0 Projects", It explains
> how to use the scope interceptor to create sort of wizard pages.
> I've been trying to figure these out, but cannot get this to work.
> Even the included example (downloadable from
> http://www.apress.com/book/view/1590599039 ) do not work for me.
> 
> I was hoping someone could try them and tell me if they are indeed broken
> or if i am doing something wrong. And what that might be?
> 
> Running the examples with no changes and when going to the second step in
> the workflow I get the following error:
> 
> HTTP ERROR: 500
> Error setting expression 'model' with value
> '[EMAIL PROTECTED]'
> 
> RequestURI=/app/event/selectLocation!input.action
> Caused by:
> Error setting expression 'model' with value
> '[EMAIL PROTECTED]' - [unknown location]
>   at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:171)
>   at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:146)
>   at
> org.apache.struts2.interceptor.ScopeInterceptor.before(ScopeInterceptor.java:321)
>   at
> org.apache.struts2.interceptor.ScopeInterceptor.intercept(ScopeInterceptor.java:424)
>   < cut >
> Caused by: No object in the CompoundRoot has a publicly accessible
> property named 'model' (no setter could be found). - [unknown location]
>   at
> com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:68)
>   at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
>   at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
>   at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> < cut > 
> Can provide full stack trace if needed
> 
> The following is also outputted from the example.
> 
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'duration' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'duration' with value '[Ljava.lang.String;@602f892f'
> 14-feb-2008 20:10:30
> com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'name' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'name' with value '[Ljava.lang.String;@50d79dfe'
> 14-feb-2008 20:10:30
> com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'timeZoneOffset' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'timeZoneOffset' with value '[Ljava.lang.String;@52a53948'
> 14-feb-2008 20:10:30
> com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> 
> Thanks.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

Hi try to use.



model
partialEvent





-- 
View this message in context: 
http://www.nabble.com/Scope-interceptor---Practical-Apache-Struts-2-tp15487610p18528647.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Why we need struts.action.extension property

2008-07-18 Thread Gabriel Belingueres
AFAIK, the Servlet API doesn't expose any standard way to know the
mapping associated to a filter. Maybe that's way.

2008/7/18 Igor Vlasov <[EMAIL PROTECTED]>:
>
> Hello. I wrote a simple s2 application.
>
> I described a filter in web.xml
>
>  
>struts2
>
> org.apache.struts2.dispatcher.FilterDispatcher
>  
>
>  
>struts2
>*.jspa
>FORWARD
>REQUEST
>  
>
> but i forgot a struts.properties file and "struts.action.extension=jspa"
>
> AND my project does not WORK
>
>
> My question: why we need to write "struts.action.extension=jspa" when we
> already have  filter-mapping binding struts2->*.jspa
> --
> View this message in context: 
> http://www.nabble.com/Why-we-need-struts.action.extension-property-tp18527639p18527639.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Scope interceptor / Practical Apache Struts 2

2008-07-18 Thread tonalnagual



Selckin wrote:
> 
> Hello,
> 
> In Chapter 6 of "Practical Apache Struts 2 Web 2.0 Projects", It explains
> how to use the scope interceptor to create sort of wizard pages.
> I've been trying to figure these out, but cannot get this to work.
> Even the included example (downloadable from
> http://www.apress.com/book/view/1590599039 ) do not work for me.
> 
> I was hoping someone could try them and tell me if they are indeed broken
> or if i am doing something wrong. And what that might be?
> 
> Running the examples with no changes and when going to the second step in
> the workflow I get the following error:
> 
> HTTP ERROR: 500
> Error setting expression 'model' with value
> '[EMAIL PROTECTED]'
> 
> RequestURI=/app/event/selectLocation!input.action
> Caused by:
> Error setting expression 'model' with value
> '[EMAIL PROTECTED]' - [unknown location]
>   at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:171)
>   at
> com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java:146)
>   at
> org.apache.struts2.interceptor.ScopeInterceptor.before(ScopeInterceptor.java:321)
>   at
> org.apache.struts2.interceptor.ScopeInterceptor.intercept(ScopeInterceptor.java:424)
>   < cut >
> Caused by: No object in the CompoundRoot has a publicly accessible
> property named 'model' (no setter could be found). - [unknown location]
>   at
> com.opensymphony.xwork2.util.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:68)
>   at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
>   at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
>   at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> < cut > 
> Can provide full stack trace if needed
> 
> The following is also outputted from the example.
> 
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'duration' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'duration' with value '[Ljava.lang.String;@602f892f'
> 14-feb-2008 20:10:30
> com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'name' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'name' with value '[Ljava.lang.String;@50d79dfe'
> 14-feb-2008 20:10:30
> com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting 'timeZoneOffset' on 'class
> com.fdar.apress.s2.actions.event.EnterEventDetailsAction: Error setting
> expression 'timeZoneOffset' with value '[Ljava.lang.String;@52a53948'
> 14-feb-2008 20:10:30
> com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
> 
> Thanks.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Scope-interceptor---Practical-Apache-Struts-2-tp15487610p18528890.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Struts2: display int in JSP

2008-07-18 Thread Alberto A. Flores
Please remember that because of java's autboxing, you shouldn't have 
much problems (other than the cases when you are expecting zero). So 
changing the type (from int to Integer) is really not a dramatic change.


Phan, Hienthuc T wrote:

That works.  Thanks.  I'm migrating from Struts 1 & was hoping not have
to change the data type.   



-Original Message-
From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 17, 2008 2:24 PM

To: Struts Users Mailing List
Subject: RE: Struts2: display int in JSP

Use Integer instead of int

Regards,

Jishnu Viswanath

Software Engineer

*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll

Tavant Technologies Inc.,

www.tavant.com

PEOPLE :: PASSION :: EXCELLENCE

-Original Message-
From: Phan, Hienthuc T [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2008 2:35 AM

To: Struts Users Mailing List
Subject: Struts2: display int in JSP


Hi,

In my action, I have several variables of type int.  When the variable
is not initialized, it's displayed as 0 in the JSP.  I would like
un-initialized variable of type int to be display as blank/empty.  What
is the best way to accomplish this?  Thanks.

Public class XXAction extends ActionSupport
{
private int age;
private String name = new String("xyz");
private String email;

//getters & setters
}


JSP page would display:

Name:   xyz
Email:  
Age:0


Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates
is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.
Any comments or statements made in this email are not necessarily those
of Tavant Technologies.
The information transmitted is intended only for the person or entity to
which it is addressed and may 
contain confidential and/or privileged material. If you have received
this in error, please contact the 
sender and delete the material from any computer. All e-mails sent from
or to Tavant Technologies 
may be subject to our monitoring procedures.



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

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


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




--

Alberto A. Flores
http://www.linkedin.com/in/aflores


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

Re: Why we need struts.action.extension property

2008-07-18 Thread Dave Newton
--- On Fri, 7/18/08, Igor Vlasov <[EMAIL PROTECTED]> wrote:
> but i forgot a struts.properties file and
> "struts.action.extension=jspa"
> 
> AND my project does not WORK
> 
> 
> My question: why we need to write
> "struts.action.extension=jspa" when we
> already have  filter-mapping binding struts2->*.jspa

So Struts 2 itself knows what extension is being used for actions.

Note that mapping the S2 filter to something other than "/*" will break a few 
things unless we work around it. I added a note to the web.xml documenation 
[1], but basically unless we do something to get the static content served 
(extracting the files, etc.) things will break.

Dave

[1] web.xml coniguration documentation (new note won't show up right away)
http://struts.apache.org/2.x/docs/webxml.html


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



Re: How can I store temporary data during user input procedure?

2008-07-18 Thread Owen Berry
Another option is to store it as a temporary record in the database
(assuming you're using one). It could either be in a temporary table,
or marked as an incomplete record in some way. An advantage of this
approach is that the record is not lost if the server is restarted
while the user is busy (unless you're storing session information in
the db anyway), or if their browser crashes. You'll have to have some
way of notifying them of these records in case they're left
incomplete.

On Fri, Jul 18, 2008 at 8:52 AM, Gabriel Belingueres
<[EMAIL PROTECTED]> wrote:
> 1 and 2: You could choose store your objects in session scope.
> Even it may be the only way to do it, because you say that there are
> Law fields that the user can't modify, which it discards the option of
> rewriting those fields as hidden fields in your form (for security
> reasons)
>
> 2008/7/18 holod <[EMAIL PROTECTED]>:
>>
>> Please, help me with suggestion.
>> My logic is:
>>
>> 1.PrepareLawAction is invoked.
>> This action gets Law object from DB (if action received lawId parameter ) or
>> it prepares template Law object (just automatically fills some Law fields
>> which user can't modify).
>>
>> 2.Action sends user to processlaw.jsp
>> Here user inputs other fields of Law object or modifies them. All fields
>> like ,  and others are inside 
>>
>> Now, problems which I can't solve:
>> 1.PrepareLawAction already made the Law instance. This object can be
>> accessed from processlaw.jsp, but the next action (StoreLawAction) after
>> processlaw.jsp will not "see" my Law object. Is it good practice to store
>> Law object in session (PrepareLawAction will do it) and then retrieve it in
>> StoreLawAction?
>>
>> 2. When user is on the processlaw.jsp he can go to other jsp page to specify
>> special complicated input. I want to allow user to go to this page, but I
>> don't want to loose user input on processlaw.jsp. How can I do it?
>>
>> Please, see my drawing:
>>
>>
>>
>> http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
>> --
>> View this message in context: 
>> http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: How can I store temporary data during user input procedure?

2008-07-18 Thread holod

How can I do that?
Anyway, if user goes to the other page to make special input (then he comes
back to finish main process)
I have to submit his input to server. it means i can't use link to
ListLawStatusAction, I have to make submit to this action, it will store
input parameters inside Law object which is in the session.
How Can I submit the same form to different actions using struts2 tags?


Gabriel Belingueres-2 wrote:
> 
> 1 and 2: You could choose store your objects in session scope.
> Even it may be the only way to do it, because you say that there are
> Law fields that the user can't modify, which it discards the option of
> rewriting those fields as hidden fields in your form (for security
> reasons)
> 
> 2008/7/18 holod <[EMAIL PROTECTED]>:
>>
>> Please, help me with suggestion.
>> My logic is:
>>
>> 1.PrepareLawAction is invoked.
>> This action gets Law object from DB (if action received lawId parameter )
>> or
>> it prepares template Law object (just automatically fills some Law fields
>> which user can't modify).
>>
>> 2.Action sends user to processlaw.jsp
>> Here user inputs other fields of Law object or modifies them. All fields
>> like ,  and others are inside 
>>
>> Now, problems which I can't solve:
>> 1.PrepareLawAction already made the Law instance. This object can be
>> accessed from processlaw.jsp, but the next action (StoreLawAction) after
>> processlaw.jsp will not "see" my Law object. Is it good practice to store
>> Law object in session (PrepareLawAction will do it) and then retrieve it
>> in
>> StoreLawAction?
>>
>> 2. When user is on the processlaw.jsp he can go to other jsp page to
>> specify
>> special complicated input. I want to allow user to go to this page, but I
>> don't want to loose user input on processlaw.jsp. How can I do it?
>>
>> Please, see my drawing:
>>
>>
>>
>> http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
>> --
>> View this message in context:
>> http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18532322.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: How can I store temporary data during user input procedure?

2008-07-18 Thread Miguel
You could use the scope interceptor to store your object in the
session or application context, and have injected directly with a
getter/setter in the configured actions that use the object, without
having to write code to push/pop from the session.

http://struts.apache.org/2.1.2/docs/scope-interceptor.html
The scope interceptor also exists and works identically in the 2.0.x family

Si quieres ser más positivo, pierde un electrón
Miguel Ruiz Velasco S.


On Fri, Jul 18, 2008 at 10:45 AM, Owen Berry <[EMAIL PROTECTED]> wrote:
> Another option is to store it as a temporary record in the database
> (assuming you're using one). It could either be in a temporary table,
> or marked as an incomplete record in some way. An advantage of this
> approach is that the record is not lost if the server is restarted
> while the user is busy (unless you're storing session information in
> the db anyway), or if their browser crashes. You'll have to have some
> way of notifying them of these records in case they're left
> incomplete.
>
> On Fri, Jul 18, 2008 at 8:52 AM, Gabriel Belingueres
> <[EMAIL PROTECTED]> wrote:
>> 1 and 2: You could choose store your objects in session scope.
>> Even it may be the only way to do it, because you say that there are
>> Law fields that the user can't modify, which it discards the option of
>> rewriting those fields as hidden fields in your form (for security
>> reasons)
>>
>> 2008/7/18 holod <[EMAIL PROTECTED]>:
>>>
>>> Please, help me with suggestion.
>>> My logic is:
>>>
>>> 1.PrepareLawAction is invoked.
>>> This action gets Law object from DB (if action received lawId parameter ) or
>>> it prepares template Law object (just automatically fills some Law fields
>>> which user can't modify).
>>>
>>> 2.Action sends user to processlaw.jsp
>>> Here user inputs other fields of Law object or modifies them. All fields
>>> like ,  and others are inside 
>>>
>>> Now, problems which I can't solve:
>>> 1.PrepareLawAction already made the Law instance. This object can be
>>> accessed from processlaw.jsp, but the next action (StoreLawAction) after
>>> processlaw.jsp will not "see" my Law object. Is it good practice to store
>>> Law object in session (PrepareLawAction will do it) and then retrieve it in
>>> StoreLawAction?
>>>
>>> 2. When user is on the processlaw.jsp he can go to other jsp page to specify
>>> special complicated input. I want to allow user to go to this page, but I
>>> don't want to loose user input on processlaw.jsp. How can I do it?
>>>
>>> Please, see my drawing:
>>>
>>>
>>>
>>> http://www.nabble.com/file/p18523944/parliament%2Bsheme.jpg
>>> --
>>> View this message in context: 
>>> http://www.nabble.com/How-can-I-store-temporary-data-during-user-input-procedure--tp18523944p18523944.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Error global-Forwards

2008-07-18 Thread danipruebas
Hi, i have a problem, let me explain. I have one globalforward as a html:link 
defined in a jsp page, after clicking it, it should execute the corresponding 
action class and display the results in another jsp page.

Page1Link (global forward to *.do -- not to .jsp) -->calls actionClass.java --> 
 Page2 showing bean with retrieved data from actionClass (session scope)

The problem is that nothing happens , I mean nothing is displayed in the Page2 
(nor data and html tags), and no System.out from ActionClass is displayed. In 
the navigator bar (MS internet explorer) appears: 
http://localhost:8080/myproject/actionClass.do

Any suggestion or ideas? I´ve been checking the struts-config.xml and do not 
know what could be wrong.

Thanks in advance,


connext Graph documentation

2008-07-18 Thread Pedro Herrera

Hi,
   I´m using connext Graph plugin. Where I find more documentation in depth
? I need to do linegraphs ..

Herrera
-- 
View this message in context: 
http://www.nabble.com/connext-Graph-documentation-tp18537351p18537351.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: connext Graph documentation

2008-07-18 Thread Dave Newton
--- On Fri, 7/18/08, Pedro Herrera <[EMAIL PROTECTED]> wrote:
> I´m using connext Graph plugin. Where I find more
> documentation in depth? I need to do linegraphs ..

Did you try the connext-graphs documentation? There's a link to the project 
home page on the plugin page:

https://connext-graphs.dev.java.net/

Dave


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