Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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

struts

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ,
In <html:link> struts tag iam using the action attribute.what i have to give in action value
Ex:
I have <html:link action="/category">Category page</html:link>
in strits config.xml how i have to give this action
<action path="/category"
type="CategoryAction"
name="categoryForm"
scope="request"

<forward name="success" path="/category.jsp"/>

Is this the correct way of using action attribute in html:link tag
can any one suggest me..
tellme the url that i can get html:link action examples
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code you have written should work. Are you saying that it doesn't?
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having a problem with an augmented version of this example. I am trying to return a string which I build from an ArrayList in my Action. I can return simple text but I cannot get my string built from the ArrayList generated more than once. I get the response the first time but not the second and my code only executes to the point where I do:



I'm not getting any kind of errors in the stack or tomcat logs.

The only thing I see is this message in the Eclipse console when tomcat is shutting down:

INFO: Waiting for 4 instance(s) to be deallocated

It's not always four instances, usually depends on the number of times -1 that I have run the action

 
Yes, my master! Here is the tiny ad you asked for:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic