• 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

<c:url param passes null always

 
Ranch Hand
Posts: 49
Eclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am finding difficult to pass parameter value from one jsp to another in my struts application. Below are my code


Whenever i click the link . It Shows contactno always null

http://localhost:8080/Elclass/Prf/insertprfArticle.do?contractno=&action=insertArticle.

Can you please point out where i am wrong?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DO you mean null, or empty? They're not the same thing.

In your URL, the value of the parameter is empty.
 
Abdul Wahab
Ranch Hand
Posts: 49
Eclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi bear,
Sorry. It shows empty. Contract No value is set using Agent dropdown list. Below are the code for reference
 
Abdul Wahab
Ranch Hand
Posts: 49
Eclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I tried passing other values still it shows empty. Only constant values (hard coded vales) are accepting.
Guess there might be some issues with my form bean or struts config file. i have attache by form bean and


struts config file

Here /saveprf action to save Prf.jsp. /Prf/insertprfArticle action to call PrfArticle.jsp . To call this page i am using <c:url>
 
Abdul Wahab
Ranch Hand
Posts: 49
Eclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
Still confused why the value shows empty . any help on this will be great
 
Abdul Wahab
Ranch Hand
Posts: 49
Eclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
Still unable to find the solution. i created a seperate action (i am using Dispatch action here), to load the form and when i
reloaded the form the url parameter values are passed from one page to another. seems strange
reply
    Bookmark Topic Watch Topic
  • New Topic