[opencms-dev] Passing a value from one jsp to another
maria.freixes_graells at alcatel.es
maria.freixes_graells at alcatel.es
Fri Sep 22 15:16:13 CEST 2006
Now, I think that it works with:
first file:
<form method="post" action="result55.jsp">
<input type="hidden" name="carpeta" value="carpetalink" />
second file:
<%
String directori = request.getParameter("carpeta");
%>
But.....directori=carpetalink
So! the only that I need is to know how to say to the value form that I
want the value of the carpetalink variable and not the "carpetalink" string.
Thanks!!
maria.freixes_graells at alcatel.es escribió:
> 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
More information about the opencms-dev
mailing list