In the welcome page, all visitors of the web site can choose to view any article that is available in the database. But, visitors will not be able to delete or update any of those articles (DELETE, UPDATE, etc. buttons are not provided). This part of my
struts application works well. I have a drop-down list enclosed in <html:form> for visitors to make a selection and submit it for an action to be taken:
Visitor can choose articles by title, author, category, content, or article ID. If "author" is selected from the drop-down list and the name of the author "Victor Hugo" is supplied, keyName will be set as creator and keyValue will be set as Victor Hugo for further processing as shown in my struts-config.xml below:
After a registered visitor successfully logs in, a user specific page is displayed. For example, after the author Victor Hugo who has submitted several of his articles at the web site logs in, he will see a page with "Submit Article" and "View Article" (IT IS A LINK OR A BUTTON. IT IS NOT A DROP DOWN LIST), etc. The author can view his own articles only because DELETE, UPDATE, etc. buttons will be provided.
I am stuck here. There is no drop-down list for Victor Hugo. How do I supply keyName (which is "creator") and keyValue (request.getRemoteUser) to the action below if Victor Hugo clicks on the "View Article" button?