Well - after hours of trouble-shooting I finally figured out what my problem
was. The error was in my web.xml:
StrutsExample
org.apache.pluto.core.PortletServlet
portlet-class
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher
Hello,
Looking at this link: http://cwiki.apache.org/WW/velocity-tags-old.html
I'm still trying to figure out how to support the "#tag( Component " - in
Struts 2.
Is it possible? or is there an newer way of doing the same thing.
Carlo.
Please don't reply to this mail. I have solved issue and it work the way I
expect. It is surprising that in case of file upload JQuery's Form Plugin is
not picking form's action attribute value and request was not reaching to my
action class. When I explicitly pass url's value to ajaxForm("options"
You could use ScopedModelDriven with your Model defined to hold all your
properties name, age, height, hair color and eye color.
I have been using this for two wizards and it works very nicely. You do not
need to worry about persisting the model between pages, let the framework do it
for you.
--- On Fri, 12/5/08, Peterson, Ryan wrote:
> I've heard rumblings about using session, so I thought
> I'd avoid it this time to implement something "clever".
Most of the clever solutions are just hiding session use, and there are a
couple ways to wrap that up in Struts, including Spring scoped be
Thanks Dave!
I've heard rumblings about using session, so I thought I'd avoid it this
time to implement something "clever". :-)
In the end, simplicity prevails!
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2008 11:57 AM
To: Struts Users Mail
The quickest/easiest solutions are chaining (boo hiss) or just keeping a form
model in the session like in any other framework.
Dave
--- On Fri, 12/5/08, Peterson, Ryan wrote:
> I have a form filled out that may require additional info,
> which I have
> a 2nd jsp form for. How can I carry over
Hello all,
I have a form filled out that may require additional info, which I have
a 2nd jsp form for. How can I carry over the already entered parameters
from the first form to the second, so that all info may be submitted to
an action.
For example: data is collected from form1.jsp. Say nam
Did you try to debug your application? Or try to see from what
Action/JSP its called! Or create a Interceptor to print a log:
public class Log4JInterceptor extends AbstractInterceptor {
@Override
public String intercept(ActionInvocation invocation) throws Exception {
String comand
Thanks Dave for prompt reply.
Yes, I have defined inputStream property in action class like below.
*private InputStream inputStream;
public InputStream getInputStream() {
return inputStream;
}
public void setInputStream(InputStream inputStream) {
this.inputStream = inputS
--- On Fri, 12/5/08, Raghu wrote:
> I am trying to implement Ajax File Upload using
> JQuery's Form Plugin which uses iframe internally.
JQuery's Form Plugin doc says it support response
> type of HTML or XML.
>
> Without Ajax, my file upload works fine. I am not sure what
> result type to choos
Hi,
I am trying to implement Ajax File Upload using JQuery's Form Plugin which
uses iframe internally. JQuery's Form Plugin doc says it support response
type of HTML or XML.
Without Ajax, my file upload works fine. I am not sure what result type to
choose for ajax response.
If I use type="stream"
newton.dave wrote:
>
> I'd try #object first, since it's a named context variable created on the
> page.
>
> Dave
>
thank you, this works great.
--
View this message in context:
http://www.nabble.com/OGNL-and-instanceof-tp20850061p20858557.html
Sent from the Struts - User mailing list arch
Hi All,
I am using struts 1.3. But i think this issue might be in Struts 2.0. When i
upload an excel file with name Book1.xls
or a word document Document1.doc or Book1.doc it doesn't recognize the word
document as "application/msword" rather it treats
it as 'application/octet-stream" similarily fo
Thanks for the quick reply. I changed:
per your suggestion. I still get the same error:
INFO: Portlet Context '/StrutsExample' registered.
Dec 5, 2008 9:48:48 AM org.apache.pluto.core.PortletContextManager register
INFO: Registered portlet application with applicati
On Fri, Dec 5, 2008 at 3:50 PM, Phillips, Bruce A <[EMAIL PROTECTED]> wrote:
> We have been using the Pluto 1.1.6 Portlet container
> (http://portals.apache.org/pluto/) to test our JSR-168 portlets. Our
> team needs help learning the correct way to setup a Struts 2 portlet to
> run within the Plut
I'm using Struts 1.3.5.
I've run into a snag lately that my struts-config.xml controller nocache
setting is causing IE to not download/display a PDF from one of my actions (see
http://support.microsoft.com/?kbid=323308). I thought I could selectively turn
off the nocache attribute for the sing
thanks for your help. i use tiles 2 now. with the common dependencies
includet in the distribution.
now, my tomcat log says:
05.12.2008 16:05:23 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Error configuring application listener of class
org.apache.tiles.web.startup.Tiles
We have been using the Pluto 1.1.6 Portlet container
(http://portals.apache.org/pluto/) to test our JSR-168 portlets. Our
team needs help learning the correct way to setup a Struts 2 portlet to
run within the Pluto 1.1.6 portlet container. We've studied the Struts
2 example portlet tutorial
(http
You can do it. Just remember the whole pipeline of the
RequestProcessor will be executed for the forward.
Paul
On Fri, Dec 5, 2008 at 4:17 AM, Lukasz Lenart
<[EMAIL PROTECTED]> wrote:
> 2008/12/5 hello_everyone <[EMAIL PROTECTED]>:
>> so how can i solve .do issue. the jsp files are not under WEB-
--- On Fri, 12/5/08, Johannes Geppert wrote:
> i want to iterate above an List with different Objects.
> How can i use instanceof to differ the Object.
> [...]
>
I'd try #object first, since it's a named context variable created on the page.
Dave
--
2008/12/5 Vinoth.t <[EMAIL PROTECTED]>:
> private String city;
>
>public Employee(Integer employeeId, String firstName, String lastName,
>Integer age, Department department, String city) {
>this.employeeId = employeeId;
>this.firstName
Hi,
I'm new to Struts. I extract struts-crud.war file in TomCat's webapps
folder. Its work fine I changed jsp file to add a field but it shows error
msg.
First I add a field in emplkoyeeForm.jsp as follow
I added a line in classes/guest.property as follow
label.city=City
In struts-crud\W
anybody has the answer?
On Thu, Dec 4, 2008 at 2:05 PM, Eugenio Perrotta Neto <
[EMAIL PROTECTED]> wrote:
> the code is here:
>
>
>
> i have a tag file called page.tag
>
>
> <%@ tag body-content="scriptless" %>
> <%@ tag pageEncoding="UTF-8" %>
> <[EMAIL PROTECTED] prefix="s" uri="/struts-tags" %
Remember that struts tags are rendered server-side and all you have
left on the client side is HTML. So you can't "communicate" with the
struts tags from JavaScript (which runs in the browser). You have to
use JavaScript to manipulate the DOM that is created from the
generated HTML.
Nils-H
On Fri
Hello all,
I am having a peculiar problem. How do i assign the values from javascript
to struts tag.
consider as an example Suppose I have a javascript in a jsp page that
contains lots of struts tags. from javascript based on some
formula.i assign a list of values say 1,2,3 and wan
2008/12/5 hello_everyone <[EMAIL PROTECTED]>:
> so how can i solve .do issue. the jsp files are not under WEB-INF. so in
> struts-config.xml it requires path to jsp. and if i try with .do, it finds
> nothing.
As far I remember, you can't use action for forwards, except with
redirect attribute set
Sure I succeeded wrapping the String to Date conversion outside of the
action class with custom type conversion class.
I guess I expected that when uses java.util.Date
property when rendering the HTML, I will get the new value in the same
property after submitting the form which holds the
Since
Typically you would use JDBC or a database framework for this.
http://www.google.com/search?q=jdbc+stored+procedure
Nils-H
On Fri, Dec 5, 2008 at 9:48 AM, hello_everyone <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can anyone suggest some samples for running stored procedures from strut
> application?
>
Hello,
i want to iterate above an List with different Objects.
How can i use instanceof to differ the Object.
I try it this way:
do something with Class One
do something with Class Two
It does not work!
But it does not work. It runs evertime in the else branch.
Have a
so how can i solve .do issue. the jsp files are not under WEB-INF. so in
struts-config.xml it requires path to jsp. and if i try with .do, it finds
nothing.
regards
On Thu, Dec 4, 2008 at 6:22 PM, Greg Lindholm <[EMAIL PROTECTED]> wrote:
>
> You don't need to keep your jsp's under WEB-INF, you c
Hi,
Can anyone suggest some samples for running stored procedures from strut
application?
Regards
32 matches
Mail list logo