• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts2 dojo not working on RAD7 WS6.1

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if Struts2 dojo works with RAD7 Websphere server 6.1? I tried a struts2 example but it seems that dojo part is not working. Anyone has any idea or suggestions?

Thanks
Rich
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What example do you try?
Can you post more details, f.e. error message?

Do you install Web 2.0 feature pack on WAS?
Do you use RAD 7.0 or 7.5?

 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mikle,

Thanks a lot for your reply.

1) I was following a tutorial Struts 2 + Spring 2 + JPA + AJAX at Apache Struts2 web site.


2) I am using RAD7.0 and WAS6.1. I did not install Web 2.0 feature pack on WAS before I saw you reply. I have installed it now.

3) Now I am seeing this error:


FreeMarker template error!
Expression parameters. pushId is undefined on line24, column 6 in template/ajax/a-close.ftl.
The problematic instruction:
----------
==> if parameters. pushId [on line 24, column 1 in template/ajax/a-close.ftl]



4) Isn't Struts2 embeded with Dojo? Why do we need Web2.0 feature pack?

5) I was following IBM's Redbook: Building Dynamic Ajax Applications Using WebSphere Feature Pack for Web 2.0 to install the Web 2.0 feature pack. I did not see PlantsByWebSphere example in IBM WebSphere Application Server Feature Pack by navigating File → New → Other Examples → IBM WebSphere Application Server Feature Pack for Web 2.0 samples. I am trying to find out why I am unable to see that. Can you see it? Not sure what I have missed.

Any help would be greatly appreciated.

Rich

 
Mikle Myznikov
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what jsp page throw this error?

try to use <sx:submit /> rather than <s:submit /> (see https://issues.apache.org/struts/browse/WW-1953 for more details)

BTW, what Struts2 version do you use?
 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mikle,

I reinstall the app and that error is gone. Actually I found out what the real error is. This shows in Fire fox error console:

=======================================
Error: missing ; before statement
Source File: http://localhost:9080/quickstart/struts/dojo/dojo.js
Line: 11191
Source Code:
Error 404: SRVE0190E: File not found: /struts/dojo/dojo.js
========================================

This is web.xml. I did not change anything.



Anything wrong with the config? It works in Tomcat.

Thanks so much,

Rich
 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, forget this: I am using struts 2.06
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic