Dear all,
I'm testing Struts2 with IBM RAD, and deploying my programs on WebSphere.
But the server goes down frequently, and I find error log as following.
Could someone tell me what to do? Thanks!
[08-3-12 12:28:04:328 CST] 004c SystemErr R
java.io.NotSerializableException: freema
HI,
I have inserted some values(userId,password,email,address,phoneno and id as
primary key with autoincrement) into database.After logging into the
application,i have kept the userId in session and retrived remaining values
by passing userId into database.And then,I have set these values to my
--
View this message in context:
http://www.nabble.com/How-to-Populate-jsp-with-values-in-the-database---tp15998376p15998376.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAI
i used struts 2.0.6
i need to schedule a task
i've read the documentation, and it use quartz to schedule
but it don't tell how to implement quartz in struts 2.
can someone help me, or there's another way to schedule a task in struts 2
thx
--- bugs_ <[EMAIL PROTECTED]> wrote:
> I must find some good tutorial for ognl
http://struts.apache.org/2.x/docs/ognl.html
http://struts.apache.org/2.x/docs/ognl-basics.html
http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html
Dave
-
%{#attr.varName} works fine. Thank you everybody
I am so happy :-D
I must find some good tutorial for ognl
newton.dave wrote:
>
> #attr.title will search through the various scopes.
>
> --- Laurie Harper <[EMAIL PROTECTED]> wrote:
>> If you're using 2.0.11.1, Struts tags do not allow JSTL ex
#attr.title will search through the various scopes.
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> If you're using 2.0.11.1, Struts tags do not allow JSTL expressions. You
> need to use OGNL instead. I don't recall the OGNL syntax for accessing
> page-scope variables, but it's probably something
--- Chris Pat <[EMAIL PROTECTED]> wrote:
> Can I from an Action populate a formbean, from a database, set
> it in the session and forward to a jsp that is configured to use that
> formbean as the encompassing formbean for the form?
Sure, but you shouldn't need to set it in the session yourself;
If you're using 2.0.11.1, Struts tags do not allow JSTL expressions. You
need to use OGNL instead. I don't recall the OGNL syntax for accessing
page-scope variables, but it's probably something like %{title}, or
%{#title}. Check the OGNL documentation to be sure if someone else
doesn't chime in
Hello
Excuse my niavete, but I have never used a formbean for other than retrieving
string data from a form. For output I have just used simple struts and jstl
for output. Now I want to reverse it and would like to use more sophisticated
struts tags with collections in the form bean. Simple (
But
<%
// declare or construct your variable...
String title="My page";
// set the variable in the page context under the variable name "title"
pageContext.setAttribute("title",title);
%>
This return the same error. Could you write me here any simple working
example?
Musachy Barroso
I jumped the gun too quick on this one. I did get it to work, but it prevent
the ajax portion to work. At least I know it works, I'll investigate on the
struts ajax issue separately.
Thank You,
Doug
Doug Pham <[EMAIL PROTECTED]> wrote: Hi All,
I am experimenting with the "quickstart" app
Excellent, this is great and made everything work.
Thank you very much for the quick response.
- Pascal
Dale Newfield wrote:
Euphreme Rinfrett wrote:
I'm trying to use to "stream" result type to get some images to
display within a portal.
class="displayExerciceAction">
I assume that you're talking about a Struts 2 portlet since you're
saying "within a portal"? If not, just disregard my response.
A (jsr168)portlet can't render binary content (some jsr168 portlet
containers have proprietary extensions to do this, but it's not
supported by the framework), so you ne
Euphreme Rinfrett wrote:
I'm trying to use to "stream" result type to get some images to
display within a portal.
class="displayExerciceAction">
${model.imageContentType}
${model.image}
name="contentDisposition">filename="${model.nam
Hi All,
I am experimenting with the "quickstart" application from the struts 2
tutorial links (http://cwiki.apache.org/WW/struts-2-spring-2-jpa-ajax.html). I
have updated the struts version to 2.0.11.1 and spring to 2.5.2. Everything
works great but when I added sitemesh to the pom, I got
I wouldn't put a DAO or a business object there. Here is a good example.
http://struts.apache.org/1.x/faqs/actionForm.html
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: "Zhang, Larry (L.)" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: T
Hi all,
I'm trying to use to "stream" result type to get some images to
display within a portal.
Based on the wiki page: http://struts.apache.org/2.x/docs/stream-result.html
I did my own action that gets an image and puts it into a model.
This is the struts configuration:
class="d
I am using a jboss/tomcat/struts 1.1 combination on a windows server.
I have an action definition defined like so:
So Urls will take the form of http://host/search.go?str=blabla&parm=bla2
I would like to alter the URL to include path_info like this:
http://host/search.go/test/test2
Thanks Ealden, this was very helpful!
I tried that and it works fine.
Question, say I wish to check for a date, so far I've been doing it this
way:
example
private Date delta;
@TypeConversion(converter="com.utilities.conversion.DateTypeConversion")
public void setDelta(Date d
Same stuff I said last time.
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> Date: Fri, 7 Mar 2008 09:00:03 -0800 (PST)
> From: Dave Newton <[EMAIL PROTECTED]>
> Subject: Re: [S2] Load Testing and number of sessions
> To: Struts Users Mailing List
>
> --- Skip Hollowell <[EMAIL PROTECTED]> wrote:
>
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> I am trying to let people know about this new cool google thingy,
> that finds stuff for you :)
Right. Even if it did it'll never catch on.
Dave
>
> musachy
>
> On Tue, Mar 11, 2008 at 2:35 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> > ---
Figured I would follow up, as I hadn't heard anything from others.
OpenSTA (http://www.opensta.org/) falls in to the category of 'Open
Source Partial LoadRunner clone', and has been serving me well for most
of the last two days.
Any other recommendations?
Skip Hollowell wrote:
Hey all,
It'
I am trying to let people know about this new cool google thingy, that
finds stuff for you :)
musachy
On Tue, Mar 11, 2008 at 2:35 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> > http://answers.google.com/answers/threadview?id=371241
>
> Wow, you'
--- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> http://answers.google.com/answers/threadview?id=371241
Wow, you're like Meta-Google.
Dave
> On Tue, Mar 11, 2008 at 1:39 PM, bugs_ <[EMAIL PROTECTED]> wrote:
> >
> > I need rewrite jsp page from Struts 1 to Struts 2.
> >
> > In Strust 1 is in th
http://answers.google.com/answers/threadview?id=371241
musachy
On Tue, Mar 11, 2008 at 1:39 PM, bugs_ <[EMAIL PROTECTED]> wrote:
>
> I need rewrite jsp page from Struts 1 to Struts 2.
>
> In Strust 1 is in the page something like this:
> <% String variable = ... %>
>
>
> I tried to rewrite
I need rewrite jsp page from Struts 1 to Struts 2.
In Strust 1 is in the page something like this:
<% String variable = ... %>
I tried to rewrite it in Struts 2:
<% String variable = ... %>
but this doesn't work. It return an error message: "According to TLD or
attribute directive in tag file,
--- xianwinwin <[EMAIL PROTECTED]> wrote:
> <%@ taglib uri="/struts-dojo-tags" prefix="sx" %>
Are you using S2.1?
/struts-dojo-tags is only for S2.1 and should be available if you have the
Dojo plugin on your classpath.
Dave
Hi all,
We have released new version of HDIV project.
--- New Features ---
* Support for Struts 2.0.11
* improvement to prevent Cross-site Request Forgery (CSRF) attacks: a random
token is included in all requests.
You can have a look at: http://www.hdiv.org
Struts 2 plugin: http://c
Hi there,
I'm trying to incorporate some the dojo in my application. for this I do:
I have a file that look like this:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/struts-dojo-tags" prefix="sx" %>
<%@ taglib uri="/WEB-INF/displ
ok i will do like this..
lets see what will be the results...
On 3/11/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > about entering valida data i am inputting valid data aal the tme..
>
> I'm skeptical. Turn "devMode" on and check your logs. It might a
--- aum strut <[EMAIL PROTECTED]> wrote:
> about entering valida data i am inputting valid data aal the tme..
I'm skeptical. Turn "devMode" on and check your logs. It might also be
related to the other issue, I suppose, but it's more likely that there is a
conversion or validator error.
Dave
--
thks dave for such an explanation.
i got what you are saying..i was really nt aware of the fact..
about entering valida data i am inputting valid data aal the tme..
On 3/11/08, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > i am using two jsp pages here n
--- aum strut <[EMAIL PROTECTED]> wrote:
> i am using two jsp pages here namely index.jsp for getting inputs
> HelloWorld.jsp-->for displaying the results..
> as indexs .jsp is being displayed on start up i have configuredit in
> web.xml
Okay, I've said like a million times that if you access the
I have a question regarding ActionForm... Is it a good idea to place the
Business Object in the action form? In my project, I do put the Data
transfer object into the action form, but I am not certain if this is a
good idea to put the business object as well into the action form. See
the following
well this time i am keen to answeryour questions.
i am using two jsp pages here namely index.jsp for getting inputs
HelloWorld.jsp-->for displaying the results..
as indexs .jsp is being displayed on start up i have configuredit in
web.xml
helloWorld.jsp i have configured it in struts.xml like th
--- aum strut <[EMAIL PROTECTED]> wrote:
> i hope this will help to find out the cause of the error.As its still
> giving the error.error message from the console attached namely
> consoleError when i am adding the "action extension to the action".
Are you accessing the JSP directly (as opposed to
Hi Dave,
I am attaching all the files namely
index.jsp
HelloWorld.jsp
TestAction.java
struts.xml
web.xml
consoleError
browser Message
i hope this will help to find out the cause of the error.As its still giving
the error.error message from the console attached namely consoleError when i
am adding
jerom,
i try 2.0.8, not the 2.0.11, and using velocity 1.5
work well :)
i just need add digister and velocity view
i think the velocity 1.5 classpath using webapp resource loader.
Frans
Strutters --
This is very preliminary, but I am considering the topic of automatic
action/id mappings. The stateless requirements for passing, hiding and
sending keys is a brittle process. Remembering to do it (everywhere),
getting the names matched up, the whole deal. Before I stop, drop, and
Nandana Mihindukulasooriya wrote:
Hi,
I want to use type conversion feature to convert set of values to
a list in my action as mentioned in the type conversion documentation
(Advanced Type Conversion/Collection and Map Support) [1]. I followed
the steps but still no luck. I have few questions
2008/3/11, Griffith, Michael * <[EMAIL PROTECTED]>:
>
> Would you then agree this is a bug or enhancement that could be made to
> the XSLTResult? Maybe a flush parameter could be added to the
> configuration of the result?
I don't think it is a bug of XSLTResult, since it "closes" (not simply
"fl
Antonio,
Would you then agree this is a bug or enhancement that could be made to
the XSLTResult? Maybe a flush parameter could be added to the
configuration of the result?
MG
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2008 2:25 AM
To: S
Frans Thamura wrote:
hi there
i got this error, when try to upgrade from 2.0.6 to 2.0.11, and upgrade
velocity to 1.5
anyone can help me out
[ERROR] DefaultActionInvocation - There was an exception while instantiating
the result of type org.apache.struts2.dispatcher.VelocityResult <
com.opensy
You don't need to introduce modules to do this. Just create the
sub-directory and move the JSP there, then update the reference to the
JSP in your action mapping in struts-config.xml. It should be straight
forward.
If you still can't get it going, post more details -- the configuration
you're
Thanks a lot for giving me proper direction.
I solved it by changing the bean scope from default 'singleton' to
'prototype' as suggested in the struts2-spring-jpa-ajax tutorial at
http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html
Thanks again..
-Rushikesh
On Mon, Mar 10, 2008 a
Hi,
I want to use type conversion feature to convert set of values to
a list in my action as mentioned in the type conversion documentation
(Advanced Type Conversion/Collection and Map Support) [1]. I followed
the steps but still no luck. I have few questions. (please excuse if
these questions
I have a colleague that succeed using struts modules but I'm not, do you
use struts modules too ?
Else have you done something particular in struts-config.xml file ?
Thanks for your advices.
Thomas Perelle.
[EMAIL PROTECTED]
Tél : 02 47 88 82 63
CNAV DSINDS
15 Avenue Jouhanneau
37078 Tours Céde
2008/3/10, Griffith, Michael * <[EMAIL PROTECTED]>:
>
> I believe (maybe incorrectly so) that the problem is caused by the
> XSLTResult calling close/flush when processing the result.
Mmm... It reminds me a thing.
When processing an XML file via a XML parser, the parser closes the stream
at the
49 matches
Mail list logo