• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Plain html link

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all I am trying to figure out how to set up a simple html link so that a user can navigate from one page to the next. there isn't any data that has to be remembered. I am getting a 404 error with the various manners that I have tried. I was using <a href="custSummaryScreen.jsp">Customer Summary</a>
but I am going on the standard that one should never be given direct access to a jsp, and trying to adjust the application to work with that standard. Any suggestions or explanations would be much appreciated.

thanks in advance for your time on this matter.
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you plan on sending the user to an action instead of a jsp? You might want to look into using the html:link tag since that helps out with creating a full URL.

http://struts.apache.org/1.1/userGuide/struts-html.html#link

- Brent

P.S. I am surprised somebody has not bugged you about your name...unless "A" is in fact your real first name.
 
A knibbs
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Brent Sterling:
Do you plan on sending the user to an action instead of a jsp? You might want to look into using the html:link tag since that helps out with creating a full URL.

http://struts.apache.org/1.1/userGuide/struts-html.html#link

- Brent

P.S. I am surprised somebody has not bugged you about your name...unless "A" is in fact your real first name.



I'll have to change my display name. Thought it was more to reduce people from putting obsenities and just to have a reference for who you are talking to.

The end result is just to send them to a jsp page, but from the struts information I have read I was under the impression that you should never give an outside user direct access to a page, that they should follow through the controller for each one. If I am misunderstanding please inform me so that I can clarify best practices.
 
A knibbs
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Brent Sterling:

P.S. I am surprised somebody has not bugged you about your name...unless "A" is in fact your real first name.



Was going to change my display name and was reading the conventions again to ensure that I met all the criteria and found that this information was in the naming policy:

You can even use initials for the first name if you like.

 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree that "best practices" say that in a Struts application access to pages should go through an action. Have you tried using html:link with either the page or action attribute?

- Brent...if that is indeed my real name ;-)

P.S. I guess I will just have to fill in the blank myself...maybe Abigail, Albert, Alex, Alicia, or Alphonse?
 
A knibbs
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Brent Sterling:
I agree that "best practices" say that in a Struts application access to pages should go through an action. Have you tried using html:link with either the page or action attribute?

- Brent...if that is indeed my real name ;-)

P.S. I guess I will just have to fill in the blank myself...maybe Abigail, Albert, Alex, Alicia, or Alphonse?



Found out that it was a typo that was preventing me from getting it to work.

Maybe AKA ;-P
 
incandescent light gives off an efficient form of heat. You must be THIS smart to ride this ride. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic