[opencms-dev] Passing a value from one jsp to another
Nacho Fernandez
snatcho at gmail.com
Fri Sep 22 15:09:23 CEST 2006
Ok, I thought you named your hidden input "carpetalink", so you should
change the hidden input to "carpetalink" or use "request.getParameter(
"carpeta" )". Hope this helps. Bye and good luck,
Nacho
On 9/22/06, maria.freixes_graells at alcatel.es <
maria.freixes_graells at alcatel.es> wrote:
>
> Helo Nacho!
>
> If I have in my first jsp file:
>
> <form method="post" action="result55.jsp">
> .........
> with the variable string carpeta link
> ........
> <input type="submit" value="Submit">
> </form>
>
>
> You say that in my second jsp file, I can use:
>
> <%
> String carpeta = request.getParameter("carpetalink");
> %>
>
> But I optain null for the carpeta value.
>
> Any help??
>
> I appreciate your recommendation about learning to use javadocs or some
> enviroment that automatically checks basic syntax errors, but my work
> using all these is finishing, the objective of my job is completly
> different, so, I don't have time to learn more about....I'm sorry, but I
> must implement this little features and nothing else in the future!!
> This is really my great problem!!
>
> Thanks and best regards,
>
> Maria
>
>
>
>
>
> Nacho Fernandez escribió:
> > Hi Maria. Once again I strongly recommend you learn to use javadocs or
> > some enviroment that automatically checks basic syntax errors because
> > that could maximize your efficiency and make you stop infinitely less
> > for such small details. Besides that, you should use just the same
> > "request.getParameter" method you used when you got carpetalink from
> > the "neulink" parameter. You are putting this carpetalink variable
> > into a form, so that gets passed to the destination page as a
> > "carpetalink" parameter. This passing of parameters with forms will no
> > doubt be extremely useful for you in the future. Greetings,
> >
> > Nacho.
> > ------------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > This mail is sent to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
> visit
> > http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060922/4b3df883/attachment.htm>
More information about the opencms-dev
mailing list